dr. banks was performed by whom in the tv episode?
Entity
m.03gyp4d
Peter Haskell
class class entity
tv.tv_actor tv.tv_guest_role m.09nq43n
tv.tv_actor tv.tv_guest_role tv.tv_character
TV Actor TV episode performance Dr. Banks
none none none
tv.tv_actor.guest_roles tv.tv_character.appeared_in_tv_episodes
TV episode performances Appeared In TV Episodes
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :tv.tv_actor . 
?x1 :type.object.type :tv.tv_guest_role . 
VALUES ?x2 { :m.09nq43n } 
?x0 :tv.tv_actor.guest_roles ?x1 . 
?x2 :tv.tv_character.appeared_in_tv_episodes ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.tv_actor (JOIN tv.tv_actor.guest_roles (JOIN (R tv.tv_character.appeared_in_tv_episodes) m.09nq43n)))