Question: What is the name of the administrative-territorial entity where is the capital town that is the birthplace of John Irving (the one that died in Nottingham)?
Choices:
Queens
Cass County
African Union
Dumfries and Galloway
Kent County
Delaware County
Falkirk
Johnson County
Orange County
Washoe County
Program:
function: Find
inputs: Nottingham
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: John Irving
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: Relate
dependencies: 5
inputs: capital of
forward
function: FilterConcept
dependencies: 6
inputs: administrative territorial entity
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <capital_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "town" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "John Irving" . ?e_2 <place_of_death> ?e_3 . ?e_3 <pred:name> "Nottingham" .   }
Answer: Dumfries and Galloway