Question: How many states have a total fertility rate greater than 2.4 and a nominal GDP less than 14900000 USD?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2.4"^^xsd:double ) . ?e <nominal_GDP> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "14900000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
2.4
>
function: FilterConcept
dependencies: 1
inputs: state
function: FindAll
function: FilterNum
dependencies: 3
inputs: nominal GDP
14900000 United States dollar
<
function: FilterConcept
dependencies: 4
inputs: state
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1