If you host your own instance of MariaDB, you can run it with logs to examine statements by following the guide at Query log output destination