Question: Which administrative-territorial entity contains the city that is the main subject of Bangor (the one that depicts goat)?
Choices:
County Antrim
Cobb County
Kent County
Orange County
Washoe County
London Borough of Newham
St. Louis County
Stirling
London
Gwynedd
Program:
function: Find
inputs: goat
function: Relate
dependencies: 0
inputs: depicts
backward
function: Find
inputs: Bangor
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
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 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <main_subject> ?e_1 . ?e_2 <pred:name> "Bangor" . ?e_2 <depicts> ?e_3 . ?e_3 <pred:name> "goat" .   }
Answer: Gwynedd