Question: What ISO 3166-2 code applies to the administrative territorial entity which has Edmonton in it and also has a TOID of 4000000074343646?
Choices:
US-GA
IN-KL
GB-STH
GB-DBY
US-KY
GB-WLS
TH-10
GB-ENF
MA-SYB
IE-RN
Answer: GB-ENF
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Edmonton" . ?e_1 <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074343646" . ?e <ISO_3166-2_code> ?pv .  }
Program:
function: Find
inputs: Edmonton
function: FilterStr
dependencies: 0
inputs: TOID
4000000074343646
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: QueryAttr
dependencies: 3
inputs: ISO 3166-2 code