Question: How does John Ortiz relate to Brooklyn, the birthplace of Ken Burns ?
Choices:
patron saint
place of burial
located on terrain feature
head of government
organizer
home port
place of birth
geography of topic
allegiance
basin country
Program:
function: Find
inputs: John Ortiz
function: Find
inputs: Ken Burns
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Ortiz" . ?e_2 <pred:name> "Brooklyn" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Ken Burns" . ?e_1 ?p ?e_2 .  }
Answer: place of birth