Question: What is the ISO 3166-2 code of Dorset (the one whose TOID is 7000000000014362)?
Choices:
JP-20
IE-TA
NO-03
GB-NGM
US-FL
GB-SRY
DE-SN
PH-PAN
GB-DOR
CN-21
Answer: GB-DOR
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Dorset" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000014362" . ?e <ISO_3166-2_code> ?pv .  }
Program:
function: Find
inputs: Dorset
function: FilterStr
dependencies: 0
inputs: TOID
7000000000014362
function: QueryAttr
dependencies: 1
inputs: ISO 3166-2 code