Question: Which city bordering Oakville is also twinned to Myrtle beach as admin body?
Choices:
Abidjan
Burlington
Santo Domingo
Cork
Chihuahua
Kilkenny
Mississauga
Kingston
Trieste
Bergen
Answer: Burlington
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Myrtle Beach" .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Oakville" .  }
Program:
function: Find
inputs: Myrtle Beach
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Oakville
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6