Question: When did Naples (the capital of Campania) stop being located in Province of Naples?
Choices:
1870
2015-02-02
1991-12-12
1940
2004-02-22
1997-03-14
1707-07-01
2014-12-31
1945-04-12
2003-01-01
Answer: 2014-12-31
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Naples" . ?e_3 <capital> ?e_1 . ?e_3 <pred:name> "Campania" . ?e_2 <pred:name> "Province of Naples" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Campania
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Find
inputs: Province of Naples
function: QueryRelationQualifier
dependencies: 3
4
inputs: located in the administrative territorial entity
end time