Question: How many science awards were awarded to a country, a state with a population of more and less of 84000 measured in 1900?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science award" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "84000"^^xsd:double ) . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 1900 .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
84000
!=
function: QFilterYear
dependencies: 1
inputs: point in time
1900
=
function: FilterConcept
dependencies: 2
inputs: state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: science award
function: Count
dependencies: 5