Question: Does Hamilton, postal code ML3, or Doncaster have less population?
Choices: Doncaster
Blackburn
Basingstoke
Macclesfield
Royal Tunbridge Wells
Hamilton
Wimbledon
Colchester
Edmonton
Wigan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "ML3" . } UNION { ?e <pred:name> "Doncaster" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 0
inputs: postal code
ML3
function: Find
inputs: Doncaster
function: SelectBetween
dependencies: 1
2
inputs: population
less
Answer: Hamilton