Question: How many independent cities are in the continent of the geographic region that is the narrative location of 2001: A Space Odyssey (which was filmed in Namibia)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" . ?e <continent> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "2001: A Space Odyssey" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <narrative_location> ; <pred:fact_t> ?e_1 ] <filming_location> ?qpv . ?qpv <pred:value> "Namibia" .   }
Program:
function: Find
inputs: 2001: A Space Odyssey
function: Relate
dependencies: 0
inputs: narrative location
forward
function: QFilterStr
dependencies: 1
inputs: filming location
Namibia
function: FilterConcept
dependencies: 2
inputs: geographic region
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: independent city
function: Count
dependencies: 5