Question: How many mountain ranges are higher than 230 feet above sea level, and are the main subject of The Challenge (the one whose narrative location is Italy)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mountain range" .  { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "foot" . ?pv <pred:value> ?v . FILTER ( ?v > "230"^^xsd:double ) .  } UNION { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "The Challenge" . ?e_1 <narrative_location> ?e_2 . ?e_2 <pred:name> "Italy" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
230 foot
>
function: FilterConcept
dependencies: 1
inputs: mountain range
function: Find
inputs: Italy
function: Relate
dependencies: 3
inputs: narrative location
backward
function: Find
inputs: The Challenge
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: main subject
forward
function: FilterConcept
dependencies: 7
inputs: mountain range
function: Or
dependencies: 2
8
function: Count
dependencies: 9