Question: Does St Andrews or Oldham whose area is 67.1 square kilometres have higher elevation above sea level?
Choices:
Oldham
St Andrews
Wigan
Doncaster
Blackburn
Colchester
Edmonton
South Shields
Wimbledon
Royal Tunbridge Wells
Answer: Oldham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "St Andrews" . } UNION { ?e <pred:name> "Oldham" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "67.1"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: St Andrews
function: Find
inputs: Oldham
function: FilterNum
dependencies: 1
inputs: area
67.1 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater