Question: Which city is the twinned administrative body of Montpellier and located in Canada?
Choices: Sherbrooke
Mississauga
Sault Ste. Marie
Brampton
Chengdu
Bethlehem
Thunder Bay
Halifax
Rio de Janeiro
Moncton
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Montpellier" .  ?e <country> ?e_2 . ?e_2 <pred:name> "Canada" .  }
Program:
function: Find
inputs: Montpellier
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Canada
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Sherbrooke