in the tv episode rebecca gayheart, godsmack who performs the song?
Entity
m.0163j_
Godsmack
class class entity
tv.tv_song_performer tv.tv_episode_song_relationship m.06x9xqd
tv.tv_song_performer tv.tv_episode_song_relationship tv.tv_series_episode
TV song performer TV episode song relationship Rebecca Gayheart, Godsmack
none none none
tv.tv_episode_song_relationship.performers tv.tv_series_episode.songs
Performers Songs
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_song_performer . 
?x1 :type.object.type :tv.tv_episode_song_relationship . 
VALUES ?x2 { :m.06x9xqd } 
?x1 :tv.tv_episode_song_relationship.performers ?x0 . 
?x2 :tv.tv_series_episode.songs ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.tv_song_performer (JOIN (R tv.tv_episode_song_relationship.performers) (JOIN (R tv.tv_series_episode.songs) m.06x9xqd)))