Question: How many town whose population isn't equal to 5100000 or this is the vicinity of 2012 Toronto International Film Festival
Choices:
352
353
354
355
356
357
358
359
360
361
Answer: 357
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "5100000"^^xsd:double ) .  } UNION { ?e_1 <location> ?e . ?e_1 <pred:name> "2012 Toronto International Film Festival" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
5100000
!=
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: 2012 Toronto International Film Festival
function: Relate
dependencies: 3
inputs: location
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Or
dependencies: 2
5
function: Count
dependencies: 6