Question: What is the first-level administrative country subdivision with the captital whose capital native label is Sarajevo?
Choices:
Minas Gerais
England
South Australia
canton of Zürich
Canton of Vaud
Bosnia and Herzegovina
Western Cape
Salzburg
Federation of Bosnia and Herzegovina
Podlaskie Voivodeship
Answer: Federation of Bosnia and Herzegovina
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "capital" . ?e_1 <native_label> ?pv_1 . ?pv_1 <pred:value> "Sarajevo" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Sarajevo
function: FilterConcept
dependencies: 1
inputs: capital
function: Relate
dependencies: 2
inputs: capital
backward
function: FilterConcept
dependencies: 3
inputs: first-level administrative country subdivision
function: What
dependencies: 4