middle-weight is the weight class of which boxing match?
Entity Entity
m.011c2l86 m.010r23lb
Gennady Golovkin vs. Daniel Geale Sergio Martínez vs. Miguel Cotto
class entity
boxing.boxing_match m.023x0n
boxing.boxing_match sports.boxing_weight_division
Boxing match middle-weight
none none
boxing.boxing_match.weight_class
Weight class
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 :boxing.boxing_match . 
VALUES ?x1 { :m.023x0n } 
?x0 :boxing.boxing_match.weight_class ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND boxing.boxing_match (JOIN boxing.boxing_match.weight_class m.023x0n))