Question: How many French departments bordering Liguria have over 1000 weddings per year?
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> "departments of France" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Liguria" .  ?e <annual_number_of_weddings> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1000"^^xsd:double ) .  }
Program:
function: Find
inputs: Liguria
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: departments of France
function: FindAll
function: FilterNum
dependencies: 3
inputs: annual number of weddings
1000
>
function: FilterConcept
dependencies: 4
inputs: departments of France
function: And
dependencies: 2
5
function: Count
dependencies: 6