{
  "context": [],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "s",
              "loc": {
                "sourceLocationType": "source",
                "start": 46,
                "end": 48
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 49,
                "end": 51
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 52,
                "end": 54
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 46,
              "end": 54
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 46,
          "end": 54
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 42,
      "end": 56
    }
  },
  "solutionModifiers": {
    "group": {
      "type": "solutionModifier",
      "subType": "group",
      "groupings": [
        {
          "type": "term",
          "subType": "variable",
          "value": "s",
          "loc": {
            "sourceLocationType": "source",
            "start": 66,
            "end": 68
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 57,
        "end": 68
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "s",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 9
      }
    },
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "type": "term",
        "subType": "variable",
        "value": "v",
        "loc": {
          "sourceLocationType": "source",
          "start": 11,
          "end": 13
        }
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "x",
        "loc": {
          "sourceLocationType": "source",
          "start": 17,
          "end": 19
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 10,
        "end": 20
      }
    },
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "type": "expression",
        "subType": "operation",
        "operator": "+",
        "args": [
          {
            "type": "term",
            "subType": "variable",
            "value": "x",
            "loc": {
              "sourceLocationType": "source",
              "start": 22,
              "end": 24
            }
          },
          {
            "type": "term",
            "subType": "literal",
            "value": "1",
            "langOrIri": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www.w3.org/2001/XMLSchema#integer",
              "loc": {
                "sourceLocationType": "noMaterialize"
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 27,
              "end": 28
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 22,
          "end": 28
        }
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "y",
        "loc": {
          "sourceLocationType": "source",
          "start": 32,
          "end": 34
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 21,
        "end": 35
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?s (?v AS ?x) (?x + 1 AS ?y) WHERE {\n  ?s ?p ?o\n}\nGROUP BY ?s\nVALUES ?v { 1 }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 84
    },
    "startOnNew": 0,
    "endOnNew": 84
  },
  "type": "query",
  "values": {
    "type": "pattern",
    "subType": "values",
    "variables": [
      {
        "type": "term",
        "subType": "variable",
        "value": "v",
        "loc": {
          "sourceLocationType": "source",
          "start": 76,
          "end": 78
        }
      }
    ],
    "values": [
      {
        "v": {
          "type": "term",
          "subType": "literal",
          "value": "1",
          "langOrIri": {
            "type": "term",
            "subType": "namedNode",
            "value": "http://www.w3.org/2001/XMLSchema#integer",
            "loc": {
              "sourceLocationType": "noMaterialize"
            }
          },
          "loc": {
            "sourceLocationType": "source",
            "start": 81,
            "end": 82
          }
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 69,
      "end": 84
    }
  }
}
