Question: What number of countries have an ISO 3166-1 alpha-2 code of NL or a total fertility rate that's above 2.0?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" .  { ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2.0"^^xsd:double ) .  } UNION { ?e <ISO_3166-1_alpha-2_code> ?pv . ?pv <pred:value> "NL" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
2.0
>
function: FilterConcept
dependencies: 1
inputs: country
function: FindAll
function: FilterStr
dependencies: 3
inputs: ISO 3166-1 alpha-2 code
NL
function: FilterConcept
dependencies: 4
inputs: country
function: Or
dependencies: 2
5
function: Count
dependencies: 6