Question: Which first-level administrative country subdivision whose country is Australia (that has a diplomatic relationship with Turkey) has the lowest elevation above sea level?
Choices: Western Australia
Podlaskie Voivodeship
Australian Capital Territory
Minas Gerais
Northern Territory
Victoria
England
South Australia
New South Wales
Queensland
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <country> ?e_1 . ?e_1 <pred:name> "Australia" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Turkey" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Turkey
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: first-level administrative country subdivision
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
smallest
Answer: New South Wales