which actor appeared on christopher buckley / sidney poitier episode?
Entity Entity
m.031bkt m.02vj3y
Kevin Phillips Christopher Buckley
class class entity
tv.tv_actor tv.tv_guest_role m.02nx973
tv.tv_actor tv.tv_guest_role tv.the_colbert_report_episode
TV Actor TV episode performance Christopher Buckley / Sidney Poitier
none none none
tv.tv_actor.guest_roles tv.tv_guest_role.episodes_appeared_in
TV episode performances Episode
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.02nx973 } 
?x0 :tv.tv_actor.guest_roles ?x1 . 
?x1 :tv.tv_guest_role.episodes_appeared_in ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.tv_actor (JOIN tv.tv_actor.guest_roles (JOIN tv.tv_guest_role.episodes_appeared_in m.02nx973)))