Question: What are the number of empires with population not equal to 2000 or has military conflicts with German Empire (the one whose population is 67790000) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "empire" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "2000"^^xsd:double ) .  } UNION { ?e_1 <military_conflicts> ?e . ?e_1 <pred:name> "German Empire" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "67790000"^^xsd:double .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2000
!=
function: FilterConcept
dependencies: 1
inputs: empire
function: Find
inputs: German Empire
function: FilterNum
dependencies: 3
inputs: population
67790000
=
function: Relate
dependencies: 4
inputs: military conflicts
forward
function: FilterConcept
dependencies: 5
inputs: empire
function: Or
dependencies: 2
6
function: Count
dependencies: 7