Question: How many US cities, established after 1981, have the population of under 2700000000 ?
Choices:
49
50
51
52
53
54
55
56
57
58
Answer: 56
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) 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 < "2700000000"^^xsd:double ) . ?e <inception> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 > 1891 ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2700000000
<
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1891
>
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: And
dependencies: 2
5
function: Count
dependencies: 6