{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "foaf",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://xmlns.com/foaf/0.1/",
        "loc": {
          "sourceLocationType": "source",
          "start": 16,
          "end": 44
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 44
      }
    }
  ],
  "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": 68,
                "end": 70
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 71,
                "end": 80
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 81,
                "end": 86
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 68,
              "end": 86
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 93,
                "end": 95
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "mbox",
              "loc": {
                "sourceLocationType": "source",
                "start": 96,
                "end": 105
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "mbox",
              "loc": {
                "sourceLocationType": "source",
                "start": 106,
                "end": 111
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 93,
              "end": 111
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 68,
          "end": 113
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "regex",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 131,
                "end": 136
              }
            },
            {
              "type": "term",
              "subType": "literal",
              "value": "Smith",
              "loc": {
                "sourceLocationType": "source",
                "start": 138,
                "end": 145
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 125,
            "end": 146
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 118,
          "end": 146
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 65,
      "end": 149
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "name",
      "loc": {
        "sourceLocationType": "source",
        "start": 52,
        "end": 57
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "mbox",
      "loc": {
        "sourceLocationType": "source",
        "start": 58,
        "end": 63
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf:    <http://xmlns.com/foaf/0.1/>\nSELECT ?name ?mbox\n {  ?x foaf:name ?name .\n    ?x foaf:mbox ?mbox .\n    FILTER regex(?name, \"Smith\")\n }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 149
    },
    "startOnNew": 0,
    "endOnNew": 149
  },
  "type": "query"
}
