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 \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the barrel length for a cold model le6921sp?" }, { "role": "assistant", "content": "SELECT \"barrel_length\" FROM \"le_series_models\" WHERE \"colt_model_no\"='LE6921SP';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mt_and_cr_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the barrel length for rear sight a2 for factory compensator" }, { "role": "assistant", "content": "SELECT \"barrel_length\" FROM \"mt_and_cr_series_models\" WHERE \"rear_sight\"='A2' AND \"muzzle_device\"='Factory compensator';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mt_and_cr_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the barrel twist for colt model mt6400" }, { "role": "assistant", "content": "SELECT \"barrel_twist\" FROM \"mt_and_cr_series_models\" WHERE \"colt_model_no\"='MT6400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mt_and_cr_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the forward assist for a2 barrel profile" }, { "role": "assistant", "content": "SELECT \"forward_assist\" FROM \"mt_and_cr_series_models\" WHERE \"barrel_profile\"='A2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mt_and_cr_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the stock for colt model mt6601" }, { "role": "assistant", "content": "SELECT \"stock\" FROM \"mt_and_cr_series_models\" WHERE \"colt_model_no\"='MT6601';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1995_96_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many races is different distances does Rosehill Guineas compete in? " }, { "role": "assistant", "content": "SELECT COUNT(\"distance\") FROM \"1995_96_season_as_a_three_year_old\" WHERE \"race\"='Rosehill Guineas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many games ended up with 16 points?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"2008_2009_table\" WHERE \"points\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What was the tries against count for the club whose tries for count was 29?" }, { "role": "assistant", "content": "SELECT \"tries_against\" FROM \"2008_2009_table\" WHERE \"tries_for\"='29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many points does Croesyceiliog RFC have?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"2008_2009_table\" WHERE \"club\"='Croesyceiliog RFC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What's the points for count for the club with 41 points and 8 won games?" }, { "role": "assistant", "content": "SELECT \"points_for\" FROM \"2008_2009_table\" WHERE \"points\"='41' AND \"won\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What's the points for count for the club with tries for count of 29?" }, { "role": "assistant", "content": "SELECT \"points_for\" FROM \"2008_2009_table\" WHERE \"tries_for\"='29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What's the try bonus count for the club whose tries against count is 83?" }, { "role": "assistant", "content": "SELECT \"try_bonus\" FROM \"2008_2009_table\" WHERE \"tries_against\"='83';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: Where is the real estate agent from?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"candidates\" WHERE \"background\"='Real Estate Agent';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What background does the person from New york, New york, have?" }, { "role": "assistant", "content": "SELECT \"background\" FROM \"candidates\" WHERE \"hometown\"='New York, New York';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many backgrounds are there represented from Memphis, Tennessee?" }, { "role": "assistant", "content": "SELECT COUNT(\"background\") FROM \"candidates\" WHERE \"hometown\"='Memphis, Tennessee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many people had a prosecutor background?" }, { "role": "assistant", "content": "SELECT COUNT(\"result\") FROM \"candidates\" WHERE \"background\"='Prosecutor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: Where was Kristen Kirchner from?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"candidates\" WHERE \"candidate\"='Kristen Kirchner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many clubs have a tries against count of 41?" }, { "role": "assistant", "content": "SELECT COUNT(\"try_bonus\") FROM \"2007_2008_table\" WHERE \"tries_against\"='41';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many clubs have won 6 games?" }, { "role": "assistant", "content": "SELECT COUNT(\"club\") FROM \"2007_2008_table\" WHERE \"won\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many clubs have a tries against count of 45 and a losing bonus of 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"tries_for\") FROM \"2007_2008_table\" WHERE \"tries_against\"='45' AND \"losing_bonus\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What club has a tries for count of 19?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2007_2008_table\" WHERE \"tries_for\"='19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many clubs have tries for count of 50?" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"2007_2008_table\" WHERE \"tries_for\"='50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What's the number of drawn games for the club with a tries for count of 76?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2007_2008_table\" WHERE \"tries_for\"='76';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_constituency\" (\n \"constituency\" text,\n \"electorate\" real,\n \"s_spoilt_vote\" real,\n \"total_poll_pct\" text,\n \"for_pct\" text,\n \"against_pct\" text\n);\n\nQuestion: What is the against percentage in the Vest-Agder constituency?" }, { "role": "assistant", "content": "SELECT \"against_pct\" FROM \"by_constituency\" WHERE \"constituency\"='Vest-Agder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_constituency\" (\n \"constituency\" text,\n \"electorate\" real,\n \"s_spoilt_vote\" real,\n \"total_poll_pct\" text,\n \"for_pct\" text,\n \"against_pct\" text\n);\n\nQuestion: How many electorates are there with Hedmark as a constituency?" }, { "role": "assistant", "content": "SELECT COUNT(\"electorate\") FROM \"by_constituency\" WHERE \"constituency\"='Hedmark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_constituency\" (\n \"constituency\" text,\n \"electorate\" real,\n \"s_spoilt_vote\" real,\n \"total_poll_pct\" text,\n \"for_pct\" text,\n \"against_pct\" text\n);\n\nQuestion: How many for percentages are there when the against percentage is 35,782 (69)?" }, { "role": "assistant", "content": "SELECT \"for_pct\" FROM \"by_constituency\" WHERE \"against_pct\"='35,782 (69)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_constituency\" (\n \"constituency\" text,\n \"electorate\" real,\n \"s_spoilt_vote\" real,\n \"total_poll_pct\" text,\n \"for_pct\" text,\n \"against_pct\" text\n);\n\nQuestion: List the smallest possible spoilt vote with the s\u00f8r-tr\u00f8ndelag constituency." }, { "role": "assistant", "content": "SELECT MIN(\"s_spoilt_vote\") FROM \"by_constituency\" WHERE \"constituency\"='S\u00f8r-Tr\u00f8ndelag';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_constituency\" (\n \"constituency\" text,\n \"electorate\" real,\n \"s_spoilt_vote\" real,\n \"total_poll_pct\" text,\n \"for_pct\" text,\n \"against_pct\" text\n);\n\nQuestion: List all total poll percentages when the for percentage is 59,532 (54)." }, { "role": "assistant", "content": "SELECT \"total_poll_pct\" FROM \"by_constituency\" WHERE \"for_pct\"='59,532 (54)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: What's the writer of Episode 1?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_12919003_3\" WHERE \"episode\"='Episode 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"num\") FROM \"table1_12919003_3\" WHERE \"director\"='Tom Hooper' AND \"viewers_millions\"='8.08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: What's the original airdate of the episode directed by Pete Travis?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_12919003_3\" WHERE \"director\"='Pete Travis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many millions of viewers did watch Episode 5?" }, { "role": "assistant", "content": "SELECT \"viewers_millions\" FROM \"table1_12919003_3\" WHERE \"episode\"='Episode 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: What's the total number of directors whose episodes have been seen by 9.14 million viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"table1_12919003_3\" WHERE \"viewers_millions\"='9.14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_2\" (\n \"no\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who directed Episode 5?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_12919003_2\" WHERE \"episode\"='Episode 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12919003_2\" (\n \"no\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many viewers did Episode 5 have?" }, { "role": "assistant", "content": "SELECT \"viewers_millions\" FROM \"table1_12919003_2\" WHERE \"episode\"='Episode 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's the\u00a0no\u00a0with\u00a0current club\u00a0being panathinaikos and\u00a0position\u00a0being forward" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"current_club\"='Panathinaikos' AND \"position\"='Forward';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's\u00a0height\u00a0with\u00a0position\u00a0being center and\u00a0year born\u00a0being bigger than 1980.0" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"position\"='Center' AND \"year_born\">1980.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's\u00a0player\u00a0with\u00a0position\u00a0being forward and\u00a0current club\u00a0being real madrid" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"position\"='Forward' AND \"current_club\"='Real Madrid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's\u00a0current club\u00a0with\u00a0player\u00a0being nikolaos chatzivrettas" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Nikolaos Chatzivrettas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's\u00a0current club\u00a0with\u00a0height\u00a0being 2.09" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"height\"='2.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's\u00a0current club\u00a0with\u00a0position\u00a0being center and\u00a0no\u00a0being bigger than 12.0" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"position\"='Center' AND \"no\">12.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"kickoff_et\" text,\n \"tv\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What is the opponent of the veterans stadium" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='Veterans Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What year was the player born who is 2.02m tall?" }, { "role": "assistant", "content": "SELECT MAX(\"year_born\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"height\"='2.02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What number does aleksandar \u0107apin wear?" }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Aleksandar \u0106apin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Name the total number of grupo capitol valladolid" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"current_club\"='Grupo Capitol Valladolid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Name the height for the player born in 1980 and center?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"year_born\"=1980 AND \"position\"='Center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What is the total number that has a height of 2.06?" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"height\"='2.06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Name the current club for number 6" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"no\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Name the current club for player sacha giffa" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Sacha Giffa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What is the minimum year born for strasbourg?" }, { "role": "assistant", "content": "SELECT MIN(\"year_born\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"current_club\"='Strasbourg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Which club had a player born in 1983?" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"year_born\"=1983;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: How tall is Marco Belinelli?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Marco Belinelli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What number is Andrea Bargnani?" }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Andrea Bargnani';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: What player is number 6?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"no\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: How many clubs does number 6 play for?" }, { "role": "assistant", "content": "SELECT COUNT(\"current_club\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"no\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: how many\u00a0player\u00a0with\u00a0no\u00a0being 12" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"fiba_euro_basket_2007_squads\" WHERE \"no\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's the\u00a0height\u00a0with\u00a0position\u00a0being forward and\u00a0current club\u00a0being real madrid" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"position\"='Forward' AND \"current_club\"='Real Madrid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's the\u00a0height\u00a0with\u00a0current club\u00a0being dkv joventut" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"current_club\"='DKV Joventut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"no\" real,\n \"player\" text,\n \"height\" text,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: what's the\u00a0current club\u00a0with\u00a0player\u00a0being felipe reyes" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"player\"='Felipe Reyes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12976038_1\" (\n \"episode_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Who directed the episode that had 6.04 million viewers? " }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_12976038_1\" WHERE \"viewers_in_millions\"='6.04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12976038_1\" (\n \"episode_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What number episode had 5.74 million viewers? " }, { "role": "assistant", "content": "SELECT \"episode_num\" FROM \"table1_12976038_1\" WHERE \"viewers_in_millions\"='5.74';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reactors\" (\n \"unit\" text,\n \"type\" text,\n \"net_power\" text,\n \"total_power\" text,\n \"construction_start\" text,\n \"construction_finish\" text,\n \"commercial_operation\" text,\n \"shut_down\" text\n);\n\nQuestion: When did the construction of the unit Chinon B1 with net power of 905 MW start?" }, { "role": "assistant", "content": "SELECT \"construction_start\" FROM \"reactors\" WHERE \"net_power\"='905 MW' AND \"unit\"='Chinon B1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reactors\" (\n \"unit\" text,\n \"type\" text,\n \"net_power\" text,\n \"total_power\" text,\n \"construction_start\" text,\n \"construction_finish\" text,\n \"commercial_operation\" text,\n \"shut_down\" text\n);\n\nQuestion: What's the total power of the unit whose construction finished on 14.06.1963?" }, { "role": "assistant", "content": "SELECT \"total_power\" FROM \"reactors\" WHERE \"construction_finish\"='14.06.1963';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reactors\" (\n \"unit\" text,\n \"type\" text,\n \"net_power\" text,\n \"total_power\" text,\n \"construction_start\" text,\n \"construction_finish\" text,\n \"commercial_operation\" text,\n \"shut_down\" text\n);\n\nQuestion: How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_power\") FROM \"reactors\" WHERE \"construction_start\"='01.03.1977' AND \"commercial_operation\"='01.02.1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reactors\" (\n \"unit\" text,\n \"type\" text,\n \"net_power\" text,\n \"total_power\" text,\n \"construction_start\" text,\n \"construction_finish\" text,\n \"commercial_operation\" text,\n \"shut_down\" text\n);\n\nQuestion: What's the shut down state of the unit that's been in commercial operation since 01.02.1984?" }, { "role": "assistant", "content": "SELECT \"shut_down\" FROM \"reactors\" WHERE \"commercial_operation\"='01.02.1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reactors\" (\n \"unit\" text,\n \"type\" text,\n \"net_power\" text,\n \"total_power\" text,\n \"construction_start\" text,\n \"construction_finish\" text,\n \"commercial_operation\" text,\n \"shut_down\" text\n);\n\nQuestion: When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?" }, { "role": "assistant", "content": "SELECT \"construction_start\" FROM \"reactors\" WHERE \"commercial_operation\"='04.03.1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12995531_3\" (\n \"series_number\" text,\n \"episode_number\" real,\n \"date_of_first_broadcast\" text,\n \"total_viewers\" real,\n \"series_average\" real\n);\n\nQuestion: what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?" }, { "role": "assistant", "content": "SELECT MIN(\"total_viewers\") FROM \"table1_12995531_3\" WHERE \"date_of_first_broadcast\"='28 January 2010' AND \"episode_number\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12995531_3\" (\n \"series_number\" text,\n \"episode_number\" real,\n \"date_of_first_broadcast\" text,\n \"total_viewers\" real,\n \"series_average\" real\n);\n\nQuestion: what is the episode number where the total viewers is 614000?" }, { "role": "assistant", "content": "SELECT MIN(\"episode_number\") FROM \"table1_12995531_3\" WHERE \"total_viewers\"=614000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_12995531_3\" (\n \"series_number\" text,\n \"episode_number\" real,\n \"date_of_first_broadcast\" text,\n \"total_viewers\" real,\n \"series_average\" real\n);\n\nQuestion: what is the series number where the date of first broadcast is 16 october 2008?" }, { "role": "assistant", "content": "SELECT \"series_number\" FROM \"table1_12995531_3\" WHERE \"date_of_first_broadcast\"='16 October 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: In what year did Easton LL Easton play in Maryland?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"regional_championship\" WHERE \"maryland\"='Easton LL Easton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?" }, { "role": "assistant", "content": "SELECT \"washington_d_c\" FROM \"regional_championship\" WHERE \"new_york\"='Ramapo LL Ramapo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: Which year did Maryland hold the title with Railroaders LL Brunswick?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"regional_championship\" WHERE \"maryland\"='Railroaders LL Brunswick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?" }, { "role": "assistant", "content": "SELECT \"maryland\" FROM \"regional_championship\" WHERE \"new_jersey\"='Somerset Hills LL Bernardsville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware?" }, { "role": "assistant", "content": "SELECT \"maryland\" FROM \"regional_championship\" WHERE \"delaware\"='M.O.T. LL Middletown' AND \"year\">2008.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"delaware\" text,\n \"maryland\" text,\n \"new_jersey\" text,\n \"new_york\" text,\n \"pennsylvania\" text,\n \"washington_d_c\" text\n);\n\nQuestion: Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?" }, { "role": "assistant", "content": "SELECT \"maryland\" FROM \"regional_championship\" WHERE \"pennsylvania\"='Deep Run Valley LL Hilltown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1301373_1\" (\n \"team\" text,\n \"location\" text,\n \"stadium\" text,\n \"founded\" real,\n \"joined\" real,\n \"head_coach\" text,\n \"captain\" text\n);\n\nQuestion: Where is Bluetongue Stadium located? " }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_1301373_1\" WHERE \"stadium\"='Bluetongue Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1301373_1\" (\n \"team\" text,\n \"location\" text,\n \"stadium\" text,\n \"founded\" real,\n \"joined\" real,\n \"head_coach\" text,\n \"captain\" text\n);\n\nQuestion: When was the team, whose captain is Matt Smith, founded? " }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"table1_1301373_1\" WHERE \"captain\"='Matt Smith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1301373_1\" (\n \"team\" text,\n \"location\" text,\n \"stadium\" text,\n \"founded\" real,\n \"joined\" real,\n \"head_coach\" text,\n \"captain\" text\n);\n\nQuestion: Who's the captain of the team whose head coach is Alistair Edwards? " }, { "role": "assistant", "content": "SELECT \"captain\" FROM \"table1_1301373_1\" WHERE \"head_coach\"='Alistair Edwards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1301373_1\" (\n \"team\" text,\n \"location\" text,\n \"stadium\" text,\n \"founded\" real,\n \"joined\" real,\n \"head_coach\" text,\n \"captain\" text\n);\n\nQuestion: How many locations does the team Newcastle Jets come from? " }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"table1_1301373_1\" WHERE \"team\"='Newcastle Jets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1301373_1\" (\n \"team\" text,\n \"location\" text,\n \"stadium\" text,\n \"founded\" real,\n \"joined\" real,\n \"head_coach\" text,\n \"captain\" text\n);\n\nQuestion: Where is Westpac Stadium located? " }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_1301373_1\" WHERE \"stadium\"='Westpac Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"connecticut\" text,\n \"maine\" text,\n \"massachusetts\" text,\n \"new_hampshire\" text,\n \"rhode_island\" text,\n \"vermont\" text\n);\n\nQuestion: What is the new hampshire in 2009?" }, { "role": "assistant", "content": "SELECT \"new_hampshire\" FROM \"regional_championship\" WHERE \"year\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: What is the most points when the won is 9?" }, { "role": "assistant", "content": "SELECT MAX(\"pts_for\") FROM \"national_league_one_table\" WHERE \"won\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: What is the number of played when points against 645?" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"national_league_one_table\" WHERE \"pts_agst\"=645;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: Name the most points for" }, { "role": "assistant", "content": "SELECT MIN(\"pts_for\") FROM \"national_league_one_table\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: Name the most points against when points for is 860" }, { "role": "assistant", "content": "SELECT MAX(\"pts_agst\") FROM \"national_league_one_table\" WHERE \"pts_for\"=860;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: How many teams scored 616 points?" }, { "role": "assistant", "content": "SELECT COUNT(\"won\") FROM \"national_league_one_table\" WHERE \"pts_for\"=616;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: How many teams drew the widnes vikings?" }, { "role": "assistant", "content": "SELECT COUNT(\"drawn\") FROM \"national_league_one_table\" WHERE \"club\"='Widnes Vikings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: How many games did whitehaven win?" }, { "role": "assistant", "content": "SELECT MIN(\"won\") FROM \"national_league_one_table\" WHERE \"club\"='Whitehaven';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_one_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: What position did the sheffield eagles finish in?" }, { "role": "assistant", "content": "SELECT MAX(\"position\") FROM \"national_league_one_table\" WHERE \"club\"='Sheffield Eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date of the game in week 14?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_two_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"bonus_points\" real,\n \"points\" real\n);\n\nQuestion: What is the total points for the tean with 8 losses?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"national_league_two_table\" WHERE \"lost\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_league_two_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"bonus_points\" real,\n \"points\" real\n);\n\nQuestion: How many numbers are given for losses by the Keighley Cougars?" }, { "role": "assistant", "content": "SELECT COUNT(\"lost\") FROM \"national_league_two_table\" WHERE \"club\"='Keighley Cougars';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the captain for ben sigmund" }, { "role": "assistant", "content": "SELECT \"captain\" FROM \"marquee_player\" WHERE \"vice_captain\"='Ben Sigmund';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the international marquee for shane stefanutto" }, { "role": "assistant", "content": "SELECT \"international_marquee\" FROM \"marquee_player\" WHERE \"vice_captain\"='Shane Stefanutto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the australian marquee for alessandro del piero" }, { "role": "assistant", "content": "SELECT \"australian_marquee\" FROM \"marquee_player\" WHERE \"international_marquee\"='Alessandro Del Piero';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the vice captain for melbourne victory" }, { "role": "assistant", "content": "SELECT \"vice_captain\" FROM \"marquee_player\" WHERE \"club\"='Melbourne Victory';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the number of australian marquee for travis dodd" }, { "role": "assistant", "content": "SELECT COUNT(\"australian_marquee\") FROM \"marquee_player\" WHERE \"vice_captain\"='Travis Dodd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marquee_player\" (\n \"club\" text,\n \"australian_marquee\" text,\n \"international_marquee\" text,\n \"junior_marquee_player\" text,\n \"captain\" text,\n \"vice_captain\" text\n);\n\nQuestion: Name the captain for emile heskey" }, { "role": "assistant", "content": "SELECT \"captain\" FROM \"marquee_player\" WHERE \"international_marquee\"='Emile Heskey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" text,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What championship had a margin of playoff 2?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"wins_18\" WHERE \"margin\"='Playoff 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" text,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the margin of the Masters Tournament?" }, { "role": "assistant", "content": "SELECT \"margin\" FROM \"wins_18\" WHERE \"championship\"='Masters Tournament';" } ]