who is the tv personality who appeared in the role of tv segment personal appearance correspondent?
Entity Entity Entity Entity
m.026h80g m.02z14n m.0v_1xj_ m.0cw4l7
Scott Pelley Anderson Cooper Martha Teichner Seth Doane
class class entity
tv.tv_personality tv.tv_segment_personal_appearance m.02k13d
tv.tv_personality tv.tv_segment_personal_appearance tv.non_character_role
TV Personality TV segment personal appearance Correspondent
none none none
tv.tv_personality.tv_segment_appearances tv.tv_segment_personal_appearance.appearance_type
TV segment appearances Appearance type
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_personality . 
?x1 :type.object.type :tv.tv_segment_personal_appearance . 
VALUES ?x2 { :m.02k13d } 
?x0 :tv.tv_personality.tv_segment_appearances ?x1 . 
?x1 :tv.tv_segment_personal_appearance.appearance_type ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.tv_personality (JOIN tv.tv_personality.tv_segment_appearances (JOIN tv.tv_segment_personal_appearance.appearance_type m.02k13d)))