Question: Which area is larger, Falkirk (the one whose TOID is 4000000074553527) or Brighton?
Choices:
Colchester
Wimbledon
Wigan
Macclesfield
Brighton
Blackburn
Falkirk
Royal Tunbridge Wells
Edmonton
Doncaster
Program:
function: Find
inputs: Falkirk
function: FilterStr
dependencies: 0
inputs: TOID
4000000074553527
function: Find
inputs: Brighton
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Falkirk" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074553527" . } UNION { ?e <pred:name> "Brighton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brighton