I find SQL to be an area where it's somewhat decent. Give it table structure, input data and expected output data and it will give a decent result using techniques that I wasn't aware of because I haven't studied the docs since university.
There will sometimes be logical errors with exceptions though. But for rudimentary joins and filtering, it does a decent job as long as you are very specific with the result you want.