credo di aver frainteso la richiesta.

se ho ben capito dovresti aggiungere il campo titolo in select e fare group by(gruppo,titolo)