Question: Which is the longest among the feature films shot in the Bahamas whose population is 360498?
Choices: Old Dogs
Pirates of the Caribbean: At World's End
G-Force
Pirates of the Caribbean: The Curse of the Black Pearl
John Carter
Splash
National Treasure: Book of Secrets
Alvin and the Chipmunks: Chipwrecked
Pirates of the Caribbean: Dead Man's Chest
Holes
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Bahamas" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "360498"^^xsd:double . ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bahamas
function: FilterNum
dependencies: 0
inputs: population
360498
=
function: Relate
dependencies: 1
inputs: filming location
backward
function: FilterConcept
dependencies: 2
inputs: feature film
function: SelectAmong
dependencies: 3
inputs: duration
largest
Answer: Pirates of the Caribbean: At World's End