Question: Which area is larger, Lombardy or Sardinia (the one whose FIPS 10-4 (countries and regions) is IT14)?
Choices:
Veneto
Sardinia
Abruzzo
Piedmont
Tuscany
Lombardy
Friuli–Venezia Giulia
Sicily
Apulia
Lazio
Answer: Sardinia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lombardy" . } UNION { ?e <pred:name> "Sardinia" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "IT14" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lombardy
function: Find
inputs: Sardinia
function: FilterStr
dependencies: 1
inputs: FIPS 10-4 (countries and regions)
IT14
function: SelectBetween
dependencies: 0
2
inputs: area
greater