Question: How many French departments have over 170 weddings yearly or are the namesake of the Hudson River?
Choices: 7
8
9
10
11
12
13
14
15
16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" .  { ?e <annual_number_of_weddings> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "170"^^xsd:double ) .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Hudson River" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: annual number of weddings
170
>
function: FilterConcept
dependencies: 1
inputs: departments of France
function: Find
inputs: Hudson River
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: departments of France
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 16