Question: What is the TOID for the town that is the headquarters location of Hamilton Academical F.C.?
Choices:
4000000074544162
7000000000014402
4000000074566736
4000000074561090
4000000074550599
4000000074550413
7000000000025665
4000000074550625
4000000074541699
4000000074558066
Program:
function: Find
inputs: Hamilton Academical F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: town
function: QueryAttr
dependencies: 2
inputs: TOID
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Hamilton Academical F.C." .  ?e <TOID> ?pv .  }
Answer: 4000000074544162