Question: Which Japanese prefecture is the twinned administrative body of Gold Coast (located in Queenslad) and also the twinned administrative body of Liaoning ?
Choices:
Fukuoka Prefecture
Saitama Prefecture
Nagano Prefecture
Chiba Prefecture
Fukushima Prefecture
Kanagawa Prefecture
Miyagi Prefecture
Aichi Prefecture
Niigata Prefecture
Ōsaka Prefecture
Answer: Kanagawa Prefecture
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Gold Coast" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Queensland" .  ?e_3 <twinned_administrative_body> ?e . ?e_3 <pred:name> "Liaoning" .  }
Program:
function: Find
inputs: Queensland
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Gold Coast
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Find
inputs: Liaoning
function: Relate
dependencies: 6
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 7
inputs: prefecture of Japan
function: And
dependencies: 5
8
function: What
dependencies: 9