the secretary of state belongs to what government office?
Entity Entity Entity Entity
m.05p45kp m.07y07 m.0278t96 m.0g3z2q
Secretary of State of Puerto Rico United States Secretary of State Confederate States Secretary of State Secretary of State of the Maison du Roi
class entity
government.government_office_or_title m.0789n
government.government_office_or_title government.government_office_category
Government Office or Title Secretary of State
none none
government.government_office_or_title.category
Category
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 :government.government_office_or_title . 
VALUES ?x1 { :m.0789n } 
?x0 :government.government_office_or_title.category ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.government_office_or_title (JOIN government.government_office_or_title.category m.0789n))