Question: What is the number of Netherlands provinces that have the country the country that has a nominal GDP not equaling 750000000000 United States dollar
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "country" . ?e_1 <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v != "750000000000"^^xsd:double ) .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
750000000000 United States dollar
!=
function: FilterConcept
dependencies: 1
inputs: country
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: province of the Netherlands
function: Count
dependencies: 4