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 \"augmented_seventh_chord_table\" (\n \"chord\" text,\n \"root\" text,\n \"major_third\" text,\n \"augmented_fifth\" text,\n \"minor_seventh\" text\n);\n\nQuestion: A major third of C has what listed for the Minor seventh?" }, { "role": "assistant", "content": "SELECT \"minor_seventh\" FROM \"augmented_seventh_chord_table\" WHERE \"major_third\"='c';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"augmented_seventh_chord_table\" (\n \"chord\" text,\n \"root\" text,\n \"major_third\" text,\n \"augmented_fifth\" text,\n \"minor_seventh\" text\n);\n\nQuestion: What is the listed chord for a Minor seventh of F?" }, { "role": "assistant", "content": "SELECT \"chord\" FROM \"augmented_seventh_chord_table\" WHERE \"minor_seventh\"='f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_watched_programmes\" (\n \"rank\" real,\n \"show\" text,\n \"episode\" text,\n \"number_of_viewers\" real,\n \"date\" text\n);\n\nQuestion: Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"most_watched_programmes\" WHERE \"show\"='alcatraz' AND \"number_of_viewers\">'1,229,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_watched_programmes\" (\n \"rank\" real,\n \"show\" text,\n \"episode\" text,\n \"number_of_viewers\" real,\n \"date\" text\n);\n\nQuestion: Which Episode has a Rank of 1?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"most_watched_programmes\" WHERE \"rank\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"dates\" text,\n \"rally_name\" text,\n \"rally_hq\" text,\n \"support_category\" text,\n \"surface\" text\n);\n\nQuestion: Where was adac rally deutschland's rally HQ?" }, { "role": "assistant", "content": "SELECT \"rally_hq\" FROM \"calendar\" WHERE \"rally_name\"='adac rally deutschland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"dates\" text,\n \"rally_name\" text,\n \"rally_hq\" text,\n \"support_category\" text,\n \"surface\" text\n);\n\nQuestion: Where was the Rally HQ for Round 1?" }, { "role": "assistant", "content": "SELECT \"rally_hq\" FROM \"calendar\" WHERE \"round\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"dates\" text,\n \"rally_name\" text,\n \"rally_hq\" text,\n \"support_category\" text,\n \"surface\" text\n);\n\nQuestion: Which Support Category had a Round score of 9?" }, { "role": "assistant", "content": "SELECT \"support_category\" FROM \"calendar\" WHERE \"round\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"dates\" text,\n \"rally_name\" text,\n \"rally_hq\" text,\n \"support_category\" text,\n \"surface\" text\n);\n\nQuestion: What Surface had a Rally HQ of salou?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"calendar\" WHERE \"rally_hq\"='salou';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the lowest lane in the Czech Republic and a time larger than 21.05?" }, { "role": "assistant", "content": "SELECT MIN(\"lane\") FROM \"heat_1\" WHERE \"nationality\"='czech republic' AND \"time\">21.05;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the highest lane with a rank larger than 2 in Guyana?" }, { "role": "assistant", "content": "SELECT MAX(\"lane\") FROM \"heat_1\" WHERE \"rank\">2 AND \"nationality\"='guyana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"heat_1\" WHERE \"athlete\"='solomon bayoh' AND \"time\"<22.16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_5_british_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" text,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: Who is the artist of the album Soul?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"top_5_british_albums\" WHERE \"album\"='soul';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"rank\" real,\n \"heat\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" real\n);\n\nQuestion: who is the athlete when the time is less than 11.13 and the country is belgium?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"round_2\" WHERE \"time\"<11.13 AND \"country\"='belgium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"rank\" real,\n \"heat\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" real\n);\n\nQuestion: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"round_2\" WHERE \"rank\"<13 AND \"time\">11.13 AND \"country\"='bahamas' AND \"heat\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"rank\" real,\n \"heat\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" real\n);\n\nQuestion: what is the heat when the athlete is anita pistone?" }, { "role": "assistant", "content": "SELECT SUM(\"heat\") FROM \"round_2\" WHERE \"athlete\"='anita pistone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"rank\" real,\n \"heat\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" real\n);\n\nQuestion: how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"time\") FROM \"round_2\" WHERE \"rank\">29 AND \"athlete\"='barbara pierre' AND \"heat\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which IHSAA Class has a Location of linton?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"membership\" WHERE \"location\"='linton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: What is the sum of matches played for teams with more than 10 losses and under 5 points?" }, { "role": "assistant", "content": "SELECT SUM(\"played\") FROM \"first_round\" WHERE \"lost\">10 AND \"points\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"first_round\" WHERE \"points\">5 AND \"drawn\"=3 AND \"lost\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: What is the average number of losses for teams with under 4 losses and under 21 points?" }, { "role": "assistant", "content": "SELECT AVG(\"drawn\") FROM \"first_round\" WHERE \"lost\"<4 AND \"points\"<21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the home team at the game with an Attendance of 2,029?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"southern_section\" WHERE \"attendance\"='2,029';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the away team at the game with an Attendance of 1,730?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"southern_section\" WHERE \"attendance\"='1,730';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_section\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the away team at the game with a Tie no of 2?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"southern_section\" WHERE \"tie_no\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins?" }, { "role": "assistant", "content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"points\"='n/a' AND \"poles\"='1' AND \"wins\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"career_summary\" WHERE \"season\"<2003 AND \"podiums\"='1' AND \"points\"='n/a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What Podiums listing has a World Rally Championship series entry?" }, { "role": "assistant", "content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"series\"='world rally championship';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What races have n/a Points, 0 Wins, and 6th Position entries?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"points\"='n/a' AND \"wins\"='0' AND \"position\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?" }, { "role": "assistant", "content": "SELECT MAX(\"season\") FROM \"career_summary\" WHERE \"team\"='prema powerteam' AND \"series\"='masters of formula three';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What listing for Podiums has 0 F/laps and 39 points?" }, { "role": "assistant", "content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"f_laps\"='0' AND \"points\"='39';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21\u201316\u20139?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"attendance\">'16,186' AND \"points\"<52 AND \"record\"='21\u201316\u20139';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: Which Loss has a Record of 20\u201316\u20139?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"regular_season\" WHERE \"record\"='20\u201316\u20139';" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: Which Date has a Record of 19\u201316\u20138?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"record\"='19\u201316\u20138';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Can you tell me the Time that has the Lane of 8?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"semifinal_1\" WHERE \"lane\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Can you tell me the Total number of Rankthat has the Lane of 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"semifinal_1\" WHERE \"lane\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"semifinal_1\" WHERE \"nationality\"='australia' AND \"name\"='leisel jones' AND \"lane\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Can you tell me the Name that has the Rank of 4?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"semifinal_1\" WHERE \"rank\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"anglo_italian_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What is the highest Against for a game against Bristol City?" }, { "role": "assistant", "content": "SELECT MAX(\"against\") FROM \"anglo_italian_cup\" WHERE \"opposing_team\"='bristol city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"anglo_italian_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What was the date of the game against Oxford United?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"anglo_italian_cup\" WHERE \"opposing_team\"='oxford united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_2\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What country is ranked number 4?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"semifinal_a_b_2\" WHERE \"rank\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_2\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes from the rank of 1?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"semifinal_a_b_2\" WHERE \"rank\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What rowers have FA as the notes?" }, { "role": "assistant", "content": "SELECT \"rowers\" FROM \"heat_1\" WHERE \"notes\"='fa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the lowest rank has 7:09.06 as the time?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"heat_1\" WHERE \"time\"='7:09.06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What notes have 2 as the rank?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"heat_1\" WHERE \"rank\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stats\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: What was the match that happened in Bishop's Stortford?" }, { "role": "assistant", "content": "SELECT \"match\" FROM \"stats\" WHERE \"opponent\"='bishop''s stortford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stats\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: What was the final score for the Thurrock?" }, { "role": "assistant", "content": "SELECT \"score1\" FROM \"stats\" WHERE \"opponent\"='thurrock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which IHSAA class has a mascot of the Raiders?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"indiana_high_school_athletics_conference\" WHERE \"mascot\"='raiders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which school has a mascot of the Panthers?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"indiana_high_school_athletics_conference\" WHERE \"mascot\"='panthers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What's Italy's time when the notes were SA/B?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"heat_1\" WHERE \"notes\"='sa/b' AND \"country\"='italy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is Italy's rank?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"heat_1\" WHERE \"country\"='italy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alumni\" (\n \"name\" text,\n \"nationality\" text,\n \"position\" text,\n \"year_of_birth\" real,\n \"career\" text,\n \"appearances\" real,\n \"goals\" real,\n \"club\" text\n);\n\nQuestion: How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?" }, { "role": "assistant", "content": "SELECT COUNT(\"appearances\") FROM \"alumni\" WHERE \"club\"='rayo vallecano' AND \"goals\">37;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: Who's the player that was eliminated on episode 4?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cast\" WHERE \"eliminated\"='episode 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: Who is the player in 20th place?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cast\" WHERE \"placing\"='20th place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: What's the original season in 11th place?" }, { "role": "assistant", "content": "SELECT \"original_season\" FROM \"cast\" WHERE \"placing\"='11th place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: Who's the player eliminated on episode 5?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cast\" WHERE \"eliminated\"='episode 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: Who's the player that's male and on the original season of RW: Key West?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cast\" WHERE \"gender\"='male' AND \"original_season\"='rw: key west';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cast\" (\n \"player\" text,\n \"original_season\" text,\n \"gender\" text,\n \"eliminated\" text,\n \"placing\" text\n);\n\nQuestion: Who's the player eliminated on episode 8 of Fresh Meat?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cast\" WHERE \"original_season\"='fresh meat' AND \"eliminated\"='episode 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boats_of_the_class\" (\n \"name\" text,\n \"hull\" real,\n \"pennant_number\" text,\n \"status\" text,\n \"date_of_commission\" text\n);\n\nQuestion: The boat named Agamemnon has what status?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"boats_of_the_class\" WHERE \"name\"='agamemnon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boats_of_the_class\" (\n \"name\" text,\n \"hull\" real,\n \"pennant_number\" text,\n \"status\" text,\n \"date_of_commission\" text\n);\n\nQuestion: What status does the boat Ajax have?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"boats_of_the_class\" WHERE \"name\"='ajax';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376?" }, { "role": "assistant", "content": "SELECT AVG(\"upper_index_mj_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"upper_index_kcal_nm_3\"='19,376';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?" }, { "role": "assistant", "content": "SELECT COUNT(\"upper_index_kcal_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"fuel_gas\"='iso-butane' AND \"lower_index_mj_nm_3\"<84.71;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?" }, { "role": "assistant", "content": "SELECT AVG(\"lower_index_kcal_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"lower_index_mj_nm_3\"=74.54 AND \"upper_index_kcal_nm_3\"<'19,376';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28?" }, { "role": "assistant", "content": "SELECT SUM(\"upper_index_kcal_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"lower_index_mj_nm_3\"=47.91 AND \"upper_index_mj_nm_3\">53.28;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?" }, { "role": "assistant", "content": "SELECT SUM(\"upper_index_kcal_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"lower_index_mj_nm_3\">47.91 AND \"fuel_gas\"='propylene' AND \"upper_index_mj_nm_3\">77.04;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wobbe_index_of_common_fuel_gases\" (\n \"fuel_gas\" text,\n \"upper_index_kcal_nm_3\" real,\n \"lower_index_kcal_nm_3\" real,\n \"upper_index_mj_nm_3\" real,\n \"lower_index_mj_nm_3\" real\n);\n\nQuestion: What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84?" }, { "role": "assistant", "content": "SELECT AVG(\"lower_index_mj_nm_3\") FROM \"wobbe_index_of_common_fuel_gases\" WHERE \"upper_index_kcal_nm_3\">'19,376' AND \"fuel_gas\"='lpg' AND \"upper_index_mj_nm_3\"<86.84;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stats\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: What match number has a ground of H and the opponent Chelsea under 18s?" }, { "role": "assistant", "content": "SELECT AVG(\"match\") FROM \"stats\" WHERE \"ground\"='h' AND \"opponent\"='chelsea under 18s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stats\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"stats\" WHERE \"match\"<14 AND \"ground\"='h' AND \"opponent\"='aston villa under 18s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stats\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"stats\" WHERE \"score1\"='2 - 4' AND \"opponent\"='chelsea under 18s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"not_all_data_are_listed\" (\n \"date_s\" text,\n \"venue\" text,\n \"city\" text,\n \"ticket_price_s\" text,\n \"ticket_sold_available\" text,\n \"ticket_grossing\" text\n);\n\nQuestion: What is the ticket price at Canadian National Exhibition Stadium?" }, { "role": "assistant", "content": "SELECT \"ticket_price_s\" FROM \"not_all_data_are_listed\" WHERE \"venue\"='canadian national exhibition stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"not_all_data_are_listed\" (\n \"date_s\" text,\n \"venue\" text,\n \"city\" text,\n \"ticket_price_s\" text,\n \"ticket_sold_available\" text,\n \"ticket_grossing\" text\n);\n\nQuestion: What was the ticket price at Red Rocks Amphitheatre?" }, { "role": "assistant", "content": "SELECT \"ticket_price_s\" FROM \"not_all_data_are_listed\" WHERE \"venue\"='red rocks amphitheatre';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"not_all_data_are_listed\" (\n \"date_s\" text,\n \"venue\" text,\n \"city\" text,\n \"ticket_price_s\" text,\n \"ticket_sold_available\" text,\n \"ticket_grossing\" text\n);\n\nQuestion: What was the ticket price on September 16, 1986?" }, { "role": "assistant", "content": "SELECT \"ticket_price_s\" FROM \"not_all_data_are_listed\" WHERE \"date_s\"='september 16, 1986';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"opposition\" text\n);\n\nQuestion: Who was the opposition for the player who has a total of 10 points?" }, { "role": "assistant", "content": "SELECT \"opposition\" FROM \"single_game\" WHERE \"total\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"single_game\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"opposition\" text\n);\n\nQuestion: Which player is from County Dublin?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"single_game\" WHERE \"county\"='dublin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_and_economy_size_for_latin_am\" (\n \"rank\" real,\n \"metropolitan_area\" text,\n \"country\" text,\n \"gdp_ppp_2008_billions_of_us\" real,\n \"metropolitan_population_2006_millions\" real,\n \"gdp_ppp_us_per_capita\" real\n);\n\nQuestion: What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?" }, { "role": "assistant", "content": "SELECT AVG(\"metropolitan_population_2006_millions\") FROM \"population_and_economy_size_for_latin_am\" WHERE \"metropolitan_area\"='lima' AND \"gdp_ppp_us_per_capita\">'13,100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_and_economy_size_for_latin_am\" (\n \"rank\" real,\n \"metropolitan_area\" text,\n \"country\" text,\n \"gdp_ppp_2008_billions_of_us\" real,\n \"metropolitan_population_2006_millions\" real,\n \"gdp_ppp_us_per_capita\" real\n);\n\nQuestion: What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300?" }, { "role": "assistant", "content": "SELECT MIN(\"metropolitan_population_2006_millions\") FROM \"population_and_economy_size_for_latin_am\" WHERE \"country\"='mexico' AND \"metropolitan_area\"='mexico city' AND \"gdp_ppp_us_per_capita\"<'20,300';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Who placed highest with a time of 1:47.70?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"semifinal_1\" WHERE \"time\"='1:47.70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"surrounding\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570?" }, { "role": "assistant", "content": "SELECT COUNT(\"col_m\") FROM \"surrounding\" WHERE \"elevation_m\"<'3,187' AND \"prominence_m\"<'1,570';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"surrounding\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195?" }, { "role": "assistant", "content": "SELECT MIN(\"elevation_m\") FROM \"surrounding\" WHERE \"prominence_m\">'2,120' AND \"peak\"='mount karisimbi' AND \"col_m\">1195;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"surrounding\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Which Prominence (m) has an Elevation (m) of 3,095?" }, { "role": "assistant", "content": "SELECT MIN(\"prominence_m\") FROM \"surrounding\" WHERE \"elevation_m\"='3,095';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"poland\" (\n \"actor\" text,\n \"character\" text,\n \"soap_opera\" text,\n \"years\" text,\n \"duration\" text\n);\n\nQuestion: How long did Witold Latoszek character lasted?" }, { "role": "assistant", "content": "SELECT \"duration\" FROM \"poland\" WHERE \"character\"='witold latoszek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Which episode was the last written by chris hawkshaw this season?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"episodes\" WHERE \"written_by\"='chris hawkshaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"and_neighbouring_islands\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters?" }, { "role": "assistant", "content": "SELECT MAX(\"col_m\") FROM \"and_neighbouring_islands\" WHERE \"prominence_m\"='1,834' AND \"elevation_m\">'1,834';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"patronage_ridership\" (\n \"type_of_service\" text,\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"change_06_07\" text,\n \"change_07_08\" text\n);\n\nQuestion: What is the greatest 2007 when the change 06-07 was 14.7%?" }, { "role": "assistant", "content": "SELECT MAX(\"2007\") FROM \"patronage_ridership\" WHERE \"change_06_07\"='14.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: when was the ship completed when laid down is 21 august 1925?" }, { "role": "assistant", "content": "SELECT \"completed\" FROM \"list_of_ships\" WHERE \"laid_down\"='21 august 1925';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: When was satsuki dd-27 completed?" }, { "role": "assistant", "content": "SELECT \"completed\" FROM \"list_of_ships\" WHERE \"name\"='satsuki dd-27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?" }, { "role": "assistant", "content": "SELECT \"launched\" FROM \"list_of_ships\" WHERE \"builder\"='fujinagata shipyards, japan' AND \"laid_down\"='20 october 1924';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: when was the ship completed that was laid down on 23 march 1926?" }, { "role": "assistant", "content": "SELECT \"completed\" FROM \"list_of_ships\" WHERE \"laid_down\"='23 march 1926';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: when was the ship laid down when it was completed on 3 july 1926?" }, { "role": "assistant", "content": "SELECT \"laid_down\" FROM \"list_of_ships\" WHERE \"completed\"='3 july 1926';" } ]
[ { "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_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of the game at the Chicago Stadium?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='chicago stadium';" } ]
[ { "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_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the date of the game when the record was 46-31?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='46-31';" } ]
[ { "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_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of the game at the Chicago Stadium?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='chicago stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: What is the Rank of the Swimmer in Lane 5?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"semifinal_1\" WHERE \"lane\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"semifinal_1\" WHERE \"time\"=49 AND \"lane\">7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: What is the Lane of the swimmer with a Rank of 8?" }, { "role": "assistant", "content": "SELECT MAX(\"lane\") FROM \"semifinal_1\" WHERE \"rank\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_to_season\" (\n \"season\" real,\n \"level\" text,\n \"division\" text,\n \"administration\" text,\n \"position\" text\n);\n\nQuestion: What Level has a Season larger than 2010?" }, { "role": "assistant", "content": "SELECT \"level\" FROM \"season_to_season\" WHERE \"season\">2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_to_season\" (\n \"season\" real,\n \"level\" text,\n \"division\" text,\n \"administration\" text,\n \"position\" text\n);\n\nQuestion: What Adminstration has a Season of 2000?" }, { "role": "assistant", "content": "SELECT \"administration\" FROM \"season_to_season\" WHERE \"season\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_to_season\" (\n \"season\" real,\n \"level\" text,\n \"division\" text,\n \"administration\" text,\n \"position\" text\n);\n\nQuestion: What Position has a Season larger than 2000 with a Level of Tier 3?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"season_to_season\" WHERE \"season\">2000 AND \"level\"='tier 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_to_season\" (\n \"season\" real,\n \"level\" text,\n \"division\" text,\n \"administration\" text,\n \"position\" text\n);\n\nQuestion: What Position has a Level of tier 4 with a Season smaller than 2003?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"season_to_season\" WHERE \"level\"='tier 4' AND \"season\"<2003;" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who had the most rebounds in the game against New York?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"opponent\"='new york';" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who was the opponent for game 30?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"game\"=30;" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"location\"='mohegan sun arena' AND \"record\"='24-7';" } ]