SELECT num_pra, MAX(versione)
FROM tabella
GROUP BY num_pra