how many elections in all did thad cochran win?
Value
1
class entity
government.election m.01fmcd
government.election government.u_s_congressperson
Election contest Thad Cochran
count 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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :government.election . 
VALUES ?x1 { :m.01fmcd } 
?x0 :government.election.winner ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND government.election (JOIN government.election.winner m.01fmcd)))