conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (play VARCHAR, author VARCHAR, base VARCHAR)"
},
{
"from": "human",
"value": "What play has a base of Athens and was written by Aeschylus?"
},
{
"from": "gpt",
"value": "SELECT play FROM table_name_67 WHERE author = \"aeschylus... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR)"
},
{
"from": "human",
"value": "What is the company from Greece with author Aeschylus?"
},
{
"from": "gpt",
"value": "SELECT company FROM table_name_45 WHERE country = \"greec... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR)"
},
{
"from": "human",
"value": "What is the coaster name that was opened in 1978, and have wooden track?"
},
{
"from": "gpt",
"value": "SELECT coaster_name FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR)"
},
{
"from": "human",
"value": "Which year opened has le monstre coaster?"
},
{
"from": "gpt",
"value": "SELECT year_opened FROM table_name_57 WHERE coaster_name = \"le monstre\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Which coaster is located in sandusky, Ohio?"
},
{
"from": "gpt",
"value": "SELECT coaster_name FROM table_name_87 WHERE location = \"sandusky, ohio\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Which year opened is located in west mifflin, pennsylvania?"
},
{
"from": "gpt",
"value": "SELECT year_opened FROM table_name_50 WHERE location = \"west m... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2?"
},
{
"from": ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (game VARCHAR, location_attendance VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What game was played at Omni Coliseum with a w 105-95 score?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_32 WHERE locati... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "When did the team have a 10-8 record?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_26 WHERE record = \"10-8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "When was 11-8 the record?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_43 WHERE record = \"11-8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?"
},
{
"from": "gpt",
"v... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (played INTEGER, points VARCHAR, drawn VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the total number played with 8 points and a position more than 6?"
},
{
"from": "gpt",
"value": "SELECT COUNT(played) FROM table_name_9... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (played VARCHAR, drawn VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is the total number played with 1 drawn, and less than 7 points?"
},
{
"from": "gpt",
"value": "SELECT COUNT(played) FROM table_name_71 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What is the most silver when bronze is more than 1 and total is more than 48?"
},
{
"from": "gpt",
"value": "SELECT MAX(silver) FROM table_name_40... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (bronze INTEGER, total VARCHAR)"
},
{
"from": "human",
"value": "what is the most bronze when the total is 9?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_94 WHERE total = 9"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "what is the least bronze when the nation is soviet union and the total is less than 11?"
},
{
"from": "gpt",
"value": "SELECT MIN(bronze) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the category when Hy Conrad nominated in 2003?"
},
{
"from": "gpt",
"value": "SELECT category FROM table_name_84 WHERE nominee_s_ = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)"
},
{
"from": "human",
"value": "What is the long figure when gain is less than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(long) FROM table_name_28 WHERE gain < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR)"
},
{
"from": "human",
"value": "What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?"
},
{
"from": "gpt",
"value": "SELECT A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (time VARCHAR, notes VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the time for Estonia with sc/d notes?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_9 WHERE notes = \"sc/d\" AND country = \"es... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the time for the rank after 5 with sc/d notes?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_55 WHERE notes = \"sc/d\" AND rank >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR)"
},
{
"from": "human",
"value": "What was Law Hiu Fung's time?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_26 WHERE athlete = \"law hiu fung\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (time VARCHAR, notes VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the time for the rank after 5 with sc/d notes?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_27 WHERE notes = \"sc/d\" AND rank >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the highest rank for a 6:52.70 time and notes of sa/b?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_56 WHERE notes = \"sa/b... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (rank INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest rank that has paul biedermann as the name?"
},
{
"from": "gpt",
"value": "SELECT MIN(rank) FROM table_name_31 WHERE name = \"paul biedermann\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What nationality has 2 as the rank?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_32 WHERE rank = 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is the highest lane that has nimrod shapira bar-or as the name?"
},
{
"from": "gpt",
"value": "SELECT MAX(lane) FROM table_name_38 WHERE name = \"nimrod shapira... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)"
},
{
"from": "human",
"value": "What is the latest year they were nominated?"
},
{
"from": "gpt",
"value": "SELECT MAX(year) FROM table_name_44 WHERE result = \"nominated\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (result VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "What is the result of the choice tv actor: drama category?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_22 WHERE category = \"choice tv actor: ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (drawn INTEGER, position VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "Which Drawn has a Position smaller than 8, and a Played smaller than 14?"
},
{
"from": "gpt",
"value": "SELECT MAX(drawn) FROM table_name_85 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen?"
},
{
"from": "gpt",
"value": "SELECT MAX... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What place did Lee Westwood finish in?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_74 WHERE player = \"lee westwood\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the to par score of the player that had a score of 67-68=135?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR)"
},
{
"from": "human",
"value": "What Televote Points had a Final Points score of 2?"
},
{
"from": "gpt",
"value": "SELECT televote_points FROM table_name_43 WHERE final_points = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR)"
},
{
"from": "human",
"value": "Which Draw had 8 Televote Points?"
},
{
"from": "gpt",
"value": "SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = \"8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (jury_points VARCHAR, televote_points VARCHAR)"
},
{
"from": "human",
"value": "What was the Jury Points value when there were 3 Televote Points?"
},
{
"from": "gpt",
"value": "SELECT jury_points FROM table_name_5 WHERE televote... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)"
},
{
"from": "human",
"value": "Which player was +4 to par and won the Open in 1995?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_3 WHERE to_par = \"+4\" AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (player VARCHAR, to_par VARCHAR)"
},
{
"from": "human",
"value": "Which player has a to par of +8?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_81 WHERE to_par = \"+8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (country VARCHAR, rank INTEGER)"
},
{
"from": "human",
"value": "What country is ranked smaller than 2?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_16 WHERE rank < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the rank when the time is 6:50.48?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_70 WHERE time = \"6:50.48\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the highest rank with the notes of sa/b, and a time of 6:39.07?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_56 WHERE notes... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What shows for notes when rank is more than 4, and country is South Korea?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_31 WHERE ran... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What is the First Issue date of Bamboo Blade?"
},
{
"from": "gpt",
"value": "SELECT first_issue FROM table_name_89 WHERE title = \"bamboo blade\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR)"
},
{
"from": "human",
"value": "What is the First issue date of the title with a Last Issue of July 2010?"
},
{
"from": "gpt",
"value": "SELECT first_issue FROM table_name_1 WHERE last_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What is the First Issue date of Soul Eater?"
},
{
"from": "gpt",
"value": "SELECT first_issue FROM table_name_85 WHERE title = \"soul eater\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR)"
},
{
"from": "human",
"value": "What is the Author of the Title with a First Issue of September 2010?"
},
{
"from": "gpt",
"value": "SELECT author FROM table_name_87 WHERE first_issue = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR)"
},
{
"from": "human",
"value": "What is the Author of the Title with an Ongoing Last Issue?"
},
{
"from": "gpt",
"value": "SELECT author FROM table_name_1 WHERE last_issue = \"ongoing\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (losses INTEGER, team VARCHAR, draws VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of losses for Presidente Hayes, when the draws were more than 4?"
},
{
"from": "gpt",
"value": "SELECT MAX(losses) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (wins VARCHAR, position VARCHAR, conceded VARCHAR)"
},
{
"from": "human",
"value": "What is the number of wins when position was larger than 6, and conceded was smaller than 19?"
},
{
"from": "gpt",
"value": "SELECT COUNT(wins)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (losses VARCHAR, draws VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is the number of losses when there were less than 4 draws, and points were 9?"
},
{
"from": "gpt",
"value": "SELECT losses FROM table_name_36... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (wins INTEGER, scored VARCHAR, conceded VARCHAR)"
},
{
"from": "human",
"value": "What is the number of wins when scored was less than 26, and conceded was larger than 23?"
},
{
"from": "gpt",
"value": "SELECT SUM(wins) FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What was the series in season 2009?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_name_61 WHERE season = 2009"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (wins INTEGER, points VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What was the lowest amount of wins before season 2009 for 97 points?"
},
{
"from": "gpt",
"value": "SELECT MIN(wins) FROM table_name_67 WHERE point... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR)"
},
{
"from": "human",
"value": "How many wins had a podium larger than 6 after season 2008?"
},
{
"from": "gpt",
"value": "SELECT COUNT(wins) FROM table_name_29 WHERE season > 20... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what is the date for the week larger than 1 and the opponent detroit lions?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_23 WHERE wee... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (week INTEGER, attendance VARCHAR)"
},
{
"from": "human",
"value": "what is the lowest week when the attendance is 54,714?"
},
{
"from": "gpt",
"value": "SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (athlete VARCHAR, react VARCHAR)"
},
{
"from": "human",
"value": "Which Athlete has a Reaction of 0.248?"
},
{
"from": "gpt",
"value": "SELECT athlete FROM table_name_9 WHERE react = 0.248"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Which Rank has a Reaction of 0.198, and a Time smaller than 46.3?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_98 WHERE react = 0.1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (lane INTEGER, time INTEGER)"
},
{
"from": "human",
"value": "Which Lane has a Time larger than 47.83?"
},
{
"from": "gpt",
"value": "SELECT AVG(lane) FROM table_name_8 WHERE time > 47.83"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13?"
},
{
"from": "gpt"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR)"
},
{
"from": "human",
"value": "Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?"
},
{
"from": "gpt",
"value": "SELECT MIN(score_final) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (year INTEGER, score_qualifying VARCHAR, rank_final VARCHAR, apparatus VARCHAR)"
},
{
"from": "human",
"value": "Name the Year with a Rank-Final smaller than 2, an Apparatus of team, and a Score-Qualifying smaller than 248.275?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (pick VARCHAR, position VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What's the pick for the New York jets with a defensive end?"
},
{
"from": "gpt",
"value": "SELECT pick FROM table_name_54 WHERE position = \"defens... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (pick VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "What's the pick for Georgia tech?"
},
{
"from": "gpt",
"value": "SELECT pick FROM table_name_94 WHERE college = \"georgia tech\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Who plays halfback?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_54 WHERE position = \"halfback\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (team VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "Who is the team for Washington College?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_1 WHERE college = \"washington\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (rank VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the Rank of the game with an Attendance of 93,039?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_98 WHERE attendance = 93 OFFSET 03... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (fuel_system VARCHAR, model VARCHAR)"
},
{
"from": "human",
"value": "What fuel system does the diesel engines model have?"
},
{
"from": "gpt",
"value": "SELECT fuel_system FROM table_name_60 WHERE model = \"diesel engines\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (displacement VARCHAR, model VARCHAR)"
},
{
"from": "human",
"value": "What is the displacement for the petrol engines model?"
},
{
"from": "gpt",
"value": "SELECT displacement FROM table_name_64 WHERE model = \"petrol engines\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the size of the 2009 electorate for Gwalior Rural?"
},
{
"from": "gpt",
"value": "SELECT number_of_electorates__2009_ FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (eliminated VARCHAR, entered VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Who was eliminated that entered after number 3 and lasted 35:55?"
},
{
"from": "gpt",
"value": "SELECT eliminated FROM table_name_74 WHERE ent... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (year INTEGER, position VARCHAR)"
},
{
"from": "human",
"value": "What is the average year in which the finish position was 13th?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_30 WHERE position = \"13th\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (year INTEGER, competition VARCHAR)"
},
{
"from": "human",
"value": "What is the average year for the Olympic Games?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_68 WHERE competition = \"olympic games\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (label VARCHAR, catalog VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Label of the September 20, 2008 release with Catalog number RTRADCD491?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_22 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (format VARCHAR, catalog VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (format VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Format of the release with Catalog number RTRADLP491?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_15 WHERE catalog = \"rtradlp491\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (label VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Label of the Release with Catalog number 2508668?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_51 WHERE catalog = \"2508668\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (format VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Format of the release with Catalog number 2508668?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_86 WHERE catalog = \"2508668\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (region VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "What is the Region of the Warner Music Canada Label release?"
},
{
"from": "gpt",
"value": "SELECT region FROM table_name_29 WHERE label = \"warner music canada\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (developer_s_ VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "Who were the developers for Portal?"
},
{
"from": "gpt",
"value": "SELECT developer_s_ FROM table_name_68 WHERE game = \"portal\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (developer_s_ VARCHAR, year VARCHAR, genre VARCHAR)"
},
{
"from": "human",
"value": "Who were the developers for the Action RPG made after 2010?"
},
{
"from": "gpt",
"value": "SELECT developer_s_ FROM table_name_71 WHERE year >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (callsign VARCHAR, iata VARCHAR)"
},
{
"from": "human",
"value": "Which Callsign has an IATA of tr?"
},
{
"from": "gpt",
"value": "SELECT callsign FROM table_name_4 WHERE iata = \"tr\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (commenced_operations VARCHAR, airline VARCHAR)"
},
{
"from": "human",
"value": "Which Commenced operations have an Airline of valuair?"
},
{
"from": "gpt",
"value": "SELECT commenced_operations FROM table_name_10 WHERE airline... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (commenced_operations INTEGER, airline VARCHAR)"
},
{
"from": "human",
"value": "Which Commenced operations have an Airline of valuair?"
},
{
"from": "gpt",
"value": "SELECT MAX(commenced_operations) FROM table_name_39 WHERE ai... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (iata VARCHAR, icao VARCHAR)"
},
{
"from": "human",
"value": "Which IATA has a ICAO of slk?"
},
{
"from": "gpt",
"value": "SELECT iata FROM table_name_14 WHERE icao = \"slk\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (viewers INTEGER, rank INTEGER)"
},
{
"from": "human",
"value": "How many Viewers have a Rank smaller than 2?"
},
{
"from": "gpt",
"value": "SELECT SUM(viewers) FROM table_name_71 WHERE rank < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)"
},
{
"from": "human",
"value": "What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 380... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (pop__2010_ VARCHAR, longitude VARCHAR)"
},
{
"from": "human",
"value": "What is the population in 2010 for the longitude of -97.578927?"
},
{
"from": "gpt",
"value": "SELECT COUNT(pop__2010_) FROM table_name_24 WHERE longitude... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (pop__2010_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, county VARCHAR)"
},
{
"from": "human",
"value": "What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID l... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (latitude INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR)"
},
{
"from": "human",
"value": "What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?"
},
{
"from... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)"
},
{
"from": "human",
"value": "Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (lane INTEGER, time VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many Lanes have a Time larger than 13.59, and a Rank larger than 8?"
},
{
"from": "gpt",
"value": "SELECT SUM(lane) FROM table_name_36 WHERE time >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (lane INTEGER, nationality VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many lanes have a Nationality of france, and a Rank larger than 8?"
},
{
"from": "gpt",
"value": "SELECT SUM(lane) FROM table_name_92 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)"
},
{
"from": "human",
"value": "What game was developed by Nintendo for the Gamecube platform?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_92 WHERE devel... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (genre VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What is the genre of Super Mario Galaxy?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_50 WHERE game = \"super mario galaxy\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (population INTEGER, rank_among_provinces INTEGER)"
},
{
"from": "human",
"value": "What is the highest population for the province having a rank under 5?"
},
{
"from": "gpt",
"value": "SELECT MAX(population) FROM table_name_57... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.