Question: How many California counties have a population above 1200 or are situated along the Pacific Ocean?
Choices:
39
40
41
42
43
44
45
46
47
48
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1200"^^xsd:double ) .  } UNION { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
1200
>
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 3
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 4
inputs: county of California
function: Or
dependencies: 2
5
function: Count
dependencies: 6