Question: What is the elevation above sea level of the city that is the capital of Nigeria until the ending date 1991-12-12?
Choices:
152 metre
352 metre
278 metre
1045 metre
518 metre
1340 metre
34 metre
892 metre
194 metre
457 metre
Answer: 34 metre
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Nigeria" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital> ; <pred:fact_t> ?e ] <end_time> ?qpv . ?qpv <pred:date> "1991-12-12"^^xsd:date . ?e <elevation_above_sea_level> ?pv .  }
Program:
function: Find
inputs: Nigeria
function: Relate
dependencies: 0
inputs: capital
forward
function: QFilterDate
dependencies: 1
inputs: end time
1991-12-12
=
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttr
dependencies: 3
inputs: elevation above sea level