Question: What is the number of sovereign states that have a population of over 2100000 or who have Grover Cleveland as head of government?
Choices:
105
106
107
108
109
110
111
112
113
114
Answer: 114
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2100000"^^xsd:double ) .  } UNION { ?e <head_of_government> ?e_1 . ?e_1 <pred:name> "Grover Cleveland" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2100000
>
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Find
inputs: Grover Cleveland
function: Relate
dependencies: 3
inputs: head of government
backward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Or
dependencies: 2
5
function: Count
dependencies: 6