the song happiness is a warm gun was written on the same subject as what non-fiction work?
Entity
m.0j8b1l_
Trayvon Martin, Robert Lee, and Millions of Tears Fallen (Part 1)
class class entity
book.short_non_fiction book.book_subject m.0bb7nj4
book.short_non_fiction book.book_subject music.arrangement
Short Non-fiction Literature Subject Happiness Is a Warm Gun
none none none
book.book_subject.works book.book_subject.musical_compositions_about_this_topic
Works Written About This Topic Musical compositions about this topic
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 :book.short_non_fiction . 
?x1 :type.object.type :book.book_subject . 
VALUES ?x2 { :m.0bb7nj4 } 
?x1 :book.book_subject.works ?x0 . 
?x1 :book.book_subject.musical_compositions_about_this_topic ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND book.short_non_fiction (JOIN (R book.book_subject.works) (JOIN book.book_subject.musical_compositions_about_this_topic m.0bb7nj4)))