select lender_libelle as Propriétaire, codestat_libelle as "Code Statistique exemplaire", count(arc_id) as Nombre from pret_archive left join docs_codestat on arc_expl_codestat=idcode left join lenders on arc_expl_owner=idlender where arc_expl_owner in (!!choixproprio!!) and arc_expl_codestat in (!!choixcodestat!!) and arc_debut between '!!date1!!' and '!!date2!!' group by 1,2 order by 1,2