which school has the education institution number 66
Entity
m.027w8xl
Dilworth School
class literal
education.school 66^^http://www.w3.org/2001/XMLSchema#integer
education.school type.int
School 66
none none
education.school.ministry_of_education_no
Ministry of Education institution no. (NZ)
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 { "66"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x0 :education.school.ministry_of_education_no ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND education.school (JOIN education.school.ministry_of_education_no 66^^http://www.w3.org/2001/XMLSchema#integer))