Question: Which province of Italy that is a part of Tyrol (that includes Trentino as a section) has the smallest population?
Choices:
Province of Rome
Province of Salerno
Province of Cuneo
Province of Como
Province of Naples
Province of Cagliari
Trentino
Province of Potenza
Province of Turin
province of Milan
Program:
function: Find
inputs: Trentino
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: Tyrol
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: SelectAmong
dependencies: 5
inputs: population
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Tyrol" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "Trentino" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Trentino