Question: What is the relation between Tokyo (the one that is the headquarter location of Tōhō) and London?
Choices:
exclave of
lifestyle
official color
public holiday
military rank
fabrication method
twinned administrative body
talk show guest
located in or next to body of water
original film format
Program:
function: Find
inputs: Tōhō
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Tokyo
function: And
dependencies: 1
2
function: Find
inputs: London
function: FilterStr
dependencies: 4
inputs: ISO 3166-2 code
GB-LND
function: QueryRelation
dependencies: 3
5
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tokyo" . ?e_3 <headquarters_location> ?e_1 . ?e_3 <pred:name> "Tōhō" . ?e_2 <pred:name> "London" . ?e_2 <ISO_3166-2_code> ?pv . ?pv <pred:value> "GB-LND" . ?e_1 ?p ?e_2 .  }
Answer: twinned administrative body