Question: What is the number of departments of France whose capital is Nice or Avignon?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Nice" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Avignon" .  } }
Program:
function: Find
inputs: Nice
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: departments of France
function: Find
inputs: Avignon
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: departments of France
function: Or
dependencies: 2
5
function: Count
dependencies: 6