Question: How many Italian regions do we know with the population of 410,000,000 or where Carmine Infantino was born ?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Carmine Infantino" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "410000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Carmine Infantino
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
410000000
!=
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6