Question: What is the city whose demonym is Calgarian and which is the headquarter location of the University of Calgary?
Choices:
Kilkenny
Kingston
Cairo
Santo Domingo
Calgary
Dundee
Abidjan
Chihuahua
Bergen
Cork
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Calgarian
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: University of Calgary
function: Relate
dependencies: 3
inputs: headquarters location
forward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <demonym> ?pv . ?pv <pred:value> "Calgarian" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "University of Calgary" .  }
Answer: Calgary