Question: How many democracies border Ethiopia or have a nominal GDP exceeding 3200000000000 USD?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: Find
inputs: Ethiopia
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: FindAll
function: FilterNum
dependencies: 3
inputs: nominal GDP
3200000000000 United States dollar
>
function: FilterConcept
dependencies: 4
inputs: democracy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Ethiopia" .  } UNION { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v > "3200000000000"^^xsd:double ) .  } }
Answer: 4