for the musical genre with albums get yer ya-yas out, which music genre is the parent genre?
Entity Entity Entity Entity Entity Entity
m.02w4v m.06by7 m.016jhr m.07sbbz2 m.017371 m.02l96k
Folk music Rock music Jam band Rock and roll Rockabilly Acid rock
class class entity
music.genre music.genre m.01hmywl
music.genre music.genre music.live_album
Musical genre Musical genre get yer ya-yas out
none none none
music.genre.parent_genre music.genre.albums
Parent genres Albums
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 :music.genre . 
?x1 :type.object.type :music.genre . 
VALUES ?x2 { :m.01hmywl } 
?x1 :music.genre.parent_genre ?x0 . 
?x1 :music.genre.albums ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND music.genre (JOIN (R music.genre.parent_genre) (JOIN music.genre.albums m.01hmywl)))