Question: How is Joe Walsh (who died in Omaha) related to Chicago (birthplace of Sherri Shepherd)?
Choices:
librettist
educated at
drafted by
board member
parent astronomical body
copyright representative
from fictional universe
capital of
family
place of birth
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Joe Walsh" . ?e_1 <place_of_death> ?e_3 . ?e_3 <pred:name> "Omaha" . ?e_2 <pred:name> "Chicago" . ?e_4 <place_of_birth> ?e_2 . ?e_4 <pred:name> "Sherri Shepherd" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Omaha
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: Joe Walsh
function: And
dependencies: 1
2
function: Find
inputs: Sherri Shepherd
function: Relate
dependencies: 4
inputs: place of birth
forward
function: Find
inputs: Chicago
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7