which chivalric rank is restricted to the female gender gender?
Entity Entity Entity Entity
m.05ghn90 m.05g6_v9 m.02pkb8 m.05gnl44
Dame Grand Cross Lady Companion Lady Dame Commander
class entity
royalty.chivalric_rank m.02zsn
royalty.chivalric_rank people.gender
Chivalric Rank female gender
none none
royalty.chivalric_rank.gender
Gender
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_rank . 
VALUES ?x1 { :m.02zsn } 
?x0 :royalty.chivalric_rank.gender ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.chivalric_rank (JOIN royalty.chivalric_rank.gender m.02zsn))