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