Question: How is the politician Jon Favreau related to the category of "politician"?
Choices:
occupation
does not have part
doctoral advisor
signatory
next higher rank
appears in the form of
Wikidata property
depicts
country for sport
seed team
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jon Favreau" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jon Favreau
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4