conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (surface VARCHAR, championship VARCHAR)"
},
{
"from": "human",
"value": "What is the surface of the palermo, italy championship?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_61 WHERE championship = \"palermo, i... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (round INTEGER, position VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "In what Round was OL Player Richard Zulys picked?"
},
{
"from": "gpt",
"value": "SELECT SUM(round) FROM table_name_92 WHERE position = \"ol\" AN... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (player VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "What is the Player from McGill?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_30 WHERE school_club_team = \"mcgill\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (college VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Which College had an Overall pick of 171?"
},
{
"from": "gpt",
"value": "SELECT college FROM table_name_53 WHERE overall = 171"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (name VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Who had the overall pick of 72?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_36 WHERE overall = 72"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (primary_conference VARCHAR, team_nickname VARCHAR)"
},
{
"from": "human",
"value": "What primary conference does the team nicknamed Phoenix belongs to?"
},
{
"from": "gpt",
"value": "SELECT primary_conference FROM table_name_3... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (location VARCHAR, home_rink VARCHAR)"
},
{
"from": "human",
"value": "Where is the location for the home rink Triangle sports plex/Greensboro ice house?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_36 WHERE h... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (pick INTEGER, former_wnba_team VARCHAR)"
},
{
"from": "human",
"value": "What pick was a player that previously played for the Minnesota Lynx?"
},
{
"from": "gpt",
"value": "SELECT SUM(pick) FROM table_name_60 WHERE former_wnb... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (player VARCHAR, pick INTEGER)"
},
{
"from": "human",
"value": "Which player was picked after 23?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_89 WHERE pick > 23"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (nationality VARCHAR, college_country_team VARCHAR)"
},
{
"from": "human",
"value": "What is the nationality of the player who went to college at Mississippi?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_74... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (player VARCHAR, new_wnba_team VARCHAR, college_country_team VARCHAR)"
},
{
"from": "human",
"value": "Who is the player who played for the Miami Sol and went to school at North Carolina State?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (ast_avg INTEGER, rank VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?"
},
{
"from": "gpt",
"value": "SELECT SUM(ast_avg) FROM table_name_20 WHERE rank ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (round VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which Round has a Name of john goodyear?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_55 WHERE name = \"john goodyear\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (round VARCHAR, college VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Which Round has a College of appalachian state, and an Overall smaller than 156?"
},
{
"from": "gpt",
"value": "SELECT COUNT(round) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which Pick has a Round larger than 17, and a Name of gene stewart?"
},
{
"from": "gpt",
"value": "SELECT COUNT(pick) FROM table_name_46 WHERE round > ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the result when the opponent was Rory Markham?"
},
{
"from": "gpt",
"value": "SELECT res FROM table_name_96 WHERE opponent = \"rory markham\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (branding VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "Which Branding has a frequency of 1080khz?"
},
{
"from": "gpt",
"value": "SELECT branding FROM table_name_27 WHERE frequency = \"1080khz\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (frequency VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Which frequency is located in Dagupan?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_23 WHERE location = \"dagupan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (frequency VARCHAR, branding VARCHAR)"
},
{
"from": "human",
"value": "What frequency does branding dzec radyo agila 1062 have?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_33 WHERE branding = \"dzec radyo ag... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (frequency VARCHAR, power__kw_ VARCHAR)"
},
{
"from": "human",
"value": "Which frequency has 40kw power?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_5 WHERE power__kw_ = \"40kw\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (frequency VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Which frequency is located in Davao?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_35 WHERE location = \"davao\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (peak_population__year_ VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "what is the peak population (year) for scranton?"
},
{
"from": "gpt",
"value": "SELECT peak_population__year_ FROM table_name_34 WHERE city = \"scr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (numeric_decline_from_peak_population VARCHAR, percent_decline_from_peak_population VARCHAR)"
},
{
"from": "human",
"value": "what is the numeric decline from peak population when the perfect decline from peak population is -16.76%"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR)"
},
{
"from": "human",
"value": "what is the state when the peak population (year) is 134995 (1950)?"
},
{
"from": "gpt",
"value": "SELECT state FROM table_name_33 WHERE peak_popu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (percent_decline_from_peak_population VARCHAR, peak_population__year_ VARCHAR)"
},
{
"from": "human",
"value": "what is the percent decline from peak population when the peak population (year) is 178320 (1960)?"
},
{
"from": "gpt",... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (rank VARCHAR, studio VARCHAR, director VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_7 WHERE studio = \"universal\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (title VARCHAR, rank VARCHAR, director VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_98 WHERE r... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (studio VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE STUDIO WITH THE TITLE MASK?"
},
{
"from": "gpt",
"value": "SELECT studio FROM table_name_41 WHERE title = \"mask\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR)"
},
{
"from": "human",
"value": "WHAT IS THE RANK WITH A GROSS OF $96,773,200?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_59 WHERE gross = \"$96,773,200\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR)"
},
{
"from": "human",
"value": "How many times was the player drawn that had less than 12 losses and a goal difference of +20?"
},
{
"from": "gpt",
"value": "SELECT drawn ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (position INTEGER, played VARCHAR, goal_difference VARCHAR, drawn VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (played INTEGER, lost VARCHAR, goal_difference VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number played when there were less than 13 losses and a goal difference of +46?"
},
{
"from": "gpt",
"value": "SELECT ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (points_1 VARCHAR, lost VARCHAR, position VARCHAR, goals_for VARCHAR)"
},
{
"from": "human",
"value": "What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?"
},
{
"from... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (worship_leader VARCHAR, lead_supporting_vocal VARCHAR)"
},
{
"from": "human",
"value": "Who was the worship leader that had a lead supporting vocal Marcus Temu?"
},
{
"from": "gpt",
"value": "SELECT worship_leader FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (lead_supporting_vocal VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Who was the lead supporting vocalist on the song that was 4:54 long?"
},
{
"from": "gpt",
"value": "SELECT lead_supporting_vocal FROM table_name_32 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (worship_leader VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Who was the Worship Leader for the song that was 7:05 long?"
},
{
"from": "gpt",
"value": "SELECT worship_leader FROM table_name_17 WHERE time = \"7:05\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (song VARCHAR, lead_supporting_vocal VARCHAR)"
},
{
"from": "human",
"value": "What is the song name that featured Marcus Temu as the lead supporting vocalist?"
},
{
"from": "gpt",
"value": "SELECT song FROM table_name_12 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (diameter INTEGER, longitude VARCHAR)"
},
{
"from": "human",
"value": "What's the lowest diameter when the longitude is 71.1w?"
},
{
"from": "gpt",
"value": "SELECT MIN(diameter) FROM table_name_71 WHERE longitude = \"71.1w\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (diameter INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is dardanus sulcus' lowest diameter?"
},
{
"from": "gpt",
"value": "SELECT MIN(diameter) FROM table_name_7 WHERE name = \"dardanus sulcus\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)"
},
{
"from": "human",
"value": "How many years is ur sulcus listed with a diameter less than 1,145.0?"
},
{
"from": "gpt",
"value": "SELECT COUNT(year_named) FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (score VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "When the attendance was 3188 what was the score?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_78 WHERE attendance = 3188"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (attendance INTEGER, date VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "What team was the away team when the Deportes Savio was the home team?"
},
{
"from": "gpt",
"value": "SELECT away FROM table_name_49 WHERE home = \"deportes savio\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (away VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the away team when the score was 3:1?"
},
{
"from": "gpt",
"value": "SELECT away FROM table_name_93 WHERE score = \"3:1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR)"
},
{
"from": "human",
"value": "When Platense was the away team on 16 August 2008 how many people attended the game?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (score VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What was the score when 2441 people were in attendance?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_17 WHERE attendance = 2441"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (driver VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which driver had 35+3 points?"
},
{
"from": "gpt",
"value": "SELECT driver FROM table_name_77 WHERE points = \"35+3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (time_retired VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What was the time/retired for the driver with 14 points?"
},
{
"from": "gpt",
"value": "SELECT time_retired FROM table_name_78 WHERE points = \"14\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0?"
},
{
"from": "gpt",
"value": "SELECT total F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (fa_cup_goals VARCHAR, club VARCHAR, total VARCHAR, league_cup_goals VARCHAR)"
},
{
"from": "human",
"value": "What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for th... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (league_goals VARCHAR, league_cup_goals VARCHAR, scorer VARCHAR)"
},
{
"from": "human",
"value": "What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (name VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the player with a transfer window in summer, an undisclosed transfer fee, and is moving from brussels?"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (type VARCHAR, transfer_window VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the type of bulykin, which has a summer transfer window?"
},
{
"from": "gpt",
"value": "SELECT type FROM table_name_79 WHERE transfe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (country VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the country of cordier?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_70 WHERE name = \"cordier\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (country VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)"
},
{
"from": "human",
"value": "What is the country of the player moving from belgrano with a summer transfer window?"
},
{
"from": "gpt",
"value": "SELECT countr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (transfer_window VARCHAR, moving_from VARCHAR)"
},
{
"from": "human",
"value": "What is the transfer window of the player moving from barueri?"
},
{
"from": "gpt",
"value": "SELECT transfer_window FROM table_name_40 WHERE movin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (type VARCHAR, moving_from VARCHAR)"
},
{
"from": "human",
"value": "What is the type of the player moving from belgrano?"
},
{
"from": "gpt",
"value": "SELECT type FROM table_name_11 WHERE moving_from = \"belgrano\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (round INTEGER, pick VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Average round for 22 pick that is overall smaller than 229?"
},
{
"from": "gpt",
"value": "SELECT AVG(round) FROM table_name_94 WHERE pick = 22 AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (country VARCHAR)"
},
{
"from": "human",
"value": "What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?"
},
{
"from": "gpt",
"value": "SELECT AVG(2002) FROM table_name_88 WHERE country = \"peru\" AND ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (Id VARCHAR)"
},
{
"from": "human",
"value": "What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500?"
},
{
"from": "gpt",
"value": "SELECT MIN(2009) FROM table_name_81 WHERE 2005 < 64... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (bronze INTEGER, silver INTEGER)"
},
{
"from": "human",
"value": "How many Bronze medals did the Nation with 0 Silver receive?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_37 WHERE silver < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive?"
},
{
"from": "gpt",
"val... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (total INTEGER, bronze INTEGER)"
},
{
"from": "human",
"value": "How many Total medals did the Nation the got 0 Bronze medals receive?"
},
{
"from": "gpt",
"value": "SELECT AVG(total) FROM table_name_47 WHERE bronze < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What Nation had a more than 1 Total medal including less than 3 Silver, less than 4 Gold and a Rank of 4?"
},
{
"from": "g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (start VARCHAR, main_host VARCHAR, winning_mentor VARCHAR)"
},
{
"from": "human",
"value": "What is the start date with Luke Jacobz hosting and Dannii Minogue as a winning mentor?"
},
{
"from": "gpt",
"value": "SELECT start FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (third_place VARCHAR, winning_mentor VARCHAR, runner_up VARCHAR)"
},
{
"from": "human",
"value": "Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (election INTEGER, mayor VARCHAR, inhabitants VARCHAR)"
},
{
"from": "human",
"value": "In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?"
},
{
"from": "gpt",
"value": "SELECT SUM(election... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (election VARCHAR, inhabitants INTEGER)"
},
{
"from": "human",
"value": "In what Election year were there less than 16,170 Inhabitants?"
},
{
"from": "gpt",
"value": "SELECT COUNT(election) FROM table_name_14 WHERE inhabitants ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)"
},
{
"from": "human",
"value": "What is the Mayor of Riva del Garda in 2010?"
},
{
"from": "gpt",
"value": "SELECT mayor FROM table_name_37 WHERE election = 2010 AND muni... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (inhabitants INTEGER, party VARCHAR, election VARCHAR)"
},
{
"from": "human",
"value": "How many Inhabitants were there after 2009 in the Municipality with a Party of union for trentino?"
},
{
"from": "gpt",
"value": "SELECT AVG... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (enrollment INTEGER, founded VARCHAR, joined_conference VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (football VARCHAR, soccer VARCHAR, golf VARCHAR)"
},
{
"from": "human",
"value": "Which foot ball team played soccer at wooster, and Gold in Ashland?"
},
{
"from": "gpt",
"value": "SELECT football FROM table_name_2 WHERE soccer ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?"
},
{
"from": "gpt",
"value": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "How many silver for the team with more than 2 bronze and more than 7 gold?"
},
{
"from": "gpt",
"value": "SELECT COUNT(silver) FROM table_name_53 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (total INTEGER, bronze VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "What is the total for the team with 0 bronze and 3 silver?"
},
{
"from": "gpt",
"value": "SELECT SUM(total) FROM table_name_41 WHERE bronze = 0 AN... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (round VARCHAR, location VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of Rounds held in Nevada, United States in which the time was 1:55?"
},
{
"from": "gpt",
"value": "SELECT COUNT(round) FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (time VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the time when his opponent was Rudy Martin?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_5 WHERE opponent = \"rudy martin\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (method VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What was the method when the fight's time was 1:52?"
},
{
"from": "gpt",
"value": "SELECT method FROM table_name_31 WHERE time = \"1:52\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (overs INTEGER, economy_rate VARCHAR, team VARCHAR, best_bowling VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17?"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (overs INTEGER, team VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of Overs for the Royal Challengers Bangalore?"
},
{
"from": "gpt",
"value": "SELECT MIN(overs) FROM table_name_50 WHERE team = \"royal cha... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (strike_rate INTEGER, matches VARCHAR, average VARCHAR)"
},
{
"from": "human",
"value": "What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (venue VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the venue of the race where Lineth Chepkurui placed 4th?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_12 WHERE position = \"4th\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (venue VARCHAR, notes VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the venue of the team race that was before 2010?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_13 WHERE notes = \"team\" AND ye... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (venue VARCHAR, year VARCHAR, notes VARCHAR)"
},
{
"from": "human",
"value": "What is the venue of the team race that was after 2008?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_23 WHERE year > 2008 AND notes = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (competition VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What competition did Lineth Chepkurui place 5th?"
},
{
"from": "gpt",
"value": "SELECT competition FROM table_name_27 WHERE position = \"5th\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)"
},
{
"from": "human",
"value": "How many votes did Lee Teng-Hui receive when he was elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(total_votes) FROM table_name_7 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR, match VARCHAR, home_away VARCHAR)"
},
{
"from": "human",
"value": "What was the score for a match before 13, and a home game on April 21, 2008?"
},
{
"from": "gpt",
"value": "SELECT score FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (home_away VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What home/away game is on February 29, 2008?"
},
{
"from": "gpt",
"value": "SELECT home_away FROM table_name_19 WHERE date = \"february 29, 2008\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What team was the home team when Manchester City was the away team?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_88 WHERE away_team = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of Points, when Equipment was \"Zabel-BSU\", and when Position was 42?"
},
{
"from": "gpt",
"value": "SELECT SUM(points) FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (equipment VARCHAR, points VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is Equipment, when Points is less than 6, and when Position is 53?"
},
{
"from": "gpt",
"value": "SELECT equipment FROM table_name_79 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (second VARCHAR, equipment VARCHAR, position VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC?"
},
{
"from":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (equipment VARCHAR, position VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "What is Equipment, when Position is greater than 28, and when Points is greater than 10?"
},
{
"from": "gpt",
"value": "SELECT equipment FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (away_team VARCHAR)"
},
{
"from": "human",
"value": "When Hawthorn is the away team, what is their score?"
},
{
"from": "gpt",
"value": "SELECT away_team AS score FROM table_name_84 WHERE away_team = \"hawthorn\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (ground VARCHAR, crowd INTEGER)"
},
{
"from": "human",
"value": "Which ground has a crowd over 41,185?"
},
{
"from": "gpt",
"value": "SELECT ground FROM table_name_79 WHERE crowd > 41 OFFSET 185"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (place VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What place has a 67-68-78-77=290 score?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_25 WHERE score = 67 - 68 - 78 - 77 = 290"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (to_par INTEGER, country VARCHAR, place VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the highest to par of the player from the United States with a t3 place and a 74-73-72-69=288 place?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What is the place of player peter oosterhuis, who has $7,500?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_7 WHERE money___$__ ... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.