Question: Who is the person living in Bahamas (the one whose demonym is bahamés)?
Choices:
Simon Cowell
Thilakan
Rahul Dev Burman
David Byrne
Max Fleischer
Richard Gere
Sylvester Stallone
Daniel Nestor
Robert F. Boyle
Paul Williams
Answer: Daniel Nestor
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <residence> ?e_1 . ?e_1 <pred:name> "Bahamas" . ?e_1 <demonym> ?pv . ?pv <pred:value> "bahamés" .   }
Program:
function: Find
inputs: Bahamas
function: FilterStr
dependencies: 0
inputs: demonym
bahamés
function: Relate
dependencies: 1
inputs: residence
backward
function: FilterConcept
dependencies: 2
inputs: human
function: What
dependencies: 3