U.S. Democrats scored an upset victory in Kentucky on Tuesday over a Republican governor backed by President Donald Trump and seized control of the state legislature in Virginia, where anti-Trump sentiment in the suburbs remained a potent force.

The outcomes of Tuesday's elections in four states, including Mississippi and New Jersey, could offer clues to how next year's presidential election could unfold, when Trump will aim for a second four-year term.

In Kentucky, Democratic Attorney General Andy Beshear, whose father, Steve, was the state's last Democratic governor, ousted Gov. Matt Bevin despite an election-eve rally headlined by Trump.