Question: How many land forms are recognized with the perimeter of over 290 km or with the location in North American continent ?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" .  { ?e <perimeter> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "290"^^xsd:double ) .  } UNION { ?e <continent> ?e_1 . ?e_1 <pred:name> "North America" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: perimeter
290 kilometre
>
function: FilterConcept
dependencies: 1
inputs: landform
function: Find
inputs: North America
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: landform
function: Or
dependencies: 2
5
function: Count
dependencies: 6