what is the name of the quatar monarch?
Entity Entity
m.01r7hx m.0fsl13
Hamad bin Khalifa Al Thani Tamim bin Hamad Al Thani
class entity
royalty.monarch m.0697s
royalty.monarch royalty.kingdom
Monarch quatar
none none
royalty.monarch.kingdom
Kingdom
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 . 
VALUES ?x1 { :m.0697s } 
?x0 :royalty.monarch.kingdom ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.monarch (JOIN royalty.monarch.kingdom m.0697s))