conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR)"
},
{
"from": "human",
"value": "Which Byes have a Lexton Plains of skipton?"
},
{
"from": "gpt",
"value": "SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = \"skipton\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)"
},
{
"from": "human",
"value": "What is the value for Lost when Drawn is 0, and Tries against is 41?"
},
{
"from": "gpt",
"value": "SELECT lost FROM table_name_33 WHERE draw... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "What is the drawn value for furnace united rfc?"
},
{
"from": "gpt",
"value": "SELECT drawn FROM table_name_47 WHERE club = \"furnace united rfc\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "What tries against value does burry port rfc have?"
},
{
"from": "gpt",
"value": "SELECT tries_against FROM table_name_87 WHERE club = \"burry port rfc\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)"
},
{
"from": "human",
"value": "Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (wins VARCHAR, year VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How many wins for the year that is later than 1987 and has points less than 188?"
},
{
"from": "gpt",
"value": "SELECT wins FROM table_name_47 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (machine VARCHAR, rank VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the machine that ranked 4th and has 2 wins?"
},
{
"from": "gpt",
"value": "SELECT machine FROM table_name_59 WHERE rank = \"4th... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR)"
},
{
"from": "human",
"value": "How many wins were there in 1994?"
},
{
"from": "gpt",
"value": "SELECT SUM(wins) FROM table_name_20 WHERE year = 1994"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (rank VARCHAR, wins VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is the rank associated with the team that has more than 2 wins and has greater than 204 points?"
},
{
"from": "gpt",
"value": "SELECT rank FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (pick INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "How many picks have a Player of pong escobal?"
},
{
"from": "gpt",
"value": "SELECT SUM(pick) FROM table_name_80 WHERE player = \"pong escobal\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (pba_team VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "Which PBA team has a College of nu?"
},
{
"from": "gpt",
"value": "SELECT pba_team FROM table_name_61 WHERE college = \"nu\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR)"
},
{
"from": "human",
"value": "What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (place_of_birth VARCHAR, elector VARCHAR)"
},
{
"from": "human",
"value": "What is the place of birth for the elector Laborante de Panormo?"
},
{
"from": "gpt",
"value": "SELECT place_of_birth FROM table_name_94 WHERE elector =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)"
},
{
"from": "human",
"value": "Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano?"
},
{
"from": "gpt",
"value": "SELECT elector FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (elevator VARCHAR, cardinalatial_title VARCHAR)"
},
{
"from": "human",
"value": "Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco?"
},
{
"from": "gpt",
"value": "SELECT elevator FROM table_name_1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)"
},
{
"from": "human",
"value": "How many totals have a Premier League smaller than 6, and a League Cup larger than 0?"
},
{
"from": "gpt",
"value": "SELECT SUM(total) ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (fa_cup INTEGER, total INTEGER)"
},
{
"from": "human",
"value": "Which FA Cup has a Total smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What week is the opponent the Indianapolis Colts with an attendance of 68,932?"
},
{
"from": "gpt",
"value": "SELECT COUNT(week) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (attendance VARCHAR, week VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance for the week before 10 with a result of L 12-15"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_86 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (week INTEGER, result VARCHAR)"
},
{
"from": "human",
"value": "What week has a result of L 17-31 first?"
},
{
"from": "gpt",
"value": "SELECT MAX(week) FROM table_name_17 WHERE result = \"l 17-31\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What was the score for the game that attendance was 70,721?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_24 WHERE attendance = \"70,721\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR)"
},
{
"from": "human",
"value": "What week was she safe for a salsa dance?"
},
{
"from": "gpt",
"value": "SELECT SUM(week) FROM table_name_8 WHERE result = \"safe\" AND dance = \"sal... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (opponent VARCHAR, result VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent with the loss in Westbury, NY?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_37 WHERE result = \"loss\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (date VARCHAR)"
},
{
"from": "human",
"value": "What is the date where the type is type?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_4 WHERE \"type\" = \"type\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6?"
},
{
"from": "gpt",
"value": "SELECT SUM(rank) ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "What's the date of the circuit Winton Motor Raceway?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_21 WHERE circuit = \"winton motor raceway\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "What's the city/state of Hidden Valley Raceway?"
},
{
"from": "gpt",
"value": "SELECT city___state FROM table_name_16 WHERE circuit = \"hidden valley race... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (date VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "What's the date of Bahrain International Circuit?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_95 WHERE circuit = \"bahrain international circuit\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (circuit VARCHAR, winner VARCHAR)"
},
{
"from": "human",
"value": "What's the circuit that had an event cancelled?"
},
{
"from": "gpt",
"value": "SELECT circuit FROM table_name_11 WHERE winner = \"event cancelled\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR)"
},
{
"from": "human",
"value": "what is the distance for ridge?"
},
{
"from": "gpt",
"value": "SELECT distance FROM table_name_57 WHERE feature = \"ridge\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (latitude VARCHAR, distance VARCHAR)"
},
{
"from": "human",
"value": "what is the latitude when the distance is 42.5km?"
},
{
"from": "gpt",
"value": "SELECT latitude FROM table_name_70 WHERE distance = \"42.5km\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "what is the feature named bird ridge?"
},
{
"from": "gpt",
"value": "SELECT feature FROM table_name_60 WHERE name = \"bird ridge\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "what is the distance for mjåkollen?"
},
{
"from": "gpt",
"value": "SELECT distance FROM table_name_89 WHERE name = \"mjåkollen\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR)"
},
{
"from": "human",
"value": "what is the distance for bearing 297°?"
},
{
"from": "gpt",
"value": "SELECT distance FROM table_name_27 WHERE bearing = \"297°\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What platform has a year of 2007?"
},
{
"from": "gpt",
"value": "SELECT platform_s_ FROM table_name_8 WHERE year = 2007"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (game VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Which game was released in 2011?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_13 WHERE year = 2011"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What platform came out before 2009 with the game wii sports?"
},
{
"from": "gpt",
"value": "SELECT platform_s_ FROM table_name_38 WHERE year < 2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What nationality has a lane less than 6, with 1 as the rank?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_32 WHERE lane < 6... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (time VARCHAR, lane VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "What time has a lane less than 5, with Poland as the nationality?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_63 WHERE lane < 5 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "How many lanes have 1:53.70 as the time?"
},
{
"from": "gpt",
"value": "SELECT COUNT(lane) FROM table_name_62 WHERE time = \"1:53.70\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (rank INTEGER, name VARCHAR, lane VARCHAR)"
},
{
"from": "human",
"value": "How many ranks have chen yin as the name, with a lane greater than 8?"
},
{
"from": "gpt",
"value": "SELECT SUM(rank) FROM table_name_22 WHERE name = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What nationality has 1:55.35 as the time?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_96 WHERE time = \"1:55.35\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (lane INTEGER, rank INTEGER)"
},
{
"from": "human",
"value": "How many lanes have a rank greater than 8?"
},
{
"from": "gpt",
"value": "SELECT SUM(lane) FROM table_name_25 WHERE rank > 8"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (home VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Where in Sweden is the home of the Swedish team?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_14 WHERE country = \"sweden\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR)"
},
{
"from": "human",
"value": "Who is third to Xu Xiaoming at second?"
},
{
"from": "gpt",
"value": "SELECT third FROM table_name_23 WHERE second = \"xu xiaoming\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (lead VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "Who is the lead for the team from Saskatoon, Saskatchewan?"
},
{
"from": "gpt",
"value": "SELECT lead FROM table_name_84 WHERE home = \"saskatoon, saskatchewan\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR)"
},
{
"from": "human",
"value": "Who is second on the team with Euan Byers at lead?"
},
{
"from": "gpt",
"value": "SELECT second FROM table_name_38 WHERE lead = \"euan byers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (third VARCHAR, home VARCHAR, skip VARCHAR)"
},
{
"from": "human",
"value": "Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip?"
},
{
"from": "gpt",
"value": "SELECT third FROM table_name_23 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (date VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "On which date was the opponent the Chicago Bears?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_54 WHERE opponent = \"chicago bears\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "Which week was on october 30, 1983?"
},
{
"from": "gpt",
"value": "SELECT SUM(week) FROM table_name_40 WHERE date = \"october 30, 1983\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What is the Mascot for the team from leo that had a Previous Conference value of independent?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (school VARCHAR, ihsaa_class__football_class VARCHAR)"
},
{
"from": "human",
"value": "What School had 3a/2a as the value for IHSAA Class/ Football Class?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_81 WHERE ih... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (_2013_projection VARCHAR, july_1 VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many July 1, 2013 projections have a Rank of 27?"
},
{
"from": "gpt",
"value": "SELECT COUNT(july_1), _2013_projection FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR)"
},
{
"from": "human",
"value": "What is the format for the one which has a call sign of cite-fm-1?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_94 WHERE call_sign = \"cite-fm... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (dolphins_points VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What'd the total Dolphin points when there was an attendance of 52,860?"
},
{
"from": "gpt",
"value": "SELECT COUNT(dolphins_points) FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?"
},
{
"from": "gpt... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)"
},
{
"from": "human",
"value": "Which district had SC reserved and 169 Constituents?"
},
{
"from": "gpt",
"value": "SELECT district FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)"
},
{
"from": "human",
"value": "What was reserved in the district that has 169 constituents?"
},
{
"from": "gpt",
"value": "SELECT reserved_for___sc___st__no... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?"
},
{
"from": "gpt",
"value": "SELECT 1995 FROM table_name_81 WHERE 1997 = \"lq\" AND 1989 = \"1r\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R?"
},
{
"from": "gpt",
"value": "SELECT 1996 FROM table_name_4 WHERE 1994 = \"lq\" AND 1992 = \"3r\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?"
},
{
"from": "gpt",
"value": "SELECT 1994 FROM table_name_88 WHERE 1993 = \"grand slam tournaments\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1995 Grand Slam Tournament if 1990 is LQ?"
},
{
"from": "gpt",
"value": "SELECT 1995 FROM table_name_96 WHERE 1990 = \"lq\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?"
},
{
"from": "gpt",
"value": "SELECT 1990 FROM table_name_33 WHERE 1996 = \"grand slam tournaments\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?"
},
{
"from": "gpt",
"value": "SELECT 1987 FROM table_name_71 WHERE 1989 = \"grand slam tournaments\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (attendance INTEGER, opponent VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the home game against the New York Jets?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM table_name_61 WHERE opponent =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the September 14, 1968 game?"
},
{
"from": "gpt",
"value": "SELECT COUNT(attendance) FROM table_name_28 WHERE date = \"september 14, 1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR)"
},
{
"from": "human",
"value": "Who is the director of the production number 9368?"
},
{
"from": "gpt",
"value": "SELECT director FROM table_name_51 WHERE production_number = \"936... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (title VARCHAR, director VARCHAR, production_number VARCHAR)"
},
{
"from": "human",
"value": "What is the title with chuck jones as the director and the production number 9537?"
},
{
"from": "gpt",
"value": "SELECT title FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What is the release date of the mm series, which has the title tom thumb in trouble?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (release_date VARCHAR, series VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What is the release date of the mm series which has the title confederate honey?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)"
},
{
"from": "human",
"value": "What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (start INTEGER, year INTEGER)"
},
{
"from": "human",
"value": "What is the lowest start in a year after 2008?"
},
{
"from": "gpt",
"value": "SELECT MIN(start) FROM table_name_62 WHERE year > 2008"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (finish VARCHAR, start INTEGER)"
},
{
"from": "human",
"value": "What finish has a start smaller than 25?"
},
{
"from": "gpt",
"value": "SELECT finish FROM table_name_73 WHERE start < 25"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Where did the team of Rahal Letterman in 2006 start?"
},
{
"from": "gpt",
"value": "SELECT COUNT(start) FROM table_name_53 WHERE team = \"rahal letter... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR)"
},
{
"from": "human",
"value": "What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (title VARCHAR, characters VARCHAR)"
},
{
"from": "human",
"value": "What title has daffy (as duck dodgers) as the character?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_98 WHERE characters = \"daffy (as duck do... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What series has dan povenmire as the director, with museum scream as the title?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_name_46 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (number_of_electorates__2009_ INTEGER, district VARCHAR, constituency_number VARCHAR)"
},
{
"from": "human",
"value": "What was the highest number of 2009 electorates for Raisen when the consituency number was 142?"
},
{
"from": "g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)"
},
{
"from": "human",
"value": "How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR)"
},
{
"from": "human",
"value": "Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)"
},
{
"from": "human",
"value": "How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)"
},
{
"from": "human",
"value": "Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) l... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (withdrawn INTEGER, number VARCHAR, converted VARCHAR)"
},
{
"from": "human",
"value": "With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR)"
},
{
"from": "human",
"value": "What is the average when the matches are 11?"
},
{
"from": "gpt",
"value": "SELECT average FROM table_name_47 WHERE matches = \"11\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (overs VARCHAR, matches VARCHAR)"
},
{
"from": "human",
"value": "What is the overs when the matches are 10?"
},
{
"from": "gpt",
"value": "SELECT overs FROM table_name_88 WHERE matches = \"10\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR)"
},
{
"from": "human",
"value": "Which Car # has a Driver of ryan newman, and a Position larger than 10?"
},
{
"from": "gpt",
"value": "SELECT MIN(car__number) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (car__number INTEGER, pos VARCHAR, team VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?"
},
{
"from": "gpt",
"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (time VARCHAR, news_freq VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)"
},
{
"from": "human",
"value": "Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?"
},... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (time VARCHAR, news_freq VARCHAR, show_name VARCHAR)"
},
{
"from": "human",
"value": "Which time has a news frequency of 1 hour and show name of Best Mix Overnight?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_84 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (ad_freq VARCHAR, show_name VARCHAR)"
},
{
"from": "human",
"value": "What is the ad frequency for the show named Health Matters?"
},
{
"from": "gpt",
"value": "SELECT ad_freq FROM table_name_58 WHERE show_name = \"health matte... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (news_freq VARCHAR, show_name VARCHAR)"
},
{
"from": "human",
"value": "What is the news frequency for the show Locker Room?"
},
{
"from": "gpt",
"value": "SELECT news_freq FROM table_name_73 WHERE show_name = \"locker room\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (local_networked VARCHAR, ad_freq VARCHAR)"
},
{
"from": "human",
"value": "What is the local/networked value for the show with an ad frequency of N/A?"
},
{
"from": "gpt",
"value": "SELECT local_networked FROM table_name_38 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "When france had a rank larger than 2, what was their time?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_94 WHERE rank > 2 AND country ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (time VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What was the time for the country of kazakhstan?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_13 WHERE country = \"kazakhstan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (athletes VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What athletes represented the country of germany?"
},
{
"from": "gpt",
"value": "SELECT athletes FROM table_name_82 WHERE country = \"germany\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (rank INTEGER, time VARCHAR)"
},
{
"from": "human",
"value": "What was the rank for the finish time of 1:42.054?"
},
{
"from": "gpt",
"value": "SELECT AVG(rank) FROM table_name_38 WHERE time = \"1:42.054\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Which country had a rank smaller than 7 and a time of 1:43.189?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_81 WHERE rank < 7 AND ... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.