Script Report with filters that get data using SQL

Please check the reference: