who is the monarch that rules a kingdom that is also ruled by house of braganza-saxe-coburg and gotha?
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.01lj5q m.01lj2x m.01lj3r m.0r_9 m.0rzv m.01lg_s m.0140z2 m.01lqn8 m.01lqp6 m.01lqk0 m.0140yl m.0k_75 m.012s__ m.012rkn m.0f6fz m.0s07 m.0rzb m.012ck_ m.012t29 m.0132m7 m.01lnwr m.01367n m.0s0q m.01lqj4 m.01lnxk m.01m1nr m.01410d m.0r_s m.05hvp2 m.01lnvw m.018t7z m.08q42y m.01lqr2 m.01lnvd
Peter I of Portugal Sancho I of Portugal Sancho II of Portugal Afonso III of Portugal Afonso II of Portugal Carlos I of Portugal John IV of Portugal Maria II of Portugal Miguel I of Portugal Joseph I of Portugal John I of Portugal Pedro I of Brazil John III of Portugal Philip III of Spain Philip II of Spain Afonso V of Portugal Afonso I of Portugal Manuel I of Portugal John II of Portugal Philip IV of Spain Sebastian of Portugal John V of Portugal Afonso VI of Portugal Peter II of Portugal Henry, King of Portugal Pedro V of Portugal Ferdinand I of Portugal Afonso IV of Portugal António, Prior of Crato Edward, King of Portugal Manuel II of Portugal Peter III of Portugal Luís I of Portugal Denis of Portugal
class class entity
royalty.monarch royalty.kingdom m.04gtdhp
royalty.monarch royalty.kingdom royalty.royal_line
Monarch Kingdom House of Braganza-Saxe-Coburg and Gotha
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.04gtdhp } 
?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.04gtdhp)))