I used to hate writing SQL (I still do somewhat) but I took the time some years ago to really learn the language and once you do that you appreciate a few things:
1. Yes it requires a high mental load to craft something sophisticated
2. I can’t think of a ‘better’ alternative to SQL that isn’t a compromise.
3. You can do a crap load of stuff with joins, procedures and CTEs once you understand it.