Question: What is the number of republic that is followed by Austrian Empire or whose population is greater than 7.5 ?
Choices:
34
35
36
37
38
39
40
41
42
43
Answer: 35
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" .  { ?e_1 <follows> ?e . ?e_1 <pred:name> "Austrian Empire" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "7.5"^^xsd:double ) .  } }
Program:
function: Find
inputs: Austrian Empire
function: Relate
dependencies: 0
inputs: follows
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
7.5
>
function: FilterConcept
dependencies: 4
inputs: republic
function: Or
dependencies: 2
5
function: Count
dependencies: 6