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 \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: On what deate was the centerfold featured Luci Victoria?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2003\" WHERE \"centerfold_model\"='Luci Victoria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: How many centerfold models were there when the cover model was Torrie Wilson?" }, { "role": "assistant", "content": "SELECT COUNT(\"centerfold_model\") FROM \"2003\" WHERE \"cover_model\"='Torrie Wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: What is the name of the pictorial in the 11-98 issue?" }, { "role": "assistant", "content": "SELECT \"pictorials\" FROM \"table1_1566850_9\" WHERE \"date\"='11-98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: How many centerfolds were in the 9-98 issue?" }, { "role": "assistant", "content": "SELECT COUNT(\"centerfold_model\") FROM \"table1_1566850_9\" WHERE \"date\"='9-98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was interviewed in the 8-98 issue?" }, { "role": "assistant", "content": "SELECT \"interview_subject\" FROM \"table1_1566850_9\" WHERE \"date\"='8-98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was asked 20 questions in the issue where the centerfold is Marliece Andrada?" }, { "role": "assistant", "content": "SELECT \"20_questions\" FROM \"table1_1566850_9\" WHERE \"centerfold_model\"='Marliece Andrada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was asked 20 questions in the issue where the cover model is Linda Brava?" }, { "role": "assistant", "content": "SELECT \"20_questions\" FROM \"table1_1566850_9\" WHERE \"cover_model\"='Linda Brava';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566850_9\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was featured in the pictorials in the issue where John Peterman was asked 20 questions?" }, { "role": "assistant", "content": "SELECT \"pictorials\" FROM \"table1_1566850_9\" WHERE \"20_questions\"='John Peterman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: How many times was Jillian Grace the centerfold model?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"table1_1566852_6\" WHERE \"centerfold_model\"='Jillian Grace';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: What were the interview subjects on those occasions where Bai Ling was the cover model?" }, { "role": "assistant", "content": "SELECT \"interview_subject\" FROM \"table1_1566852_6\" WHERE \"cover_model\"='Bai Ling';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: How many total interview subjects wererthere when the centerfold model was Tamara Witmer?" }, { "role": "assistant", "content": "SELECT COUNT(\"interview_subject\") FROM \"table1_1566852_6\" WHERE \"centerfold_model\"='Tamara Witmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: What's the subject of 20 questions in those issues where Jillian Grace is the centerfold model?" }, { "role": "assistant", "content": "SELECT \"20_questions\" FROM \"table1_1566852_6\" WHERE \"centerfold_model\"='Jillian Grace';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who were the cover model(s) on the 4-05 issue?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"table1_1566852_6\" WHERE \"date\"='4-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1566852_6\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was on the cover when the 20 questions subject was Scarlett Johansson?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"table1_1566852_6\" WHERE \"20_questions\"='Scarlett Johansson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cost_per_kilowatt_hour_us_cents_k_wh\" (\n \"20_years\" text,\n \"2400_k_wh_k_w_p_y\" text,\n \"2200_k_wh_k_w_p_y\" text,\n \"2000_k_wh_k_w_p_y\" text,\n \"1800_k_wh_k_w_p_y\" text,\n \"1600_k_wh_k_w_p_y\" text,\n \"1400_k_wh_k_w_p_y\" text,\n \"1200_k_wh_k_w_p_y\" text,\n \"1000_k_wh_k_w_p_y\" text,\n \"800_k_wh_k_w_p_y\" text\n);\n\nQuestion: Name the 20 years for 1600 kwh/kw p y is 8.8" }, { "role": "assistant", "content": "SELECT \"20_years\" FROM \"cost_per_kilowatt_hour_us_cents_k_wh\" WHERE \"1600_k_wh_k_w_p_y\"='8.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cost_per_kilowatt_hour_us_cents_k_wh\" (\n \"20_years\" text,\n \"2400_k_wh_k_w_p_y\" text,\n \"2200_k_wh_k_w_p_y\" text,\n \"2000_k_wh_k_w_p_y\" text,\n \"1800_k_wh_k_w_p_y\" text,\n \"1600_k_wh_k_w_p_y\" text,\n \"1400_k_wh_k_w_p_y\" text,\n \"1200_k_wh_k_w_p_y\" text,\n \"1000_k_wh_k_w_p_y\" text,\n \"800_k_wh_k_w_p_y\" text\n);\n\nQuestion: Name the 1800 kwh/kw p y when 2400 kwh/kw p y is 5.8" }, { "role": "assistant", "content": "SELECT \"1800_k_wh_k_w_p_y\" FROM \"cost_per_kilowatt_hour_us_cents_k_wh\" WHERE \"2400_k_wh_k_w_p_y\"='5.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the date of 20 questions for jimmy fallon" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2004\" WHERE \"20_questions\"='Jimmy Fallon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the date for oliver stone" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2004\" WHERE \"interview_subject\"='Oliver Stone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the 20 questions for derek jeter" }, { "role": "assistant", "content": "SELECT \"20_questions\" FROM \"2004\" WHERE \"interview_subject\"='Derek Jeter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the pictorials for terrel owens" }, { "role": "assistant", "content": "SELECT \"pictorials\" FROM \"2004\" WHERE \"20_questions\"='Terrel Owens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the centerfold model for terrel owens" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"2004\" WHERE \"20_questions\"='Terrel Owens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Name the 20 questions for 8-04" }, { "role": "assistant", "content": "SELECT \"20_questions\" FROM \"2004\" WHERE \"date\"='8-04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the open cup for 2010" }, { "role": "assistant", "content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"=2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2006\" WHERE \"interview_subject\"='Shepard Smith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE JASON LEE ANSWERED THE 20 QUESTIONS?" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"2006\" WHERE \"20_questions\"='Jason Lee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE?" }, { "role": "assistant", "content": "SELECT COUNT(\"cover_model\") FROM \"2006\" WHERE \"centerfold_model\"='Stephanie Larimore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: IN THE ISSUE WITH KARA MONACO ON THE COVER, WHO WAS THE INTERVIEW SUBJECT?" }, { "role": "assistant", "content": "SELECT \"interview_subject\" FROM \"2006\" WHERE \"cover_model\"='Kara Monaco';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2006\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN?" }, { "role": "assistant", "content": "SELECT COUNT(\"20_questions\") FROM \"2006\" WHERE \"interview_subject\"='Ludacris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"countries_territories_and_capitals_admin\" (\n \"english_country_name\" text,\n \"arabic_romanised_country_name\" text,\n \"arabic_country_name\" text,\n \"english_capital_name\" text,\n \"arabic_romanised_capital_name\" text,\n \"arabic_capital_name\" text\n);\n\nQuestion: what is the arabic capital name wher the english capital name is manama?" }, { "role": "assistant", "content": "SELECT \"arabic_capital_name\" FROM \"countries_territories_and_capitals_admin\" WHERE \"english_capital_name\"='Manama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"countries_territories_and_capitals_admin\" (\n \"english_country_name\" text,\n \"arabic_romanised_country_name\" text,\n \"arabic_country_name\" text,\n \"english_capital_name\" text,\n \"arabic_romanised_capital_name\" text,\n \"arabic_capital_name\" text\n);\n\nQuestion: what is the arabic capital name where the english capital name is beirut?" }, { "role": "assistant", "content": "SELECT \"arabic_capital_name\" FROM \"countries_territories_and_capitals_admin\" WHERE \"english_capital_name\"='Beirut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: what is the rank for the rating 4.4?" }, { "role": "assistant", "content": "SELECT \"rank_night\" FROM \"u_s_nielsen_ratings\" WHERE \"rating\"='4.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: what is the rating where the rank is 48?" }, { "role": "assistant", "content": "SELECT \"rating_share_18_49\" FROM \"u_s_nielsen_ratings\" WHERE \"rank_week\"='48';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: what is the total rank where the rank is 58?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank_timeslot\") FROM \"u_s_nielsen_ratings\" WHERE \"rank_week\"='58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: what rank has viewers at 6.45?" }, { "role": "assistant", "content": "SELECT \"rank_week\" FROM \"u_s_nielsen_ratings\" WHERE \"viewers_millions\"='6.45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: what is the total number of rank where viewers is 9.38?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank_timeslot\") FROM \"u_s_nielsen_ratings\" WHERE \"viewers_millions\"='9.38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: Where is the service pattern sydenham then fast to norwood junction?" }, { "role": "assistant", "content": "SELECT \"destination\" FROM \"services\" WHERE \"service_pattern\"='Sydenham then fast to Norwood Junction';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: How many platforms have a southern opertator and the pattern is all stations via clapham junction?" }, { "role": "assistant", "content": "SELECT COUNT(\"platform\") FROM \"services\" WHERE \"operator\"='Southern' AND \"service_pattern\"='All stations via Clapham Junction';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: When London Bridge is the destination, what is the frequency?" }, { "role": "assistant", "content": "SELECT \"frequency_per_hour\" FROM \"services\" WHERE \"destination\"='London Bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: When London Bridge is the destination, how many lines are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"line\") FROM \"services\" WHERE \"destination\"='London Bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: When the service pattern is sydenham then fast to norwood junction, what is the destination?" }, { "role": "assistant", "content": "SELECT \"destination\" FROM \"services\" WHERE \"service_pattern\"='Sydenham then fast to Norwood Junction';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the playoff advancement during the year 1998?" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"year\"=1998;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: During 2003 what was open cup qualifying status?" }, { "role": "assistant", "content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"=2003;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What is the most recent year where team made it to 2nd round of the Open Cup?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"year_by_year\" WHERE \"open_cup\"='2nd Round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_19\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the margin of victory when the number is 15" }, { "role": "assistant", "content": "SELECT \"margin_of_victory\" FROM \"european_tour_wins_19\" WHERE \"no\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_19\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the number of numbers for howard clark" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"european_tour_wins_19\" WHERE \"runner_s_up\"='Howard Clark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_19\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the margin of victory when tournament is algarve open de portugal" }, { "role": "assistant", "content": "SELECT \"margin_of_victory\" FROM \"european_tour_wins_19\" WHERE \"tournament\"='Algarve Open de Portugal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_19\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"european_tour_wins_19\" WHERE \"margin_of_victory\"='3 strokes' AND \"winning_score\"='71-66-70-67=274';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: Name the most runs conceded" }, { "role": "assistant", "content": "SELECT MAX(\"runs_conceded\") FROM \"australia\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: Name the wickets when overs bowled is 9" }, { "role": "assistant", "content": "SELECT \"wickets\" FROM \"australia\" WHERE \"overs_bowled\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: Name the most maidens when e.r. 5.11" }, { "role": "assistant", "content": "SELECT MAX(\"maidens\") FROM \"australia\" WHERE \"e_r\"='5.11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: Name the least runs conceded for brett lee" }, { "role": "assistant", "content": "SELECT MIN(\"runs_conceded\") FROM \"australia\" WHERE \"name\"='Brett Lee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: How many runs conceded when the earned runs was 4.96?" }, { "role": "assistant", "content": "SELECT \"runs_conceded\" FROM \"sri_lanka\" WHERE \"e_r\"='4.96';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: How many players named sanath jayasuriya?" }, { "role": "assistant", "content": "SELECT COUNT(\"runs_conceded\") FROM \"sri_lanka\" WHERE \"name\"='Sanath Jayasuriya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: How many runs conceded for chaminda vaas?" }, { "role": "assistant", "content": "SELECT \"runs_conceded\" FROM \"sri_lanka\" WHERE \"name\"='Chaminda Vaas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: How many overs bowled for muttiah muralitharan?" }, { "role": "assistant", "content": "SELECT COUNT(\"overs_bowled\") FROM \"sri_lanka\" WHERE \"name\"='Muttiah Muralitharan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: What was the ER average for the player that conceded 368 runs?" }, { "role": "assistant", "content": "SELECT \"e_r\" FROM \"sri_lanka\" WHERE \"runs_conceded\"=368;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sri_lanka\" (\n \"name\" text,\n \"overs_bowled\" text,\n \"maidens\" real,\n \"runs_conceded\" real,\n \"wickets\" real,\n \"extras\" real,\n \"e_r\" text\n);\n\nQuestion: What is the lowest number of wickets for farveez maharoof?" }, { "role": "assistant", "content": "SELECT MIN(\"wickets\") FROM \"sri_lanka\" WHERE \"name\"='Farveez Maharoof';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode\" real,\n \"title\" text,\n \"story\" text,\n \"adapted_by\" text,\n \"director\" text,\n \"airdate\" text,\n \"exists\" text\n);\n\nQuestion: What is the airdate when the story is listed as hugh leonard?" }, { "role": "assistant", "content": "SELECT \"airdate\" FROM \"series_2\" WHERE \"story\"='Hugh Leonard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_vs_other_most_played_di_opponents\" (\n \"kansas_state_vs\" text,\n \"games_played\" real,\n \"overall_record\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"last_meeting\" text\n);\n\nQuestion: who won the kansas state game on 11/26/1988" }, { "role": "assistant", "content": "SELECT \"kansas_state_vs\" FROM \"record_vs_other_most_played_di_opponents\" WHERE \"last_meeting\"='11/26/1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_vs_other_most_played_di_opponents\" (\n \"kansas_state_vs\" text,\n \"games_played\" real,\n \"overall_record\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"last_meeting\" text\n);\n\nQuestion: how many games has kansas state and depaul played against each other" }, { "role": "assistant", "content": "SELECT COUNT(\"games_played\") FROM \"record_vs_other_most_played_di_opponents\" WHERE \"kansas_state_vs\"='DePaul';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_vs_other_most_played_di_opponents\" (\n \"kansas_state_vs\" text,\n \"games_played\" real,\n \"overall_record\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"last_meeting\" text\n);\n\nQuestion: if they played last on 12/5/1987 what is their record" }, { "role": "assistant", "content": "SELECT \"current_streak\" FROM \"record_vs_other_most_played_di_opponents\" WHERE \"last_meeting\"='12/5/1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15777546_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: What number in the season was \"reflections\"?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_15777546_1\" WHERE \"title\"='\\\"Reflections\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the high points for march 7" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='March 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the date for sacramento" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"team\"='Sacramento';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the high rebounds for march 17" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='March 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance for philadelphia" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Philadelphia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the most assists in game 59?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=59;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record against Boston?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Boston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the poll winner for greg giraldo for porn" }, { "role": "assistant", "content": "SELECT \"poll_winner\" FROM \"season_1_2008\" WHERE \"advocate_num_2\"='Greg Giraldo for Porn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the number of advocate #1 that aired on april 2, 2008" }, { "role": "assistant", "content": "SELECT COUNT(\"advocate_num_1\") FROM \"season_1_2008\" WHERE \"original_air_date\"='April 2, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the poll winner for march 19, 2008" }, { "role": "assistant", "content": "SELECT COUNT(\"poll_winner\") FROM \"season_1_2008\" WHERE \"original_air_date\"='March 19, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the air date for andy kindler for donald trump" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"season_1_2008\" WHERE \"advocate_num_1\"='Andy Kindler for Donald Trump';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the # for youtube" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"season_1_2008\" WHERE \"poll_winner\"='YouTube';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the advocate #1 for american idol" }, { "role": "assistant", "content": "SELECT \"advocate_num_1\" FROM \"season_1_2008\" WHERE \"root_of_all_evil\"='American Idol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: When steroids won the poll, who was advocate #1?" }, { "role": "assistant", "content": "SELECT \"advocate_num_1\" FROM \"season_2_2008\" WHERE \"poll_winner\"='Steroids';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: What are the original air dates when scientology isthe poll winner?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"season_2_2008\" WHERE \"poll_winner\"='Scientology';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: When bloggers was the poll winner, who was the root of all evil?" }, { "role": "assistant", "content": "SELECT \"root_of_all_evil\" FROM \"season_2_2008\" WHERE \"poll_winner\"='Bloggers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_2008\" (\n \"num\" real,\n \"advocate_num_1\" text,\n \"advocate_num_2\" text,\n \"root_of_all_evil\" text,\n \"poll_winner\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many times did drinking games win the poll?" }, { "role": "assistant", "content": "SELECT COUNT(\"num\") FROM \"season_2_2008\" WHERE \"poll_winner\"='Drinking Games';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1579922_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What date was an episode with a run time of 24:30 broadcasted?" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_1579922_1\" WHERE \"run_time\"='24:30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1579922_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What episode had a run time of 24:25?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_1579922_1\" WHERE \"run_time\"='24:25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist for week number Top 16 (8 women)?" }, { "role": "assistant", "content": "SELECT \"original_artist\" FROM \"performances\" WHERE \"week_num\"='Top 16 (8 Women)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was the order number where the original artist is The Doors?" }, { "role": "assistant", "content": "SELECT \"order_num\" FROM \"performances\" WHERE \"original_artist\"='The Doors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was the theme when the original artist was The Beatles?" }, { "role": "assistant", "content": "SELECT \"theme\" FROM \"performances\" WHERE \"original_artist\"='The Beatles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist when the theme was 1980s?" }, { "role": "assistant", "content": "SELECT \"original_artist\" FROM \"performances\" WHERE \"theme\"='1980s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist when the order number is 9?" }, { "role": "assistant", "content": "SELECT \"original_artist\" FROM \"performances\" WHERE \"order_num\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15823956_1\" (\n \"series\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: Which episode was N/A in region 1" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"table1_15823956_1\" WHERE \"region_1\"='N/A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15823956_1\" (\n \"series\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: When was series premiere on the pilot episode" }, { "role": "assistant", "content": "SELECT \"series_premiere\" FROM \"table1_15823956_1\" WHERE \"series\"='Pilot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15823956_1\" (\n \"series\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: What is the region 1 date for series 4" }, { "role": "assistant", "content": "SELECT \"region_1\" FROM \"table1_15823956_1\" WHERE \"series\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15823956_1\" (\n \"series\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: How many episodes in the series that premieres 5 february 2012" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"table1_15823956_1\" WHERE \"series_premiere\"='5 February 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15824796_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What season began on december 5, 1953?" }, { "role": "assistant", "content": "SELECT MAX(\"season_num\") FROM \"table1_15824796_3\" WHERE \"original_air_date\"='December 5, 1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15824796_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of the first episode of the season that begin on february 27, 1954?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_15824796_3\" WHERE \"original_air_date\"='February 27, 1954';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15824796_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of the episode that aired on december 12, 1953?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_15824796_3\" WHERE \"original_air_date\"='December 12, 1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15824796_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many episodes aired on february 13, 1954?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_15824796_3\" WHERE \"original_air_date\"='February 13, 1954';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_15824796_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Which titles were directed by George Blair and written by Jackson Gillis?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_15824796_3\" WHERE \"directed_by\"='George Blair' AND \"written_by\"='Jackson Gillis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What are all the CFL teams where the pick number is 36?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"pick_num\"=36;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What are the positions in the college of Alberta?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_five\" WHERE \"college\"='Alberta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total number of CFL teams in the college Wilfrid Laurier" }, { "role": "assistant", "content": "SELECT COUNT(\"cfl_team\") FROM \"round_five\" WHERE \"college\"='Wilfrid Laurier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the college that Jeffrey Simmer plays for?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_five\" WHERE \"player\"='Jeffrey Simmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary_in_indian_premier_le\" (\n \"year\" real,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"tied\" real,\n \"success_rate\" text,\n \"position\" text,\n \"summary\" text\n);\n\nQuestion: Name the least matches for year 2008" }, { "role": "assistant", "content": "SELECT MIN(\"matches\") FROM \"performance_summary_in_indian_premier_le\" WHERE \"year\"=2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary_in_indian_premier_le\" (\n \"year\" real,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"tied\" real,\n \"success_rate\" text,\n \"position\" text,\n \"summary\" text\n);\n\nQuestion: Name the maximum wins for 68.75%" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"performance_summary_in_indian_premier_le\" WHERE \"success_rate\"='68.75%';" } ]