conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (minister VARCHAR, term_start VARCHAR)"
},
{
"from": "human",
"value": "Whose term started on 4 May 2006?"
},
{
"from": "gpt",
"value": "SELECT minister FROM table_name_35 WHERE term_start = \"4 may 2006\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?"
},
{
"from": "gpt",
"value": "SEL... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (bronze INTEGER, rank VARCHAR, silver VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?"
},
{
"from": "gpt",
"value": "SELECT S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (bronze INTEGER, nation VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What's the bronze count for South Africa (RSA) with a total more than 16?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_64 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (election INTEGER, president VARCHAR, inhabitants VARCHAR)"
},
{
"from": "human",
"value": "What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?"
},
{
"from": "gpt",
"value... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (party VARCHAR, president VARCHAR)"
},
{
"from": "human",
"value": "What is the party affiliation for President Stefano Baccelli?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_33 WHERE president = \"stefano baccel... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR)"
},
{
"from": "human",
"value": "What is the average election result for the province of Grosseto from 1766 and prior?"
},
{
"from": "gpt",
"value": "SELECT AVG(election... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of all bills co-sponsored associated with all amen... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR)"
},
{
"from": "human",
"value": "What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (all_bills_cosponsored INTEGER, all_bills_sponsored VARCHAR, all_amendments_sponsored VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendment... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (all_amendments_cosponsored INTEGER, amendments_originally_cosponsored VARCHAR, all_bills_sponsored VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of amendments cosponsored associated with 53 amendments originally cos... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (all_bills_sponsored VARCHAR, bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR)"
},
{
"from": "human",
"value": "What is the number of bills sponsored associated with over 113 bills originally cosponsored and under ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "What is the Lane of the swimmer from Uzbekistan in Heat 1?"
},
{
"from": "gpt",
"value": "SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (station VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "Which station has a frequency of 873khz?"
},
{
"from": "gpt",
"value": "SELECT station FROM table_name_18 WHERE frequency = \"873khz\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (transmitter_location VARCHAR, station VARCHAR)"
},
{
"from": "human",
"value": "Where is the transmitter located for the station voice of vietnam"
},
{
"from": "gpt",
"value": "SELECT transmitter_location FROM table_name_87 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "Which station is from China and has a frequency of 684khz?"
},
{
"from": "gpt",
"value": "SELECT station FROM table_name_79 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (tally VARCHAR, opposition VARCHAR)"
},
{
"from": "human",
"value": "Name the Tally of an Opposition of westmeath?"
},
{
"from": "gpt",
"value": "SELECT tally FROM table_name_76 WHERE opposition = \"westmeath\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (horizontal_bar VARCHAR, parallel_bars VARCHAR, pommel_horse VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (gymnast VARCHAR, floor VARCHAR)"
},
{
"from": "human",
"value": "Who is the gymnast with a floor score of 14.800?"
},
{
"from": "gpt",
"value": "SELECT gymnast FROM table_name_83 WHERE floor = \"14.800\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR)"
},
{
"from": "human",
"value": "What horizontal bar score also has a pommel horse score of 15.250?"
},
{
"from": "gpt",
"value": "SELECT horizontal_bar FROM table_name_60 WHERE po... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (total INTEGER, parallel_bars VARCHAR)"
},
{
"from": "human",
"value": "With a parallel bars score of 14.625 what is the average total?"
},
{
"from": "gpt",
"value": "SELECT AVG(total) FROM table_name_8 WHERE parallel_bars = \"1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the Rank of the Athletes with a Time of 3:43.491?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_21 WHERE time = \"3:43.491\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (notes VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What are the Notes of the Athletes from Germany?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_41 WHERE country = \"germany\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (rank VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the Rank of the Athletes from Ukraine?"
},
{
"from": "gpt",
"value": "SELECT COUNT(rank) FROM table_name_65 WHERE country = \"ukraine\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (location VARCHAR, winning_skip VARCHAR)"
},
{
"from": "human",
"value": "What location did Sherry Middaugh win in?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_13 WHERE winning_skip = \"sherry middaugh\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (event VARCHAR, winning_skip VARCHAR)"
},
{
"from": "human",
"value": "What event did Patti Lank have the winning skip?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_11 WHERE winning_skip = \"patti lank\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (date VARCHAR, runner_up_skip VARCHAR)"
},
{
"from": "human",
"value": "What date shows Binia Feltscher-Beeli as the runner-up skip?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_68 WHERE runner_up_skip = \"binia f... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (runner_up_skip VARCHAR, winning_skip VARCHAR)"
},
{
"from": "human",
"value": "What person was the runner-up skip when Julie Reddick was the winning skip?"
},
{
"from": "gpt",
"value": "SELECT runner_up_skip FROM table_name_61... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)"
},
{
"from": "human",
"value": "What's the Yellow fertility rate when Brazil is 0,43407?"
},
{
"from": "gpt",
"value": "SELECT yellow_109_percentage FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (area__km_2__ INTEGER, population__2011_ VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the area in km with a population of 110 in 2011?"
},
{
"from": "gpt",
"value": "SELECT SUM(area__km_2__) FROM table_name_59 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (population__2006_ INTEGER, population__2011_ VARCHAR, area__km_2__ VARCHAR)"
},
{
"from": "human",
"value": "What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?"
},
{
"from": "gpt",
"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (lane INTEGER, react VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest lane with a 0.216 react?"
},
{
"from": "gpt",
"value": "SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER)"
},
{
"from": "human",
"value": "What is the total rank for the lane before 2?"
},
{
"from": "gpt",
"value": "SELECT SUM(rank) FROM table_name_87 WHERE lane < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (genre VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What genre is the game from the year 2007?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_29 WHERE year = 2007"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (game VARCHAR, platform_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the Game that came out before the year 2009 for the Playstation 3?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_39 WHERE p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (year INTEGER, game VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest year that had the Legend of Zelda: Twilight Princess game?"
},
{
"from": "gpt",
"value": "SELECT MIN(year) FROM table_name_90 WHERE game = \"the... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent on November 15, 1981?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_70 WHERE date = \"november 15, 1981\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "Which Debut year has a Player of noel carroll, and Games smaller than 12?"
},
{
"from": "gpt",
"value": "SELECT MAX(debut_year) FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (goals INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "Which Goals have a Player of noel carroll?"
},
{
"from": "gpt",
"value": "SELECT MIN(goals) FROM table_name_4 WHERE player = \"noel carroll\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "How many debut years have Years at club of 1950–1951, and Games larger than 14?"
},
{
"from": "gpt",
"value": "SELECT SUM(debut_year) F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (title VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "Which title has origianal sound entertainment as its label?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_85 WHERE label = \"origianal sound entertai... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR)"
},
{
"from": "human",
"value": "What was the latest year of release for the greatest hits title?"
},
{
"from": "gpt",
"value": "SELECT MAX(year_of_release) FROM table_name_71 WHERE titl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (label VARCHAR, country_of_release VARCHAR)"
},
{
"from": "human",
"value": "When the country of release is EU, what is the label name?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_39 WHERE country_of_release = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (latitude INTEGER, township VARCHAR, geo_id VARCHAR)"
},
{
"from": "human",
"value": "what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?"
},
{
"from": "gpt",
"value": "SELECT MA... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)"
},
{
"from": "human",
"value": "what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?"
},
{
"from": "gpt",
"value": "SELECT AVG(lati... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (geo_id INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR)"
},
{
"from": "human",
"value": "what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?"
},
{
"from": "gpt",
"value": "SELECT MAX(g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (year_joined INTEGER, mascot VARCHAR)"
},
{
"from": "human",
"value": "Name the lowest Year Joined which has a Mascot of pioneers?"
},
{
"from": "gpt",
"value": "SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = \"pione... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR)"
},
{
"from": "human",
"value": "Name the IHSAA Class of Mascot of pioneers?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_class FROM table_name_32 WHERE mascot = \"pioneers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (ihsaa_class VARCHAR, county VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Name the IHSAA Class of 55 morgan and a School of mooresville?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_class FROM table_name_8 WHERE coun... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (location VARCHAR, mascot VARCHAR)"
},
{
"from": "human",
"value": "where is Mascot of quakers?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_35 WHERE mascot = \"quakers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (ihsaa_class VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What kind of IHSAA Class has a School of decatur central?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_class FROM table_name_2 WHERE school = \"decatur centra... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)"
},
{
"from": "human",
"value": "What studio had the director Peter Lord Nick Park before 2004?"
},
{
"from": "gpt",
"value": "SELECT studio_s_ FROM table_name_57 WHERE year <... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)"
},
{
"from": "human",
"value": "What studio did Paul Greengrass direct in 2007?"
},
{
"from": "gpt",
"value": "SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND direc... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (a_score INTEGER, b_score VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?"
},
{
"from": "gpt",
"value": "SELECT SUM(a_sc... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (quantity VARCHAR, year_s__of_manufacture VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "what is the quantity when the year of manufacture is 1900 and the class is mc?"
},
{
"from": "gpt",
"value": "SELECT quantity FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (class VARCHAR, quantity VARCHAR)"
},
{
"from": "human",
"value": "what is the class when the quantity is 4?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_96 WHERE quantity = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "Who were the opponents on Week 8?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_89 WHERE week = 8"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (change__12_11_ VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "When the city is agadir what is the change (12/11)?"
},
{
"from": "gpt",
"value": "SELECT change__12_11_ FROM table_name_8 WHERE city = \"agadir\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR)"
},
{
"from": "human",
"value": "What is the catalog number of Venus Demilo's A-side?"
},
{
"from": "gpt",
"value": "SELECT catalog_number FROM table_name_30 WHERE a_side = \"venus demil... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (year VARCHAR, b_side VARCHAR)"
},
{
"from": "human",
"value": "What year did the B-Side of Just Squeeze Me come out?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_46 WHERE b_side = \"just squeeze me\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (label VARCHAR, catalog_number VARCHAR)"
},
{
"from": "human",
"value": "What label has the 817 catalog?"
},
{
"from": "gpt",
"value": "SELECT label FROM table_name_92 WHERE catalog_number = \"817\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (a_side VARCHAR, b_side VARCHAR)"
},
{
"from": "human",
"value": "What is the A-side for it Never Entered My Mind, Part 2?"
},
{
"from": "gpt",
"value": "SELECT a_side FROM table_name_75 WHERE b_side = \"it never entered my min... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (a_side VARCHAR, catalog_number VARCHAR)"
},
{
"from": "human",
"value": "What is the A-side for catalog 902?"
},
{
"from": "gpt",
"value": "SELECT a_side FROM table_name_87 WHERE catalog_number = \"902\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (class VARCHAR, type VARCHAR)"
},
{
"from": "human",
"value": "What is the class of the a1 bm type?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_10 WHERE type = \"a1 bm\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (quantity VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "What is the quantity of the aw class?"
},
{
"from": "gpt",
"value": "SELECT quantity FROM table_name_5 WHERE class = \"aw\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (class VARCHAR, quantity VARCHAR)"
},
{
"from": "human",
"value": "What is the class with 1 quantity?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_6 WHERE quantity = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (railway_number_s_ VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "What is the railway number of the aw class?"
},
{
"from": "gpt",
"value": "SELECT railway_number_s_ FROM table_name_3 WHERE class = \"aw\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (game VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What was the game when the record was 31-15?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_80 WHERE record = \"31-15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (date VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the date of the game with a score of W 106-100?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_2 WHERE score = \"w 106-100\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (speed VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the speed for rank 1?"
},
{
"from": "gpt",
"value": "SELECT speed FROM table_name_26 WHERE rank = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (team VARCHAR, rank VARCHAR, rider VARCHAR)"
},
{
"from": "human",
"value": "What team has a Rank Ret, and rider Frank A Applebee?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_92 WHERE rank = \"ret\" AND rider = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (internet_explorer VARCHAR, chrome VARCHAR)"
},
{
"from": "human",
"value": "What internet explorer has 29.07% for the chrome?"
},
{
"from": "gpt",
"value": "SELECT internet_explorer FROM table_name_91 WHERE chrome = \"29.07%\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (other_mozilla VARCHAR, safari VARCHAR)"
},
{
"from": "human",
"value": "What is the other mozilla that has 9.41% for the safari?"
},
{
"from": "gpt",
"value": "SELECT other_mozilla FROM table_name_71 WHERE safari = \"9.41%\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (other_mozilla VARCHAR, period VARCHAR)"
},
{
"from": "human",
"value": "What other mozilla has January 2010 as the period?"
},
{
"from": "gpt",
"value": "SELECT other_mozilla FROM table_name_80 WHERE period = \"january 2010\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (internet_explorer VARCHAR, safari VARCHAR, chrome VARCHAR)"
},
{
"from": "human",
"value": "What internet explorer has 7.89% as the safari, and 8.22% as the chrome?"
},
{
"from": "gpt",
"value": "SELECT internet_explorer FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (period VARCHAR, other_mozilla VARCHAR)"
},
{
"from": "human",
"value": "What period has 0.25% as the other mozilla?"
},
{
"from": "gpt",
"value": "SELECT period FROM table_name_66 WHERE other_mozilla = \"0.25%\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (socket VARCHAR, release_price___usd__ VARCHAR, turbo VARCHAR)"
},
{
"from": "human",
"value": "Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?"
},
{
"from": "gpt",
"value": "SELECT socket FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (l2_cache VARCHAR, model_number VARCHAR)"
},
{
"from": "human",
"value": "What is the L2 cache for the core i7-2635QM?"
},
{
"from": "gpt",
"value": "SELECT l2_cache FROM table_name_65 WHERE model_number = \"core i7-2635qm\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_96 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR)"
},
{
"from": "human",
"value": "What is the release price for the GPU frequency of standard power, embedded?"
},
{
"from": "gpt",
"value": "SELECT release_price___usd__ FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (socket VARCHAR, turbo VARCHAR)"
},
{
"from": "human",
"value": "What is the socked when the turbo is 8/8/10/11?"
},
{
"from": "gpt",
"value": "SELECT socket FROM table_name_40 WHERE turbo = \"8/8/10/11\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (round VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which round did the bout that led to a 1-0 record end in?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_42 WHERE record = \"1-0\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (time VARCHAR, lane VARCHAR, nationality VARCHAR)"
},
{
"from": "human",
"value": "Which Time has a Lane smaller than 2, and a Nationality of spain?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_73 WHERE lane < 2 A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (heat VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "How many Heats have a Name of miguel molina?"
},
{
"from": "gpt",
"value": "SELECT COUNT(heat) FROM table_name_39 WHERE name = \"miguel molina\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (league VARCHAR, fa_cup VARCHAR, fa_trophy VARCHAR)"
},
{
"from": "human",
"value": "what is the league when the fa cup is qr4 and the fa trophy is qf?"
},
{
"from": "gpt",
"value": "SELECT league FROM table_name_46 WHERE fa_cu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (fa_trophy VARCHAR, leading_scorer VARCHAR)"
},
{
"from": "human",
"value": "what is the fa trophy when the leading scorer is lee gregory (8)?"
},
{
"from": "gpt",
"value": "SELECT fa_trophy FROM table_name_66 WHERE leading_sco... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (year VARCHAR, position VARCHAR, leading_scorer VARCHAR)"
},
{
"from": "human",
"value": "what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)?"
},
{
"from": "gpt",
"value": "SELECT year... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "When the Altrincham was the home team what was the tie no?"
},
{
"from": "gpt",
"value": "SELECT tie_no FROM table_name_52 WHERE home_team = \"altrincham\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (tie_no VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "Crawley Town as the home team has what as the tie no?"
},
{
"from": "gpt",
"value": "SELECT tie_no FROM table_name_77 WHERE home_team = \"crawley town\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (nationality VARCHAR, rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the nationality of the swimmer with a rank over 2 with a time of 55.77?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (heat INTEGER, nationality VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest heat with a finisher from the Czech Republic and a rank over 41?"
},
{
"from": "gpt",
"value": "SELECT MIN(heat) FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (heat VARCHAR, name VARCHAR, lane VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of heats with a finisher named Gregor Tait in lanes over 6?"
},
{
"from": "gpt",
"value": "SELECT COUNT(heat) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (time VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the time of the swimmer in rank 40?"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_47 WHERE rank = 40"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (series VARCHAR, director VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "From what series was Tokio Jokio, directed by Norm McCabe?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_name_35 WHERE director = \"no... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (release_date VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "When was Inki and the Minah Bird released?"
},
{
"from": "gpt",
"value": "SELECT release_date FROM table_name_71 WHERE title = \"inki and the minah bird\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (series VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "From what series is Peck Up Your Troubles?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_name_66 WHERE title = \"peck up your troubles\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (civil_liberties INTEGER, year VARCHAR, political_rights VARCHAR, president VARCHAR)"
},
{
"from": "human",
"value": "When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (year INTEGER, political_rights VARCHAR, status VARCHAR, civil_liberties VARCHAR)"
},
{
"from": "human",
"value": "What is the year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political ri... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (political_rights INTEGER, year VARCHAR)"
},
{
"from": "human",
"value": "What is the least political rights rank in 1976?"
},
{
"from": "gpt",
"value": "SELECT MIN(political_rights) FROM table_name_54 WHERE year = 1976"
}
] | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.