Question: How many Ohio counties are there  with the population of under 240,000 or with the headquarters in Melbourne (located in the US) ?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "240000"^^xsd:double ) .  } UNION { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Melbourne" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
240000
<
function: FilterConcept
dependencies: 1
inputs: county of Ohio
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country
backward
function: Find
inputs: Melbourne
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: headquarters location
backward
function: FilterConcept
dependencies: 7
inputs: county of Ohio
function: Or
dependencies: 2
8
function: Count
dependencies: 9