Question: Which Canadian city has the official website http://www.kamloops.ca?
Choices:
Cork
Niagara Falls
Mississauga
Burnaby
Hamilton
Kilkenny
Kamloops
Edmonton
Trieste
Kingston
Answer: Kamloops
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <official_website> ?pv . ?pv <pred:value> "http://www.kamloops.ca" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.kamloops.ca
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