Question: How many crimes are found in country Tuvalu (which has a nominal GDP of 36572611.8853148 United States dollars) and whose death number is not 2300000?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "crime" . ?e <country> ?e_1 . ?e_1 <pred:name> "Tuvalu" . ?e_1 <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "36572611.8853148"^^xsd:double .  ?e <number_of_deaths> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "2300000"^^xsd:double ) .  }
Program:
function: Find
inputs: Tuvalu
function: FilterNum
dependencies: 0
inputs: nominal GDP
36572611.8853148 United States dollar
=
function: Relate
dependencies: 1
inputs: country
backward
function: FilterConcept
dependencies: 2
inputs: crime
function: FindAll
function: FilterNum
dependencies: 4
inputs: number of deaths
2300000
!=
function: FilterConcept
dependencies: 5
inputs: crime
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 0