{
  "context": [],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "tripleCollection",
            "subType": "blankNodeProperties",
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "blankNode",
                  "loc": {
                    "sourceLocationType": "noMaterialize"
                  },
                  "label": "g_0"
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 33,
                    "end": 35
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "blankNode",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 36,
                    "end": 38
                  },
                  "label": "g_1"
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 33,
                  "end": 38
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 31,
              "end": 40
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 31,
          "end": 41
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 27,
      "end": 43
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "p",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 9
      }
    },
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "type": "expression",
        "subType": "aggregate",
        "aggregation": "count",
        "distinct": false,
        "loc": {
          "sourceLocationType": "source",
          "start": 11,
          "end": 19
        },
        "expression": [
          {
            "type": "wildcard",
            "loc": {
              "sourceLocationType": "source",
              "start": 17,
              "end": 18
            }
          }
        ]
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "n",
        "loc": {
          "sourceLocationType": "source",
          "start": 23,
          "end": 25
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 10,
        "end": 26
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "select ?p (count(*) as ?n) {\n  [ ?p [] ].\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 43
    },
    "startOnNew": 0,
    "endOnNew": 43
  },
  "type": "query"
}
