{
  "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": 36,
                "end": 38
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 39,
                "end": 41
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 42,
                "end": 44
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 36,
              "end": 44
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 36,
          "end": 44
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 32,
      "end": 46
    }
  },
  "solutionModifiers": {
    "group": {
      "type": "solutionModifier",
      "subType": "group",
      "groupings": [
        {
          "type": "term",
          "subType": "variable",
          "value": "s",
          "loc": {
            "sourceLocationType": "source",
            "start": 56,
            "end": 58
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 47,
        "end": 58
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "s",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 9
      }
    },
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "type": "expression",
        "subType": "operation",
        "operator": "str",
        "args": [
          {
            "type": "term",
            "subType": "variable",
            "value": "v",
            "loc": {
              "sourceLocationType": "source",
              "start": 15,
              "end": 17
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 11,
          "end": 18
        }
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "w",
        "loc": {
          "sourceLocationType": "source",
          "start": 22,
          "end": 24
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 10,
        "end": 25
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?s (STR(?v) AS ?w) WHERE {\n  ?s ?p ?o\n}\nGROUP BY ?s\nVALUES ?v { 1 }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 74
    },
    "startOnNew": 0,
    "endOnNew": 74
  },
  "type": "query",
  "values": {
    "type": "pattern",
    "subType": "values",
    "variables": [
      {
        "type": "term",
        "subType": "variable",
        "value": "v",
        "loc": {
          "sourceLocationType": "source",
          "start": 66,
          "end": 68
        }
      }
    ],
    "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": 71,
            "end": 72
          }
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 59,
      "end": 74
    }
  }
}
