select the basketball team that is part of the rocky mountain conference.
Entity
m.012c3f20
Colorado Mesa Mavericks men's basketball
class entity
basketball.basketball_team m.0kpsg
basketball.basketball_team basketball.basketball_conference
Basketball Team rocky mountain conference
none none
basketball.basketball_team.conference
Conference
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 :basketball.basketball_team . 
VALUES ?x1 { :m.0kpsg } 
?x0 :basketball.basketball_team.conference ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND basketball.basketball_team (JOIN basketball.basketball_team.conference m.0kpsg))