Question: What town contains the headquarters of an association football club whose member was John Byrne (a member of Tranmere Rovers F.C.) until 1957 ?
Choices:
Barnsley
Hamilton
Dumfries
Slough
South Shields
Fulham
Falkirk
Edmonton
Royal Tunbridge Wells
Doncaster
Answer: Hamilton
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "association football club" . ?e_2 <member_of_sports_team> ?e_1 . ?e_2 <pred:name> "John Byrne" . ?e_2 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Tranmere Rovers F.C." . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1957 .   }
Program:
function: Find
inputs: Tranmere Rovers F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Byrne
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: QFilterYear
dependencies: 4
inputs: end time
1957
=
function: FilterConcept
dependencies: 5
inputs: association football club
function: Relate
dependencies: 6
inputs: headquarters location
forward
function: FilterConcept
dependencies: 7
inputs: town
function: What
dependencies: 8