Question: Which association football (soccer) club is headquartered in Bern and belongs to the country of Switzerland?
Choices:
Brisbane Roar FC
FC St. Gallen
Middlesbrough F.C.
FC Luzern
Roda JC Kerkrade
BSC Young Boys
Zamalek SC
FC Basel
FC Sion
Stade Brestois 29
Program:
function: Find
inputs: Bern
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: association football club
function: Find
inputs: Switzerland
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: association football club
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Bern" .  ?e <country> ?e_2 . ?e_2 <pred:name> "Switzerland" .  }
Answer: BSC Young Boys