Question: Which has a greater area, New Mexico (the filming location of Easy Rider) or North Carolina?
Choices:
New Mexico
California
Illinois
Florida
Hawaii
Iowa
New Jersey
Massachusetts
North Carolina
Kansas
Program:
function: Find
inputs: Easy Rider
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: New Mexico
function: And
dependencies: 1
2
function: Find
inputs: North Carolina
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Mexico" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Easy Rider" .   } UNION { ?e <pred:name> "North Carolina" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: New Mexico