Question: How many Italian communes have a population above 1900 or are Sarasota's twinned administrative body?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comune of Italy" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1900"^^xsd:double ) .  } UNION { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Sarasota" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
1900
>
function: FilterConcept
dependencies: 1
inputs: comune of Italy
function: Find
inputs: Sarasota
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: comune of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5