Thank you for your response. I didn’t have any issues with that statement. I was trying to apply multiple filters, but all the conditions are set to ‘AND’ mode. I need some filters to use ‘AND’ while others should use ‘OR’. I thought checking the SQL query might provide better understanding.
for example: frappe.db.get_list(doctype, multiple_filters, or_filters, fields, order_by, group_by, start, page_length)