Question: What is the connection between Dave Foley (the one that is related to sport American football) to Buffalo Bills?
Choices:
professorship
interests
official residence
member of sports team
location of final assembly
field of this occupation
architectural style
languages spoken, written or signed
academic degree
religious order
Answer: member of sports team
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dave Foley" . ?e_1 <sport> ?e_3 . ?e_3 <pred:name> "American football" . ?e_2 <pred:name> "Buffalo Bills" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: American football
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Dave Foley
function: And
dependencies: 1
2
function: Find
inputs: Buffalo Bills
function: QueryRelation
dependencies: 3
4