ChatGPT is pretty good at writing SQL queries. I can never remember how to do things like counting distinct entries grouped by some other column. After spending 5 minutes trying to write it I just asked ChatGPT and it got it on the first try.