Question: Which has larger area, Hastings with TOID 4000000074545044 or Oldham with 96555 population?
Choices:
Blackburn
Colchester
Hastings
Macclesfield
Edmonton
Wimbledon
South Shields
Wigan
Royal Tunbridge Wells
Oldham
Program:
function: Find
inputs: Hastings
function: FilterStr
dependencies: 0
inputs: TOID
4000000074545044
function: Find
inputs: Oldham
function: FilterNum
dependencies: 2
inputs: population
96555
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hastings" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074545044" . } UNION { ?e <pred:name> "Oldham" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "96555"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Oldham