SQL: added event and filter `core.sql.query`