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 \"nfl_draft\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"nfl_draft\" WHERE \"position\"='linebacker' AND \"player\"='thomas henderson';" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"nfl_draft\" WHERE \"college\"='oklahoma' AND \"round\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: Which Team has a Head Coach of michalis pamboris?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"overview\" WHERE \"head_coach\"='michalis pamboris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: What is umbro's highest capacity?" }, { "role": "assistant", "content": "SELECT MAX(\"capacity\") FROM \"overview\" WHERE \"kitmaker\"='umbro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overview\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"venue\" text,\n \"capacity\" real,\n \"kitmaker\" text,\n \"shirt_sponsor\" text,\n \"club_chairman\" text\n);\n\nQuestion: Which Venue has a Kitmaker of lotto, and a Team of apoel?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"overview\" WHERE \"kitmaker\"='lotto' AND \"team\"='apoel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the drawn number when there are 58 tries?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"league_table\" WHERE \"tries_for\"='58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the played number when the tries against shows correct as of 18:13 26 May 2008?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"league_table\" WHERE \"tries_against\"='correct as of 18:13 26 may 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the drawn when there are 402 points?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"league_table\" WHERE \"points_for\"='402';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the try bonus when there are 492 points?" }, { "role": "assistant", "content": "SELECT \"try_bonus\" FROM \"league_table\" WHERE \"points_against\"='492';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the number of points against when the tries against was 53?" }, { "role": "assistant", "content": "SELECT \"points_against\" FROM \"league_table\" WHERE \"tries_against\"='53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text\n);\n\nQuestion: What is the played number when the points against is 179?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"league_table\" WHERE \"points_against\"='179';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"setting_the_nba_finals_3pt_record\" (\n \"game\" real,\n \"3_pm_a\" text,\n \"percent_made\" real,\n \"total_made\" real,\n \"total_attempted\" real,\n \"series_percent\" real\n);\n\nQuestion: what total made has a percent made greater than 0.166 and a 3pm-a of 3-5" }, { "role": "assistant", "content": "SELECT MAX(\"total_made\") FROM \"setting_the_nba_finals_3pt_record\" WHERE \"percent_made\">0.166 AND \"3_pm_a\"='3-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"setting_the_nba_finals_3pt_record\" (\n \"game\" real,\n \"3_pm_a\" text,\n \"percent_made\" real,\n \"total_made\" real,\n \"total_attempted\" real,\n \"series_percent\" real\n);\n\nQuestion: what is the total made with a 3pm-a of 5-5 and a total attempted less than 14" }, { "role": "assistant", "content": "SELECT SUM(\"total_made\") FROM \"setting_the_nba_finals_3pt_record\" WHERE \"3_pm_a\"='5-5' AND \"total_attempted\"<14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"setting_the_nba_finals_3pt_record\" (\n \"game\" real,\n \"3_pm_a\" text,\n \"percent_made\" real,\n \"total_made\" real,\n \"total_attempted\" real,\n \"series_percent\" real\n);\n\nQuestion: what is the total series percent that has total attempted less than 49, and a percent made of 0.777" }, { "role": "assistant", "content": "SELECT COUNT(\"series_percent\") FROM \"setting_the_nba_finals_3pt_record\" WHERE \"total_attempted\"<49 AND \"percent_made\"=0.777;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"setting_the_nba_finals_3pt_record\" (\n \"game\" real,\n \"3_pm_a\" text,\n \"percent_made\" real,\n \"total_made\" real,\n \"total_attempted\" real,\n \"series_percent\" real\n);\n\nQuestion: what is the total attempted with a total made 16" }, { "role": "assistant", "content": "SELECT COUNT(\"total_attempted\") FROM \"setting_the_nba_finals_3pt_record\" WHERE \"total_made\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"senator\" text,\n \"party\" text,\n \"district\" real,\n \"home_town\" text,\n \"took_office\" real\n);\n\nQuestion: What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier?" }, { "role": "assistant", "content": "SELECT SUM(\"district\") FROM \"senate\" WHERE \"took_office\">1981 AND \"senator\"='cyndi taylor krier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"senator\" text,\n \"party\" text,\n \"district\" real,\n \"home_town\" text,\n \"took_office\" real\n);\n\nQuestion: What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"senate\" WHERE \"district\"<10 AND \"took_office\"<1991 AND \"home_town\"='mount pleasant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"senator\" text,\n \"party\" text,\n \"district\" real,\n \"home_town\" text,\n \"took_office\" real\n);\n\nQuestion: What is the lowest Took Office, when Senator is Eddie Bernice Johnson, and when District is greater than 23?" }, { "role": "assistant", "content": "SELECT MIN(\"took_office\") FROM \"senate\" WHERE \"senator\"='eddie bernice johnson' AND \"district\">23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: In which period did Stanislav Chistov get a penalty?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"penalty_summary\" WHERE \"player\"='stanislav chistov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What was a penalty given for at time 29:17?" }, { "role": "assistant", "content": "SELECT \"penalty\" FROM \"penalty_summary\" WHERE \"time\"='29:17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What team was the player that received a penalty at time 32:17 playing for?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"penalty_summary\" WHERE \"time\"='32:17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What team was Ryan Callahan, who received a penalty for roughing, playing for?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"penalty_summary\" WHERE \"penalty\"='roughing' AND \"player\"='ryan callahan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"malaysia_xi\" (\n \"date\" text,\n \"location\" text,\n \"head_coach\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Who was the head coach when the opponent was Arsenal?" }, { "role": "assistant", "content": "SELECT \"head_coach\" FROM \"malaysia_xi\" WHERE \"opponent\"='arsenal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"malaysia_xi\" (\n \"date\" text,\n \"location\" text,\n \"head_coach\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Who was the opponent when the head coach was B. Sathianathan?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"malaysia_xi\" WHERE \"head_coach\"='b. sathianathan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"malaysia_xi\" (\n \"date\" text,\n \"location\" text,\n \"head_coach\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: When was the opponent Arsenal?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"malaysia_xi\" WHERE \"opponent\"='arsenal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"malaysia_xi\" (\n \"date\" text,\n \"location\" text,\n \"head_coach\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: What was the result when the opponent was Arsenal?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"malaysia_xi\" WHERE \"opponent\"='arsenal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlantic_coast_conference_10_3_1\" (\n \"institution\" text,\n \"wins\" real,\n \"loss\" real,\n \"home_wins\" real,\n \"home_losses\" real,\n \"away_wins\" real,\n \"away_losses\" real,\n \"neutral_wins\" real,\n \"neutral_losses\" real\n);\n\nQuestion: What is the highest neutral losses of the institution with 0 neutral wins, 0 home losses, and less than 0 away losses?" }, { "role": "assistant", "content": "SELECT MAX(\"neutral_losses\") FROM \"atlantic_coast_conference_10_3_1\" WHERE \"neutral_wins\"=0 AND \"home_losses\"=0 AND \"away_losses\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlantic_coast_conference_10_3_1\" (\n \"institution\" text,\n \"wins\" real,\n \"loss\" real,\n \"home_wins\" real,\n \"home_losses\" real,\n \"away_wins\" real,\n \"away_losses\" real,\n \"neutral_wins\" real,\n \"neutral_losses\" real\n);\n\nQuestion: What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?" }, { "role": "assistant", "content": "SELECT SUM(\"home_wins\") FROM \"atlantic_coast_conference_10_3_1\" WHERE \"institution\"='boston college eagles' AND \"wins\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlantic_coast_conference_10_3_1\" (\n \"institution\" text,\n \"wins\" real,\n \"loss\" real,\n \"home_wins\" real,\n \"home_losses\" real,\n \"away_wins\" real,\n \"away_losses\" real,\n \"neutral_wins\" real,\n \"neutral_losses\" real\n);\n\nQuestion: What is the highest number of home wins of the institution with 0 away losses and more than 6 wins?" }, { "role": "assistant", "content": "SELECT MAX(\"home_wins\") FROM \"atlantic_coast_conference_10_3_1\" WHERE \"away_losses\"=0 AND \"wins\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlantic_coast_conference_10_3_1\" (\n \"institution\" text,\n \"wins\" real,\n \"loss\" real,\n \"home_wins\" real,\n \"home_losses\" real,\n \"away_wins\" real,\n \"away_losses\" real,\n \"neutral_wins\" real,\n \"neutral_losses\" real\n);\n\nQuestion: What is the highest number of neutral losses of the Florida State Seminoles, which has less than 5 away losses?" }, { "role": "assistant", "content": "SELECT MAX(\"neutral_losses\") FROM \"atlantic_coast_conference_10_3_1\" WHERE \"institution\"='florida state seminoles' AND \"away_losses\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlantic_coast_conference_10_3_1\" (\n \"institution\" text,\n \"wins\" real,\n \"loss\" real,\n \"home_wins\" real,\n \"home_losses\" real,\n \"away_wins\" real,\n \"away_losses\" real,\n \"neutral_wins\" real,\n \"neutral_losses\" real\n);\n\nQuestion: What is the highest number of wins of the institution with more than 0 neutral wins and less than 2 away wins?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"atlantic_coast_conference_10_3_1\" WHERE \"neutral_wins\">0 AND \"away_wins\"<2;" } ]
[ { "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 \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the Record when Evangelista Cyborg was the opponent?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='evangelista cyborg';" } ]
[ { "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 \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the Method for Brazil?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"location\"='brazil';" } ]
[ { "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 \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What round was the method submission (punches)?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (punches)';" } ]
[ { "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 \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the method when the record was 3-2?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='3-2';" } ]
[ { "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 \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the method when the round shows 3?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"rank\" text,\n \"team\" text,\n \"run_1\" text,\n \"run_2\" text,\n \"run_3\" text,\n \"run_4\" text,\n \"final\" text\n);\n\nQuestion: What was the run 3 for the team in rank 12?" }, { "role": "assistant", "content": "SELECT \"run_3\" FROM \"results\" WHERE \"rank\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"rank\" text,\n \"team\" text,\n \"run_1\" text,\n \"run_2\" text,\n \"run_3\" text,\n \"run_4\" text,\n \"final\" text\n);\n\nQuestion: What was the run 3 for the team with a run 1 of 1:17.6?" }, { "role": "assistant", "content": "SELECT \"run_3\" FROM \"results\" WHERE \"run_1\"='1:17.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"rank\" text,\n \"team\" text,\n \"run_1\" text,\n \"run_2\" text,\n \"run_3\" text,\n \"run_4\" text,\n \"final\" text\n);\n\nQuestion: What was the rank of the team with a run 2 of 1:20.8 and a run 4 of 1:23.0?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"results\" WHERE \"run_2\"='1:20.8' AND \"run_4\"='1:23.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"rank\" text,\n \"team\" text,\n \"run_1\" text,\n \"run_2\" text,\n \"run_3\" text,\n \"run_4\" text,\n \"final\" text\n);\n\nQuestion: What was the run 1 for the team with a run 3 of 1:21.4 and a run 4 of 1:23.0?" }, { "role": "assistant", "content": "SELECT \"run_1\" FROM \"results\" WHERE \"run_3\"='1:21.4' AND \"run_4\"='1:23.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"rank\" text,\n \"team\" text,\n \"run_1\" text,\n \"run_2\" text,\n \"run_3\" text,\n \"run_4\" text,\n \"final\" text\n);\n\nQuestion: Which team had a run 4 of 1:24.4?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"results\" WHERE \"run_4\"='1:24.4';" } ]
[ { "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 \"attendance\" text\n);\n\nQuestion: What is the Attendance at the game against the Oakland Raiders?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='oakland raiders';" } ]
[ { "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 \"attendance\" text\n);\n\nQuestion: What was the Attendance in Week 10?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Principal activities have an Incorporated in of france?" }, { "role": "assistant", "content": "SELECT \"principal_activities\" FROM \"subsidiaries\" WHERE \"incorporated_in\"='france';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"subsidiaries\" WHERE \"incorporated_in\"='netherlands' AND \"principal_activities\"='airline' AND \"company\"='transavia.com';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Group's Equity Shareholding has a Company of epcor?" }, { "role": "assistant", "content": "SELECT \"group_s_equity_shareholding\" FROM \"subsidiaries\" WHERE \"company\"='epcor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Incorporated in has a Group's Equity Shareholding of 100%, and a Principal activities of flight academy?" }, { "role": "assistant", "content": "SELECT \"incorporated_in\" FROM \"subsidiaries\" WHERE \"group_s_equity_shareholding\"='100%' AND \"principal_activities\"='flight academy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Type has a Company of epcor?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"subsidiaries\" WHERE \"company\"='epcor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subsidiaries\" (\n \"company\" text,\n \"type\" text,\n \"principal_activities\" text,\n \"incorporated_in\" text,\n \"group_s_equity_shareholding\" text\n);\n\nQuestion: Which Type has a Principal activities of health services?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"subsidiaries\" WHERE \"principal_activities\"='health services';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"simple_present_tense\" (\n \"verb\" text,\n \"2_vf\" text,\n \"2_f\" text,\n \"3_f\" text,\n \"2_3_p\" text\n);\n\nQuestion: What is the 2F of she khae?" }, { "role": "assistant", "content": "SELECT \"2_f\" FROM \"simple_present_tense\" WHERE \"3_f\"='she khae';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"simple_present_tense\" (\n \"verb\" text,\n \"2_vf\" text,\n \"2_f\" text,\n \"3_f\" text,\n \"2_3_p\" text\n);\n\nQuestion: If 2F is tumi khao, what is 3F?" }, { "role": "assistant", "content": "SELECT \"3_f\" FROM \"simple_present_tense\" WHERE \"2_f\"='tumi khao';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"simple_present_tense\" (\n \"verb\" text,\n \"2_vf\" text,\n \"2_f\" text,\n \"3_f\" text,\n \"2_3_p\" text\n);\n\nQuestion: For the verb dhoa, what is the 2VF?" }, { "role": "assistant", "content": "SELECT \"2_vf\" FROM \"simple_present_tense\" WHERE \"verb\"='dhoa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_history\" (\n \"year\" real,\n \"office\" text,\n \"election\" text,\n \"subject\" text,\n \"party\" text,\n \"votes\" real\n);\n\nQuestion: What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?" }, { "role": "assistant", "content": "SELECT \"subject\" FROM \"electoral_history\" WHERE \"election\"='general' AND \"office\"='queen anne''s county state''s attorney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_doctor_who_audio_releases\" (\n \"title\" text,\n \"writer\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text\n);\n\nQuestion: Who was the writer of The Year of the Cat from the BBV?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"list_of_doctor_who_audio_releases\" WHERE \"company\"='bbv' AND \"title\"='the year of the cat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: How many Goals For have Drawn of 10?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_for\") FROM \"final_table\" WHERE \"drawn\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: Which Lost has Drawn larger than 12, and Goals Against of 54?" }, { "role": "assistant", "content": "SELECT MAX(\"lost\") FROM \"final_table\" WHERE \"drawn\">12 AND \"goals_against\"=54;" } ]
[ { "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 \"location\" text\n);\n\nQuestion: What is the record for the Superbrawl 21?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='superbrawl 21';" } ]
[ { "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 \"location\" text\n);\n\nQuestion: What location shows round was 1, and against Ricky Shivers?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=1 AND \"opponent\"='ricky shivers';" } ]
[ { "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 \"location\" text\n);\n\nQuestion: What is the method for a match with a Round larger than 2, he took a loss, and 15\u20133 was the record?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"round\">2 AND \"res\"='loss' AND \"record\"='15\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Position has a Pick of 11 (via calgary)?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"cfl_draft\" WHERE \"pick\"='11 (via calgary)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Round has a Pick of 25 (via hamilton)?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"cfl_draft\" WHERE \"pick\"='25 (via hamilton)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"cfl_draft\" WHERE \"round\">3 AND \"player\"='sammy okpro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Round has a Player of sammy okpro?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"cfl_draft\" WHERE \"player\"='sammy okpro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Position has a Round of 4, and a School/Club Team of concordia?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"cfl_draft\" WHERE \"round\"=4 AND \"school_club_team\"='concordia';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Score of the game with a Record of 29\u201323\u201313?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"record\"='29\u201323\u201313';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Visitor of the game with a Record of 21\u201317\u201313?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"record\"='21\u201317\u201313';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Visitor of the game on December 25?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"date\"='december 25';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Date of the game with a Record of 8\u201310\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='8\u201310\u20136';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Date of the game with a Record of 1\u20132\u20134?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='1\u20132\u20134';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What is the Date of the game with a Record of 27\u201321\u201313?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='27\u201321\u201313';" } ]
[ { "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 Year(s) won has a Total smaller than 292, and a Player of hale irwin?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"total\"<292 AND \"player\"='hale irwin';" } ]
[ { "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: What is fuzzy zoeller's to par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"made_the_cut\" WHERE \"player\"='fuzzy zoeller';" } ]
[ { "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: What To par was won in 1982?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1982';" } ]
[ { "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: What is curtis strange's to par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"made_the_cut\" WHERE \"player\"='curtis strange';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"date\"='november 18';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: WHAT IS THE VISITOR FOR FEBRUARY 9?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"date\"='february 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is the place of the player who scored less than 70?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"score\"<70;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player was chosen by Saskatchewan in a pick larger than 38?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_six\" WHERE \"pick_num\">38 AND \"cfl_team\"='saskatchewan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"play_offs\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria?" }, { "role": "assistant", "content": "SELECT SUM(\"points\") FROM \"play_offs\" WHERE \"assists\"=7 AND \"games\"=11 AND \"goals\"<6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"play_offs\" (\n \"player\" text,\n \"club\" text,\n \"games\" real,\n \"goals\" real,\n \"assists\" real,\n \"points\" real\n);\n\nQuestion: What's the highest amount of Games recorded that have more than 10 assists?" }, { "role": "assistant", "content": "SELECT MAX(\"games\") FROM \"play_offs\" WHERE \"assists\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is Updated In Past 30 Days, when Registration is \"Open to people 13 and over\"?" }, { "role": "assistant", "content": "SELECT \"updated_in_past_30_days\" FROM \"general_information_feature_comparison\" WHERE \"registration\"='open to people 13 and over';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is Permanent Account, when Updated In Past 30 Days is 10324?" }, { "role": "assistant", "content": "SELECT \"permanent_account\" FROM \"general_information_feature_comparison\" WHERE \"updated_in_past_30_days\"='10324';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is Userpics Free, when Registration is Open, when Yearly Cost For Paid Account is \"unknown\", and when Name is Kraslan?" }, { "role": "assistant", "content": "SELECT \"userpics_free\" FROM \"general_information_feature_comparison\" WHERE \"registration\"='open' AND \"yearly_cost_for_paid_account\"='unknown' AND \"name\"='kraslan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is Userpics Free, when Monthly Cost For Paid Account is \"unknown\", and when S Registered User is 2340?" }, { "role": "assistant", "content": "SELECT \"userpics_free\" FROM \"general_information_feature_comparison\" WHERE \"monthly_cost_for_paid_account\"='unknown' AND \"s_registered_user\"='2340';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50?" }, { "role": "assistant", "content": "SELECT \"yearly_cost_for_paid_account\" FROM \"general_information_feature_comparison\" WHERE \"monthly_cost_for_paid_account\"='5 usd' AND \"userpics_paid\"='50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_information_feature_comparison\" (\n \"name\" text,\n \"year_began\" text,\n \"s_registered_user\" text,\n \"updated_in_past_30_days\" text,\n \"registration\" text,\n \"ability_to_syndicate_off_site_feeds\" text,\n \"userpics_free\" text,\n \"userpics_paid\" text,\n \"monthly_cost_for_paid_account\" text,\n \"yearly_cost_for_paid_account\" text,\n \"permanent_account\" text\n);\n\nQuestion: What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]?" }, { "role": "assistant", "content": "SELECT \"s_registered_user\" FROM \"general_information_feature_comparison\" WHERE \"userpics_free\"='6 [free] or 15 [plus]';" } ]
[ { "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 Venue, when Date is \"2003-08-13\"?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='2003-08-13';" } ]
[ { "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 Score, when Date is \"2000-05-23\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='2000-05-23';" } ]
[ { "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 Result, when Date is \"2000-05-23\"?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='2000-05-23';" } ]
[ { "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 Competition, when Date is \"1999-08-07\"?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='1999-08-07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winners\" text,\n \"finalists\" text,\n \"semifinalists\" text\n);\n\nQuestion: In what Week was Serena Williams 6\u20131, 6\u20137(7), 6\u20133 the Winner?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"singles\" WHERE \"winners\"='serena williams 6\u20131, 6\u20137(7), 6\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winners\" text,\n \"finalists\" text,\n \"semifinalists\" text\n);\n\nQuestion: Who was the Finalist on a Hard Surface with Winner Serena Williams 6\u20131, 6\u20137(7), 6\u20133?" }, { "role": "assistant", "content": "SELECT \"finalists\" FROM \"singles\" WHERE \"surface\"='hard' AND \"winners\"='serena williams 6\u20131, 6\u20137(7), 6\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winners\" text,\n \"finalists\" text,\n \"semifinalists\" text\n);\n\nQuestion: In what Week is the Rome Tournament?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"singles\" WHERE \"tournament\"='rome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which regio has a label of zzt and a date of 27 september 2004?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"release_history\" WHERE \"label\"='zzt' AND \"date\"='27 september 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which catalog has a date of 24 march 2006?" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"date\"='24 march 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which format has a region of united kingdom?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"region\"='united kingdom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which date has a region of united kingdom?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"region\"='united kingdom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which regio has a date of 24 march 2006?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"release_history\" WHERE \"date\"='24 march 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"airbus_jetliners_1972_1994\" (\n \"model\" text,\n \"a300\" text,\n \"a310\" text,\n \"a320\" text,\n \"a330\" text,\n \"a340\" text\n);\n\nQuestion: What is the A330 for A310 B10?" }, { "role": "assistant", "content": "SELECT \"a330\" FROM \"airbus_jetliners_1972_1994\" WHERE \"a310\"='b10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"airbus_jetliners_1972_1994\" (\n \"model\" text,\n \"a300\" text,\n \"a310\" text,\n \"a320\" text,\n \"a330\" text,\n \"a340\" text\n);\n\nQuestion: What is the A330 and the A310 wide?" }, { "role": "assistant", "content": "SELECT \"a330\" FROM \"airbus_jetliners_1972_1994\" WHERE \"a310\"='wide';" } ]