Question: Which has less population, Mobile (which is the filming location of Close Encounters of the Third Kind) or Dearborn?
Choices:
Waukegan
Greenville
Columbus
Boulder
Dearborn
Compton
Oakland
Lansing
New Haven
Mobile
Program:
function: Find
inputs: Close Encounters of the Third Kind
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: Mobile
function: And
dependencies: 1
2
function: Find
inputs: Dearborn
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mobile" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Close Encounters of the Third Kind" .   } UNION { ?e <pred:name> "Dearborn" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dearborn