**Write 5 verses of a song based on "Santa Claus is coming to town" but using SQL**
Verse 1:
Santa Claus is coming to town,
He's gonna write queries to find out who's been naughty or nice;
He'll query the database and look up who's been good or bad,
To figure out who's getting gifts and who's getting sad.
Verse 2:
He'll join tables and group by to sort out the data,
He'll use aggregate functions to figure out the fate;
For the naughty ones he'll leave a message in the log,
But the nice ones will get presents, that's what Santa will do.