Ciao Raffaele,
potresti condividere un esempio di query che non ti fornisce risultati? Che versione di Moodle e di CR stai usando?
In https://docs.moodle.org/38/en/Configurable_reports trovi diversi esempi e, soprattutto, in https://docs.moodle.org/36/en/ad-hoc_contributed_reports ne trovi moltissimi.
HTH,
Matteo