conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Where was the game on May 9 played?"
},
{
"from": "gpt",
"value": "SELECT site_stadium FROM table_name_21 WHERE date = \"may 9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (position INTEGER, points VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "What is the greatest position when the points are less than 21, and the played greater than 14?"
},
{
"from": "gpt",
"value": "SELECT MAX(posit... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (lost INTEGER, difference VARCHAR, drawn VARCHAR)"
},
{
"from": "human",
"value": "What is the fewest lost with a difference of 9 and a less than 3 drawn?"
},
{
"from": "gpt",
"value": "SELECT MIN(lost) FROM table_name_69 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (against INTEGER, team VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Team Estudantes Paulista with a position less than 4 has what average against?"
},
{
"from": "gpt",
"value": "SELECT AVG(against) FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the margin of victory on Apr 8, 1979?"
},
{
"from": "gpt",
"value": "SELECT margin_of_victory FROM table_name_28 WHERE date = \"apr 8, 1979\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (margin_of_victory VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "What was the margin of victory when the winning score was −5 (69-69-73=211)?"
},
{
"from": "gpt",
"value": "SELECT margin_of_victory FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (tournament VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "Which tournament had a winning score of −5 (69-69-73=211)?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_37 WHERE winning_score = −... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (date VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "When was the winning score −6 (69-69-73-71=282)?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_7 WHERE winning_score = −6(69 - 69 - 73 - 71 = 28... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who is the opponent of the game played on November 20, 1995?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_66 WHERE date = \"november 20, 1995\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (grid INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is the highest Grid with a Name that is jamie whincup?"
},
{
"from": "gpt",
"value": "SELECT MAX(grid) FROM table_name_67 WHERE name = \"jamie whincup\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (team VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "What is the Team with a Lap that is 5?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_48 WHERE laps = 5"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (round INTEGER, name VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (round INTEGER, position VARCHAR)"
},
{
"from": "human",
"value": "What's the average round the position of RB was drafted?"
},
{
"from": "gpt",
"value": "SELECT AVG(round) FROM table_name_90 WHERE position = \"rb\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (round INTEGER, name VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "What's the average round Red Bryant was drafted with a pick larger than 121?"
},
{
"from": "gpt",
"value": "SELECT AVG(round) FROM table_name_29 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (overall_record VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Overall Record that has the Away Team of miami?"
},
{
"from": "gpt",
"value": "SELECT overall_record FROM table_name_46 WHERE away... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (overall_record VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Overall Record that has the Week of 3?"
},
{
"from": "gpt",
"value": "SELECT overall_record FROM table_name_81 WHERE week = 3"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (divisional_record VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Divisional Record that has the Away Team of dallas?"
},
{
"from": "gpt",
"value": "SELECT divisional_record FROM table_name_58 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (overall_record VARCHAR, away_team VARCHAR, week VARCHAR, divisional_record VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Te... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (week VARCHAR, away_team VARCHAR, overall_record VARCHAR, home_team VARCHAR, divisional_record VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and th... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (choreographer_s_ VARCHAR, style VARCHAR)"
},
{
"from": "human",
"value": "Who is the choreographer with the style pas de deux?"
},
{
"from": "gpt",
"value": "SELECT choreographer_s_ FROM table_name_10 WHERE style = \"pas de de... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (title VARCHAR, start_of_reign VARCHAR)"
},
{
"from": "human",
"value": "What is the title of the person who started their reign in 1999?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_63 WHERE start_of_reign = 199... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (Birth VARCHAR, start_of_reign VARCHAR)"
},
{
"from": "human",
"value": "What is the date of birth of the person who started their reign in 1986?"
},
{
"from": "gpt",
"value": "SELECT Birth AS name FROM table_name_61 WHERE star... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER)"
},
{
"from": "human",
"value": "What is the average number for goals less than 73?"
},
{
"from": "gpt",
"value": "SELECT COUNT(average) FROM table_name_23 WHERE goals < 73"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (average VARCHAR, career VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "What is the total average for 1990-1995, and goals less than 90?"
},
{
"from": "gpt",
"value": "SELECT COUNT(average) FROM table_name_40 WHERE ca... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (position INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR)"
},
{
"from": "human",
"value": "What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played?"
},
{
"from": "g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (played INTEGER, team VARCHAR, against VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?"
},
{
"from": "gpt",
"value": "SELECT SUM(played) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (difference VARCHAR, position INTEGER)"
},
{
"from": "human",
"value": "What was the Difference of the Team that had a Position less than 2?"
},
{
"from": "gpt",
"value": "SELECT difference FROM table_name_8 WHERE position < 2"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which attendance number was taken on november 21, 2004?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_54 WHERE date = \"november 21, 2004\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (week INTEGER, opponent VARCHAR)"
},
{
"from": "human",
"value": "How many weeks had the Green Bay packers as opponents?"
},
{
"from": "gpt",
"value": "SELECT SUM(week) FROM table_name_74 WHERE opponent = \"green bay packers\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What Country had a Score of 71-67=138?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_76 WHERE score = 71 - 67 = 138"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (country VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What Country had a Score of 75-68=143?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_91 WHERE score = 75 - 68 = 143"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (innings INTEGER, runs_scored VARCHAR, balls_faced VARCHAR, average VARCHAR, sr VARCHAR)"
},
{
"from": "human",
"value": "How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (average VARCHAR, balls_faced VARCHAR, innings VARCHAR)"
},
{
"from": "human",
"value": "What is the number of averages having a balls faced over 297 and more than 7 innings?"
},
{
"from": "gpt",
"value": "SELECT COUNT(average)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (innings INTEGER, sr VARCHAR, balls_faced VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?"
},
{
"from": "gpt",
"value": "SELECT MIN(innings... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (balls_faced INTEGER, average VARCHAR, sr VARCHAR, innings VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (nation VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Nation with a Date that is may 6, 1991?"
},
{
"from": "gpt",
"value": "SELECT nation FROM table_name_51 WHERE date = \"may 6, 1991\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Record with a Date that is may 20, 1961?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_73 WHERE date = \"may 20, 1961\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (partner VARCHAR, outcome VARCHAR)"
},
{
"from": "human",
"value": "Who was the partner of the winner?"
},
{
"from": "gpt",
"value": "SELECT partner FROM table_name_46 WHERE outcome = \"winner\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (place__posición_ VARCHAR, won__pg_ VARCHAR, draw__pe_ VARCHAR, team__equipo_ VARCHAR)"
},
{
"from": "human",
"value": "How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (league VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "How many league cups have yeovil town as the club, with a league less than 16?"
},
{
"from": "gpt",
"value": "SELECT COUNT(league) AS Cup FROM table_name_88 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (fa_cup INTEGER, player VARCHAR, fa_trophy VARCHAR)"
},
{
"from": "human",
"value": "What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?"
},
{
"from": "gpt",
"value": "SELECT AVG(fa_cu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)"
},
{
"from": "human",
"value": "What FA trophys have tony hemmings as the player, with a league greater than 15?"
},
{
"from": "gpt",
"value": "SELECT SUM(fa_trophy) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (score VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the score where the country is Japan?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_95 WHERE country = \"japan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (province VARCHAR, capital VARCHAR)"
},
{
"from": "human",
"value": "Which province has muju as the capital?"
},
{
"from": "gpt",
"value": "SELECT province FROM table_name_82 WHERE capital = \"muju\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (modern_equivalent VARCHAR, hanja VARCHAR)"
},
{
"from": "human",
"value": "What is the modern equivalent of 良州 in Hanja?"
},
{
"from": "gpt",
"value": "SELECT modern_equivalent FROM table_name_17 WHERE hanja = \"良州\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (capital VARCHAR, hangul VARCHAR)"
},
{
"from": "human",
"value": "What is the capital of the province with 양주 in Hangul?"
},
{
"from": "gpt",
"value": "SELECT capital FROM table_name_21 WHERE hangul = \"양주\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (capital VARCHAR, hanja VARCHAR)"
},
{
"from": "human",
"value": "What is the capital of the province with 漢州 in Hanja?"
},
{
"from": "gpt",
"value": "SELECT capital FROM table_name_88 WHERE hanja = \"漢州\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR)"
},
{
"from": "human",
"value": "What is the Hanja for the sakju province?"
},
{
"from": "gpt",
"value": "SELECT hanja FROM table_name_78 WHERE province = \"sakju\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (top_25 INTEGER, wins INTEGER)"
},
{
"from": "human",
"value": "What is the fewest number of top-25s for events with more than 0 wins?"
},
{
"from": "gpt",
"value": "SELECT MIN(top_25) FROM table_name_17 WHERE wins > 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (top_10 INTEGER, wins INTEGER)"
},
{
"from": "human",
"value": "What is the highest number of top-10s in events with more than 0 wins?"
},
{
"from": "gpt",
"value": "SELECT MAX(top_10) FROM table_name_46 WHERE wins > 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (top_25 VARCHAR, top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)"
},
{
"from": "human",
"value": "What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?"
},
{
"from": "gpt",
"value": "SELECT top_2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (season INTEGER, rank INTEGER)"
},
{
"from": "human",
"value": "What is the highest season that had rank under 1?"
},
{
"from": "gpt",
"value": "SELECT MAX(season) FROM table_name_45 WHERE rank < 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (professional_partner VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "Who was the professional partner in season 4?"
},
{
"from": "gpt",
"value": "SELECT professional_partner FROM table_name_29 WHERE season = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (high_rebounds VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "Who had the highest rebounds against detroit?"
},
{
"from": "gpt",
"value": "SELECT high_rebounds FROM table_name_65 WHERE team = \"detroit\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (gold INTEGER, nation VARCHAR)"
},
{
"from": "human",
"value": "How much gold received by nation of uzbekistan (uzb)?"
},
{
"from": "gpt",
"value": "SELECT MAX(gold) FROM table_name_93 WHERE nation = \"uzbekistan (uzb)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (gold INTEGER, silver INTEGER)"
},
{
"from": "human",
"value": "Which team has the lowest gold and 0 silver?"
},
{
"from": "gpt",
"value": "SELECT MIN(gold) FROM table_name_68 WHERE silver < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "How much gold when silver, bronze and total is smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT MAX(gold) FROM table_name_27 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (icao VARCHAR, commenced_operations INTEGER)"
},
{
"from": "human",
"value": "What is the ICAO with commenced operations before 1989?"
},
{
"from": "gpt",
"value": "SELECT icao FROM table_name_2 WHERE commenced_operations < 1989... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (commenced_operations INTEGER, callsign VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest commenced operations that has a nouvelair callsign?"
},
{
"from": "gpt",
"value": "SELECT MIN(commenced_operations) FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (callsign VARCHAR, commenced_operations VARCHAR)"
},
{
"from": "human",
"value": "What callsign has commenced operations in 2011?"
},
{
"from": "gpt",
"value": "SELECT callsign FROM table_name_34 WHERE commenced_operations = 20... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (language VARCHAR, package_option VARCHAR, television_service VARCHAR)"
},
{
"from": "human",
"value": "What language is used when the service is sky primafila 10 and the package/option is qualsiasi?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (content VARCHAR, package_option VARCHAR, television_service VARCHAR)"
},
{
"from": "human",
"value": "What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (hdtv VARCHAR, content VARCHAR, television_service VARCHAR)"
},
{
"from": "human",
"value": "What is the HDTV that has television service of tv 8 mont blanc and content is general television?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (city VARCHAR, iata VARCHAR)"
},
{
"from": "human",
"value": "Which city's IATA is nkg?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_64 WHERE iata = \"nkg\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (airport VARCHAR, province VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "Which airport is in Xinjiang province in the city Kuqa?"
},
{
"from": "gpt",
"value": "SELECT airport FROM table_name_45 WHERE province = \"xinj... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (province VARCHAR, iata VARCHAR)"
},
{
"from": "human",
"value": "Which province's IATA is kix?"
},
{
"from": "gpt",
"value": "SELECT province FROM table_name_21 WHERE iata = \"kix\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (airport VARCHAR, iata VARCHAR)"
},
{
"from": "human",
"value": "Which airport's IATA is pen?"
},
{
"from": "gpt",
"value": "SELECT airport FROM table_name_31 WHERE iata = \"pen\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (event VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which Event has a Record of 4:02.54?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_90 WHERE record = \"4:02.54\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (date VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "Whcih Date has an Event of 3000 m?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_6 WHERE event = \"3000 m\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Record has a Date of 23 february 1986?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_20 WHERE date = \"23 february 1986\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which Date has a Record of 8:39.49?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_95 WHERE record = \"8:39.49\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Record has a Date of 3 march 2013?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_71 WHERE date = \"3 march 2013\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (nation VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which Nation has a Record of 15.16 m?"
},
{
"from": "gpt",
"value": "SELECT nation FROM table_name_84 WHERE record = \"15.16 m\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (nationality VARCHAR, goals VARCHAR, apps VARCHAR)"
},
{
"from": "human",
"value": "What is the Nationality of the Player with more than 8 Goals and Apps of 52?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_5... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (apps INTEGER, player VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "How many Apps did Player Gilberto with more than 1 Goals have?"
},
{
"from": "gpt",
"value": "SELECT AVG(apps) FROM table_name_64 WHERE player = \"g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (date VARCHAR, round VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "On what date was the 4th round, with home team Itabuna, played?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_4 WHERE round = \"4th\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "In the 6th round match with home team Bahia, who was the away team?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_96 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (score VARCHAR, round VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "For the 5th round match with away team of Bahia, what was the final score?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_65 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (league VARCHAR, regular_season VARCHAR)"
},
{
"from": "human",
"value": "Which League has a Regular Season of 2nd, southeast?"
},
{
"from": "gpt",
"value": "SELECT league FROM table_name_58 WHERE regular_season = \"2nd, southe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR)"
},
{
"from": "human",
"value": "Who Playoffs has a Regular Season of on hiatus.?"
},
{
"from": "gpt",
"value": "SELECT playoffs FROM table_name_99 WHERE regular_season = \"on hiatus.\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (population INTEGER, city VARCHAR)"
},
{
"from": "human",
"value": "What is the population of Kragerø?"
},
{
"from": "gpt",
"value": "SELECT MIN(population) FROM table_name_17 WHERE city = \"kragerø\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (population INTEGER, town_status VARCHAR)"
},
{
"from": "human",
"value": "What is the highest population of a city that has a town status of 2010?"
},
{
"from": "gpt",
"value": "SELECT MAX(population) FROM table_name_91 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (population INTEGER, municipality VARCHAR)"
},
{
"from": "human",
"value": "What is the highest population within the municipality of Porsgrunn?"
},
{
"from": "gpt",
"value": "SELECT MAX(population) FROM table_name_28 WHERE mun... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (birthplace VARCHAR, jersey_number VARCHAR, position VARCHAR, height__cm_ VARCHAR)"
},
{
"from": "human",
"value": "What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?"
},
{
"from": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR)"
},
{
"from": "human",
"value": "What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?"
},
{
"from": "gpt",
"value": "SELECT SU... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR)"
},
{
"from": "human",
"value": "What's the least amount of points that Walter Wolf Racing had after 1974?"
},
{
"from": "gpt",
"value": "SELECT MIN(points) FROM table_name_3 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?"
},
{
"from": "gpt",
"value": "SELECT SUM(year)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What is the highest Year, when the Venue is Beijing, PR China?"
},
{
"from": "gpt",
"value": "SELECT MAX(year) FROM table_name_54 WHERE venue = \"beijing, pr china\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR)"
},
{
"from": "human",
"value": "What is the average Year, when Competition is Oceania Youth Championships?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_89 WHERE competitio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (event VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is Event, when Position is 4th?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_94 WHERE position = \"4th\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR)"
},
{
"from": "human",
"value": "What is the Date with a Format that is cd?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_87 WHERE format = \"cd\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Catalog with a Date that is march 13, 2002?"
},
{
"from": "gpt",
"value": "SELECT catalog FROM table_name_9 WHERE date = \"march 13, 2002\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (label VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Label with a Catalog that is mhcl-20017?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_45 WHERE catalog = \"mhcl-20017\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Catalog with a Date that is february 20, 2002?"
},
{
"from": "gpt",
"value": "SELECT catalog FROM table_name_89 WHERE date = \"february 20, 2002\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is M... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (position VARCHAR, birthplace VARCHAR)"
},
{
"from": "human",
"value": "What is the Position, when the Birthplace is Buffalo, New York?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_92 WHERE birthplace = \"buff... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)"
},
{
"from": "human",
"value": "What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdat... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.