Question: Of Italian provinces bordering Trentino, which is biggest in area?
Choices:
Province of Turin
Province of Cuneo
South Tyrol
Province of Brescia
Province of Potenza
Province of Rome
Province of Cagliari
province of Milan
Province of Naples
Province of Salerno
Program:
function: Find
inputs: Trentino
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: province of Italy
function: SelectAmong
dependencies: 2
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Trentino" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Tyrol