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 \"television_broadcasters\" (\n \"channel\" real,\n \"channel_name\" text,\n \"callsign\" text,\n \"signal_power\" text,\n \"broadcast_area\" text\n);\n\nQuestion: How many channels are there in the Greater Tokyo area?" }, { "role": "assistant", "content": "SELECT COUNT(\"channel\") FROM \"television_broadcasters\" WHERE \"broadcast_area\"='Greater Tokyo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"channel\" real,\n \"channel_name\" text,\n \"callsign\" text,\n \"signal_power\" text,\n \"broadcast_area\" text\n);\n\nQuestion: What is the signal power for JOAB-DTV?" }, { "role": "assistant", "content": "SELECT \"signal_power\" FROM \"television_broadcasters\" WHERE \"callsign\"='JOAB-DTV';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: How many times is the voting percentage 10.7%" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"table1_26375386_20\" WHERE \"vote_percentage\"='10.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: What is the vote percentage for the couple gary and maria?" }, { "role": "assistant", "content": "SELECT \"vote_percentage\" FROM \"table1_26375386_20\" WHERE \"couple\"='Gary and Maria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: what couple had a vote percentage of 5.8%?" }, { "role": "assistant", "content": "SELECT \"couple\" FROM \"table1_26375386_20\" WHERE \"vote_percentage\"='5.8%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: What is the public when the vote percentage is 16.0%" }, { "role": "assistant", "content": "SELECT \"public\" FROM \"table1_26375386_20\" WHERE \"vote_percentage\"='16.0%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: How many judges were there when the result is safe with a vote percentage of 10.7%?" }, { "role": "assistant", "content": "SELECT MIN(\"judges\") FROM \"table1_26375386_20\" WHERE \"result\"='Safe' AND \"vote_percentage\"='10.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_20\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: How many times was the vote percentage 15.0%?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"table1_26375386_20\" WHERE \"vote_percentage\"='15.0%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_score_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" text,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What is the least place when the couple is Keiron & Brianne?" }, { "role": "assistant", "content": "SELECT MIN(\"place\") FROM \"average_score_chart\" WHERE \"couple\"='Keiron & Brianne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_score_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" text,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: How many numbers of dances for place 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_dances\") FROM \"average_score_chart\" WHERE \"place\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_score_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" text,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: How many ranks by average when Keiron & Brianne are the couple?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank_by_average\") FROM \"average_score_chart\" WHERE \"couple\"='Keiron & Brianne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_score_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" text,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What is every average when number of dances is 1?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"average_score_chart\" WHERE \"number_of_dances\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_score_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" text,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: How many ranks by average for the couple Tana and Stuart?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank_by_average\") FROM \"average_score_chart\" WHERE \"couple\"='Tana and Stuart';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_22\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: Name the rank for mikey and melanie" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"table1_26375386_22\" WHERE \"couple\"='Mikey and Melanie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_22\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: Name the public for mikey and melanie" }, { "role": "assistant", "content": "SELECT \"public\" FROM \"table1_26375386_22\" WHERE \"couple\"='Mikey and Melanie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_22\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: Name the judges for 4 public" }, { "role": "assistant", "content": "SELECT \"judges\" FROM \"table1_26375386_22\" WHERE \"public\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_22\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: Name the total number for 3 public" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"table1_26375386_22\" WHERE \"public\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the number of directors for the film title Eldra?" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"table1_26385848_1\" WHERE \"film_title\"='Eldra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the year (ceremony) for the film title Eldra?" }, { "role": "assistant", "content": "SELECT \"year_ceremony\" FROM \"table1_26385848_1\" WHERE \"film_title\"='Eldra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who is the director for the film title Eldra?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26385848_1\" WHERE \"film_title\"='Eldra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: In the year (ceremony) 1998 (71st), what are all the main languages?" }, { "role": "assistant", "content": "SELECT \"main_language_s\" FROM \"table1_26385848_1\" WHERE \"year_ceremony\"='1998 (71st)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: In the year (ceremony) 2009 (82nd), who are all the directors?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26385848_1\" WHERE \"year_ceremony\"='2009 (82nd)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26385848_1\" (\n \"year_ceremony\" text,\n \"film_title\" text,\n \"main_language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: In the year (ceremony) 1995 (68th), what is the film title?" }, { "role": "assistant", "content": "SELECT \"film_title\" FROM \"table1_26385848_1\" WHERE \"year_ceremony\"='1995 (68th)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26389588_1\" (\n \"name_designation\" text,\n \"year_of_introduction\" text,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"primary_user\" text\n);\n\nQuestion: If the country of Origin is South Africa, who is the primary user?" }, { "role": "assistant", "content": "SELECT \"primary_user\" FROM \"table1_26389588_1\" WHERE \"country_of_origin\"='South Africa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26389588_1\" (\n \"name_designation\" text,\n \"year_of_introduction\" text,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"primary_user\" text\n);\n\nQuestion: If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?" }, { "role": "assistant", "content": "SELECT \"primary_cartridge\" FROM \"table1_26389588_1\" WHERE \"year_of_introduction\"='1962' AND \"country_of_origin\"='Denmark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26389588_1\" (\n \"name_designation\" text,\n \"year_of_introduction\" text,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"primary_user\" text\n);\n\nQuestion: How many different years was the name/designation cetme?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_of_introduction\") FROM \"table1_26389588_1\" WHERE \"name_designation\"='CETME';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26389588_1\" (\n \"name_designation\" text,\n \"year_of_introduction\" text,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"primary_user\" text\n);\n\nQuestion: If the country of origin is switzerland, what is the name/ designation?" }, { "role": "assistant", "content": "SELECT \"name_designation\" FROM \"table1_26389588_1\" WHERE \"country_of_origin\"='Switzerland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26400075_2\" (\n \"entered_a\" text,\n \"weeks_in_top_10\" real,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_at_peak\" real\n);\n\nQuestion: How many singles does Lisa Stansfield have?" }, { "role": "assistant", "content": "SELECT COUNT(\"single\") FROM \"table1_26400075_2\" WHERE \"artist\"='Lisa Stansfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26400075_2\" (\n \"entered_a\" text,\n \"weeks_in_top_10\" real,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_at_peak\" real\n);\n\nQuestion: How many weeks in the top-10 did Beats International have?" }, { "role": "assistant", "content": "SELECT \"weeks_in_top_10\" FROM \"table1_26400075_2\" WHERE \"artist\"='Beats International';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26401898_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the final score for barcelona dragons" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"table1_26401898_2\" WHERE \"opponent\"='Barcelona Dragons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26401898_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the least week for l 26\u201342" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"table1_26401898_2\" WHERE \"final_score\"='L 26\u201342';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26401898_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the game site for l 26\u201342" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"table1_26401898_2\" WHERE \"final_score\"='L 26\u201342';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26401898_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the most attendance" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"table1_26401898_2\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" text,\n \"status\" text,\n \"2010_candidates\" text\n);\n\nQuestion: What is the elected year when the 2010 candidates were jesse stone (r) 93.51 diane evans (i) 6.49%?" }, { "role": "assistant", "content": "SELECT \"elected\" FROM \"election_results\" WHERE \"2010_candidates\"='Jesse Stone (R) 93.51 Diane Evans (I) 6.49%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" text,\n \"status\" text,\n \"2010_candidates\" text\n);\n\nQuestion: What is the party when 2010 candidates is gloria butler (d) unopposed?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"election_results\" WHERE \"2010_candidates\"='Gloria Butler (D) unopposed';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" text,\n \"status\" text,\n \"2010_candidates\" text\n);\n\nQuestion: How many times were the 2010 candidates Judson hill (r) unopposed?" }, { "role": "assistant", "content": "SELECT COUNT(\"elected\") FROM \"election_results\" WHERE \"2010_candidates\"='Judson Hill (R) unopposed';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" text,\n \"status\" text,\n \"2010_candidates\" text\n);\n\nQuestion: What is the elected year when the party is democratic and the 2010 candidates is jason carter (d) unopposed?" }, { "role": "assistant", "content": "SELECT \"elected\" FROM \"election_results\" WHERE \"party\"='Democratic' AND \"2010_candidates\"='Jason Carter (D) unopposed';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" text,\n \"status\" text,\n \"2010_candidates\" text\n);\n\nQuestion: Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican?" }, { "role": "assistant", "content": "SELECT \"incumbent\" FROM \"election_results\" WHERE \"elected\"='2004' AND \"status\"='Re-elected' AND \"party\"='Republican';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26409328_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what number is the episode \"there will be bad blood\" in the series?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_26409328_1\" WHERE \"title\"='\\\"There Will Be Bad Blood\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26409328_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: who wrote the episode having joe daniello as director with production code 6ajn05?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26409328_1\" WHERE \"directed_by\"='Joe Daniello' AND \"production_code\"='6AJN05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26409328_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what title was given to the episode with production code 6ajn08?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26409328_1\" WHERE \"production_code\"='6AJN08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26409328_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what is the production code of the episode viewed by 5.36 million u.s. people? " }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_26409328_1\" WHERE \"u_s_viewers_millions\"='5.36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"alumni\" text,\n \"original_season\" text,\n \"fresh_meat_partner\" text,\n \"age\" real,\n \"hometown\" text,\n \"finish\" text\n);\n\nQuestion: How many cast members had sydney walker as their fresh meat partner?" }, { "role": "assistant", "content": "SELECT COUNT(\"hometown\") FROM \"cast\" WHERE \"fresh_meat_partner\"='Sydney Walker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"alumni\" text,\n \"original_season\" text,\n \"fresh_meat_partner\" text,\n \"age\" real,\n \"hometown\" text,\n \"finish\" text\n);\n\nQuestion: What alumni had noor jehangir as their fresh meat partner?" }, { "role": "assistant", "content": "SELECT \"alumni\" FROM \"cast\" WHERE \"fresh_meat_partner\"='Noor Jehangir';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"alumni\" text,\n \"original_season\" text,\n \"fresh_meat_partner\" text,\n \"age\" real,\n \"hometown\" text,\n \"finish\" text\n);\n\nQuestion: What alumni were in rw: cancun as their original season?" }, { "role": "assistant", "content": "SELECT \"alumni\" FROM \"cast\" WHERE \"original_season\"='RW: Cancun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"alumni\" text,\n \"original_season\" text,\n \"fresh_meat_partner\" text,\n \"age\" real,\n \"hometown\" text,\n \"finish\" text\n);\n\nQuestion: How many people were from portland, or?" }, { "role": "assistant", "content": "SELECT COUNT(\"age\") FROM \"cast\" WHERE \"hometown\"='Portland, OR';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26423157_2\" (\n \"school\" text,\n \"record\" text,\n \"conference\" text,\n \"conf_record\" text,\n \"last_app\" real,\n \"seed\" text,\n \"round_eliminated\" text,\n \"lost_to_seed\" text\n);\n\nQuestion: What conference is Tennessee?" }, { "role": "assistant", "content": "SELECT \"conference\" FROM \"table1_26423157_2\" WHERE \"school\"='Tennessee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26423157_2\" (\n \"school\" text,\n \"record\" text,\n \"conference\" text,\n \"conf_record\" text,\n \"last_app\" real,\n \"seed\" text,\n \"round_eliminated\" text,\n \"lost_to_seed\" text\n);\n\nQuestion: What seed was California?" }, { "role": "assistant", "content": "SELECT \"seed\" FROM \"table1_26423157_2\" WHERE \"school\"='California';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26428602_1\" (\n \"fluorescent_dye\" text,\n \"color\" text,\n \"mass_g_mol\" real,\n \"absorb_nm\" real,\n \"emit_nm\" real,\n \"m_1_cm_1\" text\n);\n\nQuestion: What is the \u03b5 (m \u22121 cm \u22121 ) of the red dye?" }, { "role": "assistant", "content": "SELECT \"m_1_cm_1\" FROM \"table1_26428602_1\" WHERE \"color\"='red';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26428602_1\" (\n \"fluorescent_dye\" text,\n \"color\" text,\n \"mass_g_mol\" real,\n \"absorb_nm\" real,\n \"emit_nm\" real,\n \"m_1_cm_1\" text\n);\n\nQuestion: How much absorption in nm does the orange dye have?" }, { "role": "assistant", "content": "SELECT MIN(\"absorb_nm\") FROM \"table1_26428602_1\" WHERE \"color\"='orange';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26428602_1\" (\n \"fluorescent_dye\" text,\n \"color\" text,\n \"mass_g_mol\" real,\n \"absorb_nm\" real,\n \"emit_nm\" real,\n \"m_1_cm_1\" text\n);\n\nQuestion: What is the \u03b5 (m \u22121 cm \u22121 ) of the orange flourescent dye?" }, { "role": "assistant", "content": "SELECT \"m_1_cm_1\" FROM \"table1_26428602_1\" WHERE \"color\"='orange';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26428602_1\" (\n \"fluorescent_dye\" text,\n \"color\" text,\n \"mass_g_mol\" real,\n \"absorb_nm\" real,\n \"emit_nm\" real,\n \"m_1_cm_1\" text\n);\n\nQuestion: What is the lowest dye absoprtion in nm?" }, { "role": "assistant", "content": "SELECT MIN(\"absorb_nm\") FROM \"table1_26428602_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26429771_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the name of chapter 8 of season 4?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26429771_1\" WHERE \"no_in_season\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26429771_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the code of production in the chapter \"high top fade-out\"" }, { "role": "assistant", "content": "SELECT COUNT(\"production_code\") FROM \"table1_26429771_1\" WHERE \"title\"='\\\"High Top Fade-Out\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26429543_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode entitled \"From the Earth to the Starbucks\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_26429543_1\" WHERE \"title\"='\\\"From the Earth to the Starbucks\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26429543_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many different production codes are there for the episode with 4.69 million US viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"production_code\") FROM \"table1_26429543_1\" WHERE \"u_s_viewers_millions\"='4.69';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"2005_film\" text,\n \"2008_final_performance_film\" text,\n \"hollywood_bowl_cast\" text,\n \"2011_off_broadway_revival\" text\n);\n\nQuestion: Who was in the 2005 film with the role mark cohen?" }, { "role": "assistant", "content": "SELECT \"2005_film\" FROM \"cast\" WHERE \"role\"='Mark Cohen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"2005_film\" text,\n \"2008_final_performance_film\" text,\n \"hollywood_bowl_cast\" text,\n \"2011_off_broadway_revival\" text\n);\n\nQuestion: Who had the 2008 final performance film when the 2011 off-broadway revival was annaleigh ashford?" }, { "role": "assistant", "content": "SELECT \"2008_final_performance_film\" FROM \"cast\" WHERE \"2011_off_broadway_revival\"='Annaleigh Ashford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"2005_film\" text,\n \"2008_final_performance_film\" text,\n \"hollywood_bowl_cast\" text,\n \"2011_off_broadway_revival\" text\n);\n\nQuestion: who was in the 2005 role when the original broadway cast was played by jesse l. martin?" }, { "role": "assistant", "content": "SELECT \"2005_film\" FROM \"cast\" WHERE \"original_broadway_cast\"='Jesse L. Martin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"2005_film\" text,\n \"2008_final_performance_film\" text,\n \"hollywood_bowl_cast\" text,\n \"2011_off_broadway_revival\" text\n);\n\nQuestion: How many times was mj rodriguez cast?" }, { "role": "assistant", "content": "SELECT COUNT(\"role\") FROM \"cast\" WHERE \"2011_off_broadway_revival\"='MJ Rodriguez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the episode that is production code 202?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26448179_3\" WHERE \"production_code\"='202';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of US viewers watched \"Helen Back Again\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_26448179_3\" WHERE \"title\"='\\\"Helen Back Again\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What title was watched by 3.8 million US viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26448179_3\" WHERE \"u_s_viewers_millions\"='3.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date of \"Helen Back Again\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26448179_3\" WHERE \"title\"='\\\"Helen Back Again\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What season number in the season has production code 210?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_26448179_3\" WHERE \"production_code\"='210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: He wrote production number 102? " }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26448179_2\" WHERE \"production_code\"='102';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode watched by 3.2 million viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26448179_4\" WHERE \"u_s_viewers_millions\"='3.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode with production code 305?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26448179_4\" WHERE \"production_code\"=305;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many air dates had 3.2 million viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_26448179_4\" WHERE \"u_s_viewers_millions\"='3.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26448179_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the highest production code?" }, { "role": "assistant", "content": "SELECT MAX(\"production_code\") FROM \"table1_26448179_4\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"javelin_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: What are the point value(s) for when the athlete was Barney Berlinger?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"javelin_throw\" WHERE \"athlete\"='Barney Berlinger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"javelin_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: What is the total number of times points were listed when the distance was 41.05 metres?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"javelin_throw\" WHERE \"distance_metres\"='41.05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"javelin_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: Who is the athlete(s) who scored 691 adjusted points?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"javelin_throw\" WHERE \"adjusted_points\"=691;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"javelin_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: What is the highest rank where the distance is 52.73?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"javelin_throw\" WHERE \"distance_metres\"='52.73';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"javelin_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: What is the country(s) where the points equal 723.075?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"javelin_throw\" WHERE \"points\"='723.075';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"high_jump\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"height\" text,\n \"points\" real,\n \"adjusted_points\" real\n);\n\nQuestion: What is the most adjusted points for Great Britain?" }, { "role": "assistant", "content": "SELECT MAX(\"adjusted_points\") FROM \"high_jump\" WHERE \"country\"='Great Britain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"high_jump\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"height\" text,\n \"points\" real,\n \"adjusted_points\" real\n);\n\nQuestion: What is the country of Paavo Yrj\u00f6l\u00e4?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"high_jump\" WHERE \"athlete\"='Paavo Yrj\u00f6l\u00e4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"high_jump\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"height\" text,\n \"points\" real,\n \"adjusted_points\" real\n);\n\nQuestion: Which athlete has a height of 1.87 and is from Sweden?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"high_jump\" WHERE \"height\"='1.87' AND \"country\"='Sweden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"discus_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: Name the country that has ken doherty" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"discus_throw\" WHERE \"athlete\"='Ken Doherty';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"discus_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: Name the athlete for 7 rank" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"discus_throw\" WHERE \"rank\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"discus_throw\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"distance_metres\" text,\n \"points\" text,\n \"adjusted_points\" real\n);\n\nQuestion: Name the total number of rank for tom churchill" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"discus_throw\" WHERE \"athlete\"='Tom Churchill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: Who was the heir when the monarch was Wareru?" }, { "role": "assistant", "content": "SELECT \"heir\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"monarch\"='Wareru';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: What is the number of monarchs that had Yan Maw la Mon as the heir?" }, { "role": "assistant", "content": "SELECT COUNT(\"monarch\") FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"heir\"='Yan Maw La Mon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: Who was the monarch whose status was heir presumptive and a relationship to the monarch of son?" }, { "role": "assistant", "content": "SELECT \"monarch\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"status\"='Heir presumptive' AND \"relationship_to_monarch\"='son';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: What is the status for the monarch Mingyinyo?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"monarch\"='Mingyinyo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: What is the status when the ceased to be heir; reason is 18 february 1853 succeeded?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"ceased_to_be_heir_reason\"='18 February 1853 succeeded';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: When is the became heir; reason when heir is hsinbyushin?" }, { "role": "assistant", "content": "SELECT \"became_heir_reason\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"heir\"='Hsinbyushin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: Who is the monarch when became heir; reason is 13 july 1783 father succeeded?" }, { "role": "assistant", "content": "SELECT \"monarch\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"became_heir_reason\"='13 July 1783 father succeeded';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: How many times was the monarch singu?" }, { "role": "assistant", "content": "SELECT COUNT(\"relationship_to_monarch\") FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"monarch\"='Singu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_heirs_to_the_burmese_thrones\" (\n \"monarch\" text,\n \"heir\" text,\n \"status\" text,\n \"relationship_to_monarch\" text,\n \"became_heir_reason\" text,\n \"ceased_to_be_heir_reason\" text,\n \"next_in_succession\" text\n);\n\nQuestion: Who is the monarch with the heir thado minsaw?" }, { "role": "assistant", "content": "SELECT \"monarch\" FROM \"list_of_heirs_to_the_burmese_thrones\" WHERE \"heir\"='Thado Minsaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26464364_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who are the writers of the episodes directed by Justin Hartley?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26464364_1\" WHERE \"directed_by\"='Justin Hartley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26464364_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: On which date did episode # 18 air in the U.S.?" }, { "role": "assistant", "content": "SELECT \"u_s_air_date\" FROM \"table1_26464364_1\" WHERE \"num\"=18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26464364_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many million U.S. viewers watched the episode with the production code 3x6004?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_26464364_1\" WHERE \"production_code\"='3X6004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26464364_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: List the titles of episodes written by Anne Cofell Saunders." }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26464364_1\" WHERE \"written_by\"='Anne Cofell Saunders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26464364_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the title of the episode directed by Christopher Petry with the production cod 3x6006?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26464364_1\" WHERE \"directed_by\"='Christopher Petry' AND \"production_code\"='3X6006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who was the incumbent in the Ohio 10 district?" }, { "role": "assistant", "content": "SELECT \"incumbent\" FROM \"ohio\" WHERE \"district\"='Ohio 10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who was the incumbent in the Ohio 5 district?" }, { "role": "assistant", "content": "SELECT \"incumbent\" FROM \"ohio\" WHERE \"district\"='Ohio 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?" }, { "role": "assistant", "content": "SELECT \"candidates\" FROM \"ohio\" WHERE \"result\"='Retired Republican hold' AND \"incumbent\"='Philemon Bliss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: How many new conferences are in the NCLL deep south conference?" }, { "role": "assistant", "content": "SELECT COUNT(\"new_conference\") FROM \"former_members\" WHERE \"new_classification\"='NCLL Deep South Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What is the nickname at the University of Nebraska at Omaha?" }, { "role": "assistant", "content": "SELECT \"team_nickname\" FROM \"former_members\" WHERE \"institution\"='University of Nebraska at Omaha';" } ]