{
  "context": [],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "query",
        "subType": "select",
        "where": {
          "type": "pattern",
          "subType": "group",
          "patterns": [
            {
              "type": "pattern",
              "subType": "bgp",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "variable",
                    "value": "y",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 43,
                      "end": 45
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 46,
                      "end": 48
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "variable",
                    "value": "o",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 49,
                      "end": 51
                    }
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 43,
                    "end": 51
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 43,
                "end": 51
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 41,
            "end": 53
          }
        },
        "datasets": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "context": [],
        "solutionModifiers": {},
        "variables": [
          {
            "type": "term",
            "subType": "variable",
            "value": "y",
            "loc": {
              "sourceLocationType": "source",
              "start": 32,
              "end": 34
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 25,
          "end": 53
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 23,
      "end": 55
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "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": 8,
          "end": 9
        }
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "x",
        "loc": {
          "sourceLocationType": "source",
          "start": 13,
          "end": 15
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 16
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT (1 AS ?x) WHERE { SELECT ?y WHERE { ?y ?p ?o } }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 55
    },
    "startOnNew": 0,
    "endOnNew": 55
  },
  "type": "query"
}
