big jay is the sport team of which school?
Entity
m.091tgz
Kansas Jayhawks Men's Basketball
class entity
sports.school_sports_team m.047tzhf
sports.school_sports_team sports.mascot
School sports team Big Jay
none none
sports.mascot.team
Team
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 :sports.school_sports_team . 
VALUES ?x1 { :m.047tzhf } 
?x1 :sports.mascot.team ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND sports.school_sports_team (JOIN (R sports.mascot.team) m.047tzhf))