conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (year INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "What year was the player David Rose?"
},
{
"from": "gpt",
"value": "SELECT SUM(year) FROM table_name_97 WHERE player = \"david rose\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (median_family_income VARCHAR, per_capita_income VARCHAR)"
},
{
"from": "human",
"value": "What is the median family income when the per capita is $24,114?"
},
{
"from": "gpt",
"value": "SELECT median_family_income FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)"
},
{
"from": "human",
"value": "What is the median household income when the per capita is $21,585?"
},
{
"from": "gpt",
"value": "SELECT median_household_income FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR)"
},
{
"from": "human",
"value": "What is the population where the median family income is $48,446 and there are more than 35,343 households?"
},
{
"fr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)"
},
{
"from": "human",
"value": "What is the population where the median household income is $87,832 and there are fewer than 64,886 households?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)"
},
{
"from": "human",
"value": "What is the score 1 for the major league soccer all-star game?"
},
{
"from": "gpt",
"value": "SELECT score1 FROM table_name_20 WHERE competition_or_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR)"
},
{
"from": "human",
"value": "What is the score 1 with a h ground?"
},
{
"from": "gpt",
"value": "SELECT score1 FROM table_name_85 WHERE ground = \"h\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (scorers VARCHAR, ground VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who are the scorers on 1 August 2008, where the ground was A?"
},
{
"from": "gpt",
"value": "SELECT scorers FROM table_name_34 WHERE ground = \"a\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What ground had Portsmouth reserves as an opponent?"
},
{
"from": "gpt",
"value": "SELECT ground FROM table_name_98 WHERE opponent = \"portsmouth reserves\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (ground VARCHAR, match VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What ground had a match smaller than 6 and Chelsea Reserves as the opponent?"
},
{
"from": "gpt",
"value": "SELECT ground FROM table_name_17 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Which Team has Losses larger than 5, and a Position of 12?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_53 WHERE losses > 5 AND pos... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)"
},
{
"from": "human",
"value": "How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (position INTEGER, played INTEGER)"
},
{
"from": "human",
"value": "How many positions have Played smaller than 12?"
},
{
"from": "gpt",
"value": "SELECT SUM(position) FROM table_name_79 WHERE played < 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (elector VARCHAR, faction VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "Who was the Prato Elector with a faction of Italian?"
},
{
"from": "gpt",
"value": "SELECT elector FROM table_name_51 WHERE faction = \"it... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (elevator VARCHAR, elector VARCHAR)"
},
{
"from": "human",
"value": "What's the elevator of Jacques D'euse?"
},
{
"from": "gpt",
"value": "SELECT elevator FROM table_name_74 WHERE elector = \"jacques d'euse\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR)"
},
{
"from": "human",
"value": "What's the nationality for Nicholas III?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_97 WHERE elevator = \"nicholas iii\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?"
},
{
"from": "gpt",
"value": "SELECT MIN(mintage) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (mintage INTEGER, theme VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the most mintage with common eider as the theme, and the year less than 2008?"
},
{
"from": "gpt",
"value": "SELECT MAX(mintage) FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (year INTEGER, theme VARCHAR, mintage VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (artist VARCHAR, issue_price VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Who was the artist that had $49.95 as the issue price for the 2010 year?"
},
{
"from": "gpt",
"value": "SELECT artist FROM table_name_50 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is the score for the southern home team?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_78 WHERE home_team = \"southern\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (time VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What time is it for the southern home team?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_82 WHERE home_team = \"southern\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Result of the game on November 24, 1946?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_78 WHERE date = \"november 24, 1946\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)"
},
{
"from": "human",
"value": "What is the Week number on September 6, 1946?"
},
{
"from": "gpt",
"value": "SELECT SUM(week) FROM table_name_48 WHERE date = \"september 6, 1946\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What is the Date of the game with a Record of 5-3?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_53 WHERE record = \"5-3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (rank INTEGER, country VARCHAR)"
},
{
"from": "human",
"value": "What was the lowest ranking rower from Great Britain?"
},
{
"from": "gpt",
"value": "SELECT MIN(rank) FROM table_name_86 WHERE country = \"great britain\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What are the notes for the rower in ranks over 2 and having a time of 7:00:46?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_48 WHERE ra... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (programming VARCHAR, video VARCHAR)"
},
{
"from": "human",
"value": "Which Programming has a Video of audio only?"
},
{
"from": "gpt",
"value": "SELECT programming FROM table_name_62 WHERE video = \"audio only\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR)"
},
{
"from": "human",
"value": "Which Video has a Channel of 25.3?"
},
{
"from": "gpt",
"value": "SELECT video FROM table_name_49 WHERE channel = 25.3"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR)"
},
{
"from": "human",
"value": "Which Video has an Aspect of 16:9?"
},
{
"from": "gpt",
"value": "SELECT video FROM table_name_14 WHERE aspect = \"16:9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (date VARCHAR, michael_signer VARCHAR)"
},
{
"from": "human",
"value": "On which date did Michael Signer earn 4%?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_62 WHERE michael_signer = \"4%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR)"
},
{
"from": "human",
"value": "Which polling source gave Michael Signer 5%?"
},
{
"from": "gpt",
"value": "SELECT source FROM table_name_54 WHERE michael_signer = \"5%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (date VARCHAR, undecided VARCHAR)"
},
{
"from": "human",
"value": "Which date had the undecided percentage at 42%?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_10 WHERE undecided = \"42%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)"
},
{
"from": "human",
"value": "What is the Rich Savage percentage in the poll with Jody Wagner at 30%?"
},
{
"from": "gpt",
"value": "SELECT rich_savage FROM table_name_90 WHERE jody... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR)"
},
{
"from": "human",
"value": "What is the Rich Savage percentage in the poll that had undecideds at 68%?"
},
{
"from": "gpt",
"value": "SELECT rich_savage FROM table_name_82 WHERE und... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent when the record was 31-24?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_40 WHERE record = \"31-24\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What was the score of Game 48?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_43 WHERE game = \"48\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the game at Madison Square Garden?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_19 WHERE location_attend... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR)"
},
{
"from": "human",
"value": "What was the score of the game at Great Western Forum?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_54 WHERE location_attendance = \"g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR)"
},
{
"from": "human",
"value": "Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)?"
},
{
"from": "gpt",
"value": "SELECT romaji_title FROM table_name_78 WHERE japanese_titl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)"
},
{
"from": "human",
"value": "Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?"
},
{
"from": "gpt",
"value": "SELECT romaji_ti... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR)"
},
{
"from": "human",
"value": "Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)"
},
{
"from": "human",
"value": "Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?"
},
{
"from": "gp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR)"
},
{
"from": "human",
"value": "What was the result of nomination for Season 6 after 1995?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_49 WHERE year > 1995 AND e... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What was the category of the award that John Frank Levey was nominated for after 1995?"
},
{
"from": "gpt",
"value": "SELECT category FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR)"
},
{
"from": "human",
"value": "What is the English Translation for the French song by the Artist Rachel?"
},
{
"from": "gpt",
"value": "SELECT english_translatio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (song VARCHAR, artist VARCHAR)"
},
{
"from": "human",
"value": "What is the Song by Artist Robert Cogoi?"
},
{
"from": "gpt",
"value": "SELECT song FROM table_name_69 WHERE artist = \"robert cogoi\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR)"
},
{
"from": "human",
"value": "How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7?"
},
{
"from": "gpt",
"value": "SELECT points FROM table_name_64 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR)"
},
{
"from": "human",
"value": "How much Converted has a Number of 35, and a Withdrawn smaller than 1952?"
},
{
"from": "gpt",
"value": "SELECT COUNT(converted) FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, county VARCHAR)"
},
{
"from": "human",
"value": "What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?"
},
{
"f... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (geo_id INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)"
},
{
"from": "human",
"value": "What is the highest GEO ID for land masses over 38.117 sq mi and over 2.065 sq mi of water?"
},
{
"from": "gpt",
"value": "SELECT MA... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)"
},
{
"from": "human",
"value": "What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?"
},
{... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (class VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What's the class when the identifier is cbf-fm-14?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_94 WHERE identifier = \"cbf-fm-14\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (frequency VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What's the frequency when the identifier is cbf-fm-9?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_47 WHERE identifier = \"cbf-fm-9\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (recnet VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What's the RECNet when the identifier is cbf-fm-20?"
},
{
"from": "gpt",
"value": "SELECT recnet FROM table_name_38 WHERE identifier = \"cbf-fm-20\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR)"
},
{
"from": "human",
"value": "What's the RECNet when the power is 199 watts?"
},
{
"from": "gpt",
"value": "SELECT recnet FROM table_name_9 WHERE power = \"199 watts\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)"
},
{
"from": "human",
"value": "What's the frequency when the identifier is cbf-fm-14 having a class of A?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (ag VARCHAR, transmitter VARCHAR, d3 VARCHAR)"
},
{
"from": "human",
"value": "What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?"
},
{
"from": "gpt",
"value": "SELECT ag FROM table_name_73 WHERE d3 & ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR)"
},
{
"from": "human",
"value": "What is the AG value associated with a D3&4 of 41?"
},
{
"from": "gpt",
"value": "SELECT ag FROM table_name_71 WHERE d3 & 4 = \"41\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (label VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "which Label is in 15 december 1992?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_45 WHERE date = \"15 december 1992\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (album VARCHAR, artist VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "Which Album has an Artist of various artists (compilation), and a Label of laface?"
},
{
"from": "gpt",
"value": "SELECT album FROM table_name_53 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (date VARCHAR, album VARCHAR)"
},
{
"from": "human",
"value": "When has an Album of l'un n'empêche pas l'autre?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_14 WHERE album = \"l'un n'empêche pas l'autre\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (track_s_ VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Track(s) is on 18 november 1985?"
},
{
"from": "gpt",
"value": "SELECT track_s_ FROM table_name_86 WHERE date = \"18 november 1985\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)"
},
{
"from": "human",
"value": "Which Label that has an Album of so red the rose?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_61 WHERE album = \"so red the rose\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (lane INTEGER, name VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the least lane number that Natalie Coughlin was in when she was ranked greater than 1?"
},
{
"from": "gpt",
"value": "SELECT MIN(lane) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (athlete VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "Who is the Athlete with a rowing Time of 6:36.05?"
},
{
"from": "gpt",
"value": "SELECT athlete FROM table_name_49 WHERE time = \"6:36.05\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (song VARCHAR, artist VARCHAR)"
},
{
"from": "human",
"value": "What song was made by the sex pistols?"
},
{
"from": "gpt",
"value": "SELECT song FROM table_name_9 WHERE artist = \"sex pistols\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (song VARCHAR, band_tour_venue VARCHAR)"
},
{
"from": "human",
"value": "What song has the band tour vnue of 6. tool (usa) encore?"
},
{
"from": "gpt",
"value": "SELECT song FROM table_name_66 WHERE band_tour_venue = \"6. tool ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)"
},
{
"from": "human",
"value": "What is the total when the A score was less than 6.6, and the B score was 8.925?"
},
{
"from": "gpt",
"value": "SELECT total FROM table_name_15 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR)"
},
{
"from": "human",
"value": "What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6?"
},
{
"from": "gpt",
"val... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What is the score when watford was the away team?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_59 WHERE away_team = \"watford\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is the score when york city was the home team?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_91 WHERE home_team = \"york city\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (score VARCHAR, game VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What score has a game greater than 29, with 24-6 as the record?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_6 WHERE game > 29 AND rec... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What record has @ detroit as the opponent?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_61 WHERE opponent = \"@ detroit\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (high_assists VARCHAR, high_points VARCHAR)"
},
{
"from": "human",
"value": "What high assists have McWilliams-franklin (22) as the high points?"
},
{
"from": "gpt",
"value": "SELECT high_assists FROM table_name_95 WHERE high_p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)"
},
{
"from": "human",
"value": "What high assists have uic pavilion 3,520 as the location/attendance?"
},
{
"from": "gpt",
"value": "SELECT high_assists FROM table_name_31 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (game VARCHAR, high_rebounds VARCHAR)"
},
{
"from": "human",
"value": "What game has jones (10) as the high rebounds?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_94 WHERE high_rebounds = \"jones (10)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (cores VARCHAR, release_price___usd__ VARCHAR)"
},
{
"from": "human",
"value": "How many cores does the processor with a release price of $426 have?"
},
{
"from": "gpt",
"value": "SELECT cores FROM table_name_28 WHERE release_p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR)"
},
{
"from": "human",
"value": "What was the frequency of the Core i7-3610QE?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_50 WHERE model_number = \"core i7-3610qe\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (cores VARCHAR, part_number_s_ VARCHAR, release_date VARCHAR, release_price___usd__ VARCHAR)"
},
{
"from": "human",
"value": "How many cores does the processor released in April 2012 with a price of $393 and part number av8063801117503 have... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is Japan's Area km²?"
},
{
"from": "gpt",
"value": "SELECT area_km² FROM table_name_45 WHERE country = \"japan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (island VARCHAR, density__per_km²_ VARCHAR)"
},
{
"from": "human",
"value": "Which island has a density (per km²) of 1,368?"
},
{
"from": "gpt",
"value": "SELECT island FROM table_name_98 WHERE density__per_km²_ = \"1,368\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (country VARCHAR, density__per_km²_ VARCHAR)"
},
{
"from": "human",
"value": "Which country has a density (per km²) of 6,814?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_32 WHERE density__per_km²_ = \"6,814\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (island VARCHAR, population VARCHAR)"
},
{
"from": "human",
"value": "Which island has a population of 9,520 (2000)?"
},
{
"from": "gpt",
"value": "SELECT island FROM table_name_20 WHERE population = \"9,520 (2000)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (area_km² VARCHAR, population VARCHAR)"
},
{
"from": "human",
"value": "What is the area km² for a population of 99,685 (2008)?"
},
{
"from": "gpt",
"value": "SELECT area_km² FROM table_name_99 WHERE population = \"99,685 (2008... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (island VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Which island is in the United Kingdom?"
},
{
"from": "gpt",
"value": "SELECT island FROM table_name_43 WHERE country = \"united kingdom\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (pitcher VARCHAR, location VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "Who is the pitcher from the 1983 season in location Kingdome?"
},
{
"from": "gpt",
"value": "SELECT pitcher FROM table_name_40 WHERE location ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (pitcher VARCHAR, opponent VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?"
},
{
"from": "gpt",
"value": "SELECT pitcher FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (opponent VARCHAR, decision VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "Who is the opponent for the 2011 season with a decision of W?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_11 WHERE decisio... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (season VARCHAR, opponent VARCHAR, location VARCHAR, decision VARCHAR)"
},
{
"from": "human",
"value": "What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (decision VARCHAR, opponent VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What was the decision for the 1983 season for the game played against the New York Yankees?"
},
{
"from": "gpt",
"value": "SELECT decision FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (encoding VARCHAR, tracks__side VARCHAR, sectors__track VARCHAR)"
},
{
"from": "human",
"value": "what is the encoding when the tracks/side is 80 and sectors/track is 11?"
},
{
"from": "gpt",
"value": "SELECT encoding FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (bronze INTEGER, total INTEGER)"
},
{
"from": "human",
"value": "What is the highest bronze for less than 2 total trophies?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_16 WHERE total < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (total INTEGER, finish VARCHAR, year_won VARCHAR)"
},
{
"from": "human",
"value": "Which Total has a Finish of t64, and a Year won larger than 2006?"
},
{
"from": "gpt",
"value": "SELECT MAX(total) FROM table_name_64 WHERE fini... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (year_won INTEGER, finish VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Which year won has a Finish of t24, and a Country of england?"
},
{
"from": "gpt",
"value": "SELECT AVG(year_won) FROM table_name_6 WHERE finis... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (bronze INTEGER, gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (school VARCHAR, previous_conference VARCHAR, enrollment VARCHAR)"
},
{
"from": "human",
"value": "Which school has an enrollment of A and had lost river as their previous conference?"
},
{
"from": "gpt",
"value": "SELECT schoo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR)"
},
{
"from": "human",
"value": "What is the average year joined of the 277 county?"
},
{
"from": "gpt",
"value": "SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (ihsaa_class VARCHAR, county INTEGER)"
},
{
"from": "human",
"value": "What is the IHSAA class of the county that is less than 228?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_class FROM table_name_71 WHERE county < 228"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)"
},
{
"from": "human",
"value": "What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?"
},
{
... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.