SELECT
   id_progetto AS idp
 , codice_fiscale AS cf
 /*, dipartimento*/
 , tipo_beneficiario AS tipoben
FROM tb_bp
NATURAL JOIN queryset