Question: Which street number in London (birthplace of Lord Byron) was William Blake born on?
Choices:
3
28
10
94
2
550
135
13
25
17
Answer: 28
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "William Blake" . ?e_2 <pred:name> "London" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Lord Byron" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <street_number> ?qpv .  }
Program:
function: Find
inputs: William Blake
function: Find
inputs: Lord Byron
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
street number