Question: What is the number of metropolitan borough that are different from newcastle-upon-tyne (which has a WOEID is 30079)
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> "metropolitan borough" . ?e_1 <different_from> ?e . ?e_1 <pred:name> "Newcastle upon Tyne" . ?e_1 <WOEID> ?pv . ?pv <pred:value> "30079" .   }
Program:
function: Find
inputs: Newcastle upon Tyne
function: FilterStr
dependencies: 0
inputs: WOEID
30079
function: Relate
dependencies: 1
inputs: different from
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Count
dependencies: 3