Question: What are the number of unitary states with total fertility rate greater than 1.7 or whose native label is Fidźi Ganaradźja ?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1.7"^^xsd:double ) .  } UNION { ?e <native_label> ?pv . ?pv <pred:value> "Fidźi Ganaradźja" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
1.7
>
function: FilterConcept
dependencies: 1
inputs: unitary state
function: FindAll
function: FilterStr
dependencies: 3
inputs: native label
Fidźi Ganaradźja
function: FilterConcept
dependencies: 4
inputs: unitary state
function: Or
dependencies: 2
5
function: Count
dependencies: 6