Question: When is the end of the official name of North-West Frontier Province, for the province that shares a border with Punjab (shares border with Khyber Pakhtunkhwa)?
Choices:
1857-09-12
1730
2011-08-16
1858-06-20
1946-06-02
1890-01-01
2002-02-24
2010
1923-10-28
2012-01-01
Answer: 2010
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Punjab" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Khyber Pakhtunkhwa" .  ?e <official_name> ?pv . ?pv <pred:value> "North-West Frontier Province" . [ <pred:fact_h> ?e ; <pred:fact_r> <official_name> ; <pred:fact_t> ?pv ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Khyber Pakhtunkhwa
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Punjab
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: first-level administrative country subdivision
function: QueryAttrQualifier
dependencies: 5
inputs: official name
North-West Frontier Province
end time