Question: What is the relationship between Alfred Newman (the one that has the occupation of judge) and politician?
Choices:
place of burial
Wikidata property
appointed by
is a list of
original film format
broadcast by
doctoral student
update method
territory overlaps
occupation
Program:
function: Find
inputs: judge
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Alfred Newman
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alfred Newman" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "judge" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Answer: occupation