Question: What's the relationship between a midfielder and Mehmood Ali (who plays midfielder)?
Choices:
symptom of
exclave of
commissioned by
director of photography
commander of
has edition
location of formation
filming location
position played on team / speciality
official religion
Answer: position played on team / speciality
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mehmood Ali" . ?e_1 <position_played_on_team_/_speciality> ?e_3 . ?e_3 <pred:name> "midfielder" . ?e_2 <pred:name> "midfielder" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: midfielder
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Mehmood Ali
function: And
dependencies: 1
2
function: Find
inputs: midfielder
function: QueryRelation
dependencies: 3
4