Question: How many regions of France are different from Normandy (whose country is Jersey) or have less than 330000 weddings annually?
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> "region of France" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Normandy" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Jersey" .  } UNION { ?e <annual_number_of_weddings> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "330000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Jersey
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Normandy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: region of France
function: FindAll
function: FilterNum
dependencies: 6
inputs: annual number of weddings
330000
<
function: FilterConcept
dependencies: 7
inputs: region of France
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 4