Question: Which area is larger, Cambridgeshire (the one whose NUTS code is UKH12) or Somerset (the one whose native label is Somerset)?
Choices: East Riding of Yorkshire
West Midlands
Essex
Somerset
Norfolk
Cambridgeshire
Warwickshire
Northumberland
Staffordshire
Derbyshire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridgeshire" . ?e <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "UKH12" . } UNION { ?e <pred:name> "Somerset" . ?e <native_label> ?pv_2 . ?pv_2 <pred:value> "Somerset" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cambridgeshire
function: FilterStr
dependencies: 0
inputs: NUTS code
UKH12
function: Find
inputs: Somerset
function: FilterStr
dependencies: 2
inputs: native label
Somerset
function: SelectBetween
dependencies: 1
3
inputs: area
greater
Answer: Somerset