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 \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"result\"='won' AND \"competition\"='friendly' AND \"date\"='28 may 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result of the game at kyiv, ukraine?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"venue\"='kyiv, ukraine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1_17_february_2008\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"choreographer\" text,\n \"results\" text\n);\n\nQuestion: What is the Style of the dance by Choreographer Luda and Oliver?" }, { "role": "assistant", "content": "SELECT \"style\" FROM \"week_1_17_february_2008\" WHERE \"choreographer\"='luda and oliver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1_17_february_2008\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"choreographer\" text,\n \"results\" text\n);\n\nQuestion: What is the Result of the dance Choreographed by Kelly Aykers?" }, { "role": "assistant", "content": "SELECT \"results\" FROM \"week_1_17_february_2008\" WHERE \"choreographer\"='kelly aykers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_1_17_february_2008\" (\n \"couple\" text,\n \"style\" text,\n \"music\" text,\n \"choreographer\" text,\n \"results\" text\n);\n\nQuestion: What is the Style of the dance Choreographed by Nacho Pop with result of safe?" }, { "role": "assistant", "content": "SELECT \"style\" FROM \"week_1_17_february_2008\" WHERE \"results\"='safe' AND \"choreographer\"='nacho pop';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table_by_country\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"medal_table_by_country\" WHERE \"total\">2 AND \"gold\"=21 AND \"bronze\">12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table_by_country\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many golds does Germany have with more than 1 silver?" }, { "role": "assistant", "content": "SELECT SUM(\"gold\") FROM \"medal_table_by_country\" WHERE \"silver\">1 AND \"nation\"='germany';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"draft\" real,\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text\n);\n\nQuestion: What is the total number of rounds of the player with a pick of 20?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"draft_picks\" WHERE \"pick\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"draft\" real,\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text\n);\n\nQuestion: Who is the player from the 1971 draft with a pick greater than 7?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"draft\"=1971 AND \"pick\">7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"number_of_participants\" (\n \"season\" text,\n \"premier\" real,\n \"first\" real,\n \"second\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of Premier, when Second is \"55\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"premier\") FROM \"number_of_participants\" WHERE \"second\"=55;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"number_of_participants\" (\n \"season\" text,\n \"premier\" real,\n \"first\" real,\n \"second\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?" }, { "role": "assistant", "content": "SELECT COUNT(\"second\") FROM \"number_of_participants\" WHERE \"first\">18 AND \"season\"='1992-93' AND \"premier\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"number_of_participants\" (\n \"season\" text,\n \"premier\" real,\n \"first\" real,\n \"second\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest Total, when Second is \"55\"?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"number_of_participants\" WHERE \"second\"=55;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"number_of_participants\" (\n \"season\" text,\n \"premier\" real,\n \"first\" real,\n \"second\" real,\n \"total\" real\n);\n\nQuestion: What is the highest Total, when Season is \"1996-97\", and when Second is less than 33?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"number_of_participants\" WHERE \"season\"='1996-97' AND \"second\"<33;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"number_of_participants\" (\n \"season\" text,\n \"premier\" real,\n \"first\" real,\n \"second\" real,\n \"total\" real\n);\n\nQuestion: What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?" }, { "role": "assistant", "content": "SELECT SUM(\"second\") FROM \"number_of_participants\" WHERE \"total\"<70 AND \"premier\"<20 AND \"first\">18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_statistics\" (\n \"name\" text,\n \"season\" text,\n \"games\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text\n);\n\nQuestion: In what season were there 27 goals and 58 points?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"club_statistics\" WHERE \"goals\"='27' AND \"points\"='58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_statistics\" (\n \"name\" text,\n \"season\" text,\n \"games\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text\n);\n\nQuestion: What are the points in the season with 47 games and 28 goals?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"club_statistics\" WHERE \"goals\"='28' AND \"games\"='47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_statistics\" (\n \"name\" text,\n \"season\" text,\n \"games\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text\n);\n\nQuestion: How many goals were there in game 47?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"club_statistics\" WHERE \"games\"='47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middleweight_77_kg\" (\n \"name\" text,\n \"bodyweight\" real,\n \"snatch\" real,\n \"clean_jerk\" real,\n \"total_kg\" real\n);\n\nQuestion: How much Snatch has a Total (kg) smaller than 257?" }, { "role": "assistant", "content": "SELECT SUM(\"snatch\") FROM \"middleweight_77_kg\" WHERE \"total_kg\"<257;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middleweight_77_kg\" (\n \"name\" text,\n \"bodyweight\" real,\n \"snatch\" real,\n \"clean_jerk\" real,\n \"total_kg\" real\n);\n\nQuestion: Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?" }, { "role": "assistant", "content": "SELECT MIN(\"snatch\") FROM \"middleweight_77_kg\" WHERE \"clean_jerk\"=180 AND \"bodyweight\"<69.83;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"terror_and_other_attacks_1968_1987\" (\n \"military_deaths\" real,\n \"civilian_deaths_including_foreigners\" real,\n \"total_deaths\" real,\n \"military_and_or_civilian_wounded\" text,\n \"total_casualties\" text\n);\n\nQuestion: What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?" }, { "role": "assistant", "content": "SELECT COUNT(\"military_deaths\") FROM \"terror_and_other_attacks_1968_1987\" WHERE \"military_and_or_civilian_wounded\"='78' AND \"total_deaths\">27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"terror_and_other_attacks_1968_1987\" (\n \"military_deaths\" real,\n \"civilian_deaths_including_foreigners\" real,\n \"total_deaths\" real,\n \"military_and_or_civilian_wounded\" text,\n \"total_casualties\" text\n);\n\nQuestion: What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?" }, { "role": "assistant", "content": "SELECT AVG(\"military_deaths\") FROM \"terror_and_other_attacks_1968_1987\" WHERE \"civilian_deaths_including_foreigners\"<38 AND \"military_and_or_civilian_wounded\"='33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"terror_and_other_attacks_1968_1987\" (\n \"military_deaths\" real,\n \"civilian_deaths_including_foreigners\" real,\n \"total_deaths\" real,\n \"military_and_or_civilian_wounded\" text,\n \"total_casualties\" text\n);\n\nQuestion: What is the total number of casualties when there are 12 total deaths and more than 1 military death?" }, { "role": "assistant", "content": "SELECT \"total_casualties\" FROM \"terror_and_other_attacks_1968_1987\" WHERE \"total_deaths\"=12 AND \"military_deaths\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: which Total has a Score points of 11?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"qualification\" WHERE \"score_points\"='11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: Which Total has an olympic bronze medalist?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"qualification\" WHERE \"rank_points\"='olympic bronze medalist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: Which Shooter has Score points of olympic silver medalist?" }, { "role": "assistant", "content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"score_points\"='olympic silver medalist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?" }, { "role": "assistant", "content": "SELECT \"rank_points\" FROM \"qualification\" WHERE \"event\"='wc beijing' AND \"score_points\"='13' AND \"total\"='18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the Film title used in nomination of Cilv\u0113ka B\u0113rns?" }, { "role": "assistant", "content": "SELECT \"film_title_used_in_nomination\" FROM \"list\" WHERE \"original_title\"='cilv\u0113ka b\u0113rns';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the Original Title of the 1992 (65th) Film" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"list\" WHERE \"year_ceremony\"='1992 (65th)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the Director of Gulf Stream Under the Iceberg?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"list\" WHERE \"film_title_used_in_nomination\"='gulf stream under the iceberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What is the Original Title of the movie directed by Aigars Grauba?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"list\" WHERE \"director\"='aigars grauba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vowel_alone\" (\n \"letter\" text,\n \"american\" text,\n \"british\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the British letter with o /o\u028a/?" }, { "role": "assistant", "content": "SELECT \"british\" FROM \"vowel_alone\" WHERE \"letter\"='o /o\u028a/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vowel_alone\" (\n \"letter\" text,\n \"american\" text,\n \"british\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: Which letter has the British a\u026a?" }, { "role": "assistant", "content": "SELECT \"letter\" FROM \"vowel_alone\" WHERE \"british\"='a\u026a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vowel_alone\" (\n \"letter\" text,\n \"american\" text,\n \"british\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What does American have if Australia has \u0259\u0289?" }, { "role": "assistant", "content": "SELECT \"american\" FROM \"vowel_alone\" WHERE \"australian\"='\u0259\u0289';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vowel_alone\" (\n \"letter\" text,\n \"american\" text,\n \"british\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the British letter if American is \u0259?" }, { "role": "assistant", "content": "SELECT \"british\" FROM \"vowel_alone\" WHERE \"american\"='\u0259';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vowel_alone\" (\n \"letter\" text,\n \"american\" text,\n \"british\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the Australian letter with a British of \u026a and a letter of \u00e6 /i/??" }, { "role": "assistant", "content": "SELECT \"australian\" FROM \"vowel_alone\" WHERE \"british\"='\u026a' AND \"letter\"='\u00e6 /i/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fifth_round_proper\" WHERE \"attendance\">'16,851' AND \"away_team\"='sheffield united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: What is sheffield united's away team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"home_team\"='sheffield united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: How many people attended the Away team of middlesbrough?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"fifth_round_proper\" WHERE \"away_team\"='middlesbrough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: Which Score has an Away team of middlesbrough?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fifth_round_proper\" WHERE \"away_team\"='middlesbrough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_ft_m\" text,\n \"floors\" real\n);\n\nQuestion: WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?" }, { "role": "assistant", "content": "SELECT \"years_as_tallest\" FROM \"timeline_of_tallest_buildings\" WHERE \"street_address\"='01.0 10 light street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_ft_m\" text,\n \"floors\" real\n);\n\nQuestion: WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?" }, { "role": "assistant", "content": "SELECT SUM(\"floors\") FROM \"timeline_of_tallest_buildings\" WHERE \"street_address\"='01.0 10 light street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_ft_m\" text,\n \"floors\" real\n);\n\nQuestion: WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?" }, { "role": "assistant", "content": "SELECT \"years_as_tallest\" FROM \"timeline_of_tallest_buildings\" WHERE \"floors\"<24 AND \"street_address\"='05.0 210 north charles street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_ft_m\" text,\n \"floors\" real\n);\n\nQuestion: WHAT IS THE NAME WITH 01.0 10 light street?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"timeline_of_tallest_buildings\" WHERE \"street_address\"='01.0 10 light street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Name of the Player with a Height of m (ft 1in)?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"kazakhstan\" WHERE \"height\"='m (ft 1in)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is Tatyana Gubina's Weight?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"kazakhstan\" WHERE \"name\"='tatyana gubina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is Alyona Klimenko's Pos.?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"kazakhstan\" WHERE \"name\"='alyona klimenko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"total\" real\n);\n\nQuestion: How many third places has a total greater than 2 and a rank less than 2?" }, { "role": "assistant", "content": "SELECT \"third_place\" FROM \"men\" WHERE \"total\">2 AND \"rank\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: What is the number for R Bacon in Passaic County?" }, { "role": "assistant", "content": "SELECT \"r_bacon\" FROM \"u_s_house_district_5\" WHERE \"county\"='passaic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: What is the number for D. Shulman if C. Abate has 728 (43%)" }, { "role": "assistant", "content": "SELECT \"d_shulman\" FROM \"u_s_house_district_5\" WHERE \"c_abate\"='728 (43%)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: Which county has 728 (43%) listed under C. Abate?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"u_s_house_district_5\" WHERE \"c_abate\"='728 (43%)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: What are the numbers for D. Shulman in Warren County?" }, { "role": "assistant", "content": "SELECT \"d_shulman\" FROM \"u_s_house_district_5\" WHERE \"county\"='warren';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: Which County has Precincts of 90/90?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"u_s_house_district_5\" WHERE \"precincts\"='90/90';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_house_district_5\" (\n \"county\" text,\n \"precincts\" text,\n \"c_abate\" text,\n \"r_bacon\" text,\n \"d_shulman\" text\n);\n\nQuestion: Which county has 438 (4%) listed under R. Bacon?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"u_s_house_district_5\" WHERE \"r_bacon\"='438 (4%)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albums\" (\n \"artist\" text,\n \"album\" text,\n \"country\" text,\n \"year\" real,\n \"catalog_num\" text,\n \"format\" text\n);\n\nQuestion: What is the format of the album Pacific Ocean Blue in 1991?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"albums\" WHERE \"album\"='pacific ocean blue' AND \"year\"=1991;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albums\" (\n \"artist\" text,\n \"album\" text,\n \"country\" text,\n \"year\" real,\n \"catalog_num\" text,\n \"format\" text\n);\n\nQuestion: Who is the artist with catalog number ZK 34354?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"albums\" WHERE \"catalog_num\"='zk 34354';" } ]
[ { "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 \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: How tall is player James Stanton?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"australia\" WHERE \"name\"='james stanton';" } ]
[ { "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 \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: Which player is on the roster for the Sydney University Lions?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"australia\" WHERE \"club\"='sydney university lions';" } ]
[ { "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 \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the height of player James Stanton?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"australia\" WHERE \"name\"='james stanton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"draft\" real,\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text\n);\n\nQuestion: What is the highest draft after round 2, is from the United States and has picked less than 113?" }, { "role": "assistant", "content": "SELECT MAX(\"draft\") FROM \"draft_picks\" WHERE \"round\">2 AND \"nationality\"='united states' AND \"pick\"<113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"draft\" real,\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text\n);\n\nQuestion: What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?" }, { "role": "assistant", "content": "SELECT AVG(\"draft\") FROM \"draft_picks\" WHERE \"pick\">42 AND \"player\"='grant eakin' AND \"round\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What venue was the 2000 AFC Asian Cup qualification held at?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"competition\"='2000 afc asian cup qualification';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_goalkeepers\" (\n \"goalkeeper\" text,\n \"goals\" real,\n \"matches\" real,\n \"average\" real,\n \"team\" text\n);\n\nQuestion: What were the lowest goals when the matches were smaller than 29?" }, { "role": "assistant", "content": "SELECT MIN(\"goals\") FROM \"top_goalkeepers\" WHERE \"matches\"<29;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_goalkeepers\" (\n \"goalkeeper\" text,\n \"goals\" real,\n \"matches\" real,\n \"average\" real,\n \"team\" text\n);\n\nQuestion: What is the lowest match for goals larger than 36?" }, { "role": "assistant", "content": "SELECT MIN(\"matches\") FROM \"top_goalkeepers\" WHERE \"goals\">36;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hydro_power_stations_under_construction\" (\n \"s_no\" real,\n \"power_plant\" text,\n \"state\" text,\n \"total_capacity_mw\" real,\n \"completion_schedule\" text\n);\n\nQuestion: For the 2013 completion schedule, what is the total S.no.?" }, { "role": "assistant", "content": "SELECT SUM(\"s_no\") FROM \"hydro_power_stations_under_construction\" WHERE \"completion_schedule\"='2013';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hydro_power_stations_under_construction\" (\n \"s_no\" real,\n \"power_plant\" text,\n \"state\" text,\n \"total_capacity_mw\" real,\n \"completion_schedule\" text\n);\n\nQuestion: What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?" }, { "role": "assistant", "content": "SELECT \"completion_schedule\" FROM \"hydro_power_stations_under_construction\" WHERE \"state\"='himachal pradesh' AND \"total_capacity_mw\"=800;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hydro_power_stations_under_construction\" (\n \"s_no\" real,\n \"power_plant\" text,\n \"state\" text,\n \"total_capacity_mw\" real,\n \"completion_schedule\" text\n);\n\nQuestion: When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?" }, { "role": "assistant", "content": "SELECT MIN(\"s_no\") FROM \"hydro_power_stations_under_construction\" WHERE \"state\"='jammu & kashmir' AND \"completion_schedule\"='2016';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2012\"='a' AND \"2011\"='1r' AND \"tournament\"='shanghai masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"singles_performance_timeline\" WHERE \"2008\"='a' AND \"2012\"='a' AND \"2009\"='a' AND \"tournament\"='paris masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2012 of the hamburg masters?" }, { "role": "assistant", "content": "SELECT \"2012\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='hamburg masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2008 value of the hamburg masters?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='hamburg masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2012\"='lq' AND \"2011\"='2r' AND \"2008\"='lq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2010 value of the monte carlo masters, which had A in 2012?" }, { "role": "assistant", "content": "SELECT \"2010\" FROM \"singles_performance_timeline\" WHERE \"2012\"='a' AND \"tournament\"='monte carlo masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electric_locomotives\" (\n \"class\" text,\n \"drg_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the quantity when the DRG was E 62 01\u2013E 62 05?" }, { "role": "assistant", "content": "SELECT COUNT(\"quantity\") FROM \"electric_locomotives\" WHERE \"drg_number_s\"='e 62 01\u2013e 62 05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Opponent in the final has a Partnering of graydon oliver?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"runners_up_6\" WHERE \"partnering\"='graydon oliver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: which Score has a Partnering of dmitry tursunov?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"runners_up_6\" WHERE \"partnering\"='dmitry tursunov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Score has an Opponent in the final of chris haggard robbie koenig?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"runners_up_6\" WHERE \"opponent_in_the_final\"='chris haggard robbie koenig';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Partnering has a Score of 7\u20136 7 , 6\u20131?" }, { "role": "assistant", "content": "SELECT \"partnering\" FROM \"runners_up_6\" WHERE \"score\"='7\u20136 7 , 6\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Name the Surface that of Tournament of valencia , spain?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"runners_up_6\" WHERE \"tournament\"='valencia , spain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up_6\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Name the Opponent in the final on july 4, 2005?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"runners_up_6\" WHERE \"date\"='july 4, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"premier_league\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"league_position\" text\n);\n\nQuestion: What was the Result F\u2013A on 21 February 2009, when the league position was 1st?" }, { "role": "assistant", "content": "SELECT \"result_f_a\" FROM \"premier_league\" WHERE \"league_position\"='1st' AND \"date\"='21 february 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What club does John Westin play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team_league\" FROM \"2010_draft_picks\" WHERE \"player\"='john westin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: In what round was a left wing drafted?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"2010_draft_picks\" WHERE \"position\"='left wing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What player was drafted in Round 5?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"2010_draft_picks\" WHERE \"round\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Where did the player who won in 1991 finish?" }, { "role": "assistant", "content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Which player is from scotland?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"country\"='scotland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semi_final_3_7_february_2009\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"lyrics_l_music_m\" text,\n \"results\" text\n);\n\nQuestion: What are the Lyrics (l) / Music (m) when the draw was 5?" }, { "role": "assistant", "content": "SELECT \"lyrics_l_music_m\" FROM \"semi_final_3_7_february_2009\" WHERE \"draw\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semi_final_3_7_february_2009\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"lyrics_l_music_m\" text,\n \"results\" text\n);\n\nQuestion: What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows\"shuffled\"?" }, { "role": "assistant", "content": "SELECT \"lyrics_l_music_m\" FROM \"semi_final_3_7_february_2009\" WHERE \"draw\">3 AND \"results\"='siste sjansen' AND \"song\"='\\\"shuffled\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semi_final_3_7_february_2009\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"lyrics_l_music_m\" text,\n \"results\" text\n);\n\nQuestion: What is the Lyrics (l) / Music (m) when the results show out, and the song shows \"left/right\"?" }, { "role": "assistant", "content": "SELECT \"lyrics_l_music_m\" FROM \"semi_final_3_7_february_2009\" WHERE \"results\"='out' AND \"song\"='\\\"left/right\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What score has friendly as the competition?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='friendly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Playing against Chelmsford City on 15 November 1986, who was the home team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"first_round_proper\" WHERE \"date\"='15 november 1986' AND \"away_team\"='chelmsford city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When Lincoln City was the away team what is the tie number?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"first_round_proper\" WHERE \"away_team\"='lincoln city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When was the game played that had Rochdale as the away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"first_round_proper\" WHERE \"away_team\"='rochdale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Scunthorpe United as the home team has what tie number?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"first_round_proper\" WHERE \"home_team\"='scunthorpe united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: The game played on 6 December 1986 had what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round_proper\" WHERE \"date\"='6 december 1986';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"express_train_locomotives\" (\n \"class\" text,\n \"number_range\" text,\n \"quantity\" text,\n \"year_s_built\" text,\n \"type\" text\n);\n\nQuestion: WHAT IS THE TYPE WITH 124?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"express_train_locomotives\" WHERE \"quantity\"='124';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_32\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is Score, when Total is \"28:42\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"round_of_32\" WHERE \"total\"='28:42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_32\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is Date, when Set 1 is \"20:22\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_of_32\" WHERE \"set_1\"='20:22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_32\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is Set 1, when Set 2 is \"21:18\"?" }, { "role": "assistant", "content": "SELECT \"set_1\" FROM \"round_of_32\" WHERE \"set_2\"='21:18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_32\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is Set 2, when Total is \"52:44\"?" }, { "role": "assistant", "content": "SELECT \"set_2\" FROM \"round_of_32\" WHERE \"total\"='52:44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the away team with a 4 tie no.?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"tie_no\"='4';" } ]