Question: Which city has headquarters in Swindon Town F.C. and located in Wiltshire?
Choices:
Cork
Chihuahua
Swindon
Kingston
Trieste
Abidjan
Dundee
Santo Domingo
Cairo
Bergen
Program:
function: Find
inputs: Swindon Town F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Wiltshire
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Swindon Town F.C." .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Wiltshire" .  }
Answer: Swindon