Question: What number of unitary states have military skirmishes with the USA or have a putative GDP of 9600000 USD?
Choices:
15
16
17
18
19
20
21
22
23
24
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v != "9600000"^^xsd:double ) .  } UNION { ?e <military_conflicts> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
9600000 United States dollar
!=
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: military conflicts
backward
function: FilterConcept
dependencies: 4
inputs: unitary state
function: Or
dependencies: 2
5
function: Count
dependencies: 6