How can I have a Lua script that will allow to receive a parameter,
execute a query based on the parameter and emits the resulting table
CREATE OR REPLACE SCRIPT my_scrip_1(time_max ) RETURNS TABLE AS
exit(query([[SELECT col_1, col_2, created_at FROM...