Question: How many United States cities are not Wheeling or share a border with Sunnyvale?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Wheeling" .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Sunnyvale" .  } }
Program:
function: Find
inputs: Wheeling
function: Relate
dependencies: 0
inputs: different from
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: Sunnyvale
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6