it facilitates re-use of SQL code snippet (e.g. for frequent joins or formula);

it offloads the database server by performing joins on the application tier.

Datalog excels at accelerated development : Datalog programs are often shorter than their python equivalent,
and Datalog statements can be specified in any order, as simply as formula in a spreadsheet.