Question: How many capitals have a nickname of la città eterna or have a population larger than 500,000 people?
Choices:
36
37
38
39
40
41
42
43
44
45
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: nickname
la città eterna
function: FilterConcept
dependencies: 1
inputs: capital
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
500000
>
function: FilterConcept
dependencies: 4
inputs: capital
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" .  { ?e <nickname> ?pv . ?pv <pred:value> "la città eterna" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "500000"^^xsd:double ) .  } }
Answer: 36