Question: How many forms of government are there whose nominal GDP is not 15000000000000 Russian ruble or that founds the European Union?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "Russian ruble" . ?pv <pred:value> ?v . FILTER ( ?v != "15000000000000"^^xsd:double ) .  } UNION { ?e_1 <founded_by> ?e . ?e_1 <pred:name> "European Union" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
15000000000000 Russian ruble
!=
function: FilterConcept
dependencies: 1
inputs: form of government
function: Find
inputs: European Union
function: Relate
dependencies: 3
inputs: founded by
forward
function: FilterConcept
dependencies: 4
inputs: form of government
function: Or
dependencies: 2
5
function: Count
dependencies: 6