the rank of knights has which chivalric title?
Entity Entity Entity
m.05t1z8c m.05gg_j1 m.05gly_5
Chevalier de l'ordre des Arts et des Lettres Knight and Commander of the Orders of His Majesty the King Supernumerary Knight of the Order of the Thistle
class entity
royalty.chivalric_title m.049rd
royalty.chivalric_title royalty.chivalric_rank
Chivalric Title knights
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.049rd } 
?x0 :royalty.chivalric_title.rank ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.chivalric_title (JOIN royalty.chivalric_title.rank m.049rd))