I suspect more SQL is written to support analytics than online systems. Locking and concurrency are used in a specific type of application, namely oltp.
I learned how much when I joined a big tech company. The devs don’t write sql unless processing logs in the warehouse. But everyone from PM to support to data science and marketing all write sql.