Question: What is the number of big cities that are located in or next to Amazon (the one that has 7050000 square kilometers of watershed area) or that has a population that does not equal 6100000000?
Choices:
57
58
59
60
61
62
63
64
65
66
Program:
function: Find
inputs: Amazon
function: FilterNum
dependencies: 0
inputs: watershed area
7050000 square kilometre
=
function: Relate
dependencies: 1
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 2
inputs: big city
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
6100000000
!=
function: FilterConcept
dependencies: 5
inputs: big city
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" .  { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Amazon" . ?e_1 <watershed_area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "7050000"^^xsd:double .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "6100000000"^^xsd:double ) .  } }
Answer: 66