{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example/",
        "loc": {
          "sourceLocationType": "source",
          "start": 12,
          "end": 29
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 29
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "rdf",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "loc": {
          "sourceLocationType": "source",
          "start": 42,
          "end": 87
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 30,
        "end": 87
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "list",
              "loc": {
                "sourceLocationType": "source",
                "start": 103,
                "end": 108
              },
              "prefix": ""
            },
            "predicate": {
              "type": "path",
              "loc": {
                "sourceLocationType": "source",
                "start": 109,
                "end": 128
              },
              "items": [
                {
                  "type": "path",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 109,
                    "end": 118
                  },
                  "items": [
                    {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "rest",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 109,
                        "end": 117
                      },
                      "prefix": "rdf"
                    }
                  ],
                  "subType": "*"
                },
                {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "first",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 119,
                    "end": 128
                  },
                  "prefix": "rdf"
                }
              ],
              "subType": "/"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "element",
              "loc": {
                "sourceLocationType": "source",
                "start": 129,
                "end": 137
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 103,
              "end": 137
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 103,
          "end": 137
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 101,
      "end": 139
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 97,
        "end": 98
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX :    <http://example/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n  SELECT *\n  { :list rdf:rest*/rdf:first ?element }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 139
    },
    "startOnNew": 0,
    "endOnNew": 139
  },
  "type": "query"
}
