what is the election that ed miliband won?
Entity
m.0bxz9kd
Labour Party (UK) leadership election, 2010
class entity
government.election m.04qdjv
government.election government.politician
Election contest ed miliband
none none
government.election.winner
Winner(s)
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.election . 
VALUES ?x1 { :m.04qdjv } 
?x0 :government.election.winner ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.election (JOIN government.election.winner m.04qdjv))