Question: How many unitary states have a population of less than 860000000 or are the distribute region of Shaun of the Dead?
Choices:
15
16
17
18
19
20
21
22
23
24
Answer: 18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "860000000"^^xsd:double ) .  } UNION { ?e_1 <film_distribute_region> ?e . ?e_1 <pred:name> "Shaun of the Dead" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
860000000
<
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: Shaun of the Dead
function: Relate
dependencies: 3
inputs: film distribute region
forward
function: FilterConcept
dependencies: 4
inputs: unitary state
function: Or
dependencies: 2
5
function: Count
dependencies: 6