what tv episode that is part of a series is is set in a counterterrorism.
Entity Entity
m.094syp2 m.094szdf
Pandemonium Into Hell
class class entity
tv.multipart_tv_episode tv.tv_program m.0lbqg
tv.multipart_tv_episode tv.tv_program tv.tv_subject
Multipart TV episode TV Program counterterrorism
none none none
tv.tv_program.multipart_episodes tv.tv_program.subjects
Multipart episodes Subjects
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.multipart_tv_episode . 
?x1 :type.object.type :tv.tv_program . 
VALUES ?x2 { :m.0lbqg } 
?x1 :tv.tv_program.multipart_episodes ?x0 . 
?x1 :tv.tv_program.subjects ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.multipart_tv_episode (JOIN (R tv.tv_program.multipart_episodes) (JOIN tv.tv_program.subjects m.0lbqg)))