Question: Which area is larger, Apulia or Sardinia (the one whose NUTS code is ITB)?
Choices:
Basilicata
Sicily
Veneto
Sardinia
Abruzzo
Lazio
Tuscany
Apulia
Piedmont
Friuli–Venezia Giulia
Answer: Sardinia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Apulia" . } UNION { ?e <pred:name> "Sardinia" . ?e <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "ITB" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Apulia
function: Find
inputs: Sardinia
function: FilterStr
dependencies: 1
inputs: NUTS code
ITB
function: SelectBetween
dependencies: 0
2
inputs: area
greater