Question: What is the association between John Mahoney (who is a member of the Wales national football team) and the Wales national football team?
Choices:
penalty
use
killed by
from fictional universe
narrative role
basin country
member of sports team
legislative body
Wikidata property
field of this occupation
Answer: member of sports team
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Mahoney" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Wales national football team" . ?e_2 <pred:name> "Wales national football team" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Wales national football team
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Mahoney
function: And
dependencies: 1
2
function: Find
inputs: Wales national football team
function: QueryRelation
dependencies: 3
4