Question: Bremen, which borders Lower Saxony, belonged to the country the Weimar Republic until which date?
Choices:
1814
1995-12-22
600
1876-10-07
1933
1833-09-10
2008-09-26
1991-11-10
1815-08-07
1899-04-18
Answer: 1933
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Bremen" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Lower Saxony" . ?e_2 <pred:name> "Weimar Republic" . ?e_1 <country> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Lower Saxony
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Bremen
function: And
dependencies: 1
2
function: Find
inputs: Weimar Republic
function: QueryRelationQualifier
dependencies: 3
4
inputs: country
end time