Question: What is the ISO 3166-2 code of the first-level administrative country subdivision with Cape Town as its capital?
Choices:
KH-12
DE-SN
IT-SA
ZA-WC
US-GA
GB-WLS
IT-72
BE-VLI
US-MI
FR-77
Answer: ZA-WC
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Cape Town" .  ?e <ISO_3166-2_code> ?pv .  }
Program:
function: Find
inputs: Cape Town
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: QueryAttr
dependencies: 2
inputs: ISO 3166-2 code