Question: Which area is smaller, Leeds (the one whose OS grid reference is SE297338) or Kagoshima?
Choices: Abidjan
Dundee
Trieste
Kilkenny
Kingston
Bergen
Santo Domingo
Chihuahua
Cork
Kagoshima
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leeds" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SE297338" . } UNION { ?e <pred:name> "Kagoshima" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Leeds
function: FilterStr
dependencies: 0
inputs: OS grid reference
SE297338
function: Find
inputs: Kagoshima
function: SelectBetween
dependencies: 1
2
inputs: area
less
Answer: Kagoshima