Question: Tell me the number of French departments from the country France or that differ from Haut-Rhin.
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "France" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "Haut-Rhin" .  } }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: departments of France
function: Find
inputs: Haut-Rhin
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: departments of France
function: Or
dependencies: 2
5
function: Count
dependencies: 6