what ice hockey teams share the division with the kingston frontenacs?
Entity Entity Entity Entity
m.025s2v m.02gqj5 m.032ld4 m.0405f3
Ottawa 67's Peterborough Petes Belleville Bulls Oshawa Generals
class class entity
ice_hockey.hockey_team ice_hockey.hockey_division m.0b3v1q
ice_hockey.hockey_team ice_hockey.hockey_division ice_hockey.hockey_team
Ice hockey team Ice hockey division Kingston Frontenacs
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.0b3v1q } 
?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.0b3v1q)))