{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.com/data/#",
        "loc": {
          "sourceLocationType": "source",
          "start": 9,
          "end": 36
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 36
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 79,
                "end": 81
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 82,
                "end": 84
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 85,
                "end": 87
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 79,
              "end": 87
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 92,
                "end": 94
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 95,
                "end": 97
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 98,
                "end": 100
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 92,
              "end": 100
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 79,
          "end": 102
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 75,
      "end": 104
    }
  },
  "solutionModifiers": {
    "group": {
      "type": "solutionModifier",
      "subType": "group",
      "groupings": [
        {
          "type": "term",
          "subType": "variable",
          "value": "x",
          "loc": {
            "sourceLocationType": "source",
            "start": 114,
            "end": 116
          }
        },
        {
          "type": "expression",
          "subType": "operation",
          "operator": "str",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 122,
                "end": 124
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 118,
            "end": 125
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 105,
        "end": 125
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "x",
      "loc": {
        "sourceLocationType": "source",
        "start": 44,
        "end": 46
      }
    },
    {
      "type": "pattern",
      "subType": "bind",
      "expression": {
        "type": "expression",
        "subType": "operation",
        "operator": "*",
        "args": [
          {
            "type": "expression",
            "subType": "aggregate",
            "aggregation": "min",
            "distinct": false,
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 55
            },
            "expression": [
              {
                "type": "term",
                "subType": "variable",
                "value": "y",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 52,
                  "end": 54
                }
              }
            ]
          },
          {
            "type": "term",
            "subType": "literal",
            "value": "2",
            "langOrIri": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www.w3.org/2001/XMLSchema#integer",
              "loc": {
                "sourceLocationType": "noMaterialize"
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 58,
              "end": 59
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 48,
          "end": 59
        }
      },
      "variable": {
        "type": "term",
        "subType": "variable",
        "value": "min",
        "loc": {
          "sourceLocationType": "source",
          "start": 63,
          "end": 67
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 47,
        "end": 68
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/data/#>\nSELECT ?x (MIN(?y) * 2 AS ?min)\nWHERE {\n  ?x :p ?y .\n  ?x :q ?z .\n} GROUP BY ?x (STR(?z))\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 125
    },
    "startOnNew": 0,
    "endOnNew": 125
  },
  "type": "query"
}
