which court has an inferior court whose superior courts include supreme judicial court of massachusetts?
Entity
m.0g9y9tm
Massachusetts District Court
class class entity
law.court law.court m.02ltkn
law.court law.court law.court
Court Court supreme judicial court of massachusetts
none none none
law.court.inferior_courts law.court.superior_courts
Inferior courts Superior courts
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 :law.court . 
?x1 :type.object.type :law.court . 
VALUES ?x2 { :m.02ltkn } 
?x0 :law.court.inferior_courts ?x1 . 
?x1 :law.court.superior_courts ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND law.court (JOIN law.court.inferior_courts (JOIN law.court.superior_courts m.02ltkn)))