Question: Which area is larger, Leeds (the one whose inception time is 1974-04-01) or Oldham (the one whose elevation (above sea level) is 542 metre)?
Choices: Sheffield
Newcastle upon Tyne
Wakefield
Birmingham
Walsall
Bury
Leeds
Stockport
Oldham
Rochdale
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leeds" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1974-04-01"^^xsd:date . } UNION { ?e <pred:name> "Oldham" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "542"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Leeds
function: FilterDate
dependencies: 0
inputs: inception
1974-04-01
=
function: Find
inputs: Oldham
function: FilterNum
dependencies: 2
inputs: elevation above sea level
542 metre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
Answer: Leeds