which royal line is succeeded by house of ascania
Entity
m.02ryw5
House of Wettin
class entity
royalty.royal_line m.0zk5
royalty.royal_line royalty.royal_line
Royal line House of Ascania
none none
royalty.royal_line.succeeded_by
Succeeded by
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.royal_line . 
VALUES ?x1 { :m.0zk5 } 
?x0 :royalty.royal_line.succeeded_by ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.royal_line (JOIN royalty.royal_line.succeeded_by m.0zk5))