Question: Which soccer club is headquartered in the town where playwright John Byrne was born?
Choices:
Barrow A.F.C.
Aldershot Town F.C.
Dundee United F.C.
St. Mirren F.C.
Torquay United F.C.
Stevenage F.C.
Raith Rovers F.C.
Walsall F.C.
Doncaster Rovers F.C.
Al-Arabi SC
Program:
function: Find
inputs: playwright
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Byrne
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: Relate
dependencies: 5
inputs: headquarters location
backward
function: FilterConcept
dependencies: 6
inputs: association football club
function: What
dependencies: 7
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> "town" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "John Byrne" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "playwright" .   }
Answer: St. Mirren F.C.