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 \"player_roster\" (\n \"surname\" text,\n \"first\" text,\n \"d_o_b\" text,\n \"bats\" text,\n \"throws\" text,\n \"position\" text\n);\n\nQuestion: Which DOB has Bats of s, and a Position of inf?"
},
{
"role": "assistant",
"content": "SELECT \"d_o_b\" FROM \"player_roster\" WHERE \"bats\"='s' AND \"position\"='inf';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geneva_race_track_switzerland\" (\n \"date\" text,\n \"race\" text,\n \"race_track\" text,\n \"category\" text,\n \"lap_length\" text\n);\n\nQuestion: What is the Lap Length of the race with a Grand Prix Fia Category?"
},
{
"role": "assistant",
"content": "SELECT \"lap_length\" FROM \"geneva_race_track_switzerland\" WHERE \"category\"='grand prix fia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geneva_race_track_switzerland\" (\n \"date\" text,\n \"race\" text,\n \"race_track\" text,\n \"category\" text,\n \"lap_length\" text\n);\n\nQuestion: What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship?"
},
{
"role": "assistant",
"content": "SELECT \"race\" FROM \"geneva_race_track_switzerland\" WHERE \"category\"='formula 2 fia, non-championship' AND \"date\"='july 30, 1950';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What was his record when the match went for 3:05?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='3:05';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: How many rounds did the match go for the Bellator 72 event?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"event\"='bellator 72';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"air_date\" text,\n \"rating\" real,\n \"share\" real,\n \"18_49\" text,\n \"viewers_live_m\" real,\n \"viewers_dvr_7_m\" text\n);\n\nQuestion: What is the rating that has live viewers over 3.06 and DVR viewers of 5.36?"
},
{
"role": "assistant",
"content": "SELECT \"rating\" FROM \"ratings\" WHERE \"viewers_live_m\">3.06 AND \"viewers_dvr_7_m\"='5.36';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"air_date\" text,\n \"rating\" real,\n \"share\" real,\n \"18_49\" text,\n \"viewers_live_m\" real,\n \"viewers_dvr_7_m\" text\n);\n\nQuestion: What is the sum of the live viewers for episodes with share over 5?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"viewers_live_m\") FROM \"ratings\" WHERE \"share\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"air_date\" text,\n \"rating\" real,\n \"share\" real,\n \"18_49\" text,\n \"viewers_live_m\" real,\n \"viewers_dvr_7_m\" text\n);\n\nQuestion: What is the sum of the ratings for episodes with live viewers of 2.96?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rating\") FROM \"ratings\" WHERE \"viewers_live_m\"=2.96;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?"
},
{
"role": "assistant",
"content": "SELECT \"callsign\" FROM \"long_range_am_stations\" WHERE \"webcast\"='listen live' AND \"frequency\"<1210 AND \"brand\"='newsradio 740 ktrh';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?"
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"long_range_am_stations\" WHERE \"city_of_license\"='monterrey' AND \"webcast\"='listen live' AND \"frequency\"<1050;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: The KTRH.com website includes which type of webcast?"
},
{
"role": "assistant",
"content": "SELECT \"webcast\" FROM \"long_range_am_stations\" WHERE \"website\"='ktrh.com';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio."
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"long_range_am_stations\" WHERE \"city_of_license\"='san antonio' AND \"webcast\"='listen live' AND \"frequency\"=680;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"frequency\") FROM \"long_range_am_stations\" WHERE \"webcast\"='listen live' AND \"city_of_license\"='monterrey' AND \"callsign\"='xet';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_1\" (\n \"games\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points_difference\" text,\n \"points\" real\n);\n\nQuestion: Which Games is the highest one that has a Drawn smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"games\") FROM \"group_1\" WHERE \"drawn\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the score for game 6?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams_and_venues\" (\n \"team\" text,\n \"location\" text,\n \"venue\" text,\n \"capacity\" real,\n \"position_in_2000\" text\n);\n\nQuestion: Which Position in 2000 has a Capacity larger than 10,080, and a Venue of central, rechytsa?"
},
{
"role": "assistant",
"content": "SELECT \"position_in_2000\" FROM \"teams_and_venues\" WHERE \"capacity\">'10,080' AND \"venue\"='central, rechytsa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams_and_venues\" (\n \"team\" text,\n \"location\" text,\n \"venue\" text,\n \"capacity\" real,\n \"position_in_2000\" text\n);\n\nQuestion: Which Capacity has a Location of mogilev?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"capacity\") FROM \"teams_and_venues\" WHERE \"location\"='mogilev';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What was the District of California 2 result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"california\" WHERE \"district\"='california 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What was the district Incumbent Julius Kahn was in that was smaller than 1906?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"california\" WHERE \"first_elected\"<1906 AND \"incumbent\"='julius kahn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What was the lowest re-elected result for Sylvester C. Smith?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"first_elected\") FROM \"california\" WHERE \"result\"='re-elected' AND \"incumbent\"='sylvester c. smith';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What was the result for Julius Kahn's first election of 1898?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"california\" WHERE \"first_elected\"=1898 AND \"incumbent\"='julius kahn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_carolina\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"south_carolina\" WHERE \"result\"='retired democratic hold' AND \"first_elected\"<1884 AND \"incumbent\"='samuel dibble';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"south_carolina\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: Which district had a first elected in 1882 with a result of re-elected?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"south_carolina\" WHERE \"first_elected\"=1882 AND \"result\"='re-elected';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"average_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" real\n);\n\nQuestion: Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"average\") FROM \"average_chart\" WHERE \"total\"<134 AND \"number_of_dances\"<3 AND \"rank_by_average\"<12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"average_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" real\n);\n\nQuestion: Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3?"
},
{
"role": "assistant",
"content": "SELECT \"couple\" FROM \"average_chart\" WHERE \"rank_by_average\">3 AND \"average\">16.5 AND \"total\"<195 AND \"number_of_dances\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"average_chart\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" real\n);\n\nQuestion: Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank_by_average\") FROM \"average_chart\" WHERE \"total\"=425 AND \"place\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ice_dancing\" (\n \"rank\" real,\n \"name\" text,\n \"club\" text,\n \"nation\" text,\n \"points\" real\n);\n\nQuestion: What nation are carolina hermann / daniel hermann from?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"ice_dancing\" WHERE \"name\"='carolina hermann / daniel hermann';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ice_dancing\" (\n \"rank\" real,\n \"name\" text,\n \"club\" text,\n \"nation\" text,\n \"points\" real\n);\n\nQuestion: What is the rank associated with 141.48 points?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"ice_dancing\" WHERE \"points\"=141.48;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ice_dancing\" (\n \"rank\" real,\n \"name\" text,\n \"club\" text,\n \"nation\" text,\n \"points\" real\n);\n\nQuestion: What competitors are scored 124.51 points?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"ice_dancing\" WHERE \"points\"=124.51;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: At what percent was Pat Robertson when George H.W. Bush had 76%?"
},
{
"role": "assistant",
"content": "SELECT \"pat_robertson\" FROM \"statewide\" WHERE \"george_h_w_bush\"='76%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?"
},
{
"role": "assistant",
"content": "SELECT \"bob_dole\" FROM \"statewide\" WHERE \"george_h_w_bush\"='81%' AND \"pat_robertson\"='9%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: When Pat Robertson was at 16%, what did Pete du Pont have?"
},
{
"role": "assistant",
"content": "SELECT \"pete_du_pont\" FROM \"statewide\" WHERE \"pat_robertson\"='16%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?"
},
{
"role": "assistant",
"content": "SELECT \"pat_robertson\" FROM \"statewide\" WHERE \"bob_dole\"='26%' AND \"george_h_w_bush\"='47%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?"
},
{
"role": "assistant",
"content": "SELECT \"pat_robertson\" FROM \"statewide\" WHERE \"bob_dole\"='26%' AND \"pete_du_pont\"='0%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statewide\" (\n \"date\" text,\n \"state\" text,\n \"george_h_w_bush\" text,\n \"bob_dole\" text,\n \"pat_robertson\" text,\n \"jack_kemp\" text,\n \"pete_du_pont\" text\n);\n\nQuestion: When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have?"
},
{
"role": "assistant",
"content": "SELECT \"george_h_w_bush\" FROM \"statewide\" WHERE \"pat_robertson\"='19%' AND \"bob_dole\"='26%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Attendance larger than 45,710, and a Venue of metropolitan stadium had what highest week?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"attendance\">'45,710' AND \"venue\"='metropolitan stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Date of october 10, 1965 had what lowest attendance?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"schedule\" WHERE \"date\"='october 10, 1965';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Opponent of chicago bears involved what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='chicago bears';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Performer 2 of compilation 2 is what performer 1?"
},
{
"role": "assistant",
"content": "SELECT \"performer_1\" FROM \"series_7\" WHERE \"performer_2\"='compilation 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?"
},
{
"role": "assistant",
"content": "SELECT \"performer_4\" FROM \"series_7\" WHERE \"performer_1\"='greg proops' AND \"date\"='25 august 1995';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"episode\") FROM \"series_7\" WHERE \"performer_1\"='greg proops' AND \"performer_3\"='ryan stiles' AND \"date\"='25 august 1995';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, and a Date of 15 September 1995 is what performer 3?"
},
{
"role": "assistant",
"content": "SELECT \"performer_3\" FROM \"series_7\" WHERE \"performer_1\"='stephen frost' AND \"performer_2\"='josie lawrence' AND \"date\"='15 september 1995';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"asian_rider_classification\" text,\n \"team_classification\" text,\n \"asian_team_classification\" text\n);\n\nQuestion: WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?"
},
{
"role": "assistant",
"content": "SELECT \"mountains_classification\" FROM \"classification_leadership\" WHERE \"asian_team_classification\"='seoul cycling team' AND \"winner\"='alexandre usov';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"asian_rider_classification\" text,\n \"team_classification\" text,\n \"asian_team_classification\" text\n);\n\nQuestion: WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9?"
},
{
"role": "assistant",
"content": "SELECT \"asian_rider_classification\" FROM \"classification_leadership\" WHERE \"general_classification\"='ruslan ivanov' AND \"stage\"='9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"asian_rider_classification\" text,\n \"team_classification\" text,\n \"asian_team_classification\" text\n);\n\nQuestion: WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?"
},
{
"role": "assistant",
"content": "SELECT \"general_classification\" FROM \"classification_leadership\" WHERE \"asian_rider_classification\"='shinichi fukushima' AND \"winner\"='jeremy hunt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"asian_rider_classification\" text,\n \"team_classification\" text,\n \"asian_team_classification\" text\n);\n\nQuestion: Which Stage has a Mountains classification of filippo savini?"
},
{
"role": "assistant",
"content": "SELECT \"stage\" FROM \"classification_leadership\" WHERE \"mountains_classification\"='filippo savini';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"asian_rider_classification\" text,\n \"team_classification\" text,\n \"asian_team_classification\" text\n);\n\nQuestion: Which Stage has a Winner of jeremy hunt?"
},
{
"role": "assistant",
"content": "SELECT \"stage\" FROM \"classification_leadership\" WHERE \"winner\"='jeremy hunt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_2007\" (\n \"date\" text,\n \"site\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"series\" text\n);\n\nQuestion: Which winning team has Iowa city as the site, and december 3, 2006 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"winning_team\" FROM \"2006_2007\" WHERE \"site\"='iowa city' AND \"date\"='december 3, 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_2007\" (\n \"date\" text,\n \"site\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"series\" text\n);\n\nQuestion: What site has november 30, 2006 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"site\" FROM \"2006_2007\" WHERE \"date\"='november 30, 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_2007\" (\n \"date\" text,\n \"site\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"series\" text\n);\n\nQuestion: What winning team has volleyball as the sport?"
},
{
"role": "assistant",
"content": "SELECT \"winning_team\" FROM \"2006_2007\" WHERE \"sport\"='volleyball';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the total number in January when the St. Louis Blues had a game smaller than 42?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"january\") FROM \"schedule_and_results\" WHERE \"opponent\"='st. louis blues' AND \"game\"<42;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the January sum with the record of 17-20-2 with a game smaller than 39?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"january\") FROM \"schedule_and_results\" WHERE \"record\"='17-20-2' AND \"game\"<39;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the record when the New York Knicks played at the Boston Garden?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"location\"='boston garden' AND \"opponent\"='new york knicks';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: When the record was 7-2, what was the score for the game?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='7-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: On what date was the record 4-2?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='4-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"males_rank\" real,\n \"females_rank\" real,\n \"state\" text,\n \"hiv_awareness_malespct\" real,\n \"females_pct\" real\n);\n\nQuestion: Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"females_rank\") FROM \"references\" WHERE \"females_pct\">53 AND \"hiv_awareness_malespct\"<89 AND \"state\"='odisha';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"males_rank\" real,\n \"females_rank\" real,\n \"state\" text,\n \"hiv_awareness_malespct\" real,\n \"females_pct\" real\n);\n\nQuestion: How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"females_pct\") FROM \"references\" WHERE \"females_rank\"<21 AND \"state\"='kerala' AND \"males_rank\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"males_rank\" real,\n \"females_rank\" real,\n \"state\" text,\n \"hiv_awareness_malespct\" real,\n \"females_pct\" real\n);\n\nQuestion: How many Females (%) have a State of karnataka, and Males Rank larger than 16?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"females_pct\") FROM \"references\" WHERE \"state\"='karnataka' AND \"males_rank\">16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"males_rank\" real,\n \"females_rank\" real,\n \"state\" text,\n \"hiv_awareness_malespct\" real,\n \"females_pct\" real\n);\n\nQuestion: Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"males_rank\") FROM \"references\" WHERE \"females_pct\"<40 AND \"females_rank\"<22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"males_rank\" real,\n \"females_rank\" real,\n \"state\" text,\n \"hiv_awareness_malespct\" real,\n \"females_pct\" real\n);\n\nQuestion: Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"females_pct\") FROM \"references\" WHERE \"hiv_awareness_malespct\">92 AND \"females_rank\">2 AND \"males_rank\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"name\" text,\n \"championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: League Cup smaller than 0 is what sum of the total?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total\") FROM \"top_scorers\" WHERE \"league_cup\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"name\" text,\n \"championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"league_cup\") FROM \"top_scorers\" WHERE \"championship\">3 AND \"fa_cup\"<3 AND \"total\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Opponent has a Surface of hard on 28 august 1993?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_5_4_1\" WHERE \"surface\"='hard' AND \"date\"='28 august 1993';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: WHICH Outcome IS ON 18 july 1993?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_5_4_1\" WHERE \"date\"='18 july 1993';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: WHICH Outcome has aN Opponent of pascale paradis-mangon?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_5_4_1\" WHERE \"opponent\"='pascale paradis-mangon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Score has aN Outcome of winner on 4 november 1990?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_5_4_1\" WHERE \"outcome\"='winner' AND \"date\"='4 november 1990';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has an Opponent of susan sloane?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_5_4_1\" WHERE \"opponent\"='susan sloane';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has an Opponent of meike babel?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_5_4_1\" WHERE \"opponent\"='meike babel';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Game has a November of 29?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"game\") FROM \"regular_season\" WHERE \"november\"=29;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Points have a Record of 12\u20132\u20134\u20131, and a November larger than 22?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"regular_season\" WHERE \"record\"='12\u20132\u20134\u20131' AND \"november\">22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Record has a Game of 19?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"game\"=19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"november\") FROM \"regular_season\" WHERE \"game\">14 AND \"opponent\"='minnesota wild';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which November is the lowest one that has a Record of 12\u20132\u20134\u20131?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"november\") FROM \"regular_season\" WHERE \"record\"='12\u20132\u20134\u20131';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What day has a record of 25\u201330\u201313 and less than 63 points?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"march\") FROM \"regular_season\" WHERE \"record\"='25\u201330\u201313' AND \"points\"<63;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which opponent has 63 points?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"points\"=63;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"architecture_support\" (\n \"distribution\" text,\n \"x86_64\" text,\n \"ia64\" text,\n \"ppc64\" text,\n \"sparc32\" text,\n \"hppa\" text,\n \"mips\" text,\n \"s390\" text,\n \"s390x\" text,\n \"alpha\" text,\n \"m68k\" text\n);\n\nQuestion: Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?"
},
{
"role": "assistant",
"content": "SELECT \"alpha\" FROM \"architecture_support\" WHERE \"ia64\"='discontinued 3.5-3.8 4.1-4.7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"architecture_support\" (\n \"distribution\" text,\n \"x86_64\" text,\n \"ia64\" text,\n \"ppc64\" text,\n \"sparc32\" text,\n \"hppa\" text,\n \"mips\" text,\n \"s390\" text,\n \"s390x\" text,\n \"alpha\" text,\n \"m68k\" text\n);\n\nQuestion: Which s390x contains a yes ia64 and a no for alpha?"
},
{
"role": "assistant",
"content": "SELECT \"s390x\" FROM \"architecture_support\" WHERE \"ia64\"='yes' AND \"alpha\"='no';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"architecture_support\" (\n \"distribution\" text,\n \"x86_64\" text,\n \"ia64\" text,\n \"ppc64\" text,\n \"sparc32\" text,\n \"hppa\" text,\n \"mips\" text,\n \"s390\" text,\n \"s390x\" text,\n \"alpha\" text,\n \"m68k\" text\n);\n\nQuestion: Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?"
},
{
"role": "assistant",
"content": "SELECT \"hppa\" FROM \"architecture_support\" WHERE \"mips\"='no' AND \"alpha\"='no' AND \"ppc64\"='yes 3+';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"korvpalli_meistriliiga_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"1st_of_regular_season\" text,\n \"record\" text,\n \"champion_s_coach\" text,\n \"finals_mvp\" text\n);\n\nQuestion: Who is the runner-up of the season with Tanel Sokk as the finals MVP and Alar Varrak as the champion's coach?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"korvpalli_meistriliiga_finals\" WHERE \"finals_mvp\"='tanel sokk' AND \"champion_s_coach\"='alar varrak';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: Which 1991 has an A 1993 ?"
},
{
"role": "assistant",
"content": "SELECT \"1991\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1993\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: Which 992 has a 1\u20132 of 1989 ?"
},
{
"role": "assistant",
"content": "SELECT \"1992\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1989\"='1\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: WHICH 1990 has a 1993 of 1r?"
},
{
"role": "assistant",
"content": "SELECT \"1990\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1993\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: Which 1994 has a 1998 of 0\u20131?"
},
{
"role": "assistant",
"content": "SELECT \"1994\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1998\"='0\u20131';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: Which 1995 has a 1993 of 3r?"
},
{
"role": "assistant",
"content": "SELECT \"1995\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1993\"='3r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text\n);\n\nQuestion: Which 1992 has a 1996 of sf and a 1993 of a?"
},
{
"role": "assistant",
"content": "SELECT \"1992\" FROM \"women_s_doubles_performance_timeline\" WHERE \"1996\"='sf' AND \"1993\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: Which school picked a back in round 16, after pick 89?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"nfl_draft\" WHERE \"pick\">89 AND \"position\"='back' AND \"round\"=16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the visitor in the game that had Ottawa as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"home\"='ottawa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score in the game where Carolina was the home team and Niittymaki received the decision?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"decision\"='niittymaki' AND \"home\"='carolina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the date of the game that had a loss of Johnson (9-8)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"loss\"='johnson (9-8)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"athlete\" text,\n \"country\" text,\n \"run_1\" real,\n \"run_2\" real,\n \"run_3\" real\n);\n\nQuestion: Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"men\" WHERE \"run_1\"<51.96 AND \"run_2\">51.13 AND \"run_3\"=52.53;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"athlete\" text,\n \"country\" text,\n \"run_1\" real,\n \"run_2\" real,\n \"run_3\" real\n);\n\nQuestion: Who had a run 2 of 50.67?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"men\" WHERE \"run_2\"=50.67;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"athlete\" text,\n \"country\" text,\n \"run_1\" real,\n \"run_2\" real,\n \"run_3\" real\n);\n\nQuestion: What was john farrow's run 2 associated with a run 1 of greater than 52.25?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"run_2\") FROM \"men\" WHERE \"run_1\">52.25 AND \"athlete\"='john farrow';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the Score in the game against the Buffalo Sabres?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"opponent\"='buffalo sabres';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: Rank smaller than 4, and a Name of dalma iv\u00e1nyi involved which lowest game?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"games\") FROM \"assists\" WHERE \"rank\"<4 AND \"name\"='dalma iv\u00e1nyi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: Name of sue bird that involves what team?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"assists\" WHERE \"name\"='sue bird';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" text,\n \"season\" real,\n \"production_code\" text,\n \"original_air_date\" text,\n \"directed_by\" text\n);\n\nQuestion: Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"episodes\" WHERE \"season\"<25 AND \"directed_by\"='bob anderson' AND \"production_code\"='kabf16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode\" text,\n \"season\" real,\n \"production_code\" text,\n \"original_air_date\" text,\n \"directed_by\" text\n);\n\nQuestion: Who was the director of the episode with a season after 8 and an episode of XVI?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"episodes\" WHERE \"season\">8 AND \"episode\"='xvi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_5_jamaican_100_m_athletes_women\" (\n \"rank\" real,\n \"time\" real,\n \"athlete\" text,\n \"nation\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: Date of 7 september 1996 includes which highest rank athlete?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"top_5_jamaican_100_m_athletes_women\" WHERE \"date\"='7 september 1996';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_5_jamaican_100_m_athletes_women\" (\n \"rank\" real,\n \"time\" real,\n \"athlete\" text,\n \"nation\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: Time of 10.82 has what location?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"top_5_jamaican_100_m_athletes_women\" WHERE \"time\"=10.82;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_5_jamaican_100_m_athletes_women\" (\n \"rank\" real,\n \"time\" real,\n \"athlete\" text,\n \"nation\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: Date of 10 july 2009 includes what athlete?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"top_5_jamaican_100_m_athletes_women\" WHERE \"date\"='10 july 2009';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.