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