{
  "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": 38,
                "end": 40
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 41,
                "end": 43
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 44,
                "end": 46
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 38,
              "end": 46
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 38,
          "end": 46
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 34,
      "end": 48
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "v",
      "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": 20
        },
        "expression": [
          {
            "type": "term",
            "subType": "variable",
            "value": "o",
            "loc": {
              "sourceLocationType": "source",
              "start": 17,
              "end": 19
            }
          }
        ]
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "c",
        "loc": {
          "sourceLocationType": "source",
          "start": 24,
          "end": 26
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 10,
        "end": 27
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?v (COUNT(?o) AS ?c) WHERE {\n  ?s ?p ?o\n}\nVALUES ?v { 1 }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 64
    },
    "startOnNew": 0,
    "endOnNew": 64
  },
  "type": "query",
  "values": {
    "type": "pattern",
    "subType": "values",
    "variables": [
      {
        "type": "term",
        "subType": "variable",
        "value": "v",
        "loc": {
          "sourceLocationType": "source",
          "start": 56,
          "end": 58
        }
      }
    ],
    "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": 61,
            "end": 62
          }
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 49,
      "end": 64
    }
  }
}
