Question: Until when was Boston's Vincent van Gogh located in Detroit (where the border is shared with Dearborn)?
Choices: 1976-02-15
1827-03-04
1920-04-25
2009-01-20
1945
2003-05-20
1989
1936-10-28
1984-01-01
1910-10-05
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Vincent van Gogh" . ?e_1 <location> ?e_3 . ?e_3 <pred:name> "Boston" . ?e_2 <pred:name> "Detroit" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "Dearborn" . ?e_1 <location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <location> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Boston
function: Relate
dependencies: 0
inputs: location
backward
function: Find
inputs: Vincent van Gogh
function: And
dependencies: 1
2
function: Find
inputs: Dearborn
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Detroit
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: location
end time
Answer: 1936-10-28