Question: When did Johann Sebastian Bach (the one whose British Museum person-institution is 18049 stop working in Hamburg?
Choices: 1993
2009-10-25
2008-11-25
1932-08-14
1998-05-18
1777-01-01
2005-02-08
1990-03-10
2014-12-31
1877
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Johann Sebastian Bach" . ?e_1 <British_Museum_person-institution> ?pv . ?pv <pred:value> "18049" . ?e_2 <pred:name> "Hamburg" . ?e_1 <work_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <work_location> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Johann Sebastian Bach
function: FilterStr
dependencies: 0
inputs: British Museum person-institution
18049
function: Find
inputs: Hamburg
function: QueryRelationQualifier
dependencies: 1
2
inputs: work location
end time
Answer: 1777-01-01