{
  "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": "o",
              "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": {
    "having": {
      "type": "solutionModifier",
      "subType": "having",
      "having": [
        {
          "type": "expression",
          "subType": "operation",
          "operator": ">",
          "args": [
            {
              "type": "expression",
              "subType": "aggregate",
              "aggregation": "count",
              "distinct": false,
              "loc": {
                "sourceLocationType": "source",
                "start": 37,
                "end": 45
              },
              "expression": [
                {
                  "type": "wildcard",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 43,
                    "end": 44
                  }
                }
              ]
            },
            {
              "type": "term",
              "subType": "literal",
              "value": "0",
              "langOrIri": {
                "type": "term",
                "subType": "namedNode",
                "value": "http://www.w3.org/2001/XMLSchema#integer",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                }
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 48,
                "end": 49
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 36,
            "end": 50
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 29,
        "end": 50
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "s",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 9
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?s WHERE { ?s ?p ?o } HAVING (COUNT(*) > 0) VALUES ?s { <http://example.org/a> }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 87
    },
    "startOnNew": 0,
    "endOnNew": 87
  },
  "type": "query",
  "values": {
    "type": "pattern",
    "subType": "values",
    "variables": [
      {
        "type": "term",
        "subType": "variable",
        "value": "s",
        "loc": {
          "sourceLocationType": "source",
          "start": 58,
          "end": 60
        }
      }
    ],
    "values": [
      {
        "s": {
          "type": "term",
          "subType": "namedNode",
          "value": "http://example.org/a",
          "loc": {
            "sourceLocationType": "source",
            "start": 63,
            "end": 85
          }
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 51,
      "end": 87
    }
  }
}
