Question: Among the comune of Italy whose country is Kingdom of Italy (the one that is the residence of Nino Rota), which one has the smallest area ?
Choices:
Phil Vischer
Lucca
Primetime Emmy Award for Outstanding Lead Actress in a Miniseries or a Movie
over-the-counter drug
Treviso
gang
Pavia
Mantua
Cremona
Medford
Answer: Mantua
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comune of Italy" . ?e <country> ?e_1 . ?e_1 <pred:name> "Kingdom of Italy" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Nino Rota" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Nino Rota
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Kingdom of Italy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: comune of Italy
function: SelectAmong
dependencies: 5
inputs: area
smallest