forked from BeachWang/DAIL-SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRESULTS_MODEL-gpt-4o.json
More file actions
108 lines (108 loc) · 26.4 KB
/
RESULTS_MODEL-gpt-4o.json
File metadata and controls
108 lines (108 loc) · 26.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"89": "SELECT COUNT(a.account_id) FROM account a JOIN disp d ON a.account_id = d.account_id JOIN client c ON d.client_id = c.client_id JOIN district dis ON c.district_id = dis.district_id WHERE a.frequency = 'POPLATEK PO OBRATU' AND dis.A3 = 'East Bohemia';\t----- bird -----\tfinancial",
"90": "SELECT COUNT(DISTINCT a.account_id) FROM account a JOIN district d ON a.district_id = d.district_id JOIN loan l ON a.account_id = l.account_id WHERE d.A3 = 'Prague';\t----- bird -----\tfinancial",
"91": "SELECT CASE WHEN AVG(A12) > AVG(A13) THEN '1995 has a higher average unemployment rate' WHEN AVG(A12) < AVG(A13) THEN '1996 has a higher average unemployment rate' ELSE 'Both years have the same average unemployment rate' END AS result FROM district;\t----- bird -----\tfinancial",
"92": "SELECT COUNT(DISTINCT d.district_id) AS num_districts FROM client c JOIN district d ON c.district_id = d.district_id WHERE c.gender = 'F' GROUP BY d.district_id HAVING AVG(d.A11) > 6000 AND AVG(d.A11) < 10000;\t----- bird -----\tfinancial",
"93": "SELECT COUNT(DISTINCT C.client_id) FROM client AS C INNER JOIN district AS D ON C.district_id = D.district_id WHERE C.gender = 'M' AND D.A3 = 'North Bohemia' AND D.A11 > 8000;\t----- bird -----\tfinancial",
"94": "SELECT c.client_id, c.birth_date, d.A11 AS average_salary FROM client c JOIN district d ON c.district_id = d.district_id WHERE c.gender = 'F' ORDER BY c.birth_date ASC LIMIT 1 ), SalaryStats AS ( SELECT MIN(A11) AS min_average_salary, MAX(A11) AS max_average_salary FROM district ) SELECT a.account_id, (ss.max_average_salary - ss.min_average_salary) AS salary_gap FROM disp d\t----- bird -----\tfinancial",
"95": "SELECT a.account_id FROM account a JOIN disp d ON a.account_id = d.account_id JOIN client c ON d.client_id = c.client_id JOIN district dist ON c.district_id = dist.district_id WHERE c.birth_date = (SELECT MAX(c2.birth_date) FROM client c2) AND dist.A11 = (SELECT MAX(dist2.A11) FROM district dist2);\t----- bird -----\tfinancial",
"96": "SELECT COUNT(DISTINCT C.client_id) FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN account AS A ON D.account_id = A.account_id WHERE A.frequency = 'POPLATEK TYDNE' AND D.type = 'Owner';\t----- bird -----\tfinancial",
"97": "SELECT DISTINCT c.client_id FROM client AS c INNER JOIN disp AS d ON c.client_id = d.client_id INNER JOIN account AS a ON d.account_id = a.account_id INNER JOIN trans AS t ON a.account_id = t.account_id WHERE d.type = 'DISPONENT' AND t.k_symbol = 'POPLATEK PO OBRATU';\t----- bird -----\tfinancial",
"98": "SELECT a.account_id FROM loan l INNER JOIN account a ON l.account_id = a.account_id WHERE l.status = 'approved' AND STRFTIME('%Y', l.date) = '1997' AND a.frequency = 'POPLATEK TYDNE' ORDER BY l.amount ASC LIMIT 1;\t----- bird -----\tfinancial",
"99": "SELECT A.account_id FROM account AS A JOIN loan AS L ON A.account_id = L.account_id WHERE L.duration > 12 AND STRFTIME('%Y', A.date) = '1993' AND L.status = 'approved' ORDER BY L.amount DESC LIMIT 1;\t----- bird -----\tfinancial",
"100": "SELECT COUNT(DISTINCT c.client_id) FROM client AS c INNER JOIN disp AS d ON c.client_id = d.client_id INNER JOIN account AS a ON d.account_id = a.account_id INNER JOIN district AS dist ON c.district_id = dist.district_id WHERE c.gender = 'F' AND c.birth_date < '1950-01-01' AND dist.A2 = 'Sokolov';\t----- bird -----\tfinancial",
"101": "SELECT account_id FROM trans WHERE date = ( SELECT MIN(date) FROM trans WHERE date BETWEEN '1995-01-01' AND '1995-12-31' )\t----- bird -----\tfinancial",
"102": "SELECT DISTINCT a.account_id FROM account a JOIN trans t ON a.account_id = t.account_id WHERE a.date < '1997-01-01' AND t.balance > 3000;\t----- bird -----\tfinancial",
"103": "SELECT T3.client_id FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id WHERE T1.issued = '1994-03-03';\t----- bird -----\tfinancial",
"104": "SELECT a.date AS account_opened_date FROM trans AS t INNER JOIN account AS a ON t.account_id = a.account_id WHERE t.amount = 840 AND t.date = '1998-10-14';\t----- bird -----\tfinancial",
"105": "SELECT D.district_id FROM loan L INNER JOIN account A ON L.account_id = A.account_id INNER JOIN district D ON A.district_id = D.district_id WHERE L.date = '1994-08-25' AND L.status = 'approved';\t----- bird -----\tfinancial",
"106": "SELECT MAX(T3.amount) AS max_transaction_amount FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T1.issued = '1996-10-21';\t----- bird -----\tfinancial",
"107": "SELECT c.gender FROM client c JOIN disp d ON c.client_id = d.client_id JOIN account a ON d.account_id = a.account_id WHERE a.district_id = ( SELECT district_id FROM district ORDER BY A11 DESC LIMIT\t----- bird -----\tfinancial",
"108": "SELECT T3.amount FROM trans AS T3 INNER JOIN account AS T1 ON T3.account_id = T1.account_id INNER JOIN disp AS T4 ON T1.account_id = T4.account_id INNER JOIN client AS T5 ON T4.client_id = T5.client_id WHERE T1.account_id = ( SELECT T1.account_id FROM loan AS T1 ORDER BY T1.amount DESC LIMIT 1 ) ORDER BY T3.date ASC LIMIT 1;\t----- bird -----\tfinancial",
"109": "SELECT COUNT(DISTINCT C.client_id) FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN account AS A ON D.account_id = A.account_id INNER JOIN district AS DI ON A.district_id = DI.district_id WHERE C.gender = 'F' AND DI.A2 = 'Jesenik';\t----- bird -----\tfinancial",
"110": "SELECT D.disp_id FROM trans AS T INNER JOIN account AS A ON T.account_id = A.account_id INNER JOIN disp AS D ON A.account_id = D.account_id WHERE T.amount = 5100 AND T.date = '1998-09-02';\t----- bird -----\tfinancial",
"111": "SELECT COUNT(a.account_id) FROM account AS a INNER JOIN district AS d ON a.district_id = d.district_id WHERE d.A2 = 'Litomerice' AND STRFTIME('%Y', a.date) = '1996';\t----- bird -----\tfinancial",
"112": "SELECT D.A2 AS district_name FROM client C INNER JOIN disp DP ON C.client_id = DP.client_id INNER JOIN account A ON DP.account_id = A.account_id INNER JOIN district D ON A.district_id = D.district_id WHERE C.gender = 'F' AND C.birth_date = '1976-01-29';\t----- bird -----\tfinancial",
"113": "SELECT c.birth_date FROM loan l INNER JOIN account a ON l.account_id = a.account_id INNER JOIN disp d ON a.account_id = d.account_id INNER JOIN client c ON d.client_id = c.client_id WHERE l.amount = 98832 AND l.date = '1996-01-03';\t----- bird -----\tfinancial",
"114": "SELECT a.account_id FROM client AS c INNER JOIN disp AS d ON c.client_id = d.client_id INNER JOIN account AS a ON d.account_id = a.account_id INNER JOIN district AS dist ON c.district_id = dist.district_id WHERE dist.A3 = 'Prague' ORDER BY a.date ASC LIMIT 1;\t----- bird -----\tfinancial",
"115": "SELECT CAST(SUM(CASE WHEN C.gender = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS male_percentage FROM client C JOIN district D ON C.district_id = D.district_id WHERE D.A3 = 'South Bohemia' AND D.A4 = ( SELECT MAX(A4) FROM district WHERE A3 = 'South Bohemia' );\t----- bird -----\tfinancial",
"116": "SELECT disp.client_id, disp.account_id FROM loan INNER JOIN disp ON loan.account_id = disp.account_id WHERE loan.date\t----- bird -----\tfinancial",
"117": "SELECT CAST(SUM(CASE WHEN status = 'A' THEN amount ELSE 0 END) AS REAL) * 100 / SUM(amount) AS percentage_fully_paid FROM loan;\t----- bird -----\tfinancial",
"118": "SELECT CAST(SUM(CASE WHEN L.amount < 100000 AND L.status = 'C' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS percentage FROM loan AS L\t----- bird -----\tfinancial",
"119": "SELECT T1.account_id, T5.A2 AS district_name, T5.A3 AS district_region FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id INNER JOIN district AS T5 ON T1.district_id = T5.district_id INNER JOIN trans AS T4 ON T1.account_id = T4.account_id WHERE STRFTIME('%Y', T1.date) = '1993' AND T4.k_symbol = 'POPLATEK PO OBRATU';\t----- bird -----\tfinancial",
"120": "SELECT a.account_id, a.frequency, c.client_id FROM account AS a INNER JOIN disp AS d ON a.account_id = d.account_id INNER JOIN client AS c ON d.client_id = c.client_id INNER JOIN district AS dist ON c.district_id = dist.district_id WHERE dist.A2 = 'east Bohemia'\t----- bird -----\tfinancial",
"121": "SELECT account.account_id, account.date FROM account INNER JOIN district ON account.district_id = district.district_id WHERE district.A2 = 'Prachatice';\t----- bird -----\tfinancial",
"122": "SELECT D.A2 AS district, D.A3 AS region FROM loan L INNER JOIN account A ON L.account_id = A.account_id INNER JOIN district D ON A.district_id = D.district_id WHERE L.loan_id = 4990;\t----- bird -----\tfinancial",
"123": "SELECT L.account_id, D.A2 AS district_name, D.A3 AS region_name FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id INNER JOIN district AS D ON A.district_id = D.district_id WHERE L.amount > 300000;\t----- bird -----\tfinancial",
"124": "SELECT L.loan_id, D.A3 AS region, D.A11 AS average_salary FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id INNER JOIN district AS D ON A.district_id = D.district_id WHERE L.duration = 60;\t----- bird -----\tfinancial",
"125": "SELECT D.district_id, D.A2 AS district_name, ((D.A13 - D.A12) / D.A12) * 100 AS unemployment_rate_increment FROM loan L JOIN account A ON L.account_id = A.account_id JOIN disp DP ON A.account_id = DP.account_id JOIN client C ON DP.client_id = C.client_id JOIN district D ON C.district_id = D.district_id WHERE L\t----- bird -----\tfinancial",
"126": "SELECT CAST(SUM(CASE WHEN d.A2 = 'Decin' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS percentage FROM account AS a INNER JOIN district AS d ON a.district_id = d.district_id WHERE STRFTIME('%Y', a.date) = '1993';\t----- bird -----\tfinancial",
"127": "SELECT account_id FROM account WHERE frequency = 'POPLATEK MESICNE'\t----- bird -----\tfinancial",
"128": "SELECT d.A2 AS district, COUNT(c.client_id) AS female_account_holders FROM client c JOIN disp dp ON c.client_id = dp.client_id JOIN account a ON dp.account_id = a.account_id JOIN district d ON c.district_id = d.district_id WHERE c.gender = 'F' GROUP BY d.A2 ORDER BY female_account_holders DESC LIMIT 9;\t----- bird -----\tfinancial",
"129": "SELECT D.A2 AS district_name, T.amount FROM trans T INNER JOIN account A ON T.account_id = A.account_id INNER JOIN district D ON A.district_id = D.district_id WHERE T.type = 'VYDAJ' AND T.date LIKE '1996-01%' ORDER BY T.amount DESC LIMIT 10;\t----- bird -----\tfinancial",
"130": "SELECT COUNT(DISTINCT a.account_id) AS account_holders_without_cards FROM account AS a JOIN district AS d ON a.district_id = d.district_id JOIN disp AS dp ON a.account_id = dp.account_id LEFT JOIN card AS c ON dp.disp_id = c.disp_id WHERE d.A3 = 'South Bohemia' AND c.card_id IS NULL;\t----- bird -----\tfinancial",
"131": "SELECT D.A3 AS district_name, COUNT(L.loan_id) AS active_loan_count FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id INNER JOIN district AS D ON A.district_id = D.district_id WHERE L.status IN ('C', 'D') GROUP BY D.district_id ORDER BY active_loan_count DESC LIMIT 1;\t----- bird -----\tfinancial",
"132": "SELECT AVG(L.amount) AS average_loan_amount FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id INNER JOIN disp AS D ON A.account_id = D.account_id INNER JOIN client AS C ON D.client_id = C.client_id WHERE C.gender = 'M';\t----- bird -----\tfinancial",
"133": "SELECT A2 AS district_name, A3 AS branch_location FROM district ORDER BY A13 DESC LIMIT 1;\t----- bird -----\tfinancial",
"134": "SELECT COUNT(a.account_id) AS num_accounts_opened FROM account a JOIN district d ON a.district_id = d.district_id WHERE d.A16 = ( SELECT MAX(A16) FROM district );\t----- bird -----\tfinancial",
"135": "SELECT COUNT(DISTINCT a.account_id) AS negative_balance_accounts FROM trans t JOIN account a ON t.account_id = a.account_id WHERE t.operation = 'VYBER KARTOU' AND a.frequency = 'POPLATEK MESICNE' AND t.balance < 0;\t----- bird -----\tfinancial",
"136": "SELECT COUNT(DISTINCT L.loan_id) FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id WHERE L.amount >= 250000 AND A.frequency = 'POPLATEK MESICNE' AND L.status = 'approved' AND L.date BETWEEN '1995-01-01' AND '1997-12-31';\t----- bird -----\tfinancial",
"137": "SELECT COUNT(DISTINCT a.account_id) FROM account a JOIN loan l ON a.account_id = l.account_id JOIN district d ON a.district_id = d.district_id WHERE (l.status = 'C' OR l.status = 'D')\t----- bird -----\tfinancial",
"138": "SELECT COUNT(C.client_id) AS male_clients_count FROM district D JOIN client C ON D.district_id = C.district_id WHERE C.gender = 'M' AND D.A15 = ( SELECT DISTINCT A15 FROM district ORDER BY A15 DESC LIMIT 1 OFFSET 1 );\t----- bird -----\tfinancial",
"139": "SELECT COUNT(DISTINCT C.card_id) FROM card AS C INNER JOIN disp AS D ON C.disp_id = D.disp_id WHERE C.type = 'gold' AND D.type = 'OWNER';\t----- bird -----\tfinancial",
"140": "SELECT COUNT(T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Pisek';\t----- bird -----\tfinancial",
"141": "SELECT Select distinct districts** that meet these criteria. Here's the SQL query: ```sql SELECT DISTINCT d.A2 AS district_name FROM trans t INNER JOIN account a ON t.account_id = a.account_id INNER JOIN district d ON a.district_id = d.district_id WHERE t.amount > 10000 AND STRFTIME('%Y\t----- bird -----\tfinancial",
"142": "SELECT o.account_id FROM `order` o JOIN account a ON o.account_id = a.account_id JOIN district d ON a.district_id = d.district_id WHERE o.k_symbol = 'SIPO' AND d.A2 = 'Pisek';\t----- bird -----\tfinancial",
"143": "SELECT DISTINCT A.account_id FROM card AS C INNER JOIN disp AS D ON C.disp_id = D.disp_id INNER JOIN account AS A ON D.account_id = A.account_id WHERE C.type = 'gold';\t----- bird -----\tfinancial",
"144": "SELECT AVG(monthly_amount) AS average_monthly_amount FROM ( SELECT STRFTIME('%Y-%m', date) AS month, SUM(amount) AS monthly_amount FROM trans WHERE operation = 'VYBER KARTOU' AND STRFTIME('%Y', date) = '2021' GROUP BY month ) AS monthly_totals;\t----- bird -----\tfinancial",
"145": "SELECT DISTINCT d.client_id FROM trans t INNER JOIN account a ON t.account_id = a.account_id INNER JOIN disp d ON a.account_id = d.account_id WHERE t.operation = 'VYBER KARTOU' AND YEAR(t.date) = 1998 AND t.amount < ( SELECT AVG(t2.amount) FROM trans t2 WHERE t2.operation = 'VYBER KARTOU' AND YEAR(t2.date) = 1998 );\t----- bird -----\tfinancial",
"146": "SELECT DISTINCT c.client_id FROM client AS c INNER JOIN disp AS d ON c.client_id = d.client_id INNER JOIN card AS cr ON d.disp_id = cr.disp_id INNER JOIN loan AS l ON d.account_id = l.account_id WHERE c.gender = 'F';\t----- bird -----\tfinancial",
"147": "SELECT COUNT(DISTINCT T1.account_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id INNER JOIN district AS T4 ON T1.district_id = T4.district_id WHERE T3.gender = 'F' AND T4.A3 = 'South Bohemia';\t----- bird -----\tfinancial",
"148": "SELECT DISTINCT a.account_id FROM account AS a INNER JOIN district AS d ON a.district_id = d.district_id INNER JOIN disp AS dp ON a.account_id = dp.account_id WHERE d.A2 = 'Tabor' AND dp.type = 'OWNER';\t----- bird -----\tfinancial",
"149": "SELECT DISTINCT d.type FROM disp d JOIN account a ON d.account_id = a.account_id JOIN district dist ON a.district_id = dist.district_id WHERE d.type <> 'OWNER' AND dist.A11 > 8000 AND dist.A11 <= 9000;\t----- bird -----\tfinancial",
"150": "SELECT COUNT(DISTINCT T1.account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T1.account_id = T3.account_id WHERE T2.A3 = 'North Bohemia' AND T3.bank = 'AB';\t----- bird -----\tfinancial",
"151": "SELECT DISTINCT D.A2 AS district_name FROM district AS D INNER JOIN account AS A ON D.district_id = A.district_id INNER JOIN trans AS T ON A.account_id = T.account_id WHERE T.type = 'VYDAJ';\t----- bird -----\tfinancial",
"152": "SELECT AVG(d.A15) AS average_crimes_1995 FROM district d JOIN account a ON d.district_id = a.district_id WHERE d.A15 > 4000 AND a.date >= '1997-01-01';\t----- bird -----\tfinancial",
"153": "SELECT COUNT(DISTINCT T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id WHERE T1.type = 'classic' AND T2.type = 'OWNER';\t----- bird -----\tfinancial",
"154": "SELECT COUNT(C.client_id) FROM client AS C INNER JOIN district AS D ON C.district_id = D.district_id WHERE C.gender = 'M' AND D.A2 = 'Hl.m. Praha';\t----- bird -----\tfinancial",
"155": "SELECT CAST(SUM(CASE WHEN type = 'Gold' AND issued < '1998-01-01' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS percentage_of_gold_cards FROM card;\t----- bird -----\tfinancial",
"156": "SELECT c.client_id, c.gender, c.birth_date FROM loan l JOIN account a ON l.account_id = a.account_id JOIN disp d ON a.account_id = d.account_id JOIN client c ON d.client_id = c.client_id WHERE l.amount = (SELECT MAX(amount) FROM loan);\t----- bird -----\tfinancial",
"157": "SELECT D.A15 AS crimes_1995 FROM account AS A INNER JOIN district AS D ON A.district_id = D.district_id WHERE A.account_id = 532;\t----- bird -----\tfinancial",
"158": "SELECT A.district_id FROM `order` AS O INNER JOIN account AS A ON O.account_id = A.account_id WHERE O.order_id = 33333;\t----- bird -----\tfinancial",
"159": "SELECT T3.trans_id, T3.date, T3.amount, T3.balance FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T1.client_id = 3356 AND T3.operation = 'VYBER';\t----- bird -----\tfinancial",
"160": "SELECT COUNT(DISTINCT a.account_id) FROM account a JOIN loan l ON a.account_id = l.account_id WHERE a.frequency = 'POPLATEK TYDNE' AND l.amount < 200000;\t----- bird -----\tfinancial",
"161": "SELECT T3.type FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T1.client_id = 13539;\t----- bird -----\tfinancial",
"162": "SELECT T2.A3 AS Region FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.client_id = 3541;\t----- bird -----\tfinancial",
"163": "SELECT D.district_id FROM district AS D INNER JOIN client AS C ON D.district_id = C.district_id INNER JOIN disp AS DP ON C.client_id = DP.client_id INNER JOIN account AS A ON DP.account_id = A.account_id INNER JOIN loan AS L ON A.account_id = L.account_id WHERE L.status = 'A' GROUP BY D.district_id ORDER BY COUNT(DISTINCT A.account_id) DESC LIMIT 1;\t----- bird -----\tfinancial",
"164": "SELECT T4.client_id, T4.gender, T4.birth_date FROM `order` AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id INNER JOIN client AS T4 ON T3.client_id = T4.client_id WHERE T1.order_id = 32423;\t----- bird -----\tfinancial",
"165": "SELECT T1.trans_id, T1.account_id, T1.date, T1.type, T1.operation, T1.amount, T1.balance, T1.k_symbol, T1.bank, T1.account FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T3.district_id = 5;\t----- bird -----\tfinancial",
"166": "SELECT COUNT(*) FROM account AS a INNER JOIN district AS d ON a.district_id = d.district_id WHERE d.A2 = 'Jesenik';\t----- bird -----\tfinancial",
"167": "SELECT DISTINCT C.client_id FROM card AS C INNER JOIN disp AS D ON C.disp_id = D.disp_id INNER JOIN client AS CL ON D.client_id = CL.client_id WHERE C.type = 'junior' AND C.issued >= '1997-01-01';\t----- bird -----\tfinancial",
"168": "SELECT CAST(COUNT(CASE WHEN C.gender = 'F' THEN 1 END) AS REAL) * 100 / COUNT(C.client_id) AS percentage_of_female_clients FROM client AS C INNER JOIN account AS A ON C.district_id = A.district_id INNER JOIN district AS D ON A.district_id = D.district_id WHERE D.A11 > 10000;\t----- bird -----\tfinancial",
"169": "SELECT (SUM(CASE WHEN strftime('%Y', L.date) = '1997' THEN L.amount ELSE 0 END) - SUM(CASE WHEN strftime('%Y', L.date) = '1996' THEN L.amount ELSE 0 END)) * 100.0 / SUM(CASE WHEN strftime('%Y', L.date) = '1996' THEN L.amount ELSE 0 END) AS growth_rate FROM loan AS L INNER JOIN account AS A ON L.account_id = A.account_id INNER JOIN disp AS D ON A.account_id =\t----- bird -----\tfinancial",
"170": "SELECT COUNT(*) FROM trans WHERE operation = 'VYBER KARTOU' AND date > '1995-12-31';\t----- bird -----\tfinancial",
"171": "SELECT (SELECT A16 FROM district WHERE A3 = 'North Bohemia' AND A2 = '1996') - (SELECT A16 FROM district WHERE A3 = 'East Bohemia' AND A2 = '1996') AS crime_difference\t----- bird -----\tfinancial",
"172": "SELECT type, COUNT(*) AS count FROM disp WHERE account_id BETWEEN 1 AND 10 GROUP BY type;\t----- bird -----\tfinancial",
"173": "SELECT frequency FROM account WHERE account_id = 3; -- Query to find the purpose of debiting a total of 3539 SELECT k_symbol FROM trans WHERE account_id = 3 AND amount = 3539 AND type = 'debit'; ``` Explanation: - The first query retrieves the `frequency` from the `account` table for `account_id = 3`, which tells\t----- bird -----\tfinancial",
"174": "SELECT EXTRACT(YEAR FROM C.birth_date) AS birth_year FROM disp AS D INNER JOIN client AS C ON D.client_id = C.client_id WHERE D.account_id = 130;\t----- bird -----\tfinancial",
"175": "SELECT COUNT(DISTINCT A.account_id) FROM account AS A INNER JOIN disp AS D ON A.account_id = D.account_id WHERE D.type = 'OWNER' AND A.frequency = 'POPLATEK PO OBRATU';\t----- bird -----\tfinancial",
"176": "SELECT d.account_id FROM disp d WHERE d.client_id = 992 ), -- Step 2: Find loans and their statuses for these accounts client_loans AS ( SELECT l.loan_id,\t----- bird -----\tfinancial",
"177": "SELECT T1.balance AS AccountBalanceAfterTransaction, T5.gender AS AccountOwnerGender FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T3 ON T2.account_id = T3.account_id INNER JOIN client AS T5 ON T3.client_id = T5.client_id WHERE T1.trans_id\t----- bird -----\tfinancial",
"178": "SELECT card.type FROM client INNER JOIN disp ON client.client_id = disp.client_id INNER JOIN card ON disp.disp_id = card.disp_id WHERE client.client_id = 9;\t----- bird -----\tfinancial",
"179": "SELECT SUM(t.amount) AS total_paid FROM client c INNER JOIN disp d ON c.client_id = d.client_id INNER JOIN account a ON d.account_id = a.account_id INNER JOIN trans t ON a.account_id = t.account\t----- bird -----\tfinancial",
"180": "SELECT C.client_id, C.gender, C.birth_date FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN account AS A ON D.account_id = A.account_id INNER JOIN district AS DI ON A.district_id = DI.district_id WHERE C.birth_date BETWEEN '1983-01-01' AND '1987-12-31' AND DI.A2 = 'East Bohemia';\t----- bird -----\tfinancial",
"181": "SELECT c.client_id FROM client AS c INNER JOIN disp AS d ON c.client_id = d.client_id INNER JOIN loan AS l ON d.account_id = l.account_id WHERE c.gender = 'F' ORDER BY l.amount DESC LIMIT 3;\t----- bird -----\tfinancial",
"182": "SELECT COUNT(DISTINCT c.client_id) AS male_customers_count FROM client c JOIN disp d ON c.client_id = d.client_id JOIN account a ON d.account_id = a.account_id JOIN trans t ON a.account_id = t.account_id WHERE c.gender = 'M' AND strftime('%Y', c.birth_date) BETWEEN '1974' AND '1976' AND t.amount > 4000 AND t.k_symbol = 'SIPO';\t----- bird -----\tfinancial",
"183": "SELECT COUNT(a.account_id) FROM account AS a INNER JOIN district AS d ON a.district_id = d.district_id WHERE d.A2 = 'Beroun' AND a.date > '1996-12-31';\t----- bird -----\tfinancial",
"184": "SELECT COUNT(DISTINCT C.client_id) FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN card AS CA ON D.disp_id = CA.disp_id WHERE C.gender = 'F' AND CA.type = 'junior credit card';\t----- bird -----\tfinancial",
"185": "SELECT CAST(SUM(CASE WHEN C.gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS female_percentage FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN account AS A ON D.account_id = A.account_id INNER JOIN district AS DI ON A.district_id = DI.district_id WHERE DI.A3 = 'Prague';\t----- bird -----\tfinancial",
"186": "SELECT CAST(SUM(CASE WHEN C.gender = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(D.disp_id) AS percentage FROM disp AS D INNER JOIN client AS C ON D.client_id = C.client_id INNER JOIN account AS A ON D.account_id = A.account_id WHERE A.frequency = 'POPLATEK TYDNE';\t----- bird -----\tfinancial",
"187": "SELECT COUNT(DISTINCT T3.client_id) FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id INNER JOIN client AS T3 ON T2.client_id = T3.client_id WHERE T1.frequency = 'POPLATEK TYDNE' AND T2.type = 'Owner';\t----- bird -----\tfinancial",
"188": "SELECT a.account_id FROM account a JOIN loan l ON a.account_id = l.account_id WHERE l.duration > 24 AND a.date < '1997-01-01' AND l.status = 'approved' ORDER BY l.amount ASC LIMIT 1;\t----- bird -----\tfinancial",
"189": "SELECT DISTINCT a.account_id FROM client c JOIN disp d ON c.client_id = d.client_id JOIN account a\t----- bird -----\tfinancial",
"190": "SELECT COUNT(DISTINCT C.client_id) FROM client AS C INNER JOIN district AS D ON C.district_id = D.district_id WHERE strftime('%Y', C.birth_date) = '1920' AND D.A3 = 'East Bohemia';\t----- bird -----\tfinancial",
"191": "SELECT COUNT(DISTINCT loan.account_id) FROM loan INNER JOIN account ON loan.account_id = account.account_id WHERE loan.duration = 24 AND loan.status = 'A' -- Assuming 'A' refers to pre-payment status AND account.frequency = 'POPLATEK TYDNE';\t----- bird -----\tfinancial",
"192": "SELECT AVG(l.amount) AS average_loan_amount FROM loan l JOIN trans t ON l.account_id = t.account_id WHERE l.status IN ('C', 'D') AND t.k_symbol = 'POPLATEK PO OBRATU';\t----- bird -----\tfinancial",
"193": "SELECT C.client_id, D.A2 AS district FROM client AS C INNER JOIN disp AS Dp ON C.client_id = Dp.client_id INNER JOIN account AS A ON Dp.account_id = A.account_id INNER JOIN district AS D ON C.district_id = D.district_id WHERE Dp.type = 'OWNER';\t----- bird -----\tfinancial",
"194": "SELECT C.client_id, (STRFTIME('%Y', 'now') - STRFTIME('%Y', C.birth_date)) AS age FROM client AS C INNER JOIN disp AS D ON C.client_id = D.client_id INNER JOIN card AS CR ON D.disp_id = CR.disp_id WHERE CR.type = 'gold' AND D.type = 'OWNER';\t----- bird -----\tfinancial"
}