the rating of which tv program is tv ma?
Entity
m.0_4r9gf
Masters of Sex - Season 2
class entity
tv.tv_series_season m.030p0gv
tv.tv_series_season tv.tv_rating
TV Season TV MA
none none
tv.tv_series_season.rating
Rating
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_series_season . 
VALUES ?x1 { :m.030p0gv } 
?x0 :tv.tv_series_season.rating ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND tv.tv_series_season (JOIN tv.tv_series_season.rating m.030p0gv))