Question: How many areas of London are different from the City of Westminster or whose TOID is 4000000074558539?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "area of London" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "City of Westminster" .  } UNION { ?e <TOID> ?pv . ?pv <pred:value> "4000000074558539" .  } }
Program:
function: Find
inputs: City of Westminster
function: Relate
dependencies: 0
inputs: different from
forward
function: FilterConcept
dependencies: 1
inputs: area of London
function: FindAll
function: FilterStr
dependencies: 3
inputs: TOID
4000000074558539
function: FilterConcept
dependencies: 4
inputs: area of London
function: Or
dependencies: 2
5
function: Count
dependencies: 6