{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "foaf",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://xmlns.com/foaf/0.1/",
        "loc": {
          "sourceLocationType": "source",
          "start": 13,
          "end": 41
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 41
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "dc",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://purl.org/dc/elements/1.1/",
        "loc": {
          "sourceLocationType": "source",
          "start": 55,
          "end": 89
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 42,
        "end": 89
      }
    }
  ],
  "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": 112,
                "end": 114
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "givenName",
              "loc": {
                "sourceLocationType": "source",
                "start": 115,
                "end": 129
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 131,
                "end": 136
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 112,
              "end": 136
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 112,
          "end": 138
        }
      },
      {
        "type": "pattern",
        "subType": "optional",
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 159,
                    "end": 161
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "date",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 162,
                    "end": 169
                  },
                  "prefix": "dc"
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "date",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 170,
                    "end": 175
                  }
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 159,
                  "end": 175
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 159,
              "end": 175
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 148,
          "end": 177
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "!",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "bound",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "date",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 204,
                    "end": 209
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 198,
                "end": 210
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 196,
            "end": 211
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 189,
          "end": 211
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 110,
      "end": 213
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "name",
      "loc": {
        "sourceLocationType": "source",
        "start": 97,
        "end": 102
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nPREFIX dc:   <http://purl.org/dc/elements/1.1/>\nSELECT ?name\n WHERE { ?x foaf:givenName  ?name .\n         OPTIONAL { ?x dc:date ?date } .\n         FILTER (!bound(?date)) }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 213
    },
    "startOnNew": 0,
    "endOnNew": 213
  },
  "type": "query"
}
