what is the name of the president who graduated from college of william and mary?
Entity Entity Entity
m.07cbs m.042d1 m.042dk
Thomas Jefferson James Monroe John Tyler
class class entity
government.us_president education.education m.017v3q
government.us_president education.education education.university
US President Education college of william and mary
none none none
people.person.education education.educational_institution.students_graduates
Education Students/Graduates
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 :government.us_president . 
?x1 :type.object.type :education.education . 
VALUES ?x2 { :m.017v3q } 
?x0 :people.person.education ?x1 . 
?x2 :education.educational_institution.students_graduates ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND government.us_president (JOIN people.person.education (JOIN (R education.educational_institution.students_graduates) m.017v3q)))