Question: How many counties are located in the altitude of over 8,500 metres above sea level or use Thai as the official language ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" .  { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "8500"^^xsd:double ) .  } UNION { ?e <official_language> ?e_1 . ?e_1 <pred:name> "Thai" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
8500 metre
>
function: FilterConcept
dependencies: 1
inputs: county town
function: Find
inputs: Thai
function: Relate
dependencies: 3
inputs: official language
backward
function: FilterConcept
dependencies: 4
inputs: county town
function: Or
dependencies: 2
5
function: Count
dependencies: 6