Question: What is the end time of Rome (the one that is the twinned administrative body of Cincinnati) is the capital of Kingdom of Italy (the one that shares border with Austria-Hungary).
Choices:
2011-03-20
1955-06-05
1946-06-02
1806-12-19
1100
2006-01-16
1841-03-04
1979-04-01
2006-08-27
1771
Answer: 1946-06-02
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Rome" . ?e_3 <twinned_administrative_body> ?e_1 . ?e_3 <pred:name> "Cincinnati" . ?e_2 <pred:name> "Kingdom of Italy" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "Austria-Hungary" . ?e_1 <capital_of> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital_of> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Cincinnati
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Rome
function: And
dependencies: 1
2
function: Find
inputs: Austria-Hungary
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Kingdom of Italy
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: capital of
end time