Question: Tell me the relationship between Gordon Brown (who is a Southampton F.C. member) and Morecambe F.C.
Choices:
member of sports team
does not have part
published in
family name
applies to jurisdiction
theme music
appointed by
language used
permanent resident of
studied by
Program:
function: Find
inputs: Southampton F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Gordon Brown
function: And
dependencies: 1
2
function: Find
inputs: Morecambe F.C.
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gordon Brown" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Southampton F.C." . ?e_2 <pred:name> "Morecambe F.C." . ?e_1 ?p ?e_2 .  }
Answer: member of sports team