Question: What is the link between John Hughes (who is a member of Falkirk F.C.) and defender?
Choices:
instrumentation
language of work or name
mouth of the watercourse
position played on team / speciality
maintained by
child
studied by
public holiday
sexual orientation
office held by head of state
Program:
function: Find
inputs: Falkirk F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Hughes
function: And
dependencies: 1
2
function: Find
inputs: defender
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Hughes" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Falkirk F.C." . ?e_2 <pred:name> "defender" . ?e_1 ?p ?e_2 .  }
Answer: position played on team / speciality