output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT SUM(total) FROM table_name_72 WHERE silver = 0 AND gold = 1
CREATE TABLE table_name_72 (total INTEGER, silver VARCHAR, gold VARCHAR), What is the sum of Total, when Silver is 0, and when Gold is 1?
SELECT MAX(total) FROM table_name_32 WHERE gold = 1 AND nation = "hungary" AND bronze < 0
CREATE TABLE table_name_32 (total INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR), What is the highest Total, when Gold is 1, when Nation is Hungary, and when Bronze is less than 0?
SELECT year FROM table_name_22 WHERE film = "belle of the nineties"
CREATE TABLE table_name_22 (year VARCHAR, film VARCHAR), What is the Year of the Film Belle of the Nineties?
SELECT SUM(year) FROM table_name_25 WHERE film = "klondike annie"
CREATE TABLE table_name_25 (year INTEGER, film VARCHAR), What is the Year of the Film Klondike Annie?
SELECT studio FROM table_name_38 WHERE year > 1933 AND director = "gregory ratoff"
CREATE TABLE table_name_38 (studio VARCHAR, year VARCHAR, director VARCHAR), What is the Studio of the Film with Director Gregory Ratoff after 1933?
SELECT label FROM table_name_88 WHERE year > 2004 AND details = "2xcd" AND title = "sonic seducer cold hands seduction vol. 69"
CREATE TABLE table_name_88 (label VARCHAR, title VARCHAR, year VARCHAR, details VARCHAR), Which label has a year older than 2004 and a 2xcd detail as well as the sonic seducer cold hands seduction vol. 69 title?
SELECT details FROM table_name_9 WHERE label = "out of line" AND year = 2005
CREATE TABLE table_name_9 (details VARCHAR, label VARCHAR, year VARCHAR), Which details has the out of line label and the year of 2005?
SELECT AVG(year) FROM table_name_54 WHERE title = "machineries of joy vol. 4"
CREATE TABLE table_name_54 (year INTEGER, title VARCHAR), What average year contains the title of machineries of joy vol. 4?
SELECT Track AS title FROM table_name_6 WHERE year < 2005
CREATE TABLE table_name_6 (Track VARCHAR, year INTEGER), Which track title has a year lesser thsn 2005?
SELECT college FROM table_name_10 WHERE pick < 25 AND overall > 159 AND round < 10 AND position = "wr"
CREATE TABLE table_name_10 (college VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR, overall VARCHAR), Which college has a pick less than 25, an overall greater than 159, a round less than 10, and wr as the position?
SELECT AVG(overall) FROM table_name_69 WHERE pick < 20 AND college = "north carolina" AND round < 8
CREATE TABLE table_name_69 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR), What is the average overall that has a pick less than 20, North Carolina as the college, with a round less than 8?
SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = "florida"
CREATE TABLE table_name_24 (overall INTEGER, pick VARCHAR, college VARCHAR), How many overalls have a pick greater than 19, with florida as the college?
SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green"
CREATE TABLE table_name_70 (college VARCHAR, overall VARCHAR, name VARCHAR), What college has an overall less than 243, and tony green as the name?
SELECT COUNT(large_end) FROM table_name_5 WHERE taper / ft < 0.6000000000000001
CREATE TABLE table_name_5 (large_end VARCHAR, taper VARCHAR, ft VARCHAR), Which Large end has a Taper/ft smaller than 0.6000000000000001?
SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = "#2"
CREATE TABLE table_name_27 (ft VARCHAR, taper INTEGER, large_end VARCHAR), Which Taper/ft that has a Large end smaller than 0.5, and a Taper of #2?
SELECT MAX(length) FROM table_name_92 WHERE taper = "#15" AND large_end > 1.875
CREATE TABLE table_name_92 (length INTEGER, taper VARCHAR, large_end VARCHAR), Which Length has a Taper of #15, and a Large end larger than 1.875?
SELECT COUNT(angle_from_center_) AS Β° FROM table_name_97 WHERE taper / ft < 0.6000000000000001
CREATE TABLE table_name_97 (angle_from_center_ VARCHAR, taper VARCHAR, ft VARCHAR), Which Angle from center/Β° has a Taper/ft smaller than 0.6000000000000001?
SELECT MAX(grid) FROM table_name_90 WHERE time = "+0.283"
CREATE TABLE table_name_90 (grid INTEGER, time VARCHAR), What driver had the highest grid position with a time of +0.283?
SELECT MAX(laps) FROM table_name_89 WHERE rider = "ilario dionisi"
CREATE TABLE table_name_89 (laps INTEGER, rider VARCHAR), What is the most number of laps run by Ilario Dionisi?
SELECT SUM(laps) FROM table_name_3 WHERE time = "+5.088" AND grid < 17
CREATE TABLE table_name_3 (laps INTEGER, time VARCHAR, grid VARCHAR), What is the total of laps run by the driver with a grid under 17 and a time of +5.088?
SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 10
CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR), What is the driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
SELECT player FROM table_name_28 WHERE score > 72
CREATE TABLE table_name_28 (player VARCHAR, score INTEGER), Who scored more than 72?
SELECT MAX(score) FROM table_name_80 WHERE player = "tsuneyuki nakajima"
CREATE TABLE table_name_80 (score INTEGER, player VARCHAR), What is the top score for tsuneyuki nakajima?
SELECT MIN(score) FROM table_name_5 WHERE to_par = "+2" AND country = "japan"
CREATE TABLE table_name_5 (score INTEGER, to_par VARCHAR, country VARCHAR), What is the low score for TO par +2 in japan?
SELECT place FROM table_name_14 WHERE player = "anders forsbrand"
CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR), What is Anders Forsbrand's Place?
SELECT player FROM table_name_78 WHERE place = "t8"
CREATE TABLE table_name_78 (player VARCHAR, place VARCHAR), What is the T8 Place Player?
SELECT AVG(to_par) FROM table_name_58 WHERE score = 70 - 71 = 141
CREATE TABLE table_name_58 (to_par INTEGER, score VARCHAR), What is the To par of the Player with a Score of 70-71=141?
SELECT partner FROM table_name_20 WHERE opponents_in_the_final = "john bromwich frank sedgman"
CREATE TABLE table_name_20 (partner VARCHAR, opponents_in_the_final VARCHAR), Which Partner has Opponents in the final of john bromwich frank sedgman?
SELECT opponents_in_the_final FROM table_name_18 WHERE score = "4–6, 6–4, 2–6, 4–6"
CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, score VARCHAR), Which Opponents in the final have a Score of 4–6, 6–4, 2–6, 4–6?
SELECT year FROM table_name_88 WHERE score = "5–7, 4–6, 6–3, 1–6"
CREATE TABLE table_name_88 (year VARCHAR, score VARCHAR), Which Year has a Score of 5–7, 4–6, 6–3, 1–6?
SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–6"
CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR), Which Championship has a Score of 2–6, 4–6, 4–6?
SELECT score FROM table_name_92 WHERE opponents_in_the_final = "john bromwich frank sedgman"
CREATE TABLE table_name_92 (score VARCHAR, opponents_in_the_final VARCHAR), Which Score has Opponents in the final of john bromwich frank sedgman?
SELECT opponent FROM table_name_30 WHERE date = "november 17, 1963"
CREATE TABLE table_name_30 (opponent VARCHAR, date VARCHAR), Which Opponent has a Date of november 17, 1963?
SELECT opponent FROM table_name_27 WHERE result = "l 14–10"
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR), Which Opponent has a Result of l 14–10?
SELECT result FROM table_name_87 WHERE week < 11 AND attendance = "17,568"
CREATE TABLE table_name_87 (result VARCHAR, week VARCHAR, attendance VARCHAR), Which Result has a Week smaller than 11, and Attendance of 17,568?
SELECT opponent FROM table_name_40 WHERE result = "w 19–10"
CREATE TABLE table_name_40 (opponent VARCHAR, result VARCHAR), Which Opponent has a Result of w 19–10?
SELECT AVG(goals) FROM table_name_54 WHERE name = "essi sainio"
CREATE TABLE table_name_54 (goals INTEGER, name VARCHAR), What is the average goals for Essi Sainio?
SELECT champion FROM table_name_26 WHERE year = 1988
CREATE TABLE table_name_26 (champion VARCHAR, year VARCHAR), Who were the champions in 1988?
SELECT runner_up FROM table_name_32 WHERE year = 1989
CREATE TABLE table_name_32 (runner_up VARCHAR, year VARCHAR), Who was the runner-up in 1989?
SELECT MIN(december) FROM table_name_66 WHERE score = "4 - 4"
CREATE TABLE table_name_66 (december INTEGER, score VARCHAR), What is the lowest December, when Score is "4 - 4"?
SELECT record FROM table_name_24 WHERE game = 24
CREATE TABLE table_name_24 (record VARCHAR, game VARCHAR), What is Record, when Game is "24"?
SELECT opponent FROM table_name_9 WHERE game = 37
CREATE TABLE table_name_9 (opponent VARCHAR, game VARCHAR), What is Opponent, when Game is "37"?
SELECT attendance FROM table_name_22 WHERE date = "11/09/1935"
CREATE TABLE table_name_22 (attendance VARCHAR, date VARCHAR), How many spectators attended the game on 11/09/1935?
SELECT opponent FROM table_name_3 WHERE result = "w20-0"
CREATE TABLE table_name_3 (opponent VARCHAR, result VARCHAR), Who was the opponent against which the result was w20-0?
SELECT date FROM table_name_66 WHERE result = "w20-0"
CREATE TABLE table_name_66 (date VARCHAR, result VARCHAR), On which date was the result w20-0?
SELECT attendance FROM table_name_27 WHERE result = "w29-7"
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR), How many spectators attended the game that ended in a result of w29-7?
SELECT place FROM table_name_19 WHERE to_par = "–8"
CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR), Which Place has a To par of –8?
SELECT score FROM table_name_18 WHERE place = "3"
CREATE TABLE table_name_18 (score VARCHAR, place VARCHAR), Which Score has a Place of 3?
SELECT AVG(money___) AS $__ FROM table_name_38 WHERE score = 69 - 72 - 72 - 72 = 285
CREATE TABLE table_name_38 (money___ INTEGER, score VARCHAR), Which average money has a Score of 69-72-72-72=285?
SELECT score FROM table_name_20 WHERE place = "t6" AND country = "paraguay"
CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, country VARCHAR), Which Score has a Place of t6, and a Country of paraguay?
SELECT COUNT(round) FROM table_name_39 WHERE college = "texas" AND pick < 25
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, pick VARCHAR), What are the total rounds for the texas college and has a pick smaller than 25?
SELECT MAX(round) FROM table_name_7 WHERE pick < 2
CREATE TABLE table_name_7 (round INTEGER, pick INTEGER), What top round has a pick smaller than 2?
SELECT result FROM table_name_81 WHERE score = "70-73"
CREATE TABLE table_name_81 (result VARCHAR, score VARCHAR), WHAT IS THE RESULT WITH A SCORE OF 70-73?
SELECT date FROM table_name_10 WHERE score = "66-62"
CREATE TABLE table_name_10 (date VARCHAR, score VARCHAR), What is the date with score of 66-62?
SELECT score FROM table_name_94 WHERE record = "1-0"
CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR), WHAT IS THE SCORE WITH A RECORD OF 1-0?
SELECT opponent FROM table_name_89 WHERE score = "72-63"
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR), WHAT IS THE OPPONENT WITH A SCORE OF 72-63?
SELECT COUNT(weight) FROM table_name_89 WHERE distance = "5 Β½ f"
CREATE TABLE table_name_89 (weight VARCHAR, distance VARCHAR), What is the weight number when the distance was 5 Β½ f?
SELECT distance FROM table_name_21 WHERE weight = 6.11
CREATE TABLE table_name_21 (distance VARCHAR, weight VARCHAR), What was the distance when the weight was 6.11?
SELECT race FROM table_name_27 WHERE winner_or_2nd = "voleuse"
CREATE TABLE table_name_27 (race VARCHAR, winner_or_2nd VARCHAR), What was the race when the winner of 2nd was Voleuse?
SELECT winner_or_2nd FROM table_name_91 WHERE result = "–" AND weight = 6.7
CREATE TABLE table_name_91 (winner_or_2nd VARCHAR, result VARCHAR, weight VARCHAR), What was the name of the winner or 2nd when the result was –, and weight was 6.7?
SELECT MAX(weight) FROM table_name_37 WHERE result = "–" AND distance = "7f"
CREATE TABLE table_name_37 (weight INTEGER, result VARCHAR, distance VARCHAR), What is the largest weight wth a Result of –, and a Distance of 7f?
SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = "–"
CREATE TABLE table_name_41 (winner_or_2nd VARCHAR, weight VARCHAR, result VARCHAR), What is the the name of the winner or 2nd with a weight more than 7.3, and the result was –?
SELECT COUNT(total) FROM table_name_5 WHERE silver = "1" AND bronze = "7"
CREATE TABLE table_name_5 (total VARCHAR, silver VARCHAR, bronze VARCHAR), What is the total number of Total, when Silver is 1, and when Bronze is 7?
SELECT bronze FROM table_name_20 WHERE silver = "2" AND nation = "italy"
CREATE TABLE table_name_20 (bronze VARCHAR, silver VARCHAR, nation VARCHAR), What is Bronze, when Silver is 2, and when Nation is Italy?
SELECT gold FROM table_name_79 WHERE total = 6
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR), What is Gold, when Total is 6?
SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium"
CREATE TABLE table_name_91 (gold VARCHAR, silver VARCHAR, nation VARCHAR), What is Gold, when Silver is 5, and when Nation is Belgium?
SELECT gold FROM table_name_71 WHERE bronze = "11"
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR), What is Gold, when Bronze is 11?
SELECT poll_source FROM table_name_98 WHERE undecided = "5%" AND jim_demint__r_ = "58%"
CREATE TABLE table_name_98 (poll_source VARCHAR, undecided VARCHAR, jim_demint__r_ VARCHAR), Which poll source determined undecided of 5% and Jim DeMint (R) of 58%?
SELECT poll_source FROM table_name_38 WHERE other = "15%"
CREATE TABLE table_name_38 (poll_source VARCHAR, other VARCHAR), Which poll source had an other of 15%?
SELECT alvin_greene__d_ FROM table_name_29 WHERE other = "9%"
CREATE TABLE table_name_29 (alvin_greene__d_ VARCHAR, other VARCHAR), What was the vote for Alvin Green when other was 9%?
SELECT alvin_greene__d_ FROM table_name_71 WHERE jim_demint__r_ = "62%"
CREATE TABLE table_name_71 (alvin_greene__d_ VARCHAR, jim_demint__r_ VARCHAR), What was the vote for Alvin Green when Jim DeMint was 62%?
SELECT alvin_greene__d_ FROM table_name_22 WHERE other = "9%"
CREATE TABLE table_name_22 (alvin_greene__d_ VARCHAR, other VARCHAR), What was the vote for Alvin Green when other was 9%?
SELECT place FROM table_name_61 WHERE to_par = "–1"
CREATE TABLE table_name_61 (place VARCHAR, to_par VARCHAR), What is the Place of the Player with a To par of –1?
SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280
CREATE TABLE table_name_1 (place VARCHAR, money___$__ VARCHAR, score VARCHAR), What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280?
SELECT score FROM table_name_16 WHERE place = "4"
CREATE TABLE table_name_16 (score VARCHAR, place VARCHAR), What is the Score of the game of the Player in Place 4?
SELECT to_par FROM table_name_35 WHERE score = 73 - 70 - 71 - 72 = 286
CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR), What is the To par of the Player with a Score of 73-70-71-72=286?
SELECT to_par FROM table_name_9 WHERE place = "4"
CREATE TABLE table_name_9 (to_par VARCHAR, place VARCHAR), What is the To par of the 4 Place Player?
SELECT SUM(money___) AS $__ FROM table_name_37 WHERE place = "5"
CREATE TABLE table_name_37 (money___ INTEGER, place VARCHAR), What is the Money of the Player in Place 5?
SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = "sirapatara kalayapanid"
CREATE TABLE table_name_8 (arranger_s_ VARCHAR, lyricist_s_ VARCHAR), Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?
SELECT MIN(bush_number) FROM table_name_63 WHERE bush_percentage = "65.4%"
CREATE TABLE table_name_63 (bush_number INTEGER, bush_percentage VARCHAR), What is the lowest Bush#, when Bush% is "65.4%"?
SELECT MIN(kerry_number) FROM table_name_38 WHERE others_number = 106 AND bush_number < 3 OFFSET 188
CREATE TABLE table_name_38 (kerry_number INTEGER, others_number VARCHAR, bush_number VARCHAR), What is the lowest Kerry#, when Others# is "106", and when Bush# is less than 3,188?
SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = "1.7%" AND others_number < 75 AND kerry_number > 1 OFFSET 524
CREATE TABLE table_name_85 (bush_number INTEGER, kerry_number VARCHAR, others_percentage VARCHAR, others_number VARCHAR), What is the highest Bush#, when Others% is "1.7%", when Others# is less than 75, and when Kerry# is greater than 1,524?
SELECT date FROM table_name_66 WHERE h___a = "a" AND opponents = "bristol city"
CREATE TABLE table_name_66 (date VARCHAR, h___a VARCHAR, opponents VARCHAR), When did Manchester United play against Bristol City with an H/A of A?
SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts"
CREATE TABLE table_name_95 (attendance INTEGER, opponents VARCHAR), How many people attended the match when Manchester United played against the Hearts?
SELECT AVG(week) FROM table_name_78 WHERE opponent = "denver broncos"
CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR), What is the average number of weeks that the opponent was the Denver Broncos?
SELECT result FROM table_name_67 WHERE date = "november 23, 2003"
CREATE TABLE table_name_67 (result VARCHAR, date VARCHAR), What was the result of the game played on November 23, 2003?
SELECT kickoff_time FROM table_name_53 WHERE week = 1
CREATE TABLE table_name_53 (kickoff_time VARCHAR, week VARCHAR), What was the kickoff time on week 1?
SELECT SUM(fa_cup_goals) FROM table_name_57 WHERE league_cup_goals > 0
CREATE TABLE table_name_57 (fa_cup_goals INTEGER, league_cup_goals INTEGER), Can you tell me the sum of FA Cup Goals that has the League Cup Goals larger than 0?
SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash"
CREATE TABLE table_name_51 (english_translation VARCHAR, artist VARCHAR, language VARCHAR, draw VARCHAR), what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?
SELECT AVG(points) FROM table_name_42 WHERE artist = "kamil mikulčík and nela" AND place > 18
CREATE TABLE table_name_42 (points INTEGER, artist VARCHAR, place VARCHAR), What is the average Points when the artist is kamil mikulčík and nela, and the Place is larger than 18?
SELECT SUM(place) FROM table_name_60 WHERE draw < 12 AND artist = "quartissimo feat. martina"
CREATE TABLE table_name_60 (place INTEGER, draw VARCHAR, artist VARCHAR), what is the place when the draw is less than 12 and the artist is quartissimo feat. martina?
SELECT date FROM table_name_50 WHERE winner = "amer sulaiman"
CREATE TABLE table_name_50 (date VARCHAR, winner VARCHAR), What is the date amer sulaiman won?
SELECT event FROM table_name_24 WHERE prize = "$248,004"
CREATE TABLE table_name_24 (event VARCHAR, prize VARCHAR), What event has a $248,004 prize?
SELECT date FROM table_name_12 WHERE prize = "$322,280"
CREATE TABLE table_name_12 (date VARCHAR, prize VARCHAR), What is the date of the event with a $322,280 prize?
SELECT event FROM table_name_12 WHERE city = "florianopolis"
CREATE TABLE table_name_12 (event VARCHAR, city VARCHAR), What event is in florianopolis?
SELECT winner FROM table_name_16 WHERE city = "lima"
CREATE TABLE table_name_16 (winner VARCHAR, city VARCHAR), Who is the winner in the city of lima?
SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards"
CREATE TABLE table_name_56 (years VARCHAR, player VARCHAR), Alton Lister Category:Articles with hCards has what as the listed years?
SELECT jersey_number_s_ FROM table_name_22 WHERE player = "tom lagarde category:articles with hcards"
CREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR), Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?
SELECT fastest_lap FROM table_name_49 WHERE winning_driver = "seiji ara"
CREATE TABLE table_name_49 (fastest_lap VARCHAR, winning_driver VARCHAR), What is the fastest lap for Seiji Ara?
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1
CREATE TABLE table_name_24 (date VARCHAR, fastest_lap VARCHAR, round VARCHAR), On what date does Yuji Tachikawa have the fastest lap in round 1?