Question: What city in the US had the population below 450000000 on 1st January 2010 and it is the birthplace of B. J. Novak ?
Choices:
Columbus
New Haven
Omaha
Newton
Huntsville
Waukegan
Pleasantville
Danville
Haverhill
Pittsfield
Answer: Newton
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "450000000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:date> "2010-01-01"^^xsd:date . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "B. J. Novak" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
450000000
<
function: QFilterDate
dependencies: 1
inputs: point in time
2010-01-01
=
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: Find
inputs: B. J. Novak
function: Relate
dependencies: 4
inputs: place of birth
forward
function: FilterConcept
dependencies: 5
inputs: city of the United States
function: And
dependencies: 3
6
function: What
dependencies: 7