In case anyone is unaware, Datalog is a restricted form of Prolog for database querying. It’s been seriously, production-ready implemented in one commercial database (Datomic) and one in-progress open source database (CozoDB).
I am convinced that much of the sort of problem we’re concerned with here could be addressed by implementing most of nearly all programs in Datalog.