Joan Cornet i Prat — politician