Question: How many islands are there that are either less than 560 kilometers long or are have a residence owned by Steven Tyler?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" .  { ?e_1 <residence> ?e . ?e_1 <pred:name> "Steven Tyler" .  } UNION { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "560"^^xsd:double ) .  } }
Program:
function: Find
inputs: Steven Tyler
function: Relate
dependencies: 0
inputs: residence
forward
function: FilterConcept
dependencies: 1
inputs: island
function: FindAll
function: FilterNum
dependencies: 3
inputs: length
560 kilometre
<
function: FilterConcept
dependencies: 4
inputs: island
function: Or
dependencies: 2
5
function: Count
dependencies: 6