Question: Which one among the towns in Canada has the largest elevation relative to the sea level ?
Choices:
Royal Tunbridge Wells
South Shields
Wimbledon
Edmonton
Doncaster
Wigan
Blackburn
Macclesfield
Newmarket
Oakville
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: town
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newmarket