Question: Which soccer club is headquartered in the city designated by TOID number 4000000074541547?
Choices:
Pohang Steelers
Bristol Rovers F.C.
Newell's Old Boys
Peterborough United F.C.
St. Johnstone F.C.
Stade Rennais F.C.
Rangers F.C.
Millwall F.C.
Hellas Verona F.C.
S.S.C. Napoli
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074541547
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: headquarters location
backward
function: FilterConcept
dependencies: 3
inputs: association football club
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074541547" .   }
Answer: St. Johnstone F.C.