Question: Which human died in Perth (whose local dialing code is 08925) and was born in Melbourne (the birthplace of Scott McDonald)?
Choices: Sylvester Stallone
Peter Cook
Rahul Dev Burman
Simon Baker
Max Fleischer
Richard Gere
Simon Cowell
David Byrne
Flea
Cate Blanchett
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_death> ?e_1 . ?e_1 <pred:name> "Perth" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "08925" .  ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Melbourne" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Scott McDonald" .  }
Program:
function: Find
inputs: Perth
function: FilterStr
dependencies: 0
inputs: local dialing code
08925
function: Relate
dependencies: 1
inputs: place of death
backward
function: FilterConcept
dependencies: 2
inputs: human
function: Find
inputs: Scott McDonald
function: Relate
dependencies: 4
inputs: place of birth
forward
function: Find
inputs: Melbourne
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: place of birth
backward
function: FilterConcept
dependencies: 8
inputs: human
function: And
dependencies: 3
9
function: What
dependencies: 10
Answer: Peter Cook