Question: Which comune of the Kingdom of Italy (which includes the country of Turin) has the largest elevation above sea level?
Choices:
British Virgin Islands
Cremona
Evolution
MCA Inc.
Mantua
Pavia
Rex Harrison
JavaScript
Lucca
Treviso
Program:
function: Find
inputs: Turin
function: Relate
dependencies: 0
inputs: country
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: elevation above sea level
largest
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 <country> ?e_1 . ?e_2 <pred:name> "Turin" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pavia