the hamilton bulldogs are in the same division as what ice hockey teams?
Entity Entity Entity Entity
m.02qnrv m.027y417 m.05k699 m.05zj31v
Rochester Americans Lake Erie Monsters Toronto Marlies Abbotsford Heat
class class entity
ice_hockey.hockey_team ice_hockey.hockey_division m.048ldh
ice_hockey.hockey_team ice_hockey.hockey_division ice_hockey.hockey_team
Ice hockey team Ice hockey division Hamilton Bulldogs
none none none
ice_hockey.hockey_team.division ice_hockey.hockey_division.teams
Division Teams
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 :ice_hockey.hockey_team . 
?x1 :type.object.type :ice_hockey.hockey_division . 
VALUES ?x2 { :m.048ldh } 
?x0 :ice_hockey.hockey_team.division ?x1 . 
?x1 :ice_hockey.hockey_division.teams ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND ice_hockey.hockey_team (JOIN ice_hockey.hockey_team.division (JOIN ice_hockey.hockey_division.teams m.048ldh)))