Question: How many countries of Illinois are recognized as the ones with the population of under 23 million people or as the twinned administrative body of Greenwich (the one whose GSS code (2011) is E09000011) ?
Choices:
17
18
19
20
21
22
23
24
25
26
Answer: 18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "23000000"^^xsd:double ) .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Greenwich" . ?e_1 <GSS_code_(2011)> ?pv . ?pv <pred:value> "E09000011" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
23000000
<
function: FilterConcept
dependencies: 1
inputs: county of Illinois
function: Find
inputs: Greenwich
function: FilterStr
dependencies: 3
inputs: GSS code (2011)
E09000011
function: Relate
dependencies: 4
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: Or
dependencies: 2
6
function: Count
dependencies: 7