Question: Which one of Italy's comunes is located in Piedmont (the one whose country is Italy) and has the license-plate code, TO?
Choices: Province of Turin
Province of Cuneo
Province of Brescia
Province of Como
Province of Naples
Province of Cagliari
Province of Salerno
Province of Rome
Province of Potenza
province of Milan
SPARQL: SELECT DISTINCT ?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_1 <country> ?e_2 . ?e_2 <pred:name> "Italy" .  ?e <licence_plate_code> ?pv . ?pv <pred:value> "TO" .  }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country
backward
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: FindAll
function: FilterStr
dependencies: 6
inputs: licence plate code
TO
function: FilterConcept
dependencies: 7
inputs: province of Italy
function: And
dependencies: 5
8
function: What
dependencies: 9
Answer: Province of Turin