conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the record on April 16?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_41 WHERE date = \"april 16\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the record on April 8?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_53 WHERE date = \"april 8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (date VARCHAR, visitor VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What date was the visitor chicago black hawks, and a Record of 1-1?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_12 WHERE visitor = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (play_by_play VARCHAR, studio_host VARCHAR)"
},
{
"from": "human",
"value": "Studio host of jimmy myers had what play by play?"
},
{
"from": "gpt",
"value": "SELECT play_by_play FROM table_name_80 WHERE studio_host = \"jimmy my... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (studio_host VARCHAR, play_by_play VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Play-by-play of sean grande, and a Year of 2004-05 had what studio host?"
},
{
"from": "gpt",
"value": "SELECT studio_host FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Year of 2006-07 had what studio host?"
},
{
"from": "gpt",
"value": "SELECT studio_host FROM table_name_10 WHERE year = \"2006-07\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (studio_host VARCHAR, year VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR)"
},
{
"from": "human",
"value": "Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?"
},
{
"fro... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (play_by_play VARCHAR, studio_host VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Studio host of john ryder, and a Year of 2007-08 had what play by play?"
},
{
"from": "gpt",
"value": "SELECT play_by_play FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR)"
},
{
"from": "human",
"value": "Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?"
},
{
"from": "gpt",
"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (country VARCHAR)"
},
{
"from": "human",
"value": "What was the value in 2011 for United States?"
},
{
"from": "gpt",
"value": "SELECT 2011 FROM table_name_95 WHERE country = \"united states\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (Id VARCHAR)"
},
{
"from": "human",
"value": "What was the value in 2011 when value in 2009 was 82,003?"
},
{
"from": "gpt",
"value": "SELECT 2011 FROM table_name_45 WHERE 2009 = \"82,003\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What country was rank 1?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_68 WHERE rank = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (country VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What country was rank 4?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_43 WHERE rank = \"4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR)"
},
{
"from": "human",
"value": "Games started of 4 is in what hometown?"
},
{
"from": "gpt",
"value": "SELECT hometown FROM table_name_79 WHERE games_started = \"4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (previous_experience VARCHAR, weight VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Weight larger than 180, and a Player of charles b. carter is what previous experience?"
},
{
"from": "gpt",
"value": "SELECT previou... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (position VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Player of herbert s. graver has what position?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_24 WHERE player = \"herbert s. graver\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (weight INTEGER, position VARCHAR)"
},
{
"from": "human",
"value": "Position of fullback has what highest weight?"
},
{
"from": "gpt",
"value": "SELECT MAX(weight) FROM table_name_33 WHERE position = \"fullback\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (callsign VARCHAR, on_air_id VARCHAR)"
},
{
"from": "human",
"value": "what is the callsign whtat uses 7bu?"
},
{
"from": "gpt",
"value": "SELECT callsign FROM table_name_9 WHERE on_air_id = \"7bu\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (rank INTEGER, player VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the highest rank for ben crenshaw after winning more than 14 times?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_65 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (wins INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of wins for ben crenshaw?"
},
{
"from": "gpt",
"value": "SELECT MIN(wins) FROM table_name_87 WHERE player = \"ben crenshaw\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (player VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What player has 14 wins?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_83 WHERE wins = 14"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is the 1995 value with of the 1993 ATP Masters Series?"
},
{
"from": "gpt",
"value": "SELECT 1995 FROM table_name_15 WHERE 1993 = \"atp masters series\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is the 1993 value of the 1997 Grand Slams?"
},
{
"from": "gpt",
"value": "SELECT 1993 FROM table_name_49 WHERE 1997 = \"grand slams\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?"
},
{
"from": "gpt",
"value": "SELECT 1998 FROM table_name_4 WHERE 1995 = \"a\" AND 1993 = \"a\" AND 1996 = \"1r\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (games INTEGER, team VARCHAR, drawn VARCHAR)"
},
{
"from": "human",
"value": "How many games does team Czechoslovakia have that had a drawn greater than 0?"
},
{
"from": "gpt",
"value": "SELECT MAX(games) FROM table_name_18 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (Prime VARCHAR, term_in_office VARCHAR)"
},
{
"from": "human",
"value": "Which Prime Minister's served a term of 344 days?"
},
{
"from": "gpt",
"value": "SELECT Prime AS minister FROM table_name_68 WHERE term_in_office = \"344 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (minister VARCHAR, term_in_office VARCHAR)"
},
{
"from": "human",
"value": "Who was the Minister that served for 307 days?"
},
{
"from": "gpt",
"value": "SELECT minister FROM table_name_46 WHERE term_in_office = \"307 days\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (ceremony VARCHAR, work VARCHAR)"
},
{
"from": "human",
"value": "what ceremony did big titty milfs work in"
},
{
"from": "gpt",
"value": "SELECT ceremony FROM table_name_35 WHERE work = \"big titty milfs\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the end result for 28 February 2001?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_52 WHERE date = \"28 february 2001\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (yards INTEGER, player VARCHAR, rec VARCHAR)"
},
{
"from": "human",
"value": "How many yards did Davin Meggett have with more than 9 Rec.?"
},
{
"from": "gpt",
"value": "SELECT SUM(yards) FROM table_name_62 WHERE player = \"dav... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (avg VARCHAR, long VARCHAR, yards VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?"
},
{
"from": "gpt",
"value": "SELECT COUNT(avg) F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (points VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "How many points are associated with a Time/Retired of +10.131 secs?"
},
{
"from": "gpt",
"value": "SELECT COUNT(points) FROM table_name_77 WHERE time_retir... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?"
},
{
"from": "gpt",
"value": "SELECT SUM(grid) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (drawn INTEGER, points_for INTEGER)"
},
{
"from": "human",
"value": "What is the highest drawn for points over 545?"
},
{
"from": "gpt",
"value": "SELECT MAX(drawn) FROM table_name_81 WHERE points_for > 545"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (lost INTEGER, points_for VARCHAR)"
},
{
"from": "human",
"value": "What's the average loss when the points were 545?"
},
{
"from": "gpt",
"value": "SELECT AVG(lost) FROM table_name_32 WHERE points_for = 545"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (lost VARCHAR, order VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "How many games were lost when the order was 2nd and the play was more than 13"
},
{
"from": "gpt",
"value": "SELECT COUNT(lost) FROM table_name_66 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (rank INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8"
},
{
"from"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "Name the least total with rank less than 7, gold more than 16 and bronze less than 29"
},
{
"from": "gpt",
"value": "SELECT MIN(total)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of total with silver of 6, bronze more than 5 and gold less than 4"
},
{
"from": "gpt",
"value": "SELECT COUNT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR, october VARCHAR)"
},
{
"from": "human",
"value": "What score has a game greater than 11 on October 30?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_1 WHERE game > 11 AND october = 30"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (october VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What October has 0-2-2 as the record?"
},
{
"from": "gpt",
"value": "SELECT october FROM table_name_13 WHERE record = \"0-2-2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (game INTEGER, october VARCHAR, opponent VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (lost INTEGER, games VARCHAR, champs VARCHAR)"
},
{
"from": "human",
"value": "Which Lost has Games of 64, and Champs smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(lost) FROM table_name_99 WHERE games = 64 AND champ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (draw INTEGER, champs INTEGER)"
},
{
"from": "human",
"value": "Which Draw is the lowest one that has Champs smaller than 0?"
},
{
"from": "gpt",
"value": "SELECT MIN(draw) FROM table_name_40 WHERE champs < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (win_lose_percentage VARCHAR, champs VARCHAR, draw VARCHAR)"
},
{
"from": "human",
"value": "Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3?"
},
{
"from": "gpt",
"value": "SELECT win_lose_percentag... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (champs INTEGER, draw VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?"
},
{
"from": "gpt",
"value": "SELECT AVG(champs) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (launched VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the launch date for the Ushio dd-54?"
},
{
"from": "gpt",
"value": "SELECT launched FROM table_name_55 WHERE name = \"ushio dd-54\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (name VARCHAR, kanji VARCHAR)"
},
{
"from": "human",
"value": "Which name has a Kanji of 朧?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_77 WHERE kanji = \"朧\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (kanji VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the Kanji for the Ayanami dd-45?"
},
{
"from": "gpt",
"value": "SELECT kanji FROM table_name_84 WHERE name = \"ayanami dd-45\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (size__steps_ VARCHAR, just__cents_ VARCHAR, size__cents_ VARCHAR, just_ratio VARCHAR)"
},
{
"from": "human",
"value": "size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (size__cents_ INTEGER, size__steps_ VARCHAR, just__cents_ VARCHAR)"
},
{
"from": "human",
"value": "size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?"
},
{
"from": "gpt",
"value": "SELECT M... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (size__steps_ INTEGER, just_ratio VARCHAR)"
},
{
"from": "human",
"value": "ratio of 16:13 has how many highest size (steps)?"
},
{
"from": "gpt",
"value": "SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = \"16:13... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (size__cents_ INTEGER, just_ratio VARCHAR, just__cents_ VARCHAR)"
},
{
"from": "human",
"value": "ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?"
},
{
"from": "gpt",
"value": "SELECT AVG(siz... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (home VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team for the match at Stadion pod Vrmcem?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_77 WHERE venue = \"stadion pod vrmcem\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (guest VARCHAR, score__first_match_ VARCHAR)"
},
{
"from": "human",
"value": "Who were the guest team wehn the match score was 3:0 (0:2)?"
},
{
"from": "gpt",
"value": "SELECT guest FROM table_name_76 WHERE score__first_match_ ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (picture_coding_types VARCHAR, chroma_format VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (intra_dc_precision VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Name the Intra DC Precision that has the Name main profile?"
},
{
"from": "gpt",
"value": "SELECT intra_dc_precision FROM table_name_59 WHERE name = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (chroma_format VARCHAR, picture_coding_types VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile?"
},
{
"from": "gpt",
"value": ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (player VARCHAR, school VARCHAR, division VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?"
},
{
"from": "gp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (wins INTEGER, country VARCHAR)"
},
{
"from": "human",
"value": "What are the lowest wins for Australia?"
},
{
"from": "gpt",
"value": "SELECT MIN(wins) FROM table_name_45 WHERE country = \"australia\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (winners VARCHAR, third_place VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many winners did Minas, which has 0 third places, have?"
},
{
"from": "gpt",
"value": "SELECT winners FROM table_name_47 WHERE third_plac... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (winners VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many winners did Halcones uv xalapa have?"
},
{
"from": "gpt",
"value": "SELECT winners FROM table_name_83 WHERE team = \"halcones uv xalapa\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (runners_up VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many runners-up did Espartanos de Margarita have?"
},
{
"from": "gpt",
"value": "SELECT runners_up FROM table_name_84 WHERE team = \"espartanos de margarit... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Which Opponent has Attendances of 60,594?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_34 WHERE attendance = \"60,594\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (date VARCHAR, result VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "When has a Result of l 27-7 and an Opponent of at minnesota vikings?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_57 WHERE result =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "When has a Week of 9?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_60 WHERE week = 9"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (date VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What date did the Steelers play against the New York Jets?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_39 WHERE opponent = \"new york jets\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (time___et__ VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What time did the game start during week 1?"
},
{
"from": "gpt",
"value": "SELECT time___et__ FROM table_name_9 WHERE week = 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (laps INTEGER, team VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "How many laps for mi-jack conquest racing when they went off course?"
},
{
"from": "gpt",
"value": "SELECT SUM(laps) FROM table_name_21 WHERE t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How many laps are associated with a grid greater than 8, under 11 points, and will power?"
},
{
"from": "gpt",
"value": "SELECT COUNT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14"
},
{
"from": "gpt",
"value": "SELECT AV... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (total VARCHAR, rank VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of total for rank of 7 and bronze less than 1"
},
{
"from": "gpt",
"value": "SELECT COUNT(total) FROM table_name_68 WHERE rank... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "Name the most silver with bronze more than 1 and gold more than 1 with total less than 7"
},
{
"from": "gpt",
"value": "SELECT MAX(s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (total INTEGER, gold VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Name the sum of total for gold less than 1 and bronze of 3"
},
{
"from": "gpt",
"value": "SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND br... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (bronze VARCHAR, rank VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of bronze with rank of 5 and silver more than 1"
},
{
"from": "gpt",
"value": "SELECT COUNT(bronze) FROM table_name_39 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (population_2000_census VARCHAR, area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)"
},
{
"from": "human",
"value": "What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a popu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (population__2010_census_ INTEGER, administrative_division VARCHAR, area__km²_ VARCHAR)"
},
{
"from": "human",
"value": "What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?"
},
{
"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (score VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "What was the score for the game against Atlanta?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_6 WHERE visitor = \"atlanta\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What was the score for the game that had an end result of 5-2?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_68 WHERE result = \"5-2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (lost VARCHAR, drawn VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of losses that have 1 draw and games over 7?"
},
{
"from": "gpt",
"value": "SELECT COUNT(lost) FROM table_name_31 WHERE draw... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (round VARCHAR, pick__number VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "How many rounds had a pick number of more than 10 and Appalachian State as a college?"
},
{
"from": "gpt",
"value": "SELECT COUNT(round) FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (overall INTEGER, position VARCHAR, pick__number VARCHAR)"
},
{
"from": "human",
"value": "What is the largest overall where the position was linebacker and the pick number was more than 9?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (score VARCHAR, game VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What is the Score of the game earlier than 69 with a record of 4–56?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_41 WHERE game < 69 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (game VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the game number with a score of 116–138?"
},
{
"from": "gpt",
"value": "SELECT COUNT(game) FROM table_name_31 WHERE score = \"116–138\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the Score of the game against the boston celtics?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_58 WHERE opponent = \"boston celtics\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (game VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Game held on february 9?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_17 WHERE date = \"february 9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What is the Score of the game larger than 57 with a Record of 4–55?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_15 WHERE game > 57 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (region VARCHAR, village VARCHAR)"
},
{
"from": "human",
"value": "Which Reigon has a Village of Chassagne-Montrachet?"
},
{
"from": "gpt",
"value": "SELECT region FROM table_name_82 WHERE village = \"chassagne-montrachet\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (village VARCHAR, grand_cru VARCHAR, region VARCHAR, wine_style VARCHAR)"
},
{
"from": "human",
"value": "Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?"
},
{
"from"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR)"
},
{
"from": "human",
"value": "What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?"
},
{
"from":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (grand_cru VARCHAR, wine_style VARCHAR, village VARCHAR)"
},
{
"from": "human",
"value": "What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?"
},
{
"from": "gpt",
"value": "SELECT grand_cru FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (pick INTEGER, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "What is the average pick number of Pennsylvania?"
},
{
"from": "gpt",
"value": "SELECT AVG(pick) FROM table_name_97 WHERE school_club_team = \"pennsylvan... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (school_club_team VARCHAR, pick INTEGER)"
},
{
"from": "human",
"value": "What is the school/club team of the player with a pick larger than 83?"
},
{
"from": "gpt",
"value": "SELECT school_club_team FROM table_name_26 WHERE pi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (school_club_team VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "What is the schoo/club team of the player in round 3?"
},
{
"from": "gpt",
"value": "SELECT school_club_team FROM table_name_92 WHERE round = 3"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest round of the player from UCLA?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FROM table_name_87 WHERE school_club_team = \"ucla\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (date VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "When was –16 (62-71-71-68=272) the winning score?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_20 WHERE winning_score = –16(62 - 71 - 71 - 68 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (tournament VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the name of the tournament played on Jun 17, 1973?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_3 WHERE date = \"jun 17, 1973\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (tournament VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "Howard Twitty was the runner-up of what tournament?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_14 WHERE runner_s__up = \"howard t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?"
},
{
... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.