Question: Which area is smaller, Rhode Island or Oregon (the one whose short name is OR)?
Choices: Hawaii
New Jersey
Florida
Colorado
New Mexico
Massachusetts
Rhode Island
California
Oregon
Illinois
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rhode Island" . } UNION { ?e <pred:name> "Oregon" . ?e <short_name> ?pv_1 . ?pv_1 <pred:value> "OR" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Rhode Island
function: Find
inputs: Oregon
function: FilterStr
dependencies: 1
inputs: short name
OR
function: SelectBetween
dependencies: 0
2
inputs: area
less
Answer: Rhode Island