Given the task definition and input, reply with output. In this task, you are given a question and a context passage. You have to answer the question based on the given passage.

What election did Kerry win?, Context: The junior U.S. Senator from Massachusetts, Paul Tsongas, announced in 1984 that he would be stepping down for health reasons. Kerry ran, and as in his 1982 race for Lieutenant Governor, he did not receive the endorsement of the party regulars at the state Democratic convention. Congressman James Shannon, a favorite of House Speaker Tip O'Neill, was the early favorite to win the nomination, and he "won broad establishment support and led in early polling." Again as in 1982, however, Kerry prevailed in a close primary.
primary