conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (gold INTEGER, total INTEGER)"
},
{
"from": "human",
"value": "What was the gold medal total for a total of 44 medals?"
},
{
"from": "gpt",
"value": "SELECT MIN(gold) FROM table_name_13 WHERE total > 44"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many silver medals were won with a total medal of 3 and a rank above 9?"
},
{
"from": "gpt",
"value": "SELECT AVG(silver) FROM table_name_49 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (week VARCHAR, attendance INTEGER)"
},
{
"from": "human",
"value": "How many weeks had an attendance of over 68,000?"
},
{
"from": "gpt",
"value": "SELECT COUNT(week) FROM table_name_74 WHERE attendance > 68 OFFSET 000"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (engine VARCHAR, finish VARCHAR)"
},
{
"from": "human",
"value": "What engine was used by the team the finished 2nd?"
},
{
"from": "gpt",
"value": "SELECT engine FROM table_name_82 WHERE finish = \"2nd\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (chassis VARCHAR, engine VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What chassis was used with the Chevrolet engine in 1991?"
},
{
"from": "gpt",
"value": "SELECT chassis FROM table_name_70 WHERE engine = \"chevrol... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (year INTEGER, start VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "What was the most recent year when a g-force chassis started in 1st?"
},
{
"from": "gpt",
"value": "SELECT MAX(year) FROM table_name_35 WHERE start... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (start VARCHAR, year INTEGER)"
},
{
"from": "human",
"value": "What was the starting position in the year before 1986?"
},
{
"from": "gpt",
"value": "SELECT start FROM table_name_33 WHERE year < 1986"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel?"
},
{
"from": "gpt",
"val... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (built INTEGER, vessel_name VARCHAR, class VARCHAR, type VARCHAR)"
},
{
"from": "human",
"value": "Which year was the vessel Deva built as a Panamax DNV class ship?"
},
{
"from": "gpt",
"value": "SELECT SUM(built) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (class VARCHAR, vessel_name VARCHAR)"
},
{
"from": "human",
"value": "What is the class of vessel of the ship Hyundai Smart?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_85 WHERE vessel_name = \"hyundai smart\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (class VARCHAR, vessel_name VARCHAR)"
},
{
"from": "human",
"value": "In which class would the vessel Hyundai Tenacity be placed?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_77 WHERE vessel_name = \"hyundai tena... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (result VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What was the result for week 14?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_29 WHERE week = 14"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (rank INTEGER, games VARCHAR, reb_avg VARCHAR, total_rebounds VARCHAR)"
},
{
"from": "human",
"value": "Which lowest rank(player) has a rebound average larger than 9, out of 920 rebounds, and who played more than 79 games?"
},
{
"f... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (rank VARCHAR, reb_avg INTEGER)"
},
{
"from": "human",
"value": "How many ranks have a rebound average smaller than 6.1?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (player VARCHAR, overall VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "Which player was drafted higher than 374 and went to the school Stephen F. Austin?"
},
{
"from": "gpt",
"value": "SELECT player FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (round INTEGER, school_club_team VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest round Trinity school was drafted with an overall higher than 21?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (swimmer VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Who got the time of 7:52.04?"
},
{
"from": "gpt",
"value": "SELECT swimmer FROM table_name_41 WHERE time = \"7:52.04\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (opponent VARCHAR, box_scores VARCHAR)"
},
{
"from": "human",
"value": "Which of the opponents has bye as their box score?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_32 WHERE box_scores = \"bye\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the game against the pittsburgh steelers?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_21 WHERE opponent = \"p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the game on September 25 with a box score of box?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_51 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the date of the game later than week 13 and 41,862 people attended?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_62 WHERE w... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (caps INTEGER, goals VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of caps for players with less than 9 goals ranked below 8?"
},
{
"from": "gpt",
"value": "SELECT SUM(caps) FROM table_name_83 WHERE go... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (senior_status VARCHAR, active_service VARCHAR)"
},
{
"from": "human",
"value": "What were the years of senior status for active service in 1972–1995?"
},
{
"from": "gpt",
"value": "SELECT senior_status FROM table_name_53 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (born_died VARCHAR, active_service VARCHAR)"
},
{
"from": "human",
"value": "What were the birth and death years when active service was 1972–1995?"
},
{
"from": "gpt",
"value": "SELECT born_died FROM table_name_54 WHERE active... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (active_service VARCHAR, reason_for_termination VARCHAR, senior_status VARCHAR)"
},
{
"from": "human",
"value": "Which active services years ended in death and had senior status in 1972–2005?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (date VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "Which date featured the Boston Patriots as the opponent?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_96 WHERE opponent = \"boston patriots\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent during week 8?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_67 WHERE week = 8"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What opponent had an attendance of 12,508 during weeks 1 through 8?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_76 WHERE w... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (week INTEGER, attendance VARCHAR)"
},
{
"from": "human",
"value": "What week had an attendance of 14,381?"
},
{
"from": "gpt",
"value": "SELECT AVG(week) FROM table_name_25 WHERE attendance = \"14,381\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (round INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "Which round was Dave Yovanovits picked?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FROM table_name_43 WHERE player = \"dave yovanovits\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (college VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Where did the player picked for the linebacker position play in college?"
},
{
"from": "gpt",
"value": "SELECT college FROM table_name_6 WHERE position = \"lin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Who did the Browns play week 12?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_91 WHERE week = 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance in the game against the Detroit Lions?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_15 WHERE opponent = \"detro... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who played as the away team when they played at Brunswick Street Oval?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_73 WHERE venue = \"bruns... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team when the VFL played Arden Street Oval?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_6 WHERE venue = \"arden street oval... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who is the away side at junction oval?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_1 WHERE venue = \"junction oval\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (winning_driver VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Who was the winning driver of the Kraco Car Stereo 150?"
},
{
"from": "gpt",
"value": "SELECT winning_driver FROM table_name_78 WHERE name = \"kraco car st... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (fastest_lap VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What time was the fastest lap during Stoh's 200 in 1982?"
},
{
"from": "gpt",
"value": "SELECT fastest_lap FROM table_name_74 WHERE name = \"stoh's 200\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (date VARCHAR, début VARCHAR, opposition VARCHAR)"
},
{
"from": "human",
"value": "What is the date for the player who debuted later than 1972 against Limerick?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_32 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR)"
},
{
"from": "human",
"value": "Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?"
},
{
"from": "gpt",
"val... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (date VARCHAR, week VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What date had a Result of l 23–17 in a week later than 7?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_78 WHERE week > 7 AND result = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the game against the cincinnati bengals?"
},
{
"from": "gpt",
"value": "SELECT COUNT(attendance) FROM table_name_15 WHERE opponent... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (attendance VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance for the game played at 3:31?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_76 WHERE time = \"3:31\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (time VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What was the time for game 4?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_56 WHERE game = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the away team's score at western oval?"
},
{
"from": "gpt",
"value": "SELECT away_team AS score FROM table_name_14 WHERE venue = \"western oval\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (wins INTEGER, points VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Before 2007, how many wins were there when the point total was 48?"
},
{
"from": "gpt",
"value": "SELECT SUM(wins) FROM table_name_10 WHERE points = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (wins INTEGER, year VARCHAR, drivers VARCHAR)"
},
{
"from": "human",
"value": "In 2011, how many wins did Michael Meadows have?"
},
{
"from": "gpt",
"value": "SELECT SUM(wins) FROM table_name_2 WHERE year = 2011 AND drivers = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (service VARCHAR, origin_of_programming VARCHAR, network VARCHAR)"
},
{
"from": "human",
"value": "What is the service of the network Set Max from India?"
},
{
"from": "gpt",
"value": "SELECT service FROM table_name_22 WHERE or... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)"
},
{
"from": "human",
"value": "Which network's genre is music?"
},
{
"from": "gpt",
"value": "SELECT network FROM table_name_8 WHERE genre = \"music\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (genre VARCHAR, origin_of_programming VARCHAR, network VARCHAR)"
},
{
"from": "human",
"value": "What genre is Star Plus from India?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_50 WHERE origin_of_programming = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR)"
},
{
"from": "human",
"value": "Where does the network Star Cricket originate?"
},
{
"from": "gpt",
"value": "SELECT origin_of_programming FROM table_name_25 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (genre VARCHAR, language VARCHAR, network VARCHAR)"
},
{
"from": "human",
"value": "What genre is Set Max's Hindi programming?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_85 WHERE language = \"hindi\" AND networ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (home_team VARCHAR)"
},
{
"from": "human",
"value": "What is fitzroy's score as the home team?"
},
{
"from": "gpt",
"value": "SELECT home_team AS score FROM table_name_49 WHERE home_team = \"fitzroy\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (home_team VARCHAR)"
},
{
"from": "human",
"value": "What is richmond's score as the home team?"
},
{
"from": "gpt",
"value": "SELECT home_team AS score FROM table_name_93 WHERE home_team = \"richmond\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?"
},
{
"from": "gpt",
"value": "SELECT color... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (network VARCHAR, year VARCHAR, play_by_play VARCHAR, color_commentator_s_ VARCHAR)"
},
{
"from": "human",
"value": "What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002?"
},
{
"from": "gpt",
"value": "SELECT ne... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (color_commentator_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who was the 2004 color commentator?"
},
{
"from": "gpt",
"value": "SELECT color_commentator_s_ FROM table_name_82 WHERE year = 2004"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR)"
},
{
"from": "human",
"value": "Who was the color commentator for Andrea Kremer and Tiki Barber?"
},
{
"from": "gpt",
"value": "SELECT color_commentator_s_ FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who was Al Michaels' color commentator in 2003?"
},
{
"from": "gpt",
"value": "SELECT color_commentator_s_ FROM table_name_69 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team when Geelong was the away team?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_76 WHERE away_team = \"geelong\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (overall INTEGER, college VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (coach VARCHAR, actual_adjusted_record VARCHAR)"
},
{
"from": "human",
"value": "Who, was the coach with an actual adjusted record of 0–19?"
},
{
"from": "gpt",
"value": "SELECT coach FROM table_name_2 WHERE actual_adjusted_reco... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (season INTEGER, coach VARCHAR, actual_adjusted_record VARCHAR)"
},
{
"from": "human",
"value": "What is the average Season for coach Fisher, and an actual adjusted record of 0–11?"
},
{
"from": "gpt",
"value": "SELECT AVG(seas... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (regular_season_vacated VARCHAR, record_as_played VARCHAR)"
},
{
"from": "human",
"value": "What is the regular season vacated for the Record as played of 12–19?"
},
{
"from": "gpt",
"value": "SELECT regular_season_vacated FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (season VARCHAR, coach VARCHAR)"
},
{
"from": "human",
"value": "How many seasons did coach steve fisher have?"
},
{
"from": "gpt",
"value": "SELECT COUNT(season) FROM table_name_5 WHERE coach = \"steve fisher\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997?"
},
{
"from": "gpt",
"value":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (season VARCHAR, actual_adjusted_record VARCHAR)"
},
{
"from": "human",
"value": "How many seasons have an Actual adjusted record of 0–19?"
},
{
"from": "gpt",
"value": "SELECT COUNT(season) FROM table_name_13 WHERE actual_adju... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (gold INTEGER, total VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "How many gold(s) for teams with a total of 14, and over 6 bronze medals?"
},
{
"from": "gpt",
"value": "SELECT SUM(gold) FROM table_name_26 WHERE to... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?"
},
{
"from": "gpt",
"value": "SELECT MAX(gold) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?"
},
{
"from": "gpt",... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (away_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the away team for the match at Punt Road Oval?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_39 WHERE venue = \"punt road oval\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the smallest crowd size for the match played at Junction Oval?"
},
{
"from": "gpt",
"value": "SELECT MIN(crowd) FROM table_name_84 WHERE venue = \"junctio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What was the home team that played Collingwood?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_73 WHERE away_team = \"collingwood\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (province VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which province has Michael Kirby?"
},
{
"from": "gpt",
"value": "SELECT province FROM table_name_39 WHERE name = \"michael kirby\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (party VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which party is Madeleine Plamondon a member of?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_94 WHERE name = \"madeleine plamondon\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (details VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What are the details for Marisa Ferretti Barth?"
},
{
"from": "gpt",
"value": "SELECT details FROM table_name_55 WHERE name = \"marisa ferretti barth\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (party VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which party had a member on August 26, 2008?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_95 WHERE date = \"august 26, 2008\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What are the details for John Buchanan?"
},
{
"from": "gpt",
"value": "SELECT details FROM table_name_71 WHERE name = \"john buchanan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (province VARCHAR, party VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which province had a liberal party member on December 31, 2006?"
},
{
"from": "gpt",
"value": "SELECT province FROM table_name_38 WHERE party = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (dance_styles VARCHAR, draw VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which dance style had a draw smaller than 15 and 18 points?"
},
{
"from": "gpt",
"value": "SELECT dance_styles FROM table_name_54 WHERE draw ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the away team's score for the match played at Victoria Park?"
},
{
"from": "gpt",
"value": "SELECT away_team AS score FROM table_name_89 WHERE venue =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (venue VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is Collingwood's home venue?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_45 WHERE home_team = \"collingwood\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the away teams score when they played Carlton?"
},
{
"from": "gpt",
"value": "SELECT away_team AS score FROM table_name_19 WHERE home_team = \"car... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (year INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "What is the latest year featuring candace parker?"
},
{
"from": "gpt",
"value": "SELECT MAX(year) FROM table_name_47 WHERE player = \"candace parker\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is the largest crowd when north melbourne is the home side?"
},
{
"from": "gpt",
"value": "SELECT MAX(crowd) FROM table_name_94 WHERE home_team = \"north ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (crowd INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest crowd at victoria park?"
},
{
"from": "gpt",
"value": "SELECT MIN(crowd) FROM table_name_22 WHERE venue = \"victoria park\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (date VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What day was geelong the away side?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_96 WHERE away_team = \"geelong\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (stadium VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the stadium in Brisbane?"
},
{
"from": "gpt",
"value": "SELECT stadium FROM table_name_17 WHERE city = \"brisbane\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (result VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the match that had a score of 58-6?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_92 WHERE score = \"58-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (score VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_12 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (stadium VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "For the match ending in a score of 66-20, what was the stadium?"
},
{
"from": "gpt",
"value": "SELECT stadium FROM table_name_92 WHERE score = \"66-20\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (city VARCHAR, stadium VARCHAR)"
},
{
"from": "human",
"value": "In what city is the Don Valley Stadium located?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_61 WHERE stadium = \"don valley stadium\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (meet VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "Which championship was the 100m backstroke performed?"
},
{
"from": "gpt",
"value": "SELECT meet FROM table_name_22 WHERE event = \"100m backstroke\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (event VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What event has a time of 7:45.67?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_62 WHERE time = \"7:45.67\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (nationality VARCHAR, year VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What nationality has a year larger than 2009 with a position of power forward?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (player VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "Who plays for the chicago bulls?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_92 WHERE team = \"chicago bulls\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (main_places VARCHAR, regions VARCHAR, area VARCHAR)"
},
{
"from": "human",
"value": "What are the main places for the streymoy region with an area of larger than 6.1?"
},
{
"from": "gpt",
"value": "SELECT main_places FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (people_per_km² INTEGER, regions VARCHAR, area VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of people per km2 for the sandoy region with an area of 112.1?"
},
{
"from": "gpt",
"value": "SELECT SUM(people_per_km²) F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (week INTEGER, attendance VARCHAR)"
},
{
"from": "human",
"value": "what is the week there were 41,604 people in attendance?"
},
{
"from": "gpt",
"value": "SELECT AVG(week) FROM table_name_62 WHERE attendance = 41 OFFSET 604"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (crowd INTEGER, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is the average crowd size for games with hawthorn as the home side?"
},
{
"from": "gpt",
"value": "SELECT AVG(crowd) FROM table_name_8 WHERE home_team = \"... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.