Question: How many republics whose nominal GDP is more than 780000000 USD or that is followed by the Austrian Empire?
Choices:
26
27
28
29
30
31
32
33
34
35
Answer: 35
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v > "780000000"^^xsd:double ) .  } UNION { ?e_1 <follows> ?e . ?e_1 <pred:name> "Austrian Empire" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
780000000 United States dollar
>
function: FilterConcept
dependencies: 1
inputs: republic
function: Find
inputs: Austrian Empire
function: Relate
dependencies: 3
inputs: follows
forward
function: FilterConcept
dependencies: 4
inputs: republic
function: Or
dependencies: 2
5
function: Count
dependencies: 6