Merge pull request #20520 from deepeshgarg007/fixnancial_query_fix

fix: SQL query in financial statements