{
  "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
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "xsd",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/2001/XMLSchema#",
        "loc": {
          "sourceLocationType": "source",
          "start": 104,
          "end": 139
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 90,
        "end": 139
      }
    }
  ],
  "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": 167,
                "end": 169
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "givenName",
              "loc": {
                "sourceLocationType": "source",
                "start": 170,
                "end": 184
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "givenName",
              "loc": {
                "sourceLocationType": "source",
                "start": 186,
                "end": 196
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 167,
              "end": 196
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 167,
          "end": 198
        }
      },
      {
        "type": "pattern",
        "subType": "optional",
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 219,
                    "end": 221
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "date",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 222,
                    "end": 229
                  },
                  "prefix": "dc"
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "date",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 230,
                    "end": 235
                  }
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 219,
                  "end": 235
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 219,
              "end": 235
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 208,
          "end": 237
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "bound",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "date",
              "loc": {
                "sourceLocationType": "source",
                "start": 264,
                "end": 269
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 256,
            "end": 272
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 249,
          "end": 272
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 165,
      "end": 274
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "givenName",
      "loc": {
        "sourceLocationType": "source",
        "start": 147,
        "end": 157
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nPREFIX dc:   <http://purl.org/dc/elements/1.1/>\nPREFIX xsd:   <http://www.w3.org/2001/XMLSchema#>\nSELECT ?givenName\n WHERE { ?x foaf:givenName  ?givenName .\n         OPTIONAL { ?x dc:date ?date } .\n         FILTER ( bound(?date) ) }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 274
    },
    "startOnNew": 0,
    "endOnNew": 274
  },
  "type": "query"
}
