SQL is a good language (the only declarative in wide use) but somehow people hate it.
@phifer a good scheme makes everything so easy, it's great!
@scathach i have zero issues with SQL, it just werks and is widely supported.
datalog might be fine (never used it), but the choice isn't between datalog and SQL. it's between nosql garbage languages with no guarantees and SQL which is time tested in language and implementations.
@bonifartius I freaking love SQL, it's my favorite way to get shit done.