Question: When did Saint John (whose area is 50.8 square kilometres) have a population of 4170?
Choices: 1996-09-25
1937-01-01
2006-08-01
2001-02-14
1787
2006-05-17
2255
2003-04-23
2010
1986
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:name> "Saint John" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "50.8"^^xsd:double . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4170"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv .  }
Program:
function: Find
inputs: Saint John
function: FilterNum
dependencies: 0
inputs: area
50.8 square kilometre
=
function: QueryAttrQualifier
dependencies: 1
inputs: population
4170
point in time
Answer: 2010