conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (points INTEGER, year VARCHAR)"
},
{
"from": "human",
"value": "What is the smallest number of points for a 1981 team?"
},
{
"from": "gpt",
"value": "SELECT MIN(points) FROM table_name_15 WHERE year = 1981"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, points VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (rank VARCHAR, class VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What was the rank of the 1983 team in the 250cc class?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_51 WHERE class = \"250cc\" AND year ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which district has joseph t. johnson as an incumbent?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_name_61 WHERE incumbent = \"joseph t. johnso... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result for james o'h. patterson when first elected in 1904?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_4... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (party VARCHAR, result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Which party was re-elected in south carolina 5 district?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_2 WHERE result = \"re-electe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which party was joseph t. johnson in?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_86 WHERE incumbent = \"joseph t. johnson\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Which party was first elected in 1898?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_19 WHERE first_elected = \"1898\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR)"
},
{
"from": "human",
"value": "What is the average earnings made by Greg Norman?"
},
{
"from": "gpt",
"value": "SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = \"greg nor... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what city has a game of friendly and an opponent of tunisia?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_42 WHERE type_of_ga... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (results¹ VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "what are the results of the opponent of spain?"
},
{
"from": "gpt",
"value": "SELECT results¹ FROM table_name_78 WHERE opponent = \"spain\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (results¹ VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "what results are dated december 19?"
},
{
"from": "gpt",
"value": "SELECT results¹ FROM table_name_49 WHERE date = \"december 19\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (city VARCHAR, results¹ VARCHAR)"
},
{
"from": "human",
"value": "what city has the results of 4:2?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_41 WHERE results¹ = \"4:2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (type_of_game VARCHAR, results¹ VARCHAR)"
},
{
"from": "human",
"value": "what type of game has the resuts of 1:0?"
},
{
"from": "gpt",
"value": "SELECT type_of_game FROM table_name_78 WHERE results¹ = \"1:0\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (games INTEGER, years VARCHAR, ranking VARCHAR)"
},
{
"from": "human",
"value": "What is the average Games for 1965–1981, and a Ranking larger than 4?"
},
{
"from": "gpt",
"value": "SELECT AVG(games) FROM table_name_52 WHERE ye... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (years VARCHAR, games VARCHAR)"
},
{
"from": "human",
"value": "What is the Years when games shows 550?"
},
{
"from": "gpt",
"value": "SELECT years FROM table_name_93 WHERE games = 550"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (nationality VARCHAR, ranking VARCHAR)"
},
{
"from": "human",
"value": "What is the Nationality that shows 4 as the ranking?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_57 WHERE ranking = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (location VARCHAR, copies_per_particle VARCHAR, protein VARCHAR)"
},
{
"from": "human",
"value": "Which location has a copies per particle of 0 and a protein of nsp3?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (copies_per_particle VARCHAR, protein VARCHAR)"
},
{
"from": "human",
"value": "How many copies per particle does the protein nsp2 have?"
},
{
"from": "gpt",
"value": "SELECT copies_per_particle FROM table_name_46 WHERE protein... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (rna_segment__gene_ INTEGER, protein VARCHAR, size___s_base_pair__ VARCHAR)"
},
{
"from": "human",
"value": "What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?"
},
{
"from": "gpt",
"value": ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR, location VARCHAR, rna_segment__gene_ VARCHAR)"
},
{
"from": "human",
"value": "What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (bronze VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Who won the bronze medal in Hiroshima?"
},
{
"from": "gpt",
"value": "SELECT bronze FROM table_name_90 WHERE location = \"hiroshima\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Who won the silver medal in the games where Hong Chia-yuh took home bronze?"
},
{
"from": "gpt",
"value": "SELECT silver FROM table_name_5 WHERE bronze = \"hong c... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (location VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Where did Michael Eric Bibat win bronze?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_29 WHERE bronze = \"michael eric bibat\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (gold VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "Who won gold in the games where Pan Cheng-Tsung won silver?"
},
{
"from": "gpt",
"value": "SELECT gold FROM table_name_76 WHERE silver = \"pan cheng-tsung\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?"
},
{
"fro... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR)"
},
{
"from": "human",
"value": "How many Bronzes that has a Nation of italy?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_75 WHERE nation = \"italy\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?"
},
{
"from": "gpt",
"value": "SELECT SU... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (bronze INTEGER, nation VARCHAR)"
},
{
"from": "human",
"value": "Which Bronze has a Nation of spain?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_99 WHERE nation = \"spain\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (opponent VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the competition held at Jeonju?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_20 WHERE venue = \"jeonju\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (january VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "How many Januarys had records of 22-15-6?"
},
{
"from": "gpt",
"value": "SELECT COUNT(january) FROM table_name_14 WHERE record = \"22-15-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (date VARCHAR, event_circuit VARCHAR)"
},
{
"from": "human",
"value": "what is the date of barbagallo raceway?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_69 WHERE event_circuit = \"barbagallo raceway\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (city___state VARCHAR, event_circuit VARCHAR)"
},
{
"from": "human",
"value": "What city is the hidden valley raceway in?"
},
{
"from": "gpt",
"value": "SELECT city___state FROM table_name_79 WHERE event_circuit = \"hidden vall... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR)"
},
{
"from": "human",
"value": "What was the score in game 81?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_60 WHERE game__number = 81"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (record VARCHAR, game__number VARCHAR)"
},
{
"from": "human",
"value": "What was the record after game 79?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_27 WHERE game__number = 79"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team on April 15?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_91 WHERE date = \"april 15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (hanyu_pinyin VARCHAR, hanzi VARCHAR)"
},
{
"from": "human",
"value": "What is the Pinyin for 依兰县?"
},
{
"from": "gpt",
"value": "SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = \"依兰县\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR)"
},
{
"from": "human",
"value": "What is the Pinyin for the item that has a density of 77?"
},
{
"from": "gpt",
"value": "SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (population__2010_11_01_ VARCHAR, hanzi VARCHAR)"
},
{
"from": "human",
"value": "What is the population for the area that has a Hanzi of 延寿县?"
},
{
"from": "gpt",
"value": "SELECT population__2010_11_01_ FROM table_name_30 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the population as of 11-01-2010 for Bayan County?"
},
{
"from": "gpt",
"value": "SELECT population__2010_11_01_ FROM table_name_50 WHERE n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (hanzi VARCHAR, hanyu_pinyin VARCHAR)"
},
{
"from": "human",
"value": "What is the Hanzi for píngfáng qū?"
},
{
"from": "gpt",
"value": "SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = \"píngfáng qū\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "Which Slalom has an overall of 25 in the 2009 season?"
},
{
"from": "gpt",
"value": "SELECT slalom FROM table_name_32 WHERE overall = \"25\" AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (combined VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Which combined score has an overall of 8?"
},
{
"from": "gpt",
"value": "SELECT combined FROM table_name_80 WHERE overall = \"8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (super_g VARCHAR, overall VARCHAR)"
},
{
"from": "human",
"value": "Which Super Ghas a missed season due to injury?"
},
{
"from": "gpt",
"value": "SELECT super_g FROM table_name_50 WHERE overall = \"missed season due to injury\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)"
},
{
"from": "human",
"value": "Name the most events with cuts made more than 6 and top 25 more than 30"
},
{
"from": "gpt",
"value": "SELECT MAX(events) FROM table_name_92 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (top_10 VARCHAR, top_5 INTEGER)"
},
{
"from": "human",
"value": "Name the top-10 with top-5 less than 1"
},
{
"from": "gpt",
"value": "SELECT top_10 FROM table_name_53 WHERE top_5 < 1"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)"
},
{
"from": "human",
"value": "Name the averae top 25 with events less than 0"
},
{
"from": "gpt",
"value": "SELECT AVG(top_25) FROM table_name_31 WHERE events < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (top_10 VARCHAR, top_25 VARCHAR, top_5 VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of top 10 with top 25 less than 2 and top 5 more than 0"
},
{
"from": "gpt",
"value": "SELECT COUNT(top_10) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (year VARCHAR, gauge VARCHAR)"
},
{
"from": "human",
"value": "In what Year is the Gauge 2 ft 6 in?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_22 WHERE gauge = \"2 ft 6 in\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR)"
},
{
"from": "human",
"value": "In what Year is the Works No. 2040-2049?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_80 WHERE works_no = \"2040-2049\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (year VARCHAR, works_no VARCHAR)"
},
{
"from": "human",
"value": "In what Year is the Works no. 2040-2049?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_86 WHERE works_no = \"2040-2049\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (gauge VARCHAR, builder VARCHAR)"
},
{
"from": "human",
"value": "What is the Gauge of Builder Beyer, Peacock?"
},
{
"from": "gpt",
"value": "SELECT gauge FROM table_name_9 WHERE builder = \"beyer, peacock\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which round has the record of 5-0?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_18 WHERE record = \"5-0\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (method VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which method has the record of 11-1?"
},
{
"from": "gpt",
"value": "SELECT method FROM table_name_4 WHERE record = \"11-1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (method VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "The UFC 44 event has what method?"
},
{
"from": "gpt",
"value": "SELECT method FROM table_name_98 WHERE event = \"ufc 44\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which event has 12-1 as a record?"
},
{
"from": "gpt",
"value": "SELECT event FROM table_name_43 WHERE record = \"12-1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (round VARCHAR, res VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "What round was a loss with a record of 12-3?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_22 WHERE res = \"loss\" AND record = \"12-3\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (method VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "The record of 11-1 used what method?"
},
{
"from": "gpt",
"value": "SELECT method FROM table_name_35 WHERE record = \"11-1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (surface VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What surface was the match on November 6, 1982 played on?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_82 WHERE date = \"november 6, 1982\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (placing VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What place did russia finish in?"
},
{
"from": "gpt",
"value": "SELECT COUNT(placing) FROM table_name_26 WHERE team = \"russia\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (wchmp VARCHAR, race VARCHAR, pole VARCHAR)"
},
{
"from": "human",
"value": "What's the WChmp of the race greater than 42 and pole greater than 11?"
},
{
"from": "gpt",
"value": "SELECT COUNT(wchmp) FROM table_name_35 WHERE rac... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (wchmp INTEGER, podiums VARCHAR)"
},
{
"from": "human",
"value": "If podiums are 26, what's the lowest WChmp?"
},
{
"from": "gpt",
"value": "SELECT MIN(wchmp) FROM table_name_49 WHERE podiums = 26"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (podiums VARCHAR, class VARCHAR)"
},
{
"from": "human",
"value": "If the class is total, what is the total number of podiums?"
},
{
"from": "gpt",
"value": "SELECT COUNT(podiums) FROM table_name_93 WHERE class = \"total\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR)"
},
{
"from": "human",
"value": "During race 14, what's the podiums?"
},
{
"from": "gpt",
"value": "SELECT MAX(podiums) FROM table_name_78 WHERE race = 14"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR)"
},
{
"from": "human",
"value": "What Call sign has a City of license of higgston, ga?"
},
{
"from": "gpt",
"value": "SELECT call_sign FROM table_name_95 WHERE city_of_license = \"hi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (city_of_license VARCHAR, erp_w VARCHAR)"
},
{
"from": "human",
"value": "What City of license has a ERP W of 2,000?"
},
{
"from": "gpt",
"value": "SELECT city_of_license FROM table_name_67 WHERE erp_w = \"2,000\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (class VARCHAR, city_of_license VARCHAR)"
},
{
"from": "human",
"value": "What is the Class where City of license is lake oconee, ga?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_84 WHERE city_of_license = \"lake... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (chassis VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What chassis has 2012 as the year?"
},
{
"from": "gpt",
"value": "SELECT chassis FROM table_name_3 WHERE year = 2012"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (engine VARCHAR, start VARCHAR, finish VARCHAR)"
},
{
"from": "human",
"value": "What engine has a start less than 7, and 23 as a finish?"
},
{
"from": "gpt",
"value": "SELECT engine FROM table_name_19 WHERE start < 7 AND finis... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)"
},
{
"from": "human",
"value": "What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?"
},
{
"from": "gpt",
"va... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (start INTEGER, finish VARCHAR, year VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?"
},
{
"from": "gpt",
"value": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (start VARCHAR, year VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What start has a year later than 2010, and chip ganassi racing as the team?"
},
{
"from": "gpt",
"value": "SELECT start FROM table_name_17 WHERE year ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the Football League Trophy competition?"
},
{
"from": "gpt",
"value": "SELECT opponents FROM table_name_84 WHERE competition = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (opponents VARCHAR, venue VARCHAR, competition VARCHAR)"
},
{
"from": "human",
"value": "What was the opponent at the League Play Offs at home?"
},
{
"from": "gpt",
"value": "SELECT opponents FROM table_name_8 WHERE venue = \"ho... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (venue VARCHAR, opponents VARCHAR)"
},
{
"from": "human",
"value": "What venue held that game against the Queens Park Rangers?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_32 WHERE opponents = \"queens park range... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (opponents VARCHAR, venue VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the away game with a score of 5-4?"
},
{
"from": "gpt",
"value": "SELECT opponents FROM table_name_67 WHERE venue = \"aw... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (opponents VARCHAR, competition VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent at the League Cup competition with a score of 3-1?"
},
{
"from": "gpt",
"value": "SELECT opponents FROM table_name_91... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (team_classification VARCHAR, stage VARCHAR)"
},
{
"from": "human",
"value": "Name the team classification for stage of 20"
},
{
"from": "gpt",
"value": "SELECT team_classification FROM table_name_92 WHERE stage = \"20\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (winner VARCHAR, mountains_classification VARCHAR, combativity_award VARCHAR)"
},
{
"from": "human",
"value": "Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant"
},
{
"from"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR)"
},
{
"from": "human",
"value": "Name the general classification with roman kreuziger and points classification of fabian cancellara"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (combativity_award VARCHAR, winner VARCHAR)"
},
{
"from": "human",
"value": "Name the combativity award with winner of luis león sánchez"
},
{
"from": "gpt",
"value": "SELECT combativity_award FROM table_name_13 WHERE winner = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (air_date VARCHAR, order VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?"
},
{
"from": "gpt",
"value": "SELECT SUM(1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (air_date VARCHAR, viewers VARCHAR)"
},
{
"from": "human",
"value": "What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?"
},
{
"from": "gpt",
"value": "SELECT COUNT(18 AS _49) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (viewers VARCHAR, order VARCHAR)"
},
{
"from": "human",
"value": "What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?"
},
{
"from": "gpt",
"value": "SELECT AVG(18 AS _49)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (episode VARCHAR, air_date VARCHAR, viewers VARCHAR)"
},
{
"from": "human",
"value": "What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?"
},
{
"from": "gpt",
"value": "SELECT episode FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (year INTEGER, copies_sold VARCHAR, oricon_position VARCHAR)"
},
{
"from": "human",
"value": "What year sold 1,695,900+ copies with an Oricon position larger than 1?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (copies_sold VARCHAR, oricon_position VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "How many copies were sold where the position is lager than 1 in 1988?"
},
{
"from": "gpt",
"value": "SELECT copies_sold FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the Winning Score on May 29, 1977?"
},
{
"from": "gpt",
"value": "SELECT winning_score FROM table_name_2 WHERE date = \"may 29, 1977\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "On what Date was Patty Sheehan Runner(s)-up?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_62 WHERE runner_s__up = \"patty sheehan\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (date VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "On what Date was Judy Rankin Runner(s)-up?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_64 WHERE runner_s__up = \"judy rankin\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (date VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "On what Date was the Winning score –8 (69-72-70-69=280)?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?"
},
{
"from": "gpt",
"value": "SELECT date FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (date VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "What date did the team play home in Toronto?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_64 WHERE home = \"toronto\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR)"
},
{
"from": "human",
"value": "How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (date VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "When did they play Utah at home?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_38 WHERE home = \"utah\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (opponent VARCHAR, stadium VARCHAR)"
},
{
"from": "human",
"value": "What opponent has balboa stadium as the opponent?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_4 WHERE stadium = \"balboa stadium\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?"
},
{
"from": "gpt",
"value": "SELECT MA... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (headquarters VARCHAR, primary_industry VARCHAR)"
},
{
"from": "human",
"value": "Where is the headquarter of the conglomerate industry?"
},
{
"from": "gpt",
"value": "SELECT headquarters FROM table_name_42 WHERE primary_indust... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_70 WHERE venue = \"hrazd... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (bronze VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "Who was the bronze medal when the Asian Games were held in Busan?"
},
{
"from": "gpt",
"value": "SELECT bronze FROM table_name_81 WHERE location = \"busan\""
... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.