Question: How many towns in the United States either have a population of less than 400000 or are the residence of Joanne Woodward?
Choices:
17
18
19
20
21
22
23
24
25
26
Answer: 22
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "400000"^^xsd:double ) .  } UNION { ?e_1 <residence> ?e . ?e_1 <pred:name> "Joanne Woodward" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
400000
<
function: FilterConcept
dependencies: 1
inputs: town of the United States
function: Find
inputs: Joanne Woodward
function: Relate
dependencies: 3
inputs: residence
forward
function: FilterConcept
dependencies: 4
inputs: town of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6