output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT incumbent FROM table_name_41 WHERE first_elected < 2002 AND district = "maryland 3" | CREATE TABLE table_name_41 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR), Who is the incumbent who was first elected before 2002 from the maryland 3 district? |
SELECT party FROM table_name_73 WHERE district = "maryland 6" | CREATE TABLE table_name_73 (party VARCHAR, district VARCHAR), What is the party of the maryland 6 district? |
SELECT silver FROM table_name_35 WHERE year = 1962 | CREATE TABLE table_name_35 (silver VARCHAR, year VARCHAR), WHAT IS THE SILVER WITH A YEAR OF 1962? |
SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov" | CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR), WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV? |
SELECT MIN(year) FROM table_name_54 WHERE silver = "matthias merz" | CREATE TABLE table_name_54 (year INTEGER, silver VARCHAR), WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ? |
SELECT MIN(year) FROM table_name_20 WHERE bronze = "aimo tepsell" | CREATE TABLE table_name_20 (year INTEGER, bronze VARCHAR), WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL? |
SELECT to_par FROM table_name_72 WHERE player = "greg turner" | CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR), What is To par, when Player is "Greg Turner"? |
SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks" | CREATE TABLE table_name_34 (score VARCHAR, country VARCHAR, player VARCHAR), What is Score, when Country is "United States", and when Player is "Mark Brooks"? |
SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom" | CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR), What is the highest Money ( £ ), when Player is "Peter Hedblom"? |
SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33 | CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR), What is the total number of losses for a draw of 7, and 1 points less than 33? |
SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14 | CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR), What is the total number drawn with goals against less than 55, and a total of 14 losses? |
SELECT COUNT(goals_for) FROM table_name_25 WHERE played < 38 | CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER), What is the total number of goals that has been played less than 38 times? |
SELECT diameter FROM table_name_74 WHERE theme = "dog sled (gold variant)" | CREATE TABLE table_name_74 (diameter VARCHAR, theme VARCHAR), What is the Diameter of the Dog Sled (gold variant) Theme coin? |
SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird" | CREATE TABLE table_name_42 (mintage INTEGER, year VARCHAR, theme VARCHAR), What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin? |
SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird" | CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR), What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird? |
SELECT SUM(year) FROM table_name_15 WHERE issue_price = "$1089.95" AND mintage < 900 | CREATE TABLE table_name_15 (year INTEGER, issue_price VARCHAR, mintage VARCHAR), What is the Year of the Coin with an Issue Price of $1089.95 and Mintage less than 900? |
SELECT theme FROM table_name_95 WHERE issue_price = "$89.95" | CREATE TABLE table_name_95 (theme VARCHAR, issue_price VARCHAR), What is the Theme of the coin with an Issue Price of $89.95? |
SELECT winning_team FROM table_name_58 WHERE date = "11 july" | CREATE TABLE table_name_58 (winning_team VARCHAR, date VARCHAR), What was the winning team on 11 July? |
SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june" | CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR), Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? |
SELECT winning_driver FROM table_name_90 WHERE date = "5 may" | CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR), Who is the winning driver of the race on 5 May? |
SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 june" | CREATE TABLE table_name_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR), What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? |
SELECT date FROM table_name_53 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND circuit = "zolder" | CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR), What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? |
SELECT place FROM table_name_84 WHERE score = 72 - 66 = 138 AND player = "bob may" | CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR), What place did Bob May get when his score was 72-66=138? |
SELECT country FROM table_name_20 WHERE place = "t9" AND player = "stephen ames" | CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR), What country is Stephen Ames from with a place value of t9? |
SELECT place FROM table_name_28 WHERE to_par = "–10" | CREATE TABLE table_name_28 (place VARCHAR, to_par VARCHAR), What place had a To par of –10? |
SELECT country FROM table_name_18 WHERE player = "darren clarke" | CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR), What country is Darren Clarke from? |
SELECT to_par FROM table_name_78 WHERE score = 70 - 69 = 139 | CREATE TABLE table_name_78 (to_par VARCHAR, score VARCHAR), What is the To par value that goes with a Score of 70-69=139? |
SELECT SUM(goals) FROM table_name_43 WHERE season = "2005-06" AND division < 1 | CREATE TABLE table_name_43 (goals INTEGER, season VARCHAR, division VARCHAR), What is the sum of Goals, when Season is "2005-06", and when Division is less than 1? |
SELECT season FROM table_name_42 WHERE goals < 6 AND team = "tarbiat yazd" | CREATE TABLE table_name_42 (season VARCHAR, goals VARCHAR, team VARCHAR), What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"? |
SELECT MIN(division) FROM table_name_15 WHERE goals < 5 AND season = "2002-03" | CREATE TABLE table_name_15 (division INTEGER, goals VARCHAR, season VARCHAR), What is the lowest Division, when Goals is less than 5, and when Season is "2002-03"? |
SELECT AVG(goals) FROM table_name_81 WHERE team = "rah ahan" AND division < 1 | CREATE TABLE table_name_81 (goals INTEGER, team VARCHAR, division VARCHAR), What is the average Goals, when Team is "Rah Ahan", and when Division is less than 1? |
SELECT MIN(capacity) FROM table_name_96 WHERE stadium = "stadion mladina" | CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR), What is the lowest capacity that has stadion mladina as the stadium? |
SELECT stadium FROM table_name_13 WHERE city = "kutina" | CREATE TABLE table_name_13 (stadium VARCHAR, city VARCHAR), What stadium has kutina as the city? |
SELECT h___a FROM table_name_4 WHERE date = "29 july 1992" | CREATE TABLE table_name_4 (h___a VARCHAR, date VARCHAR), What was the H/A on 29 july 1992? |
SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg" | CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR), Which Result F-A has Opponents of rosenborg? |
SELECT depth FROM table_name_35 WHERE time__utc_ = "19:48" | CREATE TABLE table_name_35 (depth VARCHAR, time__utc_ VARCHAR), What is the depth of the quake that occurred at 19:48? |
SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36" | CREATE TABLE table_name_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR), What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36? |
SELECT epicenter FROM table_name_54 WHERE date = "december 1, 2012" | CREATE TABLE table_name_54 (epicenter VARCHAR, date VARCHAR), Where was the epicenter of the quake on December 1, 2012? |
SELECT finish FROM table_name_6 WHERE year_s__won = "1991" | CREATE TABLE table_name_6 (finish VARCHAR, year_s__won VARCHAR), What is Finish, when Year(s) Won is "1991"? |
SELECT year_s__won FROM table_name_65 WHERE finish = "t31" AND player = "nick price" | CREATE TABLE table_name_65 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR), What is Year(s) Won, when Finish is "T31", and when Player is "Nick Price"? |
SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = "1989" | CREATE TABLE table_name_90 (country VARCHAR, total VARCHAR, year_s__won VARCHAR), What is Country, when Total is greater than 283, and when Year(s) Won is "1989"? |
SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-14" | CREATE TABLE table_name_28 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR), born on 1983-03-14, what is the cb's name? |
SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21" | CREATE TABLE table_name_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR), born on 1973-08-21, what is the cf's name? |
SELECT attendance FROM table_name_14 WHERE opponent = "detroit lions" | CREATE TABLE table_name_14 (attendance VARCHAR, opponent VARCHAR), What attendance has detroit lions as the opponent? |
SELECT score FROM table_name_62 WHERE opponent = "houston texans" | CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR), What score has houston texans as the opponent? |
SELECT score FROM table_name_18 WHERE date = "october 31" | CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR), What score has October 31 as the date? |
SELECT record FROM table_name_7 WHERE result = "w" AND date = "january 2" | CREATE TABLE table_name_7 (record VARCHAR, result VARCHAR, date VARCHAR), What record has w as the result, with January 2 as the date? |
SELECT position FROM table_name_69 WHERE team_from = "aik" | CREATE TABLE table_name_69 (position VARCHAR, team_from VARCHAR), What is the position of the team player from Aik? |
SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier" | CREATE TABLE table_name_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR), What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier? |
SELECT SUM(pick__number) FROM table_name_94 WHERE position = "d" AND team_from = "chilliwack bruins" | CREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR), What is the total pick # for the D position from a team from Chilliwack Bruins? |
SELECT league_from FROM table_name_36 WHERE pick__number = 160 | CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR), What is the league that has the pick #160? |
SELECT bowl_game FROM table_name_79 WHERE date = "dec. 26, 2007" | CREATE TABLE table_name_79 (bowl_game VARCHAR, date VARCHAR), What bowl game was played on Dec. 26, 2007? |
SELECT opp_team FROM table_name_49 WHERE score = "21-17" | CREATE TABLE table_name_49 (opp_team VARCHAR, score VARCHAR), Who was the opposing team in the game with a score of 21-17? |
SELECT opp_team FROM table_name_19 WHERE big_ten_team = "purdue" | CREATE TABLE table_name_19 (opp_team VARCHAR, big_ten_team VARCHAR), Who was Purdue's opponent? |
SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl" | CREATE TABLE table_name_53 (score VARCHAR, bowl_game VARCHAR), What was the score of the Insight Bowl? |
SELECT score FROM table_name_66 WHERE bowl_game = "bcs national championship" | CREATE TABLE table_name_66 (score VARCHAR, bowl_game VARCHAR), What was the score of the BCS National Championship game? |
SELECT incumbent FROM table_name_18 WHERE party = "democratic" AND first_elected = 1998 | CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR), Which Democratic incumbent was first elected in 1998? |
SELECT district FROM table_name_62 WHERE party = "democratic" AND first_elected < 1996 | CREATE TABLE table_name_62 (district VARCHAR, party VARCHAR, first_elected VARCHAR), Which district has a Democratic incumbent that was first elected before 1996? |
SELECT incumbent FROM table_name_34 WHERE first_elected = 1996 AND district = "oregon 5" | CREATE TABLE table_name_34 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR), Who is the incumbent for the Oregon 5 District that was elected in 1996? |
SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = "oregon 5" | CREATE TABLE table_name_18 (results VARCHAR, first_elected VARCHAR, district VARCHAR), What was the result of the Oregon 5 District incumbent who was first elected in 1996? |
SELECT location FROM table_name_46 WHERE opponent = "liam mccarty" | CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR), What's was the location for fight against Liam Mccarty? |
SELECT to_par FROM table_name_90 WHERE year_s__won = "1978" | CREATE TABLE table_name_90 (to_par VARCHAR, year_s__won VARCHAR), How many strokes off par was the winner in 1978? |
SELECT AVG(total) FROM table_name_72 WHERE year_s__won = "1978" | CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR), What was the average round score of the player who won in 1978? |
SELECT COUNT(money___) AS £__ FROM table_name_46 WHERE player = "frank nobilo" | CREATE TABLE table_name_46 (money___ VARCHAR, player VARCHAR), What is the money won by Frank Nobilo? |
SELECT score FROM table_name_20 WHERE player = "lee westwood" | CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR), What is Lee Westwood's score? |
SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames" | CREATE TABLE table_name_46 (money___£__ VARCHAR, player VARCHAR), How much money has been won by Stephen Ames? |
SELECT COUNT(drawn) FROM table_name_95 WHERE goals_against = 81 AND lost > 23 | CREATE TABLE table_name_95 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR), How much Drawn has Goals Against of 81, and a Lost larger than 23? |
SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63 | CREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR), Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against? |
SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38 | CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR), How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38? |
SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70 | CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR), Which Position has Goals For of 52, and Goals Against larger than 70? |
SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59 | CREATE TABLE table_name_70 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR), Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59? |
SELECT home_team FROM table_name_92 WHERE visiting_team = "san francisco 49ers" AND result = "42-14" | CREATE TABLE table_name_92 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR), Who is the home team when the san francisco 49ers are visiting with a result of 42-14? |
SELECT MIN(year) FROM table_name_41 WHERE attendance = 77 OFFSET 254 | CREATE TABLE table_name_41 (year INTEGER, attendance VARCHAR), When was the earliest year when the attendance was 77,254? |
SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < 1960 | CREATE TABLE table_name_19 (attendance INTEGER, result VARCHAR, year VARCHAR), What was the total attendance for a result of 7-23 before 1960? |
SELECT location FROM table_name_24 WHERE enzyme = "uroporphyrinogen iii synthase" | CREATE TABLE table_name_24 (location VARCHAR, enzyme VARCHAR), What is the location of the enzyme Uroporphyrinogen iii Synthase? |
SELECT substrate FROM table_name_55 WHERE product = "protoporphyrin ix" | CREATE TABLE table_name_55 (substrate VARCHAR, product VARCHAR), What is protoporphyrin ix's substrate? |
SELECT substrate FROM table_name_47 WHERE omim = 176000 | CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR), Which substrate has an OMIM of 176000? |
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand" | CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR), What was Anders Forsbrand's score when the TO par is +4? |
SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144 | CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR), Which player scored 76-68=144? |
SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd" | CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR), What did United States place when the player was Raymond Floyd? |
SELECT country FROM table_name_9 WHERE player = "raymond floyd" | CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR), What country did Raymond Floyd play for? |
SELECT place FROM table_name_89 WHERE player = "greg norman" | CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR), What is Greg Norman's place? |
SELECT place FROM table_name_46 WHERE player = "paul mcginley" | CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR), What place did Paul McGinley finish in? |
SELECT to_par FROM table_name_26 WHERE player = "tiger woods" | CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR), What is Tiger Woods' to par? |
SELECT to_par FROM table_name_53 WHERE year_s__won > 1999 | CREATE TABLE table_name_53 (to_par VARCHAR, year_s__won INTEGER), What is the to par when the year(s) won is larger than 1999? |
SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 | CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR), What are the apps for less than 61 goals and before rank 6? |
SELECT season FROM table_name_59 WHERE apps > 26 AND club = "barcelona" AND goals > 96 AND rank > 12 | CREATE TABLE table_name_59 (season VARCHAR, rank VARCHAR, goals VARCHAR, apps VARCHAR, club VARCHAR), What season was Barcelona ranked higher than 12, had more than 96 goals and had more than 26 apps? |
SELECT AVG(apps) FROM table_name_96 WHERE goals > 73 AND rank > 13 | CREATE TABLE table_name_96 (apps INTEGER, goals VARCHAR, rank VARCHAR), How many apps when the rank was after 13 and having more than 73 goals? |
SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 2 | CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR), Who was the club having less than 22 apps and ranked less than 2? |
SELECT to_par FROM table_name_66 WHERE country = "united states" AND score = 68 - 65 = 133 | CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, score VARCHAR), With a score of 68-65=133 and United States as the country what is the To par? |
SELECT player FROM table_name_54 WHERE country = "northern ireland" | CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR), Who is the golfer that golfs for Northern Ireland? |
SELECT country FROM table_name_13 WHERE place = "1" | CREATE TABLE table_name_13 (country VARCHAR, place VARCHAR), The golfer in place 1 if from what country? |
SELECT date FROM table_name_90 WHERE tie_no = "26" | CREATE TABLE table_name_90 (date VARCHAR, tie_no VARCHAR), On what date was Tie #26 played? |
SELECT date FROM table_name_93 WHERE tie_no = "13" | CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR), On what date was Tie #13 played? |
SELECT tie_no FROM table_name_5 WHERE away_team = "scunthorpe united" | CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR), For which tie was Scunthorpe United the away team? |
SELECT score FROM table_name_6 WHERE home_team = "leeds united" | CREATE TABLE table_name_6 (score VARCHAR, home_team VARCHAR), What was the final score for the tie where Leeds United was the home team? |
SELECT home_team FROM table_name_97 WHERE away_team = "southampton" | CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR), In the tie where Southampton was the away team, who was the home team? |
SELECT away_team FROM table_name_61 WHERE tie_no = "19" | CREATE TABLE table_name_61 (away_team VARCHAR, tie_no VARCHAR), What is the name of the away team for Tie #19? |
SELECT nominated_work FROM table_name_15 WHERE year = 2000 AND results = "won" | CREATE TABLE table_name_15 (nominated_work VARCHAR, year VARCHAR, results VARCHAR), Which Nominated Work won in 2000? |
SELECT results FROM table_name_23 WHERE year = 2000 | CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR), What was the result in 2000? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.