Question: How many republics are the narrative location of Superman III or have a nominal GDP not equal to 13900000 United States dollars?
Choices: 27
28
29
30
31
32
33
34
35
36
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" .  { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "Superman III" .  } UNION { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v != "13900000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Superman III
function: Relate
dependencies: 0
inputs: narrative location
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: FindAll
function: FilterNum
dependencies: 3
inputs: nominal GDP
13900000 United States dollar
!=
function: FilterConcept
dependencies: 4
inputs: republic
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 34