Question: Which city is the headquarters location of Inverness Caledonian Thistle F.C.?
Choices:
Kilkenny
Coventry
Trieste
Kingston
Burnaby
Cork
Adelaide
Helsinki
Inverness
Livorno
Program:
function: Find
inputs: Inverness Caledonian Thistle F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: city
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Inverness Caledonian Thistle F.C." .   }
Answer: Inverness