Question: How is John Wood who was born in Lakeland related to the Republican Party?
Choices:
work location
sidekick of
approved by
fictional universe described in
member of political party
material used
next higher rank
doctoral student
season starts
owner of
Answer: member of political party
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wood" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Lakeland" . ?e_2 <pred:name> "Republican Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Lakeland
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Wood
function: And
dependencies: 1
2
function: Find
inputs: Republican Party
function: QueryRelation
dependencies: 3
4