HideIron commited on
Commit
871cbf6
·
verified ·
1 Parent(s): 671e81e

student run gate

Browse files
runs/bcoreplay-gate/results.jsonl ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"qid": "gate_0000", "split": "gate", "db_id": "hr_1", "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.", "gold_sql": "SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)", "raw_output": "SELECT T1.first_name , T1.last_name , T2.department_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id ORDER BY T2.salary LIMIT 1;", "status": "sql_error", "error_message": "no such column: T2.salary", "pred_rows": null, "gold_rows": 26, "prompt_tokens": 1164, "new_tokens": 55}
2
+ {"qid": "gate_0001", "split": "gate", "db_id": "culture_company", "question": "Show publishers with a book published in 1989 and a book in 1990.", "gold_sql": "SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990", "raw_output": "SELECT DISTINCT publisher FROM book_club WHERE YEAR = 1989 OR YEAR = 1990;", "status": "wrong_result", "error_message": "", "pred_rows": 8, "gold_rows": 2, "prompt_tokens": 628, "new_tokens": 22}
3
+ {"qid": "gate_0002", "split": "gate", "db_id": "insurance_fnol", "question": "Find the phone numbers of customers using the most common policy type among the available policies.", "gold_sql": "SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)", "raw_output": "SELECT T1.Customer_Phone FROM Available_Policies AS T1 JOIN Customers_Policies AS T2 ON T1.Policy_ID = T2.Policy_ID GROUP BY T1.Policy_ID ORDER BY COUNT(*) DESC LIMIT 1;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 5, "prompt_tokens": 802, "new_tokens": 54}
4
+ {"qid": "gate_0003", "split": "gate", "db_id": "student_1", "question": "Count the number of students the teacher LORIA ONDERSMA teaches.", "gold_sql": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"LORIA\" AND T2.lastname = \"ONDERSMA\"", "raw_output": "SELECT count(*) FROM list WHERE classroom IN (SELECT classroom FROM teachers WHERE firstName = 'LORIA' AND lastName = 'ONDERSMA');", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 517, "new_tokens": 33}
5
+ {"qid": "gate_0004", "split": "gate", "db_id": "cre_Doc_Control_Systems", "question": "What address was the document with id 4 mailed to?", "gold_sql": "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;", "raw_output": "SELECT DISTINCT t1.address_details FROM Documents AS t1 JOIN Documents_Mailed AS t2 ON t1.document_id = t2.document_id WHERE t1.document_id = 4;", "status": "sql_error", "error_message": "no such column: t1.address_details", "pred_rows": null, "gold_rows": 2, "prompt_tokens": 1081, "new_tokens": 39}
6
+ {"qid": "gate_0005", "split": "gate", "db_id": "game_1", "question": "How many different types of sports do we offer?", "gold_sql": "SELECT count(DISTINCT sportname) FROM Sportsinfo", "raw_output": "SELECT count(DISTINCT gtype) FROM Sportsinfo;", "status": "sql_error", "error_message": "no such column: gtype", "pred_rows": null, "gold_rows": 1, "prompt_tokens": 628, "new_tokens": 15}
7
+ {"qid": "gate_0006", "split": "gate", "db_id": "insurance_fnol", "question": "Which customer uses the most policies? Give me the customer name.", "gold_sql": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT c.Customer_name\nFROM Customers AS c\nJOIN Customers_Policies AS cp ON c.Customer_ID = cp.Customer_ID\nGROUP BY c.Customer_ID, c.Customer_name\nORDER BY COUNT(*) DESC\nLIMIT 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 798, "new_tokens": 54}
8
+ {"qid": "gate_0007", "split": "gate", "db_id": "twitter_1", "question": "What is the partition id of the user named \"Iron Man\".", "gold_sql": "SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'", "raw_output": "SELECT partitionid FROM user_profiles WHERE name = \"Iron Man\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 635, "new_tokens": 16}
9
+ {"qid": "gate_0008", "split": "gate", "db_id": "school_bus", "question": "Show the school name and type for schools without a school bus.", "gold_sql": "SELECT school , TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)", "raw_output": "SELECT school.school, school.type FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus);", "status": "correct", "error_message": "", "pred_rows": 2, "gold_rows": 2, "prompt_tokens": 576, "new_tokens": 25}
10
+ {"qid": "gate_0009", "split": "gate", "db_id": "race_track", "question": "What are the names, classes, and dates for all races?", "gold_sql": "SELECT name , CLASS , date FROM race", "raw_output": "SELECT Name, Class, Date FROM race;", "status": "correct", "error_message": "", "pred_rows": 7, "gold_rows": 7, "prompt_tokens": 518, "new_tokens": 11}
11
+ {"qid": "gate_0010", "split": "gate", "db_id": "club_1", "question": "Tell me the location of the club \"Hopkins Student Enterprises\".", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 578, "new_tokens": 17}
12
+ {"qid": "gate_0011", "split": "gate", "db_id": "party_people", "question": "Return the minister who left office at the latest time.", "gold_sql": "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1", "raw_output": "SELECT Minister FROM party WHERE Left_office = (SELECT MAX(Left_office) FROM party);", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 664, "new_tokens": 22}
13
+ {"qid": "gate_0012", "split": "gate", "db_id": "candidate_poll", "question": "Find the name of the candidates whose oppose percentage is the lowest for each sex.", "gold_sql": "SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex", "raw_output": "SELECT T2.Name FROM candidate AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID GROUP BY T2.Sex ORDER BY T2.Sex, T1.Opose_rate ASC LIMIT 1;", "status": "sql_error", "error_message": "no such column: T1.Opose_rate", "pred_rows": null, "gold_rows": 2, "prompt_tokens": 547, "new_tokens": 53}
14
+ {"qid": "gate_0013", "split": "gate", "db_id": "manufactory_1", "question": "How many products are there for each manufacturer?", "gold_sql": "SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "raw_output": "SELECT count(*) , name FROM products GROUP BY manufacturer;", "status": "wrong_result", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 516, "new_tokens": 14}
15
+ {"qid": "gate_0014", "split": "gate", "db_id": "race_track", "question": "Give the names of tracks that do not have a race in the class 'GT'.", "gold_sql": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'", "raw_output": "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class != 'GT';", "status": "wrong_result", "error_message": "", "pred_rows": 5, "gold_rows": 7, "prompt_tokens": 522, "new_tokens": 34}
16
+ {"qid": "gate_0015", "split": "gate", "db_id": "game_1", "question": "What are the average, minimum, and max ages for each of the different majors?", "gold_sql": "SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major", "raw_output": "SELECT Major, AVG(Age) , MIN(Age) , MAX(Age) FROM Student GROUP BY Major;", "status": "correct", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 635, "new_tokens": 25}
17
+ {"qid": "gate_0016", "split": "gate", "db_id": "soccer_1", "question": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?", "gold_sql": "SELECT preferred_foot , count(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot", "raw_output": "SELECT count(*) FROM Player WHERE overall_rating > 80 AND preferred_foot IN ('Right', 'Left');", "status": "sql_error", "error_message": "no such column: overall_rating", "pred_rows": null, "gold_rows": 2, "prompt_tokens": 1528, "new_tokens": 24}
18
+ {"qid": "gate_0017", "split": "gate", "db_id": "party_people", "question": "Who are the ministers and what parties do they belong to, listed descending by the times they took office?", "gold_sql": "SELECT minister , party_name FROM party ORDER BY took_office DESC", "raw_output": "SELECT Minister, Party_name FROM party ORDER BY Took_office DESC;", "status": "correct", "error_message": "", "pred_rows": 5, "gold_rows": 5, "prompt_tokens": 674, "new_tokens": 17}
19
+ {"qid": "gate_0018", "split": "gate", "db_id": "product_catalog", "question": "Find the entry names of the catalog with the attribute that have the most entries.", "gold_sql": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)", "raw_output": "SELECT t3.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id JOIN Catalog_Structure AS t3 ON t1.catalog_level_number = t3.catalog_level_number GROUP BY t3.catalog_entry_name ORDER BY count(*) DESC LIMIT 1;", "status": "sql_error", "error_message": "no such column: t3.catalog_entry_name", "pred_rows": null, "gold_rows": 8, "prompt_tokens": 823, "new_tokens": 84}
20
+ {"qid": "gate_0019", "split": "gate", "db_id": "formula_1", "question": "What is the first and last name of all the German drivers?", "gold_sql": "SELECT forename , surname FROM drivers WHERE nationality = \"German\"", "raw_output": "SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T1.nationality = 'Germany' UNION SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T2.nationality = 'Germany';", "status": "wrong_result", "error_message": "", "pred_rows": 0, "gold_rows": 49, "prompt_tokens": 1495, "new_tokens": 100}
21
+ {"qid": "gate_0020", "split": "gate", "db_id": "store_product", "question": "What city is the headquarter of the store Blackville?", "gold_sql": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = \"Blackville\"", "raw_output": "SELECT \"Headquartered_City\" FROM district WHERE \"District_name\" = 'Blackville';", "status": "wrong_result", "error_message": "", "pred_rows": 0, "gold_rows": 1, "prompt_tokens": 701, "new_tokens": 22}
22
+ {"qid": "gate_0021", "split": "gate", "db_id": "medicine_enzyme_interaction", "question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.", "gold_sql": "SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC", "raw_output": "SELECT medicine_id, name, FDA_approved FROM medicine ORDER BY COUNT(*) DESC;", "status": "sql_error", "error_message": "no such column: medicine_id", "pred_rows": null, "gold_rows": 13, "prompt_tokens": 593, "new_tokens": 19}
23
+ {"qid": "gate_0022", "split": "gate", "db_id": "candidate_poll", "question": "Find the average and minimum weight for each gender.", "gold_sql": "SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex", "raw_output": "SELECT people.Sex , AVG( people.Weight) , MIN( people.Weight) FROM people GROUP BY people.Sex;", "status": "wrong_result", "error_message": "", "pred_rows": 2, "gold_rows": 2, "prompt_tokens": 541, "new_tokens": 31}
24
+ {"qid": "gate_0023", "split": "gate", "db_id": "inn_1", "question": "What are the name of rooms booked by customers whose first name has \"ROY\" in part?", "gold_sql": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%'", "raw_output": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.FirstName LIKE \"%ROY%\";", "status": "correct", "error_message": "", "pred_rows": 7, "gold_rows": 7, "prompt_tokens": 589, "new_tokens": 40}
25
+ {"qid": "gate_0024", "split": "gate", "db_id": "perpetrator", "question": "What is the total kills of the perpetrators with height more than 1.84.", "gold_sql": "SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84", "raw_output": "SELECT sum(Killed) FROM perpetrator WHERE Height > 1.84;", "status": "sql_error", "error_message": "no such column: Height", "pred_rows": null, "gold_rows": 1, "prompt_tokens": 541, "new_tokens": 19}
26
+ {"qid": "gate_0025", "split": "gate", "db_id": "inn_1", "question": "Find the number of rooms for each bed type.", "gold_sql": "SELECT bedType , count(*) FROM Rooms GROUP BY bedType;", "raw_output": "SELECT bedType, count(*) FROM Rooms GROUP BY bedType;", "status": "correct", "error_message": "", "pred_rows": 3, "gold_rows": 3, "prompt_tokens": 579, "new_tokens": 15}
27
+ {"qid": "gate_0026", "split": "gate", "db_id": "formula_1", "question": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "gold_sql": "SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "raw_output": "SELECT avg(T1.fastestlapSpeed) , T2.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T1.year > 2004 GROUP BY T2.name ORDER BY T2.year;", "status": "sql_error", "error_message": "no such column: T1.fastestlapSpeed", "pred_rows": null, "gold_rows": 22, "prompt_tokens": 1505, "new_tokens": 60}
28
+ {"qid": "gate_0027", "split": "gate", "db_id": "formula_1", "question": "Find the distinct names of all races held between 2014 and 2017?", "gold_sql": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017", "raw_output": "SELECT DISTINCT name FROM races WHERE year BETWEEN 2014 AND 2017;", "status": "correct", "error_message": "", "pred_rows": 22, "gold_rows": 22, "prompt_tokens": 1499, "new_tokens": 21}
29
+ {"qid": "gate_0028", "split": "gate", "db_id": "insurance_fnol", "question": "Find the maximum and minimum settlement amount.", "gold_sql": "SELECT max(settlement_amount) , min(settlement_amount) FROM settlements", "raw_output": "SELECT MAX(Settlement_Amount) AS max_settlement, MIN(Settlement_Amount) AS min_settlement FROM Settlements;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 793, "new_tokens": 32}
30
+ {"qid": "gate_0029", "split": "gate", "db_id": "hr_1", "question": "What are the department names, cities, and state provinces for each department?", "gold_sql": "SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id", "raw_output": "SELECT D.DEPARTMENT_NAME, L.CITY, L.STATEProvidence FROM departments AS D JOIN locations AS L ON D.LOCATION_ID = L.LOCATION_ID;", "status": "sql_error", "error_message": "no such column: L.STATEProvidence", "pred_rows": null, "gold_rows": 27, "prompt_tokens": 1149, "new_tokens": 40}
31
+ {"qid": "gate_0030", "split": "gate", "db_id": "product_catalog", "question": "Name all the products with next entry ID greater than 8.", "gold_sql": "SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8", "raw_output": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number WHERE t1.next_entry_id > 8;", "status": "correct", "error_message": "", "pred_rows": 3, "gold_rows": 3, "prompt_tokens": 820, "new_tokens": 51}
32
+ {"qid": "gate_0031", "split": "gate", "db_id": "inn_1", "question": "How many king beds are there?", "gold_sql": "SELECT sum(beds) FROM Rooms WHERE bedtype = 'King';", "raw_output": "SELECT count(*) FROM Rooms WHERE bedType = 'King';", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 576, "new_tokens": 14}
33
+ {"qid": "gate_0032", "split": "gate", "db_id": "club_1", "question": "How many students are there?", "gold_sql": "SELECT count(*) FROM student", "raw_output": "SELECT count(*) FROM Student;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 571, "new_tokens": 8}
34
+ {"qid": "gate_0033", "split": "gate", "db_id": "tracking_orders", "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "gold_sql": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "raw_output": "SELECT DISTINCT invoice_details FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25';", "status": "correct", "error_message": "", "pred_rows": 8, "gold_rows": 8, "prompt_tokens": 880, "new_tokens": 34}
35
+ {"qid": "gate_0034", "split": "gate", "db_id": "student_1", "question": "Find the number of students in total.", "gold_sql": "SELECT count(*) FROM list", "raw_output": "SELECT count(*) FROM list;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 509, "new_tokens": 8}
36
+ {"qid": "gate_0035", "split": "gate", "db_id": "behavior_monitoring", "question": "Find all information about student addresses, and sort by monthly rental in descending order.", "gold_sql": "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC", "raw_output": "SELECT * FROM Students_in_Detention AS A INNER JOIN Detention AS B ON A.detention_id = B.detention_id INNER JOIN Students AS C ON A.student_id = C.student_id INNER JOIN Addresses AS D ON C.address_id = D.address_id ORDER BY D.monthly_rental DESC;", "status": "sql_error", "error_message": "no such column: D.monthly_rental", "pred_rows": null, "gold_rows": 20, "prompt_tokens": 1390, "new_tokens": 67}
37
+ {"qid": "gate_0036", "split": "gate", "db_id": "cre_Doc_Control_Systems", "question": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.", "gold_sql": "SELECT document_id , count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id;", "raw_output": "SELECT Documents.document_id, COUNT(Circulation_History.employee_id) AS employee_count\nFROM Documents\nJOIN Circulation_History ON Documents.document_id = Circulation_History.document_id\nGROUP BY Documents.document_id;", "status": "correct", "error_message": "", "pred_rows": 4, "gold_rows": 4, "prompt_tokens": 1099, "new_tokens": 47}
38
+ {"qid": "gate_0037", "split": "gate", "db_id": "customers_and_addresses", "question": "Return the channel code and contact number of the customer contact channel whose active duration was the longest.", "gold_sql": "SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)", "raw_output": "SELECT channel_code, contact_number FROM Customer_Contact_Channels ORDER BY active_to_date - active_from_date DESC LIMIT 1;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 17, "prompt_tokens": 899, "new_tokens": 28}
39
+ {"qid": "gate_0038", "split": "gate", "db_id": "formula_1", "question": "What are the unique names of races that held after 2000 and the circuits were in Spain?", "gold_sql": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000", "raw_output": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = 'Spain' AND T1.year > 2000;", "status": "correct", "error_message": "", "pred_rows": 2, "gold_rows": 2, "prompt_tokens": 1502, "new_tokens": 47}
40
+ {"qid": "gate_0039", "split": "gate", "db_id": "tracking_share_transactions", "question": "Show the average amount of transactions for different lots, ordered by average amount of transactions.", "gold_sql": "SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)", "raw_output": "SELECT lot_details , avg(amount_of_transaction) FROM lots GROUP BY lot_details ORDER BY avg(amount_of_transaction);", "status": "sql_error", "error_message": "no such column: amount_of_transaction", "pred_rows": null, "gold_rows": 9, "prompt_tokens": 816, "new_tokens": 25}
41
+ {"qid": "gate_0040", "split": "gate", "db_id": "game_1", "question": "What are the first names for all students who are from the major numbered 600?", "gold_sql": "SELECT Fname FROM Student WHERE Major = 600", "raw_output": "SELECT DISTINCT T1.Fname FROM Student AS T1 JOIN Major AS T2 ON T1.Major = T2.Major WHERE T2.Major = 600;", "status": "sql_error", "error_message": "no such table: Major", "pred_rows": null, "gold_rows": 18, "prompt_tokens": 635, "new_tokens": 43}
42
+ {"qid": "gate_0041", "split": "gate", "db_id": "customers_card_transactions", "question": "What are the ids and first names of customers who do not hold a credit card?", "gold_sql": "SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"", "raw_output": "SELECT T1.customer_id , T2.customer_first_name FROM Customers AS T1 JOIN Customers_Cards AS T2 ON T1.customer_id = T2.customer_id WHERE T2.card_id = NULL;", "status": "sql_error", "error_message": "no such column: T2.customer_first_name", "pred_rows": null, "gold_rows": 9, "prompt_tokens": 740, "new_tokens": 52}
43
+ {"qid": "gate_0042", "split": "gate", "db_id": "ship_1", "question": "List all ship names in the order of built year and class.", "gold_sql": "SELECT name FROM ship ORDER BY built_year , CLASS", "raw_output": "SELECT Name FROM Ship ORDER BY Built_Year, Class;", "status": "correct", "error_message": "", "pred_rows": 9, "gold_rows": 9, "prompt_tokens": 529, "new_tokens": 14}
44
+ {"qid": "gate_0043", "split": "gate", "db_id": "behavior_monitoring", "question": "Find the id and city of the student address with the highest average monthly rental.", "gold_sql": "SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "raw_output": "SELECT T1.address_id , T2.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1;", "status": "sql_error", "error_message": "no such column: T2.city", "pred_rows": null, "gold_rows": 1, "prompt_tokens": 1390, "new_tokens": 55}
45
+ {"qid": "gate_0044", "split": "gate", "db_id": "hr_1", "question": "What the full names, ids of each employee and the name of the country they are in?", "gold_sql": "SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "raw_output": "SELECT first_name , last_name , employee_id , country_name FROM employees AS T1 JOIN countries AS T2 ON T1.country_id = T2.country_id;", "status": "sql_error", "error_message": "no such column: T1.country_id", "pred_rows": null, "gold_rows": 72, "prompt_tokens": 1153, "new_tokens": 37}
46
+ {"qid": "gate_0045", "split": "gate", "db_id": "student_1", "question": "Which teachers teach in classroom 110? Give me their first names.", "gold_sql": "SELECT firstname FROM teachers WHERE classroom = 110", "raw_output": "SELECT DISTINCT T1.FirstName FROM teachers AS T1 JOIN list AS T2 ON T1.Classroom = T2.Classroom WHERE T1.Classroom = 110;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 515, "new_tokens": 37}
47
+ {"qid": "gate_0046", "split": "gate", "db_id": "university_basketball", "question": "How many universities have a location that contains NY?", "gold_sql": "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"", "raw_output": "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 596, "new_tokens": 15}
48
+ {"qid": "gate_0047", "split": "gate", "db_id": "customers_and_addresses", "question": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?", "gold_sql": "SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "raw_output": "SELECT t3.active_to_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id JOIN customer_contact_channels AS t3 ON t2.channel_code = t3.channel_code WHERE t1.customer_name = \"Tillman Ernser\" ORDER BY t3.active_to_date DESC LIMIT 1;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 902, "new_tokens": 84}
49
+ {"qid": "gate_0048", "split": "gate", "db_id": "university_basketball", "question": "Count the number of different affiliation types.", "gold_sql": "SELECT count(DISTINCT affiliation) FROM university", "raw_output": "SELECT count(DISTINCT affiliation) FROM university;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 594, "new_tokens": 12}
50
+ {"qid": "gate_0049", "split": "gate", "db_id": "customers_card_transactions", "question": "Give the full name and customer id of the customer with the fewest accounts.", "gold_sql": "SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "raw_output": "SELECT T1.customer_first_name , T1.customer_last_name , T2.customer_id FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 739, "new_tokens": 62}
51
+ {"qid": "gate_0050", "split": "gate", "db_id": "insurance_policies", "question": "Count the total number of settlements made.", "gold_sql": "SELECT count(*) FROM Settlements", "raw_output": "SELECT COUNT(*) FROM Settlements;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 726, "new_tokens": 9}
52
+ {"qid": "gate_0051", "split": "gate", "db_id": "medicine_enzyme_interaction", "question": "What are the names of enzymes that include the string 'ALA'?", "gold_sql": "SELECT name FROM enzyme WHERE name LIKE \"%ALA%\"", "raw_output": "SELECT name FROM enzyme WHERE name LIKE '%ALA%';", "status": "correct", "error_message": "", "pred_rows": 2, "gold_rows": 2, "prompt_tokens": 580, "new_tokens": 13}
53
+ {"qid": "gate_0052", "split": "gate", "db_id": "student_1", "question": "Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.", "gold_sql": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"", "raw_output": "SELECT T1.LastName FROM list AS T1 JOIN teachers AS T2 ON T1.Grade = T2.Grade WHERE T2.FirstName = \"COVIN\" AND T2.LastName = \"JEROME\" AND T1.Grade = 3;", "status": "sql_error", "error_message": "no such column: T2.Grade", "pred_rows": null, "gold_rows": 6, "prompt_tokens": 527, "new_tokens": 58}
54
+ {"qid": "gate_0053", "split": "gate", "db_id": "tracking_share_transactions", "question": "What are the details of all sales and purchases?", "gold_sql": "SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases", "raw_output": "SELECT * FROM Sales UNION SELECT * FROM Purchases;", "status": "wrong_result", "error_message": "", "pred_rows": 29, "gold_rows": 16, "prompt_tokens": 809, "new_tokens": 14}
55
+ {"qid": "gate_0054", "split": "gate", "db_id": "inn_1", "question": "What is the decor of room Recluse and defiance?", "gold_sql": "SELECT decor FROM Rooms WHERE roomName = \"Recluse and defiance\";", "raw_output": "SELECT decor FROM Rooms WHERE roomName = 'Recluse and defiance';", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 580, "new_tokens": 16}
56
+ {"qid": "gate_0055", "split": "gate", "db_id": "inn_1", "question": "Find the name of rooms whose price is higher than the average price.", "gold_sql": "SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms );", "raw_output": "SELECT roomName FROM Rooms WHERE basePrice > (SELECT avg(basePrice) FROM Rooms);", "status": "correct", "error_message": "", "pred_rows": 4, "gold_rows": 4, "prompt_tokens": 583, "new_tokens": 20}
57
+ {"qid": "gate_0056", "split": "gate", "db_id": "small_bank_1", "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "gold_sql": "SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC", "raw_output": "SELECT T1.name, T2.balance, T3.balance\nFROM accounts AS T1\nJOIN checking AS T2 ON T1.custid = T2.custid\nJOIN savings AS T3 ON T1.custid = T3.custid\nORDER BY T2.balance + T3.balance DESC;", "status": "wrong_result", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 553, "new_tokens": 78}
58
+ {"qid": "gate_0057", "split": "gate", "db_id": "tracking_orders", "question": "List the ids of all distinct orders ordered by placed date.", "gold_sql": "SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed", "raw_output": "SELECT DISTINCT order_id FROM Orders ORDER BY date_order_placed;", "status": "correct", "error_message": "", "pred_rows": 15, "gold_rows": 15, "prompt_tokens": 866, "new_tokens": 15}
59
+ {"qid": "gate_0058", "split": "gate", "db_id": "inn_1", "question": "What are the name of rooms that cost more than the average.", "gold_sql": "SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms );", "raw_output": "SELECT roomName FROM Rooms WHERE basePrice > (SELECT AVG(basePrice) FROM Rooms);", "status": "correct", "error_message": "", "pred_rows": 4, "gold_rows": 4, "prompt_tokens": 582, "new_tokens": 20}
60
+ {"qid": "gate_0059", "split": "gate", "db_id": "machine_repair", "question": "What is the team and starting year for each technician?", "gold_sql": "SELECT Team , Starting_Year FROM technician", "raw_output": "SELECT Team, Starting_Year FROM technician;", "status": "correct", "error_message": "", "pred_rows": 10, "gold_rows": 10, "prompt_tokens": 664, "new_tokens": 11}
61
+ {"qid": "gate_0060", "split": "gate", "db_id": "club_1", "question": "Find the location of the club \"Pen and Paper Gaming\".", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT clubLocation FROM club WHERE clubName = \"Pen and Paper Gaming\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 577, "new_tokens": 17}
62
+ {"qid": "gate_0061", "split": "gate", "db_id": "inn_1", "question": "How many rooms have a king bed?", "gold_sql": "SELECT count(*) FROM Rooms WHERE bedType = \"King\";", "raw_output": "SELECT count(*) FROM Rooms WHERE bedType = 'King';", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 577, "new_tokens": 14}
63
+ {"qid": "gate_0062", "split": "gate", "db_id": "race_track", "question": "Give the different locations of tracks.", "gold_sql": "SELECT DISTINCT LOCATION FROM track", "raw_output": "SELECT DISTINCT Location FROM track;", "status": "correct", "error_message": "", "pred_rows": 9, "gold_rows": 9, "prompt_tokens": 512, "new_tokens": 8}
64
+ {"qid": "gate_0063", "split": "gate", "db_id": "store_product", "question": "What is the city with the most number of flagship stores?", "gold_sql": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Headquartered_City FROM district AS T1 JOIN store_district AS T2 ON T1.District_ID = T2.District_ID GROUP BY T1.Headquartered_City ORDER BY COUNT(*) DESC LIMIT 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 701, "new_tokens": 56}
65
+ {"qid": "gate_0064", "split": "gate", "db_id": "wedding", "question": "Show the name and opening year for three churches that opened most recently.", "gold_sql": "SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3", "raw_output": "SELECT T1.Name, T1.Open_Date FROM church AS T1 JOIN (SELECT Church_ID, MAX(Open_Date) AS MaxOpenDate FROM church GROUP BY Church_ID) AS T2 ON T1.Church_ID = T2.Church_ID ORDER BY T2.MaxOpenDate DESC LIMIT 3;", "status": "correct", "error_message": "", "pred_rows": 3, "gold_rows": 3, "prompt_tokens": 604, "new_tokens": 67}
66
+ {"qid": "gate_0065", "split": "gate", "db_id": "formula_1", "question": "How many drivers did not participate in the races held in 2009?", "gold_sql": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )", "raw_output": "SELECT count(*) FROM drivers WHERE driverId NOT IN (SELECT driverId FROM results WHERE raceId IN (SELECT raceId FROM races WHERE YEAR = 2009));", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 1497, "new_tokens": 35}
67
+ {"qid": "gate_0066", "split": "gate", "db_id": "train_station", "question": "Show the station name and number of trains in each station.", "gold_sql": "SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id", "raw_output": "SELECT T2.Name, COUNT(*) FROM station AS T1 JOIN train_station AS T2 ON T1.Station_ID = T2.Station_ID GROUP BY T2.Name;", "status": "sql_error", "error_message": "no such column: T2.Name", "pred_rows": null, "gold_rows": 7, "prompt_tokens": 583, "new_tokens": 39}
68
+ {"qid": "gate_0067", "split": "gate", "db_id": "candidate_poll", "question": "What are the average height and weight across males (sex is M)?", "gold_sql": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", "raw_output": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M';", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 545, "new_tokens": 19}
69
+ {"qid": "gate_0068", "split": "gate", "db_id": "department_management", "question": "Which department has more than 1 head at a time? List the id, name and the number of heads.", "gold_sql": "SELECT T1.department_id , T1.name , count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING count(*) > 1", "raw_output": "SELECT T1.Department_ID , T1.Name , count(*) as Num_Heads FROM department AS T1 JOIN management AS T2 ON T1.Department_ID = T2.Department_ID GROUP BY T1.Department_ID HAVING count(*) > 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 585, "new_tokens": 63}
70
+ {"qid": "gate_0069", "split": "gate", "db_id": "insurance_policies", "question": "How many settlements are there in total?", "gold_sql": "SELECT count(*) FROM Settlements", "raw_output": "SELECT count(*) FROM Settlements;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 726, "new_tokens": 9}
71
+ {"qid": "gate_0070", "split": "gate", "db_id": "ship_1", "question": "Find the name, type, and flag of the ship that is built in the most recent year.", "gold_sql": "SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1", "raw_output": "SELECT name, type, flag FROM ship ORDER BY built_year DESC LIMIT 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 536, "new_tokens": 19}
72
+ {"qid": "gate_0071", "split": "gate", "db_id": "tracking_share_transactions", "question": "Show the maximum amount of transaction.", "gold_sql": "SELECT max(amount_of_transaction) FROM TRANSACTIONS", "raw_output": "SELECT max(amount_of_transaction) FROM TRANSACTIONS;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 806, "new_tokens": 13}
73
+ {"qid": "gate_0072", "split": "gate", "db_id": "perpetrator", "question": "List the number of people injured by perpetrators in ascending order.", "gold_sql": "SELECT Injured FROM perpetrator ORDER BY Injured ASC", "raw_output": "SELECT count(*) FROM perpetrator WHERE Injured > 0 ORDER BY Injured ASC;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 5, "prompt_tokens": 536, "new_tokens": 20}
74
+ {"qid": "gate_0073", "split": "gate", "db_id": "candidate_poll", "question": "What are the names of candidates who have a lower support rate than oppose rate?", "gold_sql": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate", "raw_output": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate;", "status": "correct", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 547, "new_tokens": 40}
75
+ {"qid": "gate_0074", "split": "gate", "db_id": "wedding", "question": "How many weddings are there in year 2016?", "gold_sql": "SELECT count(*) FROM wedding WHERE YEAR = 2016", "raw_output": "SELECT count(*) FROM wedding WHERE YEAR = 2016;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 601, "new_tokens": 14}
76
+ {"qid": "gate_0075", "split": "gate", "db_id": "insurance_policies", "question": "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.", "gold_sql": "SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1", "raw_output": "SELECT Date_Claim_Made, Date_Claim_Settled, Amount_Settled\nFROM Claims\nWHERE Claim_ID IN (\n SELECT Claim_ID\n FROM Settlements\n GROUP BY Claim_ID\n HAVING COUNT(DISTINCT Claim_ID) = 1\n);", "status": "wrong_result", "error_message": "", "pred_rows": 9, "gold_rows": 5, "prompt_tokens": 745, "new_tokens": 61}
77
+ {"qid": "gate_0076", "split": "gate", "db_id": "film_rank", "question": "What are the titles of films that do not have a film market estimation?", "gold_sql": "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)", "raw_output": "SELECT title FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation);", "status": "correct", "error_message": "", "pred_rows": 9, "gold_rows": 9, "prompt_tokens": 588, "new_tokens": 23}
78
+ {"qid": "gate_0077", "split": "gate", "db_id": "club_1", "question": "What is the location of the club named \"Tennis Club\"?", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Tennis Club\"", "raw_output": "SELECT clubLocation FROM club WHERE clubName = \"Tennis Club\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 579, "new_tokens": 16}
79
+ {"qid": "gate_0078", "split": "gate", "db_id": "game_1", "question": "Count the number of video games with Massively multiplayer online game type .", "gold_sql": "SELECT count(*) FROM Video_games WHERE gtype = \"Massively multiplayer online game\"", "raw_output": "SELECT count(*) FROM Video_Games WHERE GType = \"Massively multiplayer online game\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 632, "new_tokens": 20}
80
+ {"qid": "gate_0079", "split": "gate", "db_id": "store_product", "question": "For each type of store, how many of them are there?", "gold_sql": "SELECT TYPE , count(*) FROM store GROUP BY TYPE", "raw_output": "SELECT TYPE , COUNT(*) FROM store GROUP BY TYPE;", "status": "correct", "error_message": "", "pred_rows": 2, "gold_rows": 2, "prompt_tokens": 702, "new_tokens": 14}
81
+ {"qid": "gate_0080", "split": "gate", "db_id": "candidate_poll", "question": "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.", "gold_sql": "SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate", "raw_output": "SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY Unsure_rate ASC;", "status": "correct", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 550, "new_tokens": 21}
82
+ {"qid": "gate_0081", "split": "gate", "db_id": "soccer_1", "question": "List all of the ids for left-footed players with a height between 180cm and 190cm.", "gold_sql": "SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = \"left\"", "raw_output": "SELECT DISTINCT t1.id FROM player AS t1 JOIN player_attributes AS t2 ON t1.id = t2.player_api_id WHERE t2.preferred_foot = \"left\" AND t2.height BETWEEN 180 AND 190;", "status": "sql_error", "error_message": "no such column: t2.height", "pred_rows": null, "gold_rows": 1673, "prompt_tokens": 1527, "new_tokens": 53}
83
+ {"qid": "gate_0082", "split": "gate", "db_id": "twitter_1", "question": "Find the emails of the user named \"Mary\".", "gold_sql": "SELECT email FROM user_profiles WHERE name = 'Mary'", "raw_output": "SELECT email FROM user_profiles WHERE name = \"Mary\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 632, "new_tokens": 14}
84
+ {"qid": "gate_0083", "split": "gate", "db_id": "sakila_1", "question": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.", "gold_sql": "SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30", "raw_output": "SELECT T1.first_name, T1.last_name FROM actor AS T1 JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T1.actor_id HAVING count(*) > 30;", "status": "correct", "error_message": "", "pred_rows": 56, "gold_rows": 56, "prompt_tokens": 1933, "new_tokens": 52}
85
+ {"qid": "gate_0084", "split": "gate", "db_id": "pilot_record", "question": "What is the joined year of the pilot of the highest rank?", "gold_sql": "SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1", "raw_output": "SELECT Join_Year FROM pilot ORDER BY Rank DESC LIMIT 1;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 623, "new_tokens": 16}
86
+ {"qid": "gate_0085", "split": "gate", "db_id": "product_catalog", "question": "What are the attribute data types with more than 3 attribute definitions?", "gold_sql": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3", "raw_output": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 821, "new_tokens": 25}
87
+ {"qid": "gate_0086", "split": "gate", "db_id": "race_track", "question": "What is the name of the track that has had the greatest number of races?", "gold_sql": "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.Name FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY count(*) DESC LIMIT 1;", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 521, "new_tokens": 46}
88
+ {"qid": "gate_0087", "split": "gate", "db_id": "train_station", "question": "Show the station name with at least two trains.", "gold_sql": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2", "raw_output": "SELECT T1.Name FROM station AS T1 JOIN train_station AS T2 ON T1.Station_ID = T2.Station_ID GROUP BY T1.Station_ID HAVING COUNT(*) >= 2;", "status": "correct", "error_message": "", "pred_rows": 3, "gold_rows": 3, "prompt_tokens": 581, "new_tokens": 49}
89
+ {"qid": "gate_0088", "split": "gate", "db_id": "pilot_record", "question": "List the names of pilots in ascending order of rank.", "gold_sql": "SELECT Pilot_name FROM pilot ORDER BY Rank ASC", "raw_output": "SELECT Pilot_name FROM pilot ORDER BY Rank ASC;", "status": "correct", "error_message": "", "pred_rows": 5, "gold_rows": 5, "prompt_tokens": 621, "new_tokens": 12}
90
+ {"qid": "gate_0089", "split": "gate", "db_id": "club_1", "question": "Find the average age of the members in the club \"Bootup Baltimore\".", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT avg(age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\";", "status": "sql_error", "error_message": "no such column: age", "pred_rows": null, "gold_rows": 1, "prompt_tokens": 580, "new_tokens": 48}
91
+ {"qid": "gate_0090", "split": "gate", "db_id": "cre_Doc_Control_Systems", "question": "What document type codes do we have?", "gold_sql": "SELECT document_type_code FROM Ref_Document_Types;", "raw_output": "SELECT document_type_code FROM Ref_Document_Types;", "status": "correct", "error_message": "", "pred_rows": 3, "gold_rows": 3, "prompt_tokens": 1077, "new_tokens": 13}
92
+ {"qid": "gate_0091", "split": "gate", "db_id": "student_1", "question": "Find the number of students taught by TARRING LEIA.", "gold_sql": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"TARRING\" AND T2.lastname = \"LEIA\"", "raw_output": "SELECT count(*) FROM list WHERE classroom IN (SELECT classroom FROM teachers WHERE firstName = \"LEIA\" AND lastName = \"TARRING\");", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 514, "new_tokens": 32}
93
+ {"qid": "gate_0092", "split": "gate", "db_id": "tracking_share_transactions", "question": "Show the average share count of transactions for different investors.", "gold_sql": "SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id", "raw_output": "SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id;", "status": "correct", "error_message": "", "pred_rows": 10, "gold_rows": 10, "prompt_tokens": 810, "new_tokens": 20}
94
+ {"qid": "gate_0093", "split": "gate", "db_id": "race_track", "question": "Return the names of tracks that have no had any races.", "gold_sql": "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)", "raw_output": "SELECT T2.Name FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID HAVING count(*) = 0;", "status": "wrong_result", "error_message": "", "pred_rows": 0, "gold_rows": 3, "prompt_tokens": 517, "new_tokens": 47}
95
+ {"qid": "gate_0094", "split": "gate", "db_id": "farm", "question": "Give the years and official names of the cities of each competition.", "gold_sql": "SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID", "raw_output": "SELECT T1.Official_Name , T2.Year FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID;", "status": "wrong_result", "error_message": "", "pred_rows": 6, "gold_rows": 6, "prompt_tokens": 688, "new_tokens": 44}
96
+ {"qid": "gate_0095", "split": "gate", "db_id": "product_catalog", "question": "Find the name and capacity of products with price greater than 700 (in USD).", "gold_sql": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700", "raw_output": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700;", "status": "correct", "error_message": "", "pred_rows": 5, "gold_rows": 5, "prompt_tokens": 824, "new_tokens": 24}
97
+ {"qid": "gate_0096", "split": "gate", "db_id": "customer_complaints", "question": "What are lines 1 and 2 of the addressed of the customer with the email \"vbogisich@example.org\"?", "gold_sql": "SELECT address_line_1 , address_line_2 FROM customers WHERE email_address = \"vbogisich@example.org\"", "raw_output": "SELECT address_line_1, address_line_2 FROM Customers WHERE email_address = \"vbogisich@example.org\";", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 822, "new_tokens": 26}
98
+ {"qid": "gate_0097", "split": "gate", "db_id": "customers_card_transactions", "question": "Return the id and full name of the customer who has the fewest accounts.", "gold_sql": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "raw_output": "SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 739, "new_tokens": 62}
99
+ {"qid": "gate_0098", "split": "gate", "db_id": "manufacturer", "question": "what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.", "gold_sql": "SELECT max(num_of_shops) , avg(Num_of_Factories) FROM manufacturer WHERE open_year < 1990", "raw_output": "SELECT avg(num_of_factories) , max(num_of_shops) FROM manufacturer WHERE open_year < 1990;", "status": "wrong_result", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 613, "new_tokens": 28}
100
+ {"qid": "gate_0099", "split": "gate", "db_id": "manufactory_1", "question": "What is the headquarter of the company whose founder is James?", "gold_sql": "SELECT headquarter FROM manufacturers WHERE founder = 'James'", "raw_output": "SELECT Headquarter FROM Manufacturers WHERE Founder = 'James';", "status": "correct", "error_message": "", "pred_rows": 1, "gold_rows": 1, "prompt_tokens": 520, "new_tokens": 13}
runs/bcoreplay-gate/summary.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "gate",
3
+ "model": "CohereLabs/tiny-aya-global",
4
+ "adapter": "HideIron/tiny-aya-global-sql-selfheal-bco-replay",
5
+ "n": 100,
6
+ "execution_accuracy": 0.6,
7
+ "valid_sql_rate": 0.8,
8
+ "status_counts": {
9
+ "sql_error": 20,
10
+ "wrong_result": 20,
11
+ "correct": 60
12
+ },
13
+ "generation_seconds": 54.48,
14
+ "new_tokens": 3219,
15
+ "tokens_per_second": 59.1,
16
+ "max_new_tokens": 256,
17
+ "decoding": "greedy"
18
+ }