what schools highest grade taught is 12th standard?
Entity
m.0b492f
Bharathi Vidya Bhavan
class entity
education.school m.0cp95vr
education.school education.grade_level
School 12th standard
none none
education.school.highest_grade_taught
Highest grade taught
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 :education.school . 
VALUES ?x1 { :m.0cp95vr } 
?x0 :education.school.highest_grade_taught ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND education.school (JOIN education.school.highest_grade_taught m.0cp95vr))