Question: A net profit under 1400000000 euros or an ACM Classification Code (2012) of 10011561 is applicable to what number of public companies?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public company" .  { ?e <ACM_Classification_Code_(2012)> ?pv . ?pv <pred:value> "10011561" .  } UNION { ?e <net_profit> ?pv . ?pv <pred:unit> "euro" . ?pv <pred:value> ?v . FILTER ( ?v < "1400000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ACM Classification Code (2012)
10011561
function: FilterConcept
dependencies: 1
inputs: public company
function: FindAll
function: FilterNum
dependencies: 3
inputs: net profit
1400000000 euro
<
function: FilterConcept
dependencies: 4
inputs: public company
function: Or
dependencies: 2
5
function: Count
dependencies: 6