samuel kanyon doe was the winner of which election?
Entity
m.07n0jf
Liberian general election, 1985
class entity
government.election m.01lmpq
government.election government.politician
Election contest samuel kanyon doe
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.01lmpq } 
?x0 :government.election.winner ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.election (JOIN government.election.winner m.01lmpq))