Question: Which province of Italy located in Piedmont, where the Provice of Turin is, has the smallest area?
Choices:
Province of Potenza
Province of Brescia
Province of Salerno
Province of Cagliari
Province of Naples
Province of Turin
Province of Palermo
Province of Como
province of Milan
Province of Cuneo
Answer: Province of Turin
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Piedmont" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Province of Turin" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Province of Turin
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Piedmont
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: SelectAmong
dependencies: 5
inputs: area
smallest