Question: What is the number of France regions that is in the France country or that has an annual number of weddings not exactly 1020.
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of France" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "France" .  } UNION { ?e <annual_number_of_weddings> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "1020"^^xsd:double ) .  } }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: region of France
function: FindAll
function: FilterNum
dependencies: 3
inputs: annual number of weddings
1020
!=
function: FilterConcept
dependencies: 4
inputs: region of France
function: Or
dependencies: 2
5
function: Count
dependencies: 6