Question: Which administrative territorial entity has a 2006 population not equal to 7400000 and whose country calling code is +500?
Choices:
Puerto Rico
Toledo
Turks and Caicos Islands
Falkland Islands
Cayman Islands
Washoe County
Kent County
American Samoa
Cass County
African Union
Answer: Falkland Islands
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "7400000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 2006 . ?e <country_calling_code> ?pv_1 . ?pv_1 <pred:value> "+500" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
7400000
!=
function: QFilterYear
dependencies: 1
inputs: point in time
2006
=
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: FindAll
function: FilterStr
dependencies: 4
inputs: country calling code
+500
function: FilterConcept
dependencies: 5
inputs: administrative territorial entity
function: And
dependencies: 3
6
function: What
dependencies: 7