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