the institute of midhurst grammar school had which chess player attend the institution?
Entity
m.03hnd
H. G. Wells
class class entity
chess.chess_player education.education m.02w6zx_
chess.chess_player education.education education.school
Chess Player Education Midhurst Grammar School
none none none
people.person.education education.education.institution
Education Institution
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 :chess.chess_player . 
?x1 :type.object.type :education.education . 
VALUES ?x2 { :m.02w6zx_ } 
?x0 :people.person.education ?x1 . 
?x1 :education.education.institution ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND chess.chess_player (JOIN people.person.education (JOIN education.education.institution m.02w6zx_)))