Question: What is the relation between Brooklyn, where Jon and that was born, and the East River?
Choices:
location of final assembly
parent astronomical body
ethnic group
programming language
country of citizenship
board member
geography of topic
located in or next to body of water
honorific prefix
registered with
Answer: located in or next to body of water
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Brooklyn" . ?e_3 <place_of_birth> ?e_1 . ?e_3 <pred:name> "Jon Avnet" . ?e_2 <pred:name> "East River" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jon Avnet
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 1
2
function: Find
inputs: East River
function: QueryRelation
dependencies: 3
4