Question: What is the connection between Johnny Mercer (the one that has the occupation of politician) to politician?
Choices:
based on
author
lowest point
occupation
narrative role
chief executive officer
permanent resident of
military rank
owned by
doctoral student
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Johnny Mercer" . ?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: Johnny Mercer
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4