Question: ow many counties of Florida have Kansas City (the birthplace of Edie McClurg) as the capital or match the population of 2,6 billion people ?
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Kansas City" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Edie McClurg" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "2600000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Edie McClurg
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Kansas City
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: county of Florida
function: FindAll
function: FilterNum
dependencies: 6
inputs: population
2600000000
!=
function: FilterConcept
dependencies: 7
inputs: county of Florida
function: Or
dependencies: 5
8
function: Count
dependencies: 9