Question: How many big city do we know whose local dialing code is 0203 or that are the twinned administrative bodies of Edinburgh
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" .  { ?e <local_dialing_code> ?pv . ?pv <pred:value> "0203" .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Edinburgh" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
0203
function: FilterConcept
dependencies: 1
inputs: big city
function: Find
inputs: Edinburgh
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: big city
function: Or
dependencies: 2
5
function: Count
dependencies: 6