lady companionis a rank that what chivalric title has?
Entity Entity
m.052l3qy m.05gly_c
Lady Companion of the Garter Lady Companion of the Order of the Thistle
class entity
royalty.chivalric_title m.05g6_v9
royalty.chivalric_title royalty.chivalric_rank
Chivalric Title Lady Companion
none none
royalty.chivalric_title.rank
Rank
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.chivalric_title . 
VALUES ?x1 { :m.05g6_v9 } 
?x0 :royalty.chivalric_title.rank ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.chivalric_title (JOIN royalty.chivalric_title.rank m.05g6_v9))