harbor run -t scale-ai/hil-bench-sql_52-full_infoharbor download scale-ai/hil-bench-sql_52-full_infoYou are working in the financial database.
Answer the following question: What is the total withdrawal amount in USD (converted using the current CZK→USD exchange rate) for household-related payments from accounts held by clients who are currently over 50 years old, with standard statement frequency and a performing loan, owned by priority banking clients registered in the Prague district of Prerov, limited to recently established long-term accounts? Take into account that “Household-related payments” correspond to transactions with trans.k_symbol = 'SIPO'. For this question, compute the total withdrawal/outflow amount using the trans table (sum trans.amount for the filtered records). Also, for “currently over 50 years old”, calculate age using the year Google was created as reference.
The following clarifications are provided to help you complete this task:
Use CZK→USD = 0.052416 for conversion (USD = CZK × 0.052416).
Interpret this as Prague and Prerov as independent districts. Filter for clients whose district is Prague and Prerov: district.A2 = 'Hl.m. Praha' and 'Prerov' (joined via client.district_id).
Recently established: account.date >= '1997-07-01' (last ~18 months of the dataset ending 1998-12-31). Long-term: the account has an activity span ≥ 365 days, i.e. MAX(trans.date) - MIN(trans.date) >= 365 for that account.
Priority banking clients are defined as account owners (disposition type = 'OWNER') who hold a gold-class credit card (card type = 'gold').
Treat a “performing loan” as loans where loan.status = 'B'.
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.