Question: When was the county of New York whose population is less than 290000 (the point in time of this statement is 1840) founded?
Choices:
1954-08-14
1961
1984-07-01
1902
1786
1865-03-21
1938-04-20
1885-10-13
870
1991-08-24
Answer: 1786
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "290000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <point_in_time> ?qpv . ?qpv <pred:year> 1840 . ?e <inception> ?pv .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
290000
<
function: QFilterYear
dependencies: 1
inputs: point in time
1840
=
function: FilterConcept
dependencies: 2
inputs: county of New York
function: QueryAttr
dependencies: 3
inputs: inception