continue the creation and testing of the query for extracting data in the database
as per checking of the query created, it is now extracting expected value for single resources, need to add more modification to extract expected value for multiple resources