chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26919_6\" (\n \"english\" text,\n \"proto_semitic\" text,\n \"ipa\" text,\n \"arabic\" text,\n \"hebrew\" text,\n \"tigrinya\" text,\n \"sabaean\" text\n);\n\nQuestion: Name the hebrew for tis\u0295-" }, { "role": "assistant", "content": "SELECT \"hebrew\" FROM \"table1_26919_6\" WHERE \"arabic\"='tis\u0295-';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26919_6\" (\n \"english\" text,\n \"proto_semitic\" text,\n \"ipa\" text,\n \"arabic\" text,\n \"hebrew\" text,\n \"tigrinya\" text,\n \"sabaean\" text\n);\n\nQuestion: Name the tigrinya for \u03c7ams-" }, { "role": "assistant", "content": "SELECT COUNT(\"tigrinya\") FROM \"table1_26919_6\" WHERE \"arabic\"='\u03c7ams-';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26919_6\" (\n \"english\" text,\n \"proto_semitic\" text,\n \"ipa\" text,\n \"arabic\" text,\n \"hebrew\" text,\n \"tigrinya\" text,\n \"sabaean\" text\n);\n\nQuestion: Name the hebrew for *ti\u0161\u02bb-" }, { "role": "assistant", "content": "SELECT \"hebrew\" FROM \"table1_26919_6\" WHERE \"proto_semitic\"='*ti\u0161\u02bb-';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26919_6\" (\n \"english\" text,\n \"proto_semitic\" text,\n \"ipa\" text,\n \"arabic\" text,\n \"hebrew\" text,\n \"tigrinya\" text,\n \"sabaean\" text\n);\n\nQuestion: Name the arabic for \u0127amu\u0283te" }, { "role": "assistant", "content": "SELECT \"arabic\" FROM \"table1_26919_6\" WHERE \"tigrinya\"='\u0127amu\u0283te';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26919_6\" (\n \"english\" text,\n \"proto_semitic\" text,\n \"ipa\" text,\n \"arabic\" text,\n \"hebrew\" text,\n \"tigrinya\" text,\n \"sabaean\" text\n);\n\nQuestion: Name the sabaean for sab\u0295-" }, { "role": "assistant", "content": "SELECT \"sabaean\" FROM \"table1_26919_6\" WHERE \"arabic\"='sab\u0295-';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who is the incoming manager when the date of vacancy was 21 march 2011?" }, { "role": "assistant", "content": "SELECT \"incoming_manager\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='21 March 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the position in table when the date of vacancy was 4 january 2011?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='4 January 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the team when the incoming manager is martin allen?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"incoming_manager\"='Martin Allen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who is the incoming manager when the date of appointment is 9 march 2011?" }, { "role": "assistant", "content": "SELECT \"incoming_manager\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='9 March 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the team when the date of appointment is 23 march 2011?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='23 March 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: what is the date of appointment 11 june 2010?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='11 June 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: What is the depth at the UTC time of 12:19:36?" }, { "role": "assistant", "content": "SELECT \"depth\" FROM \"list_of_aftershocks\" WHERE \"time_utc\"='12:19:36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: What is the date for the UTC time of 03:15:46?" }, { "role": "assistant", "content": "SELECT \"date_yyyy_mm_dd\" FROM \"list_of_aftershocks\" WHERE \"time_utc\"='03:15:46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26952212_1\" (\n \"no_in_total\" text,\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title for episode number 30?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26952212_1\" WHERE \"no_in_total\"='30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26952212_1\" (\n \"no_in_total\" text,\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the number in series of the episode titled \"beauty and the beast\"?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_26952212_1\" WHERE \"title\"='\\\"Beauty and the Beast\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26952212_1\" (\n \"no_in_total\" text,\n \"no_in_series\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the number in series for the episode title \"crossroads\"?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_26952212_1\" WHERE \"title\"='\\\"Crossroads\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?" }, { "role": "assistant", "content": "SELECT MAX(\"pct_identity_to_c7orf38\") FROM \"orthologs\" WHERE \"genus_species\"='Mus musculus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the length (AA) of the animal whose NCBI accession number is CAM15594.1?" }, { "role": "assistant", "content": "SELECT MIN(\"length_aa\") FROM \"orthologs\" WHERE \"ncbi_accession_number\"='CAM15594.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?" }, { "role": "assistant", "content": "SELECT MAX(\"pct_similarity_to_c7orf38\") FROM \"orthologs\" WHERE \"pct_identity_to_c7orf38\"=81;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the common name of the animal whose length (AA) is 1323?" }, { "role": "assistant", "content": "SELECT \"common_name\" FROM \"orthologs\" WHERE \"length_aa\"=1323;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the % identity to C7orf38 of the animal whose common name is rat?" }, { "role": "assistant", "content": "SELECT MIN(\"pct_identity_to_c7orf38\") FROM \"orthologs\" WHERE \"common_name\"='Rat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"genus_species\" text,\n \"ncbi_accession_number\" text,\n \"length_aa\" real,\n \"pct_identity_to_c7orf38\" real,\n \"pct_similarity_to_c7orf38\" real\n);\n\nQuestion: What is the genus & species of the animal whose accession number is XP_002439156.1?" }, { "role": "assistant", "content": "SELECT \"genus_species\" FROM \"orthologs\" WHERE \"ncbi_accession_number\"='XP_002439156.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26961951_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were written by Alison McDonald?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_26961951_4\" WHERE \"written_by\"='Alison McDonald';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26961951_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many viewers in millions did the Alison McDonald episode get?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_26961951_4\" WHERE \"written_by\"='Alison McDonald';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26961951_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many viewers in millions did \"batting practice\" get?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_26961951_4\" WHERE \"title\"='\\\"Batting Practice\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_rifl\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the p max ( bar ) for the 6876 f bolt ( kgf )?" }, { "role": "assistant", "content": "SELECT MIN(\"p_max_bar\") FROM \"bolt_thrust_estimations_for_various_rifl\" WHERE \"f_bolt_kgf\"=6876;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_rifl\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the p1 diameter (mm) when .300 lapua magnum is the chambering?" }, { "role": "assistant", "content": "SELECT \"p1_diameter_mm\" FROM \"bolt_thrust_estimations_for_various_rifl\" WHERE \"chambering\"='.300 Lapua Magnum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_rifl\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the chambering for the 8339 f bolt ( kgf )?" }, { "role": "assistant", "content": "SELECT \"chambering\" FROM \"bolt_thrust_estimations_for_various_rifl\" WHERE \"f_bolt_kgf\"=8339;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_rifl\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the f bolt for 11.35 p1 diameter (mm)?" }, { "role": "assistant", "content": "SELECT \"f_bolt\" FROM \"bolt_thrust_estimations_for_various_rifl\" WHERE \"p1_diameter_mm\"='11.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_rifl\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: How many external (cm 2 ) are there for the .338 lapua magnum chambering?" }, { "role": "assistant", "content": "SELECT COUNT(\"a_external_cm_2\") FROM \"bolt_thrust_estimations_for_various_rifl\" WHERE \"chambering\"='.338 Lapua Magnum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26968451_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who is the director for the series # 39?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_26968451_2\" WHERE \"series_num\"=39;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_pist\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?" }, { "role": "assistant", "content": "SELECT \"chambering\" FROM \"bolt_thrust_estimations_for_various_pist\" WHERE \"f_bolt\"='N (lbf)' AND \"p_max_bar\"=3900;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_pist\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm?" }, { "role": "assistant", "content": "SELECT \"p_max_bar\" FROM \"bolt_thrust_estimations_for_various_pist\" WHERE \"p1_diameter_mm\"='9.70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_pist\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the p max (bar) in the pistol where the chambering is .45 ACP?" }, { "role": "assistant", "content": "SELECT MAX(\"p_max_bar\") FROM \"bolt_thrust_estimations_for_various_pist\" WHERE \"chambering\"='.45 ACP';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bolt_thrust_estimations_for_various_pist\" (\n \"chambering\" text,\n \"p1_diameter_mm\" text,\n \"a_external_cm_2\" text,\n \"p_max_bar\" real,\n \"f_bolt_kgf\" real,\n \"f_bolt\" text\n);\n\nQuestion: What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm?" }, { "role": "assistant", "content": "SELECT \"p_max_bar\" FROM \"bolt_thrust_estimations_for_various_pist\" WHERE \"p1_diameter_mm\"='12.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the incoming manager for the date of appointment of 15 january 2011?" }, { "role": "assistant", "content": "SELECT \"incoming_manager\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='15 January 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the date of appointment for the date of vacancy of 22 august 2010?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='22 August 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the outgoing manager for the team of t\u00e2rgu mure\u015f?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"team\"='T\u00e2rgu Mure\u015f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many date of appointments are there when the date of vacancy was 2 october 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"date_of_appointment\") FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='2 October 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the outgoing manager when the incoming manager was lauren\u0163iu reghecampf?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"incoming_manager\"='Lauren\u0163iu Reghecampf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner of departure when the outgoing manager was andrea mandorlini?" }, { "role": "assistant", "content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Andrea Mandorlini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"total\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: What is the capacity for dundee united?" }, { "role": "assistant", "content": "SELECT \"capacity\" FROM \"stadia_and_attendances\" WHERE \"team\"='Dundee United';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"total\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: What was the total attendance at rugby park?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"stadia_and_attendances\" WHERE \"stadium\"='Rugby Park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"total\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: What is the total attended for kilmarnock?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"stadia_and_attendances\" WHERE \"team\"='Kilmarnock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: How many times was the time 19' 38.87 115.219mph on Fri Aug 27?" }, { "role": "assistant", "content": "SELECT COUNT(\"mon_23_aug\") FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"fri_27_aug\"='19'' 38.87 115.219mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?" }, { "role": "assistant", "content": "SELECT \"fri_27_aug\" FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"tues_24_aug\"='20'' 49.46 108.709mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: If Wed Aug 25 is \u2014\u2014 no time, what is Sat aug 21?" }, { "role": "assistant", "content": "SELECT \"sat_21_aug\" FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"wed_25_aug\"='\u2014\u2014 No Time';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: If the Rank is 10, what was the time on Sat aug 28?" }, { "role": "assistant", "content": "SELECT \"sat_28_aug\" FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"rank\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?" }, { "role": "assistant", "content": "SELECT COUNT(\"sat_21_aug\") FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"thurs_26_aug\"='20'' 05.19 112.703mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_senior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: If the time on Wed aug 25 was 20' 09.25 112.324mph, what was the time on sat Aug 28?" }, { "role": "assistant", "content": "SELECT \"sat_28_aug\" FROM \"2010_senior_manx_grand_prix_practice_tim\" WHERE \"wed_25_aug\"='20'' 09.25 112.324mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: How many times was tues 24 aug 19' 19.83 117.110mph?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"2010_junior_manx_grand_prix_practice_tim\" WHERE \"tues_24_aug\"='19'' 19.83 117.110mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: how many time is fri 27 aug 19' 38.87 115.219mph?" }, { "role": "assistant", "content": "SELECT COUNT(\"sat_29_aug\") FROM \"2010_junior_manx_grand_prix_practice_tim\" WHERE \"fri_27_aug\"='19'' 38.87 115.219mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph?" }, { "role": "assistant", "content": "SELECT \"wed_25_aug\" FROM \"2010_junior_manx_grand_prix_practice_tim\" WHERE \"mon_23_aug\"='26'' 57.82 89.957mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?" }, { "role": "assistant", "content": "SELECT \"thurs_26_aug\" FROM \"2010_junior_manx_grand_prix_practice_tim\" WHERE \"wed_25_aug\"='19'' 59.98 113.192mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph?" }, { "role": "assistant", "content": "SELECT \"mon_23_aug\" FROM \"2010_junior_manx_grand_prix_practice_tim\" WHERE \"fri_27_aug\"='18'' 59.25 119.226mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When 8 is the rank what is the Saturday August 21st?" }, { "role": "assistant", "content": "SELECT \"sat_21_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"rank\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August?" }, { "role": "assistant", "content": "SELECT \"tues_24_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"fri_27_aug\"='20'' 58.50 107.929mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?" }, { "role": "assistant", "content": "SELECT \"mon_23_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"tues_24_aug\"='21'' 18.87 106.209mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th?" }, { "role": "assistant", "content": "SELECT \"sat_29_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"tues_24_aug\"='21'' 10.25 106.930mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When 21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th?" }, { "role": "assistant", "content": "SELECT \"fri_27_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"wed_25_aug\"='21'' 05.83 107.304mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_lightweight_manx_grand_prix_practic\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_29_aug\" text\n);\n\nQuestion: When tom snow 250cc honda is the rider what is Monday August 23rd?" }, { "role": "assistant", "content": "SELECT \"mon_23_aug\" FROM \"2010_lightweight_manx_grand_prix_practic\" WHERE \"rider\"='Tom Snow 250cc Honda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26982362_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: The episode with the original airdate October 8, 2010, is directed by who?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_26982362_2\" WHERE \"original_airdate\"='October 8, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26982362_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed the episode with production code 693-004?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_26982362_2\" WHERE \"production_code\"='693-004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26982362_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: The episode with production code 693-002, has how many original airdates?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_airdate\") FROM \"table1_26982362_2\" WHERE \"production_code\"='693-002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26982362_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: What is the title of the episode whose original airdate is April 23, 2010?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26982362_2\" WHERE \"original_airdate\"='April 23, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_newcomers_race_a_practice_times_and\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: Who had the time of 22' 09.44 93.840mph on Tuesday August 24th?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"2010_newcomers_race_a_practice_times_and\" WHERE \"tues_24_aug\"='22'' 09.44 93.840mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3500_series_bloomfield\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l3_cache_mb\" real,\n \"qpi_speed_gt_s\" text,\n \"ddr3_clock_m_hz\" real,\n \"tdp_w\" real,\n \"cores\" real,\n \"threads\" real,\n \"turbo_boost\" text\n);\n\nQuestion: What is the L3 cache for the processor having a speed of 2.93 GHz?" }, { "role": "assistant", "content": "SELECT \"l3_cache_mb\" FROM \"3500_series_bloomfield\" WHERE \"speed_g_hz\"='2.93';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3500_series_bloomfield\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l3_cache_mb\" real,\n \"qpi_speed_gt_s\" text,\n \"ddr3_clock_m_hz\" real,\n \"tdp_w\" real,\n \"cores\" real,\n \"threads\" real,\n \"turbo_boost\" text\n);\n\nQuestion: How many entries have a speed of exactly 2.53 GHz?" }, { "role": "assistant", "content": "SELECT COUNT(\"cores\") FROM \"3500_series_bloomfield\" WHERE \"speed_g_hz\"='2.53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"3500_series_bloomfield\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l3_cache_mb\" real,\n \"qpi_speed_gt_s\" text,\n \"ddr3_clock_m_hz\" real,\n \"tdp_w\" real,\n \"cores\" real,\n \"threads\" real,\n \"turbo_boost\" text\n);\n\nQuestion: What is the speed of the model whose number is W3540?" }, { "role": "assistant", "content": "SELECT \"speed_g_hz\" FROM \"3500_series_bloomfield\" WHERE \"model\"='W3540';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_post_classic_senior_class_practice_\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph?" }, { "role": "assistant", "content": "SELECT \"wed_25_aug\" FROM \"2010_post_classic_senior_class_practice_\" WHERE \"fri_27_aug\"='22'' 23.97 101.065mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_post_classic_senior_class_practice_\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: What was the Sat 21 Aug time for the driver whose Thurs 26 Aug time was 20' 56.01 108.143mph?" }, { "role": "assistant", "content": "SELECT \"sat_21_aug\" FROM \"2010_post_classic_senior_class_practice_\" WHERE \"thurs_26_aug\"='20'' 56.01 108.143mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_post_classic_senior_class_practice_\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_21_aug\" text,\n \"mon_23_aug\" text,\n \"tues_24_aug\" text,\n \"wed_25_aug\" text,\n \"thurs_26_aug\" text,\n \"fri_27_aug\" text,\n \"sat_28_aug\" text\n);\n\nQuestion: What was the Sat 21 Aug time for the rider whose Tues 24 Aug time was 20' 38.40 109.680mph?" }, { "role": "assistant", "content": "SELECT \"sat_21_aug\" FROM \"2010_post_classic_senior_class_practice_\" WHERE \"tues_24_aug\"='20'' 38.40 109.680mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political_divisions\" (\n \"city_municipality\" text,\n \"no_of_s_barangay\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" text\n);\n\nQuestion: Name the area for population of 53542" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"political_divisions\" WHERE \"population_2010\"=53542;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political_divisions\" (\n \"city_municipality\" text,\n \"no_of_s_barangay\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" text\n);\n\nQuestion: Name the number of barangay for 205.4 density" }, { "role": "assistant", "content": "SELECT \"no_of_s_barangay\" FROM \"political_divisions\" WHERE \"pop_density_per_km\"='205.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"7100_series_tulsa\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l2_cache_mb\" real,\n \"l3_cache_mb\" real,\n \"fsb_m_hz\" real,\n \"tdp_w\" real\n);\n\nQuestion: How many different FSB are there for the 7140N model?" }, { "role": "assistant", "content": "SELECT COUNT(\"fsb_m_hz\") FROM \"7100_series_tulsa\" WHERE \"model\"='7140N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"7100_series_tulsa\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l2_cache_mb\" real,\n \"l3_cache_mb\" real,\n \"fsb_m_hz\" real,\n \"tdp_w\" real\n);\n\nQuestion: How many different L2 cache numbers are there for the 7130M model?" }, { "role": "assistant", "content": "SELECT COUNT(\"l2_cache_mb\") FROM \"7100_series_tulsa\" WHERE \"model\"='7130M';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"7100_series_tulsa\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l2_cache_mb\" real,\n \"l3_cache_mb\" real,\n \"fsb_m_hz\" real,\n \"tdp_w\" real\n);\n\nQuestion: What's the maximal L3 cache for any of the models given?" }, { "role": "assistant", "content": "SELECT MAX(\"l2_cache_mb\") FROM \"7100_series_tulsa\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"7100_series_tulsa\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l2_cache_mb\" real,\n \"l3_cache_mb\" real,\n \"fsb_m_hz\" real,\n \"tdp_w\" real\n);\n\nQuestion: What's the TDP for the 7130N model?" }, { "role": "assistant", "content": "SELECT MIN(\"tdp_w\") FROM \"7100_series_tulsa\" WHERE \"model\"='7130N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"7100_series_tulsa\" (\n \"model\" text,\n \"speed_g_hz\" text,\n \"l2_cache_mb\" real,\n \"l3_cache_mb\" real,\n \"fsb_m_hz\" real,\n \"tdp_w\" real\n);\n\nQuestion: What's the L2 cache for the 7140N model?" }, { "role": "assistant", "content": "SELECT \"l2_cache_mb\" FROM \"7100_series_tulsa\" WHERE \"model\"='7140N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the cfl team where college is waterloo?" }, { "role": "assistant", "content": "SELECT COUNT(\"cfl_team\") FROM \"round_four\" WHERE \"college\"='Waterloo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did Jim Bennett attend?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"player\"='Jim Bennett';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What CFL Team was Barry Jamieson a part of?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"player\"='Barry Jamieson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did the player who played DE go to?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"position\"='DE';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What was Barry Jamieson's pick number?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_one\" WHERE \"player\"='Barry Jamieson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did Bob Larose attend?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"player\"='Bob LaRose';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: where college is british columbia what are all the player" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"college\"='British Columbia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: where college is st. francis xavier what are all the pick #" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_two\" WHERE \"college\"='St. Francis Xavier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: player is jim henshall what are all the position" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_two\" WHERE \"player\"='Jim Henshall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: where cfl team is edmonton (2) what are all the position" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_two\" WHERE \"cfl_team\"='Edmonton (2)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: where cfl team is winnipeg (3) via hamilton what are all the player" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"cfl_team\"='Winnipeg (3) via Hamilton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many CFL teams drafted someone from mount allison college?" }, { "role": "assistant", "content": "SELECT COUNT(\"cfl_team\") FROM \"round_three\" WHERE \"college\"='Mount Allison';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player drafted was an OG?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_three\" WHERE \"position\"='OG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position of the player bill simmons?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_seven\" WHERE \"player\"='Bill Simmons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position of cfl team saskatchewan (7)?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_seven\" WHERE \"cfl_team\"='Saskatchewan (7)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many times was player brian currie picked?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_seven\" WHERE \"player\"='Brian Currie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position was pick # 54?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_seven\" WHERE \"pick_num\"=54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the pick # of cfl team bc lions (7)" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_seven\" WHERE \"cfl_team\"='BC Lions (7)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the college where player terry moss attended?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_seven\" WHERE \"player\"='Terry Moss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the outgoing manager for the team kas\u0131mpa\u015fa?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"team\"='Kas\u0131mpa\u015fa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who is the replaced by when the date of vacancy is 27 december 2010?" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='27 December 2010';" } ]