Question: Does New Mexico, where City Slickers was shot, or Idaho, where Sarah Palin lives, have the larger water area percentage?
Choices:
Massachusetts
Iowa
California
Colorado
New Jersey
Florida
New Mexico
Kansas
Idaho
Illinois
Answer: Idaho
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Mexico" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "City Slickers" .   } UNION { ?e <pred:name> "Idaho" . ?e_2 <residence> ?e . ?e_2 <pred:name> "Sarah Palin" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: City Slickers
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: New Mexico
function: And
dependencies: 1
2
function: Find
inputs: Sarah Palin
function: Relate
dependencies: 4
inputs: residence
forward
function: Find
inputs: Idaho
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: water as percent of area
greater