1. A method for generating a report, the method comprising: generating a first query based on selection of at least one attribute from a plurality of attributes of a resource associated with a metadata driven framework, wherein the plurality of attributes correspond to a particular instance of the resource; determining whether the first query is stored in a table schema associated with a first trigger; invoking the first trigger upon storage of the first query in the table schema, wherein the first trigger is configured to execute the first query to generate a materialized view based on an output of the first query, the materialized view is a database object that contains result of the first query; and executing a second query on the materialized view for generating the report, wherein the second query is generated based on materialized view data.