Question: How many independent Germany cities make up the twinned administrative body of Tijuana or count more than 26,000 inhabitants ?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" .  { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Tijuana" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "26000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Tijuana
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: independent city of Germany
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
26000
>
function: FilterConcept
dependencies: 4
inputs: independent city of Germany
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5