Question: what is the number of forms of government that have human development index less than 0.3 or that get imported from the United Arab Emirates
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" .  { ?e <Human_Development_Index> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "0.3"^^xsd:double ) .  } UNION { ?e_1 <exported_to> ?e . ?e_1 <pred:name> "United Arab Emirates" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: Human Development Index
0.3
<
function: FilterConcept
dependencies: 1
inputs: form of government
function: Find
inputs: United Arab Emirates
function: Relate
dependencies: 3
inputs: exported to
forward
function: FilterConcept
dependencies: 4
inputs: form of government
function: Or
dependencies: 2
5
function: Count
dependencies: 6