Question: How many governments are there whose nominal GDP is under 68 billion EUR or that are the release region of The Fifth Element (with Serbia among the release regions) ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" .  { ?e <nominal_GDP> ?pv . ?pv <pred:unit> "euro" . ?pv <pred:value> ?v . FILTER ( ?v < "68000000000"^^xsd:double ) .  } UNION { ?e_1 <film_release_region> ?e . ?e_1 <pred:name> "The Fifth Element" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Serbia" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: nominal GDP
68000000000 euro
<
function: FilterConcept
dependencies: 1
inputs: form of government
function: Find
inputs: Serbia
function: Relate
dependencies: 3
inputs: film release region
backward
function: Find
inputs: The Fifth Element
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: film release region
forward
function: FilterConcept
dependencies: 7
inputs: form of government
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 4