what monarch is the ruler of a kingdom that is also ruled by house of monpezat?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.013jvh m.013p_0 m.0g2kv m.013jk7 m.0b242 m.0194kn m.0196hy m.01nzx7 m.02j8nf m.02j8q9 m.0bmzj m.013jcq m.01nzvn m.02j8dy m.013jg7 m.017lp2 m.01cv0t m.0g11q m.0hjgv m.0jl5w m.02j8dh m.0b12s m.01nztv m.01byhz m.0b2wy m.089_wj m.01byjf m.0frtc m.06lp4w m.01nzxn m.02j8ss m.0172f2 m.013jtk m.0lr12 m.013j13 m.013j9x m.076kb5 m.016lhs m.013jj2 m.019kr6 m.0fk5tw m.017xmj m.02vmsbv m.02j8d1 m.02j8tz m.01lyqz m.01lytk m.01nzw2 m.05_s3y m.03bpw9 m.01byhh m.01hynd m.079d65 m.0hjjl m.017ll7 m.019pfl m.06nbrv m.03bptb m.0387fk m.04161s8 m.084g8b m.06txbk m.06nbxq m.06nbzg m.03dwdx m.089ydp
Frederick VIII of Denmark Frederick IX of Denmark Margrethe II of Denmark Christian VIII of Denmark Sweyn Forkbeard Valdemar II of Denmark Valdemar I of Denmark Eric IV of Denmark Abel, King of Denmark Christopher I of Denmark Harald Bluetooth Christian IV of Denmark Canute IV of Denmark Niels, King of Denmark Christian V of Denmark Frederick I of Denmark Valdemar IV Atterdag of Denmark Margaret I of Denmark Olaf II of Denmark Christian X of Denmark Eric I of Denmark Harthacnut Sweyn II of Denmark Frederick IV of Denmark Cnut the Great Canute Lavard Frederick V of Denmark Frederick II of Denmark Harthacnut I of Denmark Eric V of Denmark Eric VI of Denmark Frederick VII of Denmark Frederick III of Denmark Christian IX of Denmark Christian II of Denmark Christian III of Denmark Harald II of Denmark Eric of Pomerania Christian VII of Denmark Frederick VI of Denmark Harald Klak John, King of Denmark Horik I Olaf I of Denmark Christopher II of Denmark Hemming of Denmark Gudfred Canute VI of Denmark Ongendus Eric III of Denmark Christian VI of Denmark Gorm the Old Harald III of Denmark Magnus the Good Christian I of Denmark Christopher of Bavaria Olof the Brash Eric II of Denmark Valdemar III of Denmark Horik II Rorik of Dorestad Ulf the Earl Sigtrygg Gnupasson Gyrd and Gnupa Sweyn III of Denmark Canute V of Denmark
class class entity
royalty.monarch royalty.kingdom m.05f8y7z
royalty.monarch royalty.kingdom royalty.royal_line
Monarch Kingdom House of Monpezat
none none none
royalty.kingdom.rulers royalty.royal_line.kingdom_s_ruled
Rulers Kingdom(s) ruled
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 :royalty.monarch . 
?x1 :type.object.type :royalty.kingdom . 
VALUES ?x2 { :m.05f8y7z } 
?x1 :royalty.kingdom.rulers ?x0 . 
?x2 :royalty.royal_line.kingdom_s_ruled ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND royalty.monarch (JOIN (R royalty.kingdom.rulers) (JOIN (R royalty.royal_line.kingdom_s_ruled) m.05f8y7z)))