Datalog is a non-turingcomplete logic query language. It's similar to Prolog, but it being not turingcomplete makes it more declerative, and means that there's an upper-bound on execution time. It's interesting as a query language for databases.
Logica - Datalog to SQL compiler
percival - Datalog notebooks
Datalog links - Someone elses garden page on Datalog
There is DDlog as an implementation of differential datalog, but it seems to be "deprecated" having its latest commit in 2022 (Some claime that the team moved on to build feldera).
One could try and build an implementation on one of these libraries:
Relevant article: