{
  "context": [],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "president",
              "loc": {
                "sourceLocationType": "source",
                "start": 42,
                "end": 52
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
              "loc": {
                "sourceLocationType": "source",
                "start": 53,
                "end": 102
              }
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://dbpedia.org/ontology/President",
              "loc": {
                "sourceLocationType": "source",
                "start": 103,
                "end": 142
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 42,
              "end": 142
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "president",
              "loc": {
                "sourceLocationType": "source",
                "start": 148,
                "end": 158
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://dbpedia.org/ontology/nationality",
              "loc": {
                "sourceLocationType": "source",
                "start": 159,
                "end": 200
              }
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://dbpedia.org/resource/United_States",
              "loc": {
                "sourceLocationType": "source",
                "start": 201,
                "end": 244
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 148,
              "end": 244
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "president",
              "loc": {
                "sourceLocationType": "source",
                "start": 250,
                "end": 260
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://dbpedia.org/ontology/party",
              "loc": {
                "sourceLocationType": "source",
                "start": 261,
                "end": 296
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "party",
              "loc": {
                "sourceLocationType": "source",
                "start": 297,
                "end": 303
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 250,
              "end": 303
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 309,
                "end": 311
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://data.nytimes.com/elements/topicPage",
              "loc": {
                "sourceLocationType": "source",
                "start": 312,
                "end": 356
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "page",
              "loc": {
                "sourceLocationType": "source",
                "start": 357,
                "end": 362
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 309,
              "end": 362
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 368,
                "end": 370
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www.w3.org/2002/07/owl#sameAs",
              "loc": {
                "sourceLocationType": "source",
                "start": 371,
                "end": 409
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "president",
              "loc": {
                "sourceLocationType": "source",
                "start": 410,
                "end": 420
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 368,
              "end": 420
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 42,
          "end": 422
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 37,
      "end": 424
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "president",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 17
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "party",
      "loc": {
        "sourceLocationType": "source",
        "start": 18,
        "end": 24
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "page",
      "loc": {
        "sourceLocationType": "source",
        "start": 25,
        "end": 30
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT ?president ?party ?page WHERE {\n   ?president <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/President> .\n   ?president <http://dbpedia.org/ontology/nationality> <http://dbpedia.org/resource/United_States> .\n   ?president <http://dbpedia.org/ontology/party> ?party .\n   ?x <http://data.nytimes.com/elements/topicPage> ?page .\n   ?x <http://www.w3.org/2002/07/owl#sameAs> ?president .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 424
    },
    "startOnNew": 0,
    "endOnNew": 424
  },
  "type": "query"
}
