Question: Which first-level administrative country subdivision is an enclave in another first-level administrative country subdivision, where Sydney is located?
Choices: Chiapas
Podlaskie Voivodeship
Upper Austria
Northern Territory
Greater Poland Voivodeship
Minas Gerais
Santa Fe Province
Selangor
Australian Capital Territory
Lublin Voivodeship
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <enclave_within> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "first-level administrative country subdivision" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Sydney" .   }
Program:
function: Find
inputs: Sydney
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: Relate
dependencies: 2
inputs: enclave within
backward
function: FilterConcept
dependencies: 3
inputs: first-level administrative country subdivision
function: What
dependencies: 4
Answer: Australian Capital Territory