{
  "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": 18,
                "end": 20
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 21,
                "end": 23
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 24,
                "end": 26
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 18,
              "end": 26
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 18,
          "end": 26
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 16,
      "end": 28
    }
  },
  "solutionModifiers": {
    "group": {
      "type": "solutionModifier",
      "subType": "group",
      "groupings": [
        {
          "variable": {
            "type": "term",
            "subType": "variable",
            "value": "x",
            "loc": {
              "sourceLocationType": "source",
              "start": 45,
              "end": 47
            }
          },
          "value": {
            "type": "term",
            "subType": "variable",
            "value": "y",
            "loc": {
              "sourceLocationType": "source",
              "start": 39,
              "end": 41
            }
          },
          "loc": {
            "sourceLocationType": "source",
            "start": 38,
            "end": 48
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 29,
        "end": 48
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "x",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 9
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?x WHERE { ?s ?p ?y } GROUP BY (?y AS ?x)",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 48
    },
    "startOnNew": 0,
    "endOnNew": 48
  },
  "type": "query"
}
