instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What class had 1 made and fleet number of 406? | SELECT Class FROM table WHERE Quantity made = 1 AND Fleet number(s) = 406 |
Translate the following into a SQL query | What class has 0 preserved and 2 made? | SELECT Class FROM table WHERE Quantity preserved = 0 AND Quantity made = 2 |
Translate the following into a SQL query | What rank has a population of 4839400? | SELECT MIN Rank FROM table WHERE Population = 4839400 |
Translate the following into a SQL query | What's the rank of the Province-Level Municipality? | SELECT Rank FROM table WHERE Definition = province-level municipality |
Translate the following into a SQL query | What rank was Core Districts + Inner Suburbs and had a population of 10123000? | SELECT MAX Rank FROM table WHERE Definition = core districts + inner suburbs AND Population = 10123000 |
Translate the following into a SQL query | What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"? | SELECT Points FROM table WHERE Draws < 7 AND Wins < 16 AND Goals for = 35 |
Translate the following into a SQL query | What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5? | SELECT COUNT Losses FROM table WHERE Position > 8 AND Goals for > 34 AND Points = 25 AND Draws < 5 |
Translate the following into a SQL query | What is the average Wins, when Points is less than "19"? | SELECT AVG Wins FROM table WHERE Points < 19 |
Translate the following into a SQL query | What is the lowest Goals, when Played is greater than 30? | SELECT MIN Goals for FROM table WHERE Played > 30 |
Translate the following into a SQL query | What is the sum of Played, when Losses is "13", and when Position is greater than 11? | SELECT SUM Played FROM table WHERE Losses = 13 AND Position > 11 |
Translate the following into a SQL query | What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30? | SELECT MIN Wins FROM table WHERE Losses < 10 AND Goal Difference < 46 AND Goals for < 63 AND Played < 30 |
Translate the following into a SQL query | How many viewed the episode gary gets boundaries? | SELECT COUNT Viewers FROM table WHERE Episode = gary gets boundaries |
Translate the following into a SQL query | What episode had 6.71 viewers? | SELECT Episode FROM table WHERE Viewers = 6.71 |
Translate the following into a SQL query | When did the episode air that had 7.3 viewers? | SELECT Air Date FROM table WHERE Viewers = 7.3 |
Translate the following into a SQL query | What day in March is the game with a 48-13-11 record and a game number less than 72? | SELECT SUM March FROM table WHERE Record = 48-13-11 AND Game < 72 |
Translate the following into a SQL query | Who is the opponent of game 75? | SELECT Opponent FROM table WHERE Game = 75 |
Translate the following into a SQL query | What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent? | SELECT MIN Game FROM table WHERE March > 2 AND Opponent = minnesota north stars |
Translate the following into a SQL query | The winner, Craig Lowndes, was in what location/state? | SELECT Location / State FROM table WHERE Winner = craig lowndes |
Translate the following into a SQL query | The Eastern Creek Raceway circuit is on what date? | SELECT Date FROM table WHERE Circuit = eastern creek raceway |
Translate the following into a SQL query | Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state? | SELECT Location / State FROM table WHERE Team = castrol perkins motorsport AND Winner = russell ingall |
Translate the following into a SQL query | What shows for 1998 when 1996 is 1R, and 2002 is not held? | SELECT 1998 FROM table WHERE 1996 = 1r AND 2002 = not held |
Translate the following into a SQL query | What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R? | SELECT 1996 FROM table WHERE 1994 = a AND 2003 = a AND 2001 = 1r |
Translate the following into a SQL query | What shows for 1991 when 2002 is 2R? | SELECT 1991 FROM table WHERE 2002 = 2r |
Translate the following into a SQL query | What shows for 2006 when 1999 is Grand Slam Tournaments? | SELECT 2006 FROM table WHERE 1990 = grand slam tournaments |
Translate the following into a SQL query | What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? | SELECT 2006 FROM table WHERE 2000 = 1r AND 1996 = a AND Tournament = cincinnati masters |
Translate the following into a SQL query | What is the Tournament when the 1990 is Olympic Games? | SELECT Tournament FROM table WHERE 1990 = olympic games |
Translate the following into a SQL query | Which Location has a Record of 0-1? | SELECT Location FROM table WHERE Record = 0-1 |
Translate the following into a SQL query | What is Record, when Method is "Technical Submission (Rear Naked Choke)"? | SELECT Record FROM table WHERE Method = technical submission (rear naked choke) |
Translate the following into a SQL query | What is the sum of Round(s), when Method is "Submission (Banana Split)"? | SELECT SUM Round FROM table WHERE Method = submission (banana split) |
Translate the following into a SQL query | What is Time, when Event is "GCM: Demolition 1"? | SELECT Time FROM table WHERE Event = gcm: demolition 1 |
Translate the following into a SQL query | Which year was "the 12 year old boy" performed? | SELECT Year FROM table WHERE Title = "the 12 year old boy" |
Translate the following into a SQL query | What year had a 100m freestyle event? | SELECT COUNT Year Set FROM table WHERE Event = 100m freestyle |
Translate the following into a SQL query | What event had a short course in 2010? | SELECT Event FROM table WHERE Long Course/Short Course = short course AND Year Set = 2010 |
Translate the following into a SQL query | What year did a short course have a time of 7:51.80? | SELECT COUNT Year Set FROM table WHERE Long Course/Short Course = short course AND Time = 7:51.80 |
Translate the following into a SQL query | What was the latest year that had a 100m freestyle? | SELECT MAX Year Set FROM table WHERE Event = 100m freestyle |
Translate the following into a SQL query | In what place was the song that had a draw of 3? | SELECT Place FROM table WHERE Draw = 3 |
Translate the following into a SQL query | What is the number of points for the 7th placed song with a draw greater than 8? | SELECT MIN Points FROM table WHERE Place = 7th AND Draw > 8 |
Translate the following into a SQL query | How many points did Joe O'Meara have? | SELECT COUNT Points FROM table WHERE Artist = joe o'meara |
Translate the following into a SQL query | What was the draw for "Feel The Pain" which placed in 2nd and had more than 79 points? | SELECT AVG Draw FROM table WHERE Place = 2nd AND Song = "feel the pain" AND Points > 79 |
Translate the following into a SQL query | How many points did Linda Martin have? | SELECT COUNT Points FROM table WHERE Artist = linda martin |
Translate the following into a SQL query | In what place did "feel the pain" come in? | SELECT Place FROM table WHERE Song = "feel the pain" |
Translate the following into a SQL query | WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES? | SELECT Score FROM table WHERE Week > 13 AND Visitor = montreal alouettes |
Translate the following into a SQL query | WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25? | SELECT AVG Week FROM table WHERE Date = july 25 |
Translate the following into a SQL query | What was the tie for the Crystal Palace team? | SELECT Tie no FROM table WHERE Home team = crystal palace |
Translate the following into a SQL query | What is the attendance for No. 15 tie? | SELECT Attendance FROM table WHERE Tie no = 15 |
Translate the following into a SQL query | WHich Open Cup has a Division larger than 4? | SELECT Open Cup FROM table WHERE Division > 4 |
Translate the following into a SQL query | Name the League which has a Regular Season of 3rd, atlantic? | SELECT League FROM table WHERE Regular Season = 3rd, atlantic |
Translate the following into a SQL query | WHICH Regular Season has a Division of 4? | SELECT Regular Season FROM table WHERE Division = 4 |
Translate the following into a SQL query | WHICH Regular Season has a League of npsl, and a Year of 2008? | SELECT Regular Season FROM table WHERE League = npsl AND Year = 2008 |
Translate the following into a SQL query | NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013? | SELECT Playoffs FROM table WHERE League = npsl AND Open Cup = did not enter AND Year = 2013 |
Translate the following into a SQL query | What is the average February that has 18-26-10 as the record, with a game less than 54? | SELECT AVG February FROM table WHERE Record = 18-26-10 AND Game < 54 |
Translate the following into a SQL query | How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53? | SELECT COUNT February FROM table WHERE Opponent = montreal canadiens AND Record = 18-25-10 AND Game > 53 |
Translate the following into a SQL query | what is the surface when the opponent is selma babic? | SELECT Surface FROM table WHERE Opponent = selma babic |
Translate the following into a SQL query | what is the surface when the round is gii play-offs and the edition is 2009 fed cup europe/africa group ii? | SELECT Surface FROM table WHERE Round = gii play-offs AND Edition = 2009 fed cup europe/africa group ii |
Translate the following into a SQL query | what is the date when the surface is clay and the result is 6β7 (4β7) , 1β6? | SELECT Date FROM table WHERE Surface = clay AND Result = 6β7 (4β7) , 1β6 |
Translate the following into a SQL query | who is the opponent when norway is against? | SELECT Opponent FROM table WHERE Against = norway |
Translate the following into a SQL query | What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"? | SELECT Position FROM table WHERE Weight > 220 AND Player = travis knight |
Translate the following into a SQL query | What is the lowest Number, when College is "University of Alabama"? | SELECT MIN Number FROM table WHERE College = university of alabama |
Translate the following into a SQL query | What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32? | SELECT COUNT Weight FROM table WHERE Position = forward/center AND Player = othella harrington AND Number < 32 |
Translate the following into a SQL query | What is Years Exp, when Height is "7-2"? | SELECT Years Exp FROM table WHERE Height = 7-2 |
Translate the following into a SQL query | What is Position, when Weight is greater than 200, when Number is less than 44, when Years Exp is 9, and when College is "University of New Mexico"? | SELECT Position FROM table WHERE Weight > 200 AND Number < 44 AND Years Exp = 9 AND College = university of new mexico |
Translate the following into a SQL query | What was the release price of the Atom Z510PT processor? | SELECT Release price ( USD ) FROM table WHERE Model number = atom z510pt |
Translate the following into a SQL query | Which part number was used for the Atom Z500 processor? | SELECT Part number(s) FROM table WHERE Model number = atom z500 |
Translate the following into a SQL query | What was the multiplier of the processor with sSpec number of SLGPR(C0) and a release price of N/A? | SELECT Mult. FROM table WHERE Release price ( USD ) = n/a AND sSpec number = slgpr(c0) |
Translate the following into a SQL query | Who is the runner-up at the Chicago challenge? | SELECT Runner(s)-up FROM table WHERE Tournament = chicago challenge |
Translate the following into a SQL query | Who is the runner-up of Atlantic city classic? | SELECT Runner(s)-up FROM table WHERE Tournament = atlantic city classic |
Translate the following into a SQL query | What is the date of the U.S. Women's open? | SELECT Date FROM table WHERE Tournament = u.s. women's open |
Translate the following into a SQL query | What is the margin of victory of the gna/glendale federal classic? | SELECT Margin of victory FROM table WHERE Tournament = gna/glendale federal classic |
Translate the following into a SQL query | Which class has *buranaz as Part 4? | SELECT Class FROM table WHERE Part 4 = *buranaz |
Translate the following into a SQL query | What is the verb meaning for *bar as Part 2? | SELECT Verb meaning FROM table WHERE Part 2 = *bar |
Translate the following into a SQL query | Which class has *alanaz as Part 4? | SELECT Class FROM table WHERE Part 4 = *alanaz |
Translate the following into a SQL query | Which class has *fraus as Part 2? | SELECT Class FROM table WHERE Part 2 = *fraus |
Translate the following into a SQL query | what is the transfer fee for evilasio? | SELECT Transfer fee FROM table WHERE Name = evilasio |
Translate the following into a SQL query | What team did James Vanderberg belong to when the Completions had a status of redshirt? | SELECT Team FROM table WHERE Completions = redshirt |
Translate the following into a SQL query | What were the number of completions for James Vanderberg on Iowa when his yards were 45? | SELECT Completions FROM table WHERE Team = iowa AND Yards = 45 |
Translate the following into a SQL query | What was the team Vanderberg belonged to when there was 42 completions? | SELECT Team FROM table WHERE Completions = 42 |
Translate the following into a SQL query | What number of attempts were recorded when the completions were 223? | SELECT Attempts FROM table WHERE Completions = 223 |
Translate the following into a SQL query | In what year was the number of attempts 888? | SELECT Year FROM table WHERE Attempts = 888 |
Translate the following into a SQL query | What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249? | SELECT Attempts FROM table WHERE Team = iowa AND Yards = 2,249 |
Translate the following into a SQL query | Which Leading Scorer has an Opponent of @ indiana? | SELECT Leading Scorer FROM table WHERE Opponent = @ indiana |
Translate the following into a SQL query | Which Leading Scorer has a Record of 3-3? | SELECT Leading Scorer FROM table WHERE Record = 3-3 |
Translate the following into a SQL query | Which Attendance has an Opponent of @ phoenix, and a Leading Scorer of sophia young (18)? | SELECT MAX Attendance FROM table WHERE Opponent = @ phoenix AND Leading Scorer = sophia young (18) |
Translate the following into a SQL query | What is the date when tie number is 6? | SELECT Date FROM table WHERE Tie no = 6 |
Translate the following into a SQL query | Who is the home team with tie number 9? | SELECT Home team FROM table WHERE Tie no = 9 |
Translate the following into a SQL query | Who is the home team when Sheffield United is the away team? | SELECT Home team FROM table WHERE Away team = sheffield united |
Translate the following into a SQL query | What is the date when Aston Villa is the away team? | SELECT Date FROM table WHERE Away team = aston villa |
Translate the following into a SQL query | Who is the home team on 31 January 1951 when away team was Sheffield United? | SELECT Home team FROM table WHERE Date = 31 january 1951 AND Away team = sheffield united |
Translate the following into a SQL query | What was the attendance during the match that took place after week 11 against the washington redskins? | SELECT MAX Attendance FROM table WHERE Week > 11 AND Opponent = washington redskins |
Translate the following into a SQL query | WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3? | SELECT To par FROM table WHERE Place = t3 AND Player = geoff ogilvy |
Translate the following into a SQL query | What year has the ride flight deck and a rating of less than 5? | SELECT COUNT Year Opened FROM table WHERE Ride = flight deck AND Rating < 5 |
Translate the following into a SQL query | What is the highest rating after 1993 with a minumum height of 36"? | SELECT MAX Rating FROM table WHERE Year Opened > 1993 AND Minimum Height = 36" |
Translate the following into a SQL query | What is the ride manufacturer and type with a minimum height of 54", after the year 1991? | SELECT Ride Manufacturer and Type FROM table WHERE Minimum Height = 54" AND Year Opened > 1991 |
Translate the following into a SQL query | when was birth when death place is n.a., other names is n.a. and name is wahid-un-nisa begum sahiba? | SELECT Birth FROM table WHERE Death Place = n.a. AND Other names = n.a. AND Name = wahid-un-nisa begum sahiba |
Translate the following into a SQL query | what is other names when death is may 23, 1821? | SELECT Other names FROM table WHERE Death = may 23, 1821 |
Translate the following into a SQL query | when is death when death place is murshidabad and name is mir mehndi? | SELECT Death FROM table WHERE Death Place = murshidabad AND Name = mir mehndi |
Translate the following into a SQL query | what is the name when death is november 10, 1842? | SELECT Name FROM table WHERE Death = november 10, 1842 |
Translate the following into a SQL query | What is Internet Plan, when Price is "22 EUR"? | SELECT Internet Plan FROM table WHERE Price = 22 eur |
Translate the following into a SQL query | What is Downstream, when Upstream is "384 kbit"? | SELECT Downstream FROM table WHERE Upstream = 384 kbit |
Translate the following into a SQL query | What is Bandwidth Included, when Price is "50 EUR"? | SELECT Bandwidth Included FROM table WHERE Price = 50 eur |
Translate the following into a SQL query | What is Upstream, when Price is "14 EUR"? | SELECT Upstream FROM table WHERE Price = 14 eur |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.