Question: Which has more area, Chester whose OS grid reference is SJ405665 or Charlottetown?
Choices:
Chester
Trieste
Chihuahua
Cork
Kingston
Bergen
Charlottetown
Abidjan
Kilkenny
Santo Domingo
Answer: Charlottetown
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chester" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SJ405665" . } UNION { ?e <pred:name> "Charlottetown" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chester
function: FilterStr
dependencies: 0
inputs: OS grid reference
SJ405665
function: Find
inputs: Charlottetown
function: SelectBetween
dependencies: 1
2
inputs: area
greater