what is the name of the profession that has specialization in farmers?
Entity
m.0116t52b
Farmers, Ranchers, and Other Agricultural Managers
class entity
base.lightweight.profession m.0g0vx
base.lightweight.profession base.lightweight.profession
Profession farmers
none none
base.lightweight.profession.specialization
Specialization
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 :base.lightweight.profession . 
VALUES ?x1 { :m.0g0vx } 
?x0 :base.lightweight.profession.specialization ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND base.lightweight.profession (JOIN base.lightweight.profession.specialization m.0g0vx))