Question: How many islands either have a population of greater than 6400 or have an ethnic group of French American?
Choices: 23
24
25
26
27
28
29
30
31
32
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "6400"^^xsd:double ) .  } UNION { ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "French American" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
6400
>
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: French American
function: Relate
dependencies: 3
inputs: ethnic group
backward
function: FilterConcept
dependencies: 4
inputs: island
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 26