which comic book issue has the next issue which has also the final issue of the x-men?
Entity
m.02hqgml
The Uncanny X-Men #142
class class entity
comic_books.comic_book_issue comic_books.comic_book_issue m.02hqp38
comic_books.comic_book_issue comic_books.comic_book_issue comic_books.comic_book_series
Comic Book Issue Comic Book Issue The X-Men
none none none
comic_books.comic_book_issue.next_issue comic_books.comic_book_series.final_issue
Next issue Final Issue
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 :comic_books.comic_book_issue . 
?x1 :type.object.type :comic_books.comic_book_issue . 
VALUES ?x2 { :m.02hqp38 } 
?x1 :comic_books.comic_book_issue.next_issue ?x0 . 
?x2 :comic_books.comic_book_series.final_issue ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND comic_books.comic_book_issue (JOIN (R comic_books.comic_book_issue.next_issue) (JOIN (R comic_books.comic_book_series.final_issue) m.02hqp38)))