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 \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the name of the race that has the pergusa Circuit?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"non_championship_race_results\" WHERE \"circuit\"='pergusa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the scoreof the away team Collingwood?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_8\" WHERE \"away_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"team\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Jean Alesi, drives the Acer 01A engine for which team?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"drivers_and_constructors\" WHERE \"driver\"='jean alesi' AND \"engine\"='acer 01a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"team\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Who built Alex Yoong's car?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"drivers_and_constructors\" WHERE \"driver\"='alex yoong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What's jim colbert's highest rank?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"leaders\" WHERE \"player\"='jim colbert';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What's hale irwin's average rank?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"leaders\" WHERE \"player\"='hale irwin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What is the average wins with a rank over 3 and more earnings than $9,735,814?" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"leaders\" WHERE \"rank\">3 AND \"earnings\">'9,735,814';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"receiving\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the sum of averages with a long value of 32?" }, { "role": "assistant", "content": "SELECT SUM(\"avg\") FROM \"receiving\" WHERE \"long\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"receiving\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the highest TD's with less than 15 yards and less than 1 rec.?" }, { "role": "assistant", "content": "SELECT MAX(\"td_s\") FROM \"receiving\" WHERE \"yards\"<15 AND \"rec\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: Which R\u014dmaji title has a Track larger than 20, and a Track time of 4:28?" }, { "role": "assistant", "content": "SELECT \"r_maji_title\" FROM \"track_listing\" WHERE \"track\">20 AND \"track_time\"='4:28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: Which Track time has a Disc larger than 2, a Track smaller than 22, and an English title of younger girl?" }, { "role": "assistant", "content": "SELECT \"track_time\" FROM \"track_listing\" WHERE \"disc\">2 AND \"track\"<22 AND \"english_title\"='younger girl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: Which Japanese title has a Disc smaller than 12, and an Artist of k\u014dz\u014d murashita?" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"track_listing\" WHERE \"disc\"<12 AND \"artist\"='k\u014dz\u014d murashita';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: Which track has a Japanese title of \u30e1\u30ed\u30c7\u30a3\u30fc?" }, { "role": "assistant", "content": "SELECT MAX(\"track\") FROM \"track_listing\" WHERE \"japanese_title\"='\u30e1\u30ed\u30c7\u30a3\u30fc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What Grid has a Time/Retired of clutch?" }, { "role": "assistant", "content": "SELECT SUM(\"grid\") FROM \"classification\" WHERE \"time_retired\"='clutch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the Time/Retired with more Laps than 34, a Grid smaller than 15, and Driver Damon Hill?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"laps\">34 AND \"grid\"<15 AND \"driver\"='damon hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many Laps Did Driver David Coulthard have on a Grid smaller than 11?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"classification\" WHERE \"grid\"<11 AND \"driver\"='david coulthard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"type\" text,\n \"winner\" text\n);\n\nQuestion: What type of race took place on the course Orta San Giulio to Milan?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"stage_results\" WHERE \"course\"='orta san giulio to milan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"type\" text,\n \"winner\" text\n);\n\nQuestion: When did the course Vasto to Campitello Matese took place?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"stage_results\" WHERE \"course\"='vasto to campitello matese';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"type\" text,\n \"winner\" text\n);\n\nQuestion: Who won the course Brescia?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"stage_results\" WHERE \"course\"='brescia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the league for 1996" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"year\"='1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the league for 1994" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"year\"='1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Tell me the league with a regular 1st season" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"reg_season\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1886_1893\" (\n \"class\" text,\n \"type\" text,\n \"quantity\" real,\n \"date\" text,\n \"lner_class\" text\n);\n\nQuestion: What class has a LNER Class of d8?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"1886_1893\" WHERE \"lner_class\"='d8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1886_1893\" (\n \"class\" text,\n \"type\" text,\n \"quantity\" real,\n \"date\" text,\n \"lner_class\" text\n);\n\nQuestion: What LNER Class has a Class of 6db?" }, { "role": "assistant", "content": "SELECT \"lner_class\" FROM \"1886_1893\" WHERE \"class\"='6db';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1886_1893\" (\n \"class\" text,\n \"type\" text,\n \"quantity\" real,\n \"date\" text,\n \"lner_class\" text\n);\n\nQuestion: What LNER Class has a Class of 3?" }, { "role": "assistant", "content": "SELECT \"lner_class\" FROM \"1886_1893\" WHERE \"class\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_vancouver_canucks_draft_picks\" (\n \"rd_num\" real,\n \"pick_num\" real,\n \"player\" text,\n \"reg_gp\" real,\n \"pl_gp\" real\n);\n\nQuestion: Which mean pick number had a Reg GP of 0, and a Pl GP that was bigger than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"pick_num\") FROM \"list_of_vancouver_canucks_draft_picks\" WHERE \"reg_gp\"=0 AND \"pl_gp\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_vancouver_canucks_draft_picks\" (\n \"rd_num\" real,\n \"pick_num\" real,\n \"player\" text,\n \"reg_gp\" real,\n \"pl_gp\" real\n);\n\nQuestion: What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"list_of_vancouver_canucks_draft_picks\" WHERE \"rd_num\"<6 AND \"player\"='bob dailey' AND \"reg_gp\">257;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_vancouver_canucks_draft_picks\" (\n \"rd_num\" real,\n \"pick_num\" real,\n \"player\" text,\n \"reg_gp\" real,\n \"pl_gp\" real\n);\n\nQuestion: What is the sum number of Pl GP when the Reg GP was 0, the Rd number was bigger than 8, and the pick number was bigger than 146?" }, { "role": "assistant", "content": "SELECT COUNT(\"pl_gp\") FROM \"list_of_vancouver_canucks_draft_picks\" WHERE \"reg_gp\"=0 AND \"rd_num\">8 AND \"pick_num\">146;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"candidates_who_lost_the_election\" (\n \"name\" text,\n \"election_year\" real,\n \"party\" text,\n \"birth_state\" text,\n \"resident_state\" text\n);\n\nQuestion: What was the birth state of Charles Cotesworth Pinckney who was elected in 1808?" }, { "role": "assistant", "content": "SELECT \"birth_state\" FROM \"candidates_who_lost_the_election\" WHERE \"name\"='charles cotesworth pinckney' AND \"election_year\"=1808;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"football_titles_by_school\" (\n \"team\" text,\n \"season\" text,\n \"regular_season_division\" real,\n \"postseason\" text,\n \"total\" real\n);\n\nQuestion: How many postseason titles has Nebraska received?" }, { "role": "assistant", "content": "SELECT \"postseason\" FROM \"football_titles_by_school\" WHERE \"team\"='nebraska';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What day does the home team score 8.13 (61)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_2\" WHERE \"home_team_score\"='8.13 (61)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the lost On August 20" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='august 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: WHAT IS THE NUMBER OF Attendance WITH A RECORD 94\u201336" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"game_log\" WHERE \"save\"='\u2013' AND \"record\"='94\u201336';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: WHICH Attendance that has a Loss of paniagua (3\u20133)?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"loss\"='paniagua (3\u20133)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many points did the away team score at Arden Street Oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_12\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: In what venue does Footscray play?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_12\" WHERE \"home_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pedro_rodr_guez_in_porsche\" (\n \"year\" real,\n \"race\" text,\n \"team\" text,\n \"pos\" text,\n \"co_driver\" text\n);\n\nQuestion: What position did Co-driver Jackie Oliver finish in the 24 hours of Le Mans?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"pedro_rodr_guez_in_porsche\" WHERE \"race\"='24 hours of le mans' AND \"co_driver\"='jackie oliver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pedro_rodr_guez_in_porsche\" (\n \"year\" real,\n \"race\" text,\n \"team\" text,\n \"pos\" text,\n \"co_driver\" text\n);\n\nQuestion: Who was the co-driver in 1970 for the race of Targa Florio?" }, { "role": "assistant", "content": "SELECT \"co_driver\" FROM \"pedro_rodr_guez_in_porsche\" WHERE \"year\"=1970 AND \"race\"='targa florio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which vehicle has a Grid of 13?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"classification\" WHERE \"grid\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What's the Time/Retired of 80 laps with a Grid larger than 2?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"laps\"=80 AND \"grid\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Tell me the date for detroit and game more than 3" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"playoffs\" WHERE \"team\"='detroit' AND \"game\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Name the team with high assists of nelson (5)" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"playoffs\" WHERE \"high_assists\"='nelson (5)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Name the score for howard (8) high rebounds" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"high_rebounds\"='howard (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: Where Date is october 11, and game greater than 4 what is the lowest attendance?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"summary\" WHERE \"date\"='october 11' AND \"game\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: Where date is october 7 and game greater than 1, what is the highest attendance?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"summary\" WHERE \"date\"='october 7' AND \"game\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: Where Date is october 14 what is the attendance?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"summary\" WHERE \"date\"='october 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team had a venue of mcg?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"venue\"='mcg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When did the away team score at Punt Road Oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_4\" WHERE \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many points did North Melbourne score?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_4\" WHERE \"home_team\"='north melbourne';" } ]
[ { "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: How many points when under 17,197 attended against the wild?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"regular_season\" WHERE \"attendance\"<'17,197' AND \"opponent\"='wild';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score on March 4?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='march 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: On which date was Raymond Felton (6) the high assists and Jason Richardson (42) the high points?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_assists\"='raymond felton (6)' AND \"high_points\"='jason richardson (42)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the location attendance when the team is Golden State?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='golden state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: Which record has a Visitor of magic?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"january\" WHERE \"visitor\"='magic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: Which score has a Home of grizzlies, and a Leading scorer of rudy gay (18)?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"january\" WHERE \"home\"='grizzlies' AND \"leading_scorer\"='rudy gay (18)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: Which leading scorer has a Home of grizzlies, and a Record of 10\u201328?" }, { "role": "assistant", "content": "SELECT \"leading_scorer\" FROM \"january\" WHERE \"home\"='grizzlies' AND \"record\"='10\u201328';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: If the Away team score was 15.20 (110), what was the Home team playing?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_5\" WHERE \"away_team_score\"='15.20 (110)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the Away team score equaled 15.20 (110) what was the Date of the game?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_5\" WHERE \"away_team_score\"='15.20 (110)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: If the Away team was carlton, what Date did they play?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_5\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people were in the Crowd when the Away team scored 15.20 (110)?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_5\" WHERE \"away_team_score\"='15.20 (110)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Visitor with a Home with chicago, and a Score of 3 \u2013 2?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"playoffs\" WHERE \"home\"='chicago' AND \"score\"='3 \u2013 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Score with a Date with may 2?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"date\"='may 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Score with a Home of colorado, and a Date with may 11?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"home\"='colorado' AND \"date\"='may 11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Home with a Visitor of chicago, and a Series with 3 \u2013 2?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"playoffs\" WHERE \"visitor\"='chicago' AND \"series\"='3 \u2013 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Visitor with a Series with 3 \u2013 2?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"playoffs\" WHERE \"series\"='3 \u2013 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"series\" text\n);\n\nQuestion: What is the Visitor with a Score with 4 \u2013 3?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"playoffs\" WHERE \"score\"='4 \u2013 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2007 value with 1r in 2011 and 1r in 2010?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2011\"='1r' AND \"2010\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2012 value with 1r in 2010 and 2r in 2006?" }, { "role": "assistant", "content": "SELECT \"2012\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2010\"='1r' AND \"2006\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2010 value for the Australian Open?" }, { "role": "assistant", "content": "SELECT \"2010\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"tournament\"='australian open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2006 value of the 2009 A value, 2011 A value, and A as the 2007 value?" }, { "role": "assistant", "content": "SELECT \"2006\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2009\"='a' AND \"2011\"='a' AND \"2007\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2006 value with 3r in 2007?" }, { "role": "assistant", "content": "SELECT \"2006\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2007\"='3r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2012 value with 479 in 2008?" }, { "role": "assistant", "content": "SELECT \"2012\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2008\"='479';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ch_or_12th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What is the building for the r90 pennant?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"ch_or_12th_emergency_flotilla\" WHERE \"pennant\"='r90';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ch_or_12th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What is the pennant with Denny, Dumbarton as the builder?" }, { "role": "assistant", "content": "SELECT \"pennant\" FROM \"ch_or_12th_emergency_flotilla\" WHERE \"builder\"='denny, dumbarton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ch_or_12th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What is the laid down date of the destroyer with a r29 pennant?" }, { "role": "assistant", "content": "SELECT \"laid_down\" FROM \"ch_or_12th_emergency_flotilla\" WHERE \"pennant\"='r29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"heat\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"location_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is the location/state of the race on 16 Jun?" }, { "role": "assistant", "content": "SELECT \"location_state\" FROM \"race_calendar\" WHERE \"date\"='16 jun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"heat\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"location_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is the lowest heat of the Lakeside race?" }, { "role": "assistant", "content": "SELECT MIN(\"heat\") FROM \"race_calendar\" WHERE \"race_title\"='lakeside';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the Away team is footscray, what is the Home team playing?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_15\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the Home team scores 14.16 (100), what is the sum of the Crowds?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_15\" WHERE \"home_team_score\"='14.16 (100)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What's the average number of people in the Crowd that attend essendon games as the Home team?" }, { "role": "assistant", "content": "SELECT AVG(\"crowd\") FROM \"round_15\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Away team plays at the Venue vfl park?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"venue\"='vfl park';" } ]
[ { "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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: Name the least week for opponent of washington redskins" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"opponent\"='washington redskins';" } ]
[ { "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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: Name the tv time for week 10" }, { "role": "assistant", "content": "SELECT \"tv_time\" 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 \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the Time/Retired for a Grid larger than 6, and 57 laps?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"grid\">6 AND \"laps\"=57;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What grid for denny hulme?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"classification\" WHERE \"driver\"='denny hulme';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps for a Time/Retired of tyre, and a Grid larger than 10?" }, { "role": "assistant", "content": "SELECT COUNT(\"laps\") FROM \"classification\" WHERE \"time_retired\"='tyre' AND \"grid\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spaceflight_by_year\" (\n \"rocket_launch\" text,\n \"launch_date\" text,\n \"mission\" text,\n \"institutional_authority\" text,\n \"launch_site\" text,\n \"outcomes\" text,\n \"derivatives\" text\n);\n\nQuestion: What Outcome has a Rocket launch of rehnuma-11?" }, { "role": "assistant", "content": "SELECT \"outcomes\" FROM \"spaceflight_by_year\" WHERE \"rocket_launch\"='rehnuma-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spaceflight_by_year\" (\n \"rocket_launch\" text,\n \"launch_date\" text,\n \"mission\" text,\n \"institutional_authority\" text,\n \"launch_site\" text,\n \"outcomes\" text,\n \"derivatives\" text\n);\n\nQuestion: Which Institutional authority has a Rocket launch of rehnuma-10?" }, { "role": "assistant", "content": "SELECT \"institutional_authority\" FROM \"spaceflight_by_year\" WHERE \"rocket_launch\"='rehnuma-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spaceflight_by_year\" (\n \"rocket_launch\" text,\n \"launch_date\" text,\n \"mission\" text,\n \"institutional_authority\" text,\n \"launch_site\" text,\n \"outcomes\" text,\n \"derivatives\" text\n);\n\nQuestion: Which Derivative has a Launch Date of july 15, 1970; 15:05 gmt?" }, { "role": "assistant", "content": "SELECT \"derivatives\" FROM \"spaceflight_by_year\" WHERE \"launch_date\"='july 15, 1970; 15:05 gmt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spaceflight_by_year\" (\n \"rocket_launch\" text,\n \"launch_date\" text,\n \"mission\" text,\n \"institutional_authority\" text,\n \"launch_site\" text,\n \"outcomes\" text,\n \"derivatives\" text\n);\n\nQuestion: Which Outcome has a Launch Date of march 18, 1964; 14:50 gmt?" }, { "role": "assistant", "content": "SELECT \"outcomes\" FROM \"spaceflight_by_year\" WHERE \"launch_date\"='march 18, 1964; 14:50 gmt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spaceflight_by_year\" (\n \"rocket_launch\" text,\n \"launch_date\" text,\n \"mission\" text,\n \"institutional_authority\" text,\n \"launch_site\" text,\n \"outcomes\" text,\n \"derivatives\" text\n);\n\nQuestion: Which Mission has a Launch Date of december 30, 1970; 14:50 gmt?" }, { "role": "assistant", "content": "SELECT \"mission\" FROM \"spaceflight_by_year\" WHERE \"launch_date\"='december 30, 1970; 14:50 gmt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score when the Golden State Warriors were the visiting team on 3/7 and there were more than 18,997 people in attendance?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"march\" WHERE \"visitor\"='golden state warriors' AND \"attendance\">'18,997' AND \"date\"='3/7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What team was the visitor on 3/2?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"march\" WHERE \"date\"='3/2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score for kardinia park?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_22\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When did an away team score 32.16 (208)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_22\" WHERE \"away_team_score\"='32.16 (208)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tamazight_vowel_allophony\" (\n \"phoneme\" text,\n \"realization\" text,\n \"environment\" text,\n \"example\" text,\n \"gloss\" text\n);\n\nQuestion: Name the realization for phoneme of /i/ and example of /id\u02d0a/" }, { "role": "assistant", "content": "SELECT \"realization\" FROM \"tamazight_vowel_allophony\" WHERE \"phoneme\"='/i/' AND \"example\"='/id\u02d0a/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tamazight_vowel_allophony\" (\n \"phoneme\" text,\n \"realization\" text,\n \"environment\" text,\n \"example\" text,\n \"gloss\" text\n);\n\nQuestion: Name the phoneme for realizaiton of [\u026aj]" }, { "role": "assistant", "content": "SELECT \"phoneme\" FROM \"tamazight_vowel_allophony\" WHERE \"realization\"='[\u026aj]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tamazight_vowel_allophony\" (\n \"phoneme\" text,\n \"realization\" text,\n \"environment\" text,\n \"example\" text,\n \"gloss\" text\n);\n\nQuestion: Name the example when the environment is #_x" }, { "role": "assistant", "content": "SELECT \"example\" FROM \"tamazight_vowel_allophony\" WHERE \"environment\"='#_x';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tamazight_vowel_allophony\" (\n \"phoneme\" text,\n \"realization\" text,\n \"environment\" text,\n \"example\" text,\n \"gloss\" text\n);\n\nQuestion: Name the example when the realization is [\u0250]" }, { "role": "assistant", "content": "SELECT \"example\" FROM \"tamazight_vowel_allophony\" WHERE \"realization\"='[\u0250]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tamazight_vowel_allophony\" (\n \"phoneme\" text,\n \"realization\" text,\n \"environment\" text,\n \"example\" text,\n \"gloss\" text\n);\n\nQuestion: Name the phoneme when the example is /ums\u0281/" }, { "role": "assistant", "content": "SELECT \"phoneme\" FROM \"tamazight_vowel_allophony\" WHERE \"example\"='/ums\u0281/';" } ]