Question: Which has the smallest area, among the regions of Italy, whose country is Kingdom of Italy (the one that contains Lombardy)?
Choices:
Sardinia
Veneto
Piedmont
Abruzzo
Lombardy
Emilia-Romagna
Tuscany
Sicily
Lazio
Basilicata
Answer: Emilia-Romagna
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" . ?e <country> ?e_1 . ?e_1 <pred:name> "Kingdom of Italy" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Lombardy" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Lombardy
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Kingdom of Italy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: SelectAmong
dependencies: 5
inputs: area
smallest