Question: What first-level administrative country subdivision borders Queensland to the west ?
Choices:
South Australia
Upper Austria
Podlaskie Voivodeship
Greater Poland Voivodeship
Lublin Voivodeship
Northern Territory
New South Wales
England
Western Australia
Chiapas
Answer: Northern Territory
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Queensland" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <direction_relative_to_location> ?qpv . ?qpv <pred:value> "west" .  }
Program:
function: Find
inputs: Queensland
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: direction relative to location
west
function: FilterConcept
dependencies: 2
inputs: first-level administrative country subdivision
function: What
dependencies: 3