Question: How many cities are distinct from the Tokyo where Sega formed?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <different_from> ?e . ?e_1 <pred:name> "Tokyo" . ?e_2 <location_of_formation> ?e_1 . ?e_2 <pred:name> "Sega" .   }
Program:
function: Find
inputs: Sega
function: Relate
dependencies: 0
inputs: location of formation
forward
function: Find
inputs: Tokyo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Count
dependencies: 5