instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the largest played number when the difference is - 8 and position is more than 8? | SELECT MAX Played FROM table WHERE Difference = - 8 AND Position > 8 |
Translate the following into a SQL query | What is the mean drawn when the difference is 0 and the against stat is more than 31? | SELECT AVG Drawn FROM table WHERE Difference = 0 AND Against > 31 |
Translate the following into a SQL query | what is the winner of meridiana | SELECT Owner FROM table WHERE Winner = meridiana |
Translate the following into a SQL query | Number of 13 that has what highest weight? | SELECT MAX Weight FROM table WHERE Number = 13 |
Translate the following into a SQL query | Weight of 220 has what class? | SELECT Class FROM table WHERE Weight = 220 |
Translate the following into a SQL query | Name of byron geis, and a Weight smaller than 195 involves what average number? | SELECT AVG Number FROM table WHERE Name = byron geis AND Weight < 195 |
Translate the following into a SQL query | What was the record on March 22? | SELECT Record FROM table WHERE Date = march 22 |
Translate the following into a SQL query | What day in february was game 53? | SELECT AVG February FROM table WHERE Game = 53 |
Translate the following into a SQL query | What is the team's record on februrary 23? | SELECT Record FROM table WHERE February = 23 |
Translate the following into a SQL query | Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7? | SELECT MIN Place FROM table WHERE Total < 24 AND Draw > 7 |
Translate the following into a SQL query | with lola t86/50 chassis and less than 7 points what is the entrant? | SELECT Entrant FROM table WHERE Points < 7 AND Chassis = lola t86/50 |
Translate the following into a SQL query | after 1987 and entrant of first racing what is the highest points? | SELECT MAX Points FROM table WHERE Entrant = first racing AND Year > 1987 |
Translate the following into a SQL query | with year greater than 1988 what is the total number of points? | SELECT COUNT Points FROM table WHERE Year > 1988 |
Translate the following into a SQL query | what is the points total for forti corse? | SELECT SUM Points FROM table WHERE Entrant = forti corse |
Translate the following into a SQL query | What is the Parts-per example of 2×10 −6? | SELECT Parts-per example FROM table WHERE Value of quantity = 2×10 −6 |
Translate the following into a SQL query | What is the Coefficient of 2 ppt? | SELECT Coefficient FROM table WHERE Parts-per example = 2 ppt |
Translate the following into a SQL query | what is the format of catalog 865 821-1? | SELECT Format FROM table WHERE Catalog = 865 821-1 |
Translate the following into a SQL query | What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th? | SELECT Season FROM table WHERE Winner = kanto gakuin university AND Attendance = n/a AND Title = 37th |
Translate the following into a SQL query | What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details? | SELECT Title FROM table WHERE Attendance = n/a AND Runner-up = waseda AND Season = 1995-6 details |
Translate the following into a SQL query | What season has a runner-up of waseda, and a title of 47th? | SELECT Season FROM table WHERE Runner-up = waseda AND Title = 47th |
Translate the following into a SQL query | Who was the winner in the game that had Teikyo as the runner-up? | SELECT Winner FROM table WHERE Runner-up = teikyo |
Translate the following into a SQL query | Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up? | SELECT Winner FROM table WHERE Runner-up = waseda AND Title = 32nd |
Translate the following into a SQL query | what is the date on week 6 | SELECT Date FROM table WHERE Week = 6 |
Translate the following into a SQL query | Which City has 600kw 500kw ERP (Analog/ Digital)? | SELECT City FROM table WHERE ERP (Analog/ Digital) = 600kw 500kw |
Translate the following into a SQL query | Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1? | SELECT Region served FROM table WHERE HAAT (Analog/ Digital) 1 = 1176 m 1190 m |
Translate the following into a SQL query | Which City has 600kw 500kw ERP ? | SELECT City FROM table WHERE ERP (Analog/ Digital) = 600kw 500kw |
Translate the following into a SQL query | Which City has a 360kw 90kw ERP? | SELECT City FROM table WHERE ERP (Analog/ Digital) = 360kw 90kw |
Translate the following into a SQL query | What was the series standing for games over 4? | SELECT Series FROM table WHERE Game > 4 |
Translate the following into a SQL query | What is the game number held on May 20? | SELECT AVG Game FROM table WHERE Date = may 20 |
Translate the following into a SQL query | What was the score of the game when the Indians ended up with a record of 55-51? | SELECT Score FROM table WHERE Record = 55-51 |
Translate the following into a SQL query | On which date did the Indians have a record of 67-58 | SELECT Date FROM table WHERE Record = 67-58 |
Translate the following into a SQL query | Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002? | SELECT Work FROM table WHERE Result = nominated AND Award = contigo award AND Year < 2002 |
Translate the following into a SQL query | How many years have an Award of press award? | SELECT COUNT Year FROM table WHERE Award = press award |
Translate the following into a SQL query | Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress? | SELECT Award FROM table WHERE Year < 2004 AND Work = the clone AND Result = won AND Category = favourite actress |
Translate the following into a SQL query | Which Year is the highest one that has a Work of the clone, and an Award of contigo award? | SELECT MAX Year FROM table WHERE Work = the clone AND Award = contigo award |
Translate the following into a SQL query | With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed? | SELECT Time elapsed FROM table WHERE Destination = jupiter AND Closest approach = 4 february 2004 |
Translate the following into a SQL query | What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999? | SELECT Time elapsed FROM table WHERE Launched = 15 october 1997 AND Closest approach = 24 june 1999 |
Translate the following into a SQL query | What Time elapsed has 14 February 2011 as the Closest approach? | SELECT Time elapsed FROM table WHERE Closest approach = 14 february 2011 |
Translate the following into a SQL query | What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)? | SELECT Launched FROM table WHERE Time elapsed = 1991 days (5 yr, 5 mo, 12 d) |
Translate the following into a SQL query | With a Launched of 3 July 1998 what is the Closest approach? | SELECT Closest approach FROM table WHERE Launched = 3 july 1998 |
Translate the following into a SQL query | What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed? | SELECT Launched FROM table WHERE Spacecraft = ulysses AND Time elapsed = 491 days (1 yr, 4 mo, 3 d) |
Translate the following into a SQL query | What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? | SELECT Karen Handel FROM table WHERE Eric Johnson = 13% AND Undecided = 22% |
Translate the following into a SQL query | In what poll is Nathan Deal at 13% and John Oxendine at 28%? | SELECT Poll source FROM table WHERE Nathan Deal = 13% AND John Oxendine = 28% |
Translate the following into a SQL query | What is Eric Johnson at in the poll where Karen Handel is at 12%? | SELECT Eric Johnson FROM table WHERE Karen Handel = 12% |
Translate the following into a SQL query | In what poll is John Oxendine at 32%? | SELECT Poll source FROM table WHERE John Oxendine = 32% |
Translate the following into a SQL query | What is John Oxendine at in the poll where Karen Handel is at 38%? | SELECT John Oxendine FROM table WHERE Karen Handel = 38% |
Translate the following into a SQL query | What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? | SELECT Karen Handel FROM table WHERE Poll source = insideradvantage AND John Oxendine = 15% |
Translate the following into a SQL query | What was the 1991 score? | SELECT Score FROM table WHERE Year = 1991 |
Translate the following into a SQL query | Where was the 1966 competition with a winner of Gary Cowan held? | SELECT Venue FROM table WHERE Winner = gary cowan AND Year = 1966 |
Translate the following into a SQL query | Who was the runner-up of the competition played at Minikahda Club? | SELECT Runner-up FROM table WHERE Venue = minikahda club |
Translate the following into a SQL query | Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1? | SELECT MAX Year FROM table WHERE Next Highest Spender = aarp AND US Cham. Spending = $39,805,000 AND US Cham. Rank > 1 |
Translate the following into a SQL query | Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012? | SELECT MIN US Cham. Rank FROM table WHERE Next Highest Spender = national assn of realtors AND Year < 2012 |
Translate the following into a SQL query | Which Year is the lowest one that has a US Cham Rank smaller than 1? | SELECT MIN Year FROM table WHERE US Cham. Rank < 1 |
Translate the following into a SQL query | What was the Score in Final of the Eckerd Open Tournament? | SELECT Score in Final FROM table WHERE Tournament Name = eckerd open |
Translate the following into a SQL query | Who was the Partner in the United Airlines Tournament (1)? | SELECT Partner FROM table WHERE Tournament Name = united airlines tournament (1) |
Translate the following into a SQL query | What was the Score in Final on February 19, 1989? | SELECT Score in Final FROM table WHERE Date = february 19, 1989 |
Translate the following into a SQL query | What are the Points when the Place is 9? | SELECT Points FROM table WHERE Place = 9 |
Translate the following into a SQL query | What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20? | SELECT COUNT Place FROM table WHERE Singer = mariza ikonomi AND Points > 20 |
Translate the following into a SQL query | What is the average total TCs of the season where the strongest storm was Zoe and the season was totals? | SELECT AVG Total TC's FROM table WHERE Strongest storm = zoe AND Season = totals |
Translate the following into a SQL query | With a Suited Match of 13:1, what is the Double Non-Suited Match? | SELECT Double Non-Suited Match FROM table WHERE Suited Match = 13:1 |
Translate the following into a SQL query | What's the Suited Match with a 2.99% House Edge? | SELECT Suited Match FROM table WHERE House Edge = 2.99% |
Translate the following into a SQL query | With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match. | SELECT Double Non-Suited Match FROM table WHERE Non-Suited Match = 3:1 AND House Edge = 3.53% |
Translate the following into a SQL query | Name the Non-Suited Match that has greater than 6 Number of Decks. | SELECT Non-Suited Match FROM table WHERE Number of Decks > 6 |
Translate the following into a SQL query | Name the Suited & Non-Suited Match with a 2.99% for House Edge. | SELECT Suited + Non-Suited Match FROM table WHERE House Edge = 2.99% |
Translate the following into a SQL query | With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match? | SELECT Double Non-Suited Match FROM table WHERE Non-Suited Match = 4:1 AND House Edge = 3.63% |
Translate the following into a SQL query | Wins smaller than 0 had what sum of year? | SELECT SUM Year FROM table WHERE Wins < 0 |
Translate the following into a SQL query | Class of 125cc, and a Year smaller than 1966 had what lowest wins? | SELECT MIN Wins FROM table WHERE Class = 125cc AND Year < 1966 |
Translate the following into a SQL query | Class of 500cc, and a Wins smaller than 0 had what average year? | SELECT AVG Year FROM table WHERE Class = 500cc AND Wins < 0 |
Translate the following into a SQL query | What are the highest laps Kazuki Nakajima did with a Grid larger than 19? | SELECT MAX Laps FROM table WHERE Driver = kazuki nakajima AND Grid > 19 |
Translate the following into a SQL query | Which Constructor has a Grid of 17? | SELECT Constructor FROM table WHERE Grid = 17 |
Translate the following into a SQL query | Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037? | SELECT Driver FROM table WHERE Grid > 2 AND Constructor = bmw sauber AND Time/Retired = +15.037 |
Translate the following into a SQL query | Participation as of actor, film editor has what average year? | SELECT AVG Year FROM table WHERE Participation as = actor, film editor |
Translate the following into a SQL query | What were the odds for the finish of 1/4h? | SELECT Odds FROM table WHERE Finish = 1/4h |
Translate the following into a SQL query | What is the lowest last quarter with a time of 1:53.2 and odds of *1.30? | SELECT MIN Last 1/4 FROM table WHERE Time = 1:53.2 AND Odds = *1.30 |
Translate the following into a SQL query | What is the average number of Gold when the total is 11 with more than 2 silver? | SELECT AVG Gold FROM table WHERE Total = 11 AND Silver > 2 |
Translate the following into a SQL query | What is the total rank with more than 0 silver and less than 2 medals total? | SELECT COUNT Rank FROM table WHERE Total < 2 AND Silver > 0 |
Translate the following into a SQL query | What is the value of bronze with less than 2 in total? | SELECT Bronze FROM table WHERE Total < 2 |
Translate the following into a SQL query | What number of rank has more than 2 medals in total with less than 4 bronze? | SELECT COUNT Rank FROM table WHERE Total > 2 AND Bronze < 4 |
Translate the following into a SQL query | what is a building that is proposed and will have 32 floors? | SELECT Building FROM table WHERE Status = proposed AND Floors = 32 |
Translate the following into a SQL query | What is the best time for marcus marshall? | SELECT AVG Best FROM table WHERE Name = marcus marshall |
Translate the following into a SQL query | What is the best time for a rusport driver with a qual 2 time of 1:10.166? | SELECT MAX Best FROM table WHERE Team = rusport AND Qual 2 = 1:10.166 |
Translate the following into a SQL query | What team had a qual 2 time of 58.385? | SELECT Team FROM table WHERE Qual 2 = 58.385 |
Translate the following into a SQL query | What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0? | SELECT COUNT University of Dublin FROM table WHERE Agricultural Panel = 0 AND Nominated by the Taoiseach > 0 AND Industrial and Commercial Panel < 0 |
Translate the following into a SQL query | What is the average for the agricultural panel that has a National University of Ireland less than 0? | SELECT AVG Agricultural Panel FROM table WHERE National University of Ireland < 0 |
Translate the following into a SQL query | What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2? | SELECT MIN University of Dublin FROM table WHERE Administrative Panel = 3 AND Cultural and Educational Panel < 2 |
Translate the following into a SQL query | What was the record at Memorial Stadium on September 19, 1965? | SELECT Record FROM table WHERE Game Site = memorial stadium AND Date = september 19, 1965 |
Translate the following into a SQL query | What is the largest attendance at Memorial Stadium on December 12, 1965? | SELECT MAX Attendance FROM table WHERE Game Site = memorial stadium AND Date = december 12, 1965 |
Translate the following into a SQL query | Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0? | SELECT MAX Extra points FROM table WHERE Player = herman everhardus AND Field goals > 0 |
Translate the following into a SQL query | Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? | SELECT SUM Extra points FROM table WHERE Points < 12 AND Player = chuck bernard AND Touchdowns > 1 |
Translate the following into a SQL query | How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0? | SELECT SUM Field goals FROM table WHERE Touchdowns < 3 AND Player = willis ward AND Extra points < 0 |
Translate the following into a SQL query | Whicih Extra points are the average ones that have Points smaller than 6? | SELECT AVG Extra points FROM table WHERE Points < 6 |
Translate the following into a SQL query | Which position is round 7? | SELECT Position FROM table WHERE Round = 7 |
Translate the following into a SQL query | Which college has a position of goaltender? | SELECT College/Junior/Club Team (League) FROM table WHERE Position = goaltender |
Translate the following into a SQL query | What is Darryl Fedorak's highest round? | SELECT MAX Round FROM table WHERE Player = darryl fedorak |
Translate the following into a SQL query | What nationality has a higher round than 8? | SELECT Nationality FROM table WHERE Round > 8 |
Translate the following into a SQL query | What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen? | SELECT Connection with Australia FROM table WHERE Connection with America = born in the u.s.; mother is u.s. citizen |
Translate the following into a SQL query | What is the person born in Australia, rick springfield notable for? | SELECT Notable for FROM table WHERE Connection with Australia = born in australia AND Name = rick springfield |
Translate the following into a SQL query | What is the Born–Died for the person whose family moved to Australia at age 6? | SELECT Born – Died FROM table WHERE Connection with Australia = family moved to australia at age 6 |
Translate the following into a SQL query | What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz? | SELECT MAX Date FROM table WHERE Cores per die / Dies per module = 2 / 1 AND Clock = 1.4-1.6ghz |
Translate the following into a SQL query | Which process has a date later than 2000 and a Clock of 1.4-1.6ghz? | SELECT Process FROM table WHERE Date > 2000 AND Clock = 1.4-1.6ghz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.