Question: How many college towns with a population less than 690000000 or that use Kannada as the official language?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college town" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "690000000"^^xsd:double ) .  } UNION { ?e <official_language> ?e_1 . ?e_1 <pred:name> "Kannada" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
690000000
<
function: FilterConcept
dependencies: 1
inputs: college town
function: Find
inputs: Kannada
function: Relate
dependencies: 3
inputs: official language
backward
function: FilterConcept
dependencies: 4
inputs: college town
function: Or
dependencies: 2
5
function: Count
dependencies: 6