Ducati's Jack Miller edged out team mate Francesco Bagnaia to claim his first MotoGP win in five years at the…