harbor run -t scale-ai/hil-bench-sql_9-full_infoharbor download scale-ai/hil-bench-sql_9-full_infoYou are working in the financial database.
Answer the following question: List the number of priority-tier clients with indexed accounts who have fully repaid active loans with a duration exceeding 100 months, residing in districts whose economic distress indicator corresponds to the 5th-highest value.
The following clarifications are provided to help you complete this task:
Use loans with a duration of 48 months.
Filter for loans with status 'C' which would signify loan repaid.
Priority-tier clients are those born before January 1, 1950.
Indexed accounts are those with a monthly statement frequency (frequency = 'POPLATEK MESICNE').
Use column A17 (labor compilation) for the economic distress indicator. Rank all districts by A17 in descending order and select the A17 value of the 5th row (using ORDER BY A17 DESC LIMIT 1 OFFSET 4, without DISTINCT).
The following commands are installed in this terminal — run them directly from the shell. Only run ONE command per turn — each command blocks until the MCP server responds.
get_database_info financial — list all tables and their descriptionsget_table_info financial <table> — list columns and descriptions for a tableget_column_info financial <table> <column> — get details for a specific columnget_business_info financial "<question>" — semantic search over business documentationexecute_sql "<query>" — execute a SQL query against the databasesubmit_sql "<query>" — submit your final SQL answerWhen you are confident your SQL query is correct, call the submit_sql tool with your final query as the argument. If you do not call submit_sql, the task will be considered incomplete and scored as 0.