Question: How many big cities have a population greater than 600 and are the death place of Hal Smith (the one whose date of death is 2014-04-12)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "600"^^xsd:double ) . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Hal Smith" . ?e_1 <date_of_death> ?pv_1 . ?pv_1 <pred:date> "2014-04-12"^^xsd:date .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
600
>
function: FilterConcept
dependencies: 1
inputs: big city
function: Find
inputs: Hal Smith
function: FilterDate
dependencies: 3
inputs: date of death
2014-04-12
=
function: Relate
dependencies: 4
inputs: place of death
forward
function: FilterConcept
dependencies: 5
inputs: big city
function: And
dependencies: 2
6
function: Count
dependencies: 7