instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the largest amount of top division titles featuring the tammeka club? | SELECT MAX Top division titles FROM table WHERE Club = tammeka |
Translate the following into a SQL query | What is the largest number of top division titles with a 2012 position of 10th? | SELECT MAX Top division titles FROM table WHERE Position in 2012 = 10th |
Translate the following into a SQL query | How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000? | SELECT COUNT Number of seasons in Meistriliiga FROM table WHERE Club = kuressaare AND First season in top division > 2000 |
Translate the following into a SQL query | Who attended Columbia law school and was appointed in 2004? | SELECT Name FROM table WHERE Law School Attended = columbia law school AND Appointed = 2004 |
Translate the following into a SQL query | Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004? | SELECT SUM Term expiration FROM table WHERE Appointing Governor = george pataki, republican AND Appointed > 2004 |
Translate the following into a SQL query | Which law school did judge sheila abdus-salaam attend, who was appointed in 2004? | SELECT Law School Attended FROM table WHERE Appointed > 2004 AND Name = judge sheila abdus-salaam |
Translate the following into a SQL query | What is the number of races having top 5s over 2 and average starts of 6.5? | SELECT Races FROM table WHERE Top 5 > 2 AND Avg. Start = 6.5 |
Translate the following into a SQL query | What is the lowest average finish having top 5s of 0? | SELECT MIN Avg. Finish FROM table WHERE Top 5 < 0 |
Translate the following into a SQL query | What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week? | SELECT Volume:Issue FROM table WHERE Weeks on Top > 1 AND Artist = peter cetera |
Translate the following into a SQL query | What is the longest weeks on top when the Artist was Bruce Hornsby and the Range? | SELECT MAX Weeks on Top FROM table WHERE Artist = bruce hornsby and the range |
Translate the following into a SQL query | What is the Score of the game with arsenal win 4-2 on penalties in the attendance field? | SELECT Score FROM table WHERE Attendance = arsenal win 4-2 on penalties |
Translate the following into a SQL query | What team was the Away team when the Tie no was 3? | SELECT Away team FROM table WHERE Tie no = 3 |
Translate the following into a SQL query | What is the Tie no when the away team was Burnley? | SELECT Tie no FROM table WHERE Away team = burnley |
Translate the following into a SQL query | What shows for Tie no when Sheffield United was the Away team? | SELECT Tie no FROM table WHERE Away team = sheffield united |
Translate the following into a SQL query | What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals? | SELECT COUNT Rank FROM table WHERE Silver = 1 AND Bronze = 3 AND Total < 8 |
Translate the following into a SQL query | Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313? | SELECT SUM Balls Faced FROM table WHERE Average = 39.13 AND Runs Scored > 313 |
Translate the following into a SQL query | Which Name has an Average of 48.83? | SELECT Name FROM table WHERE Average = 48.83 |
Translate the following into a SQL query | Which average S.R. has an Average of 39.13 and Balls Faced larger than 318? | SELECT AVG S.R. FROM table WHERE Average = 39.13 AND Balls Faced > 318 |
Translate the following into a SQL query | How many S.R. that has Runs Scored of 161 and an Average larger than 26.83? | SELECT SUM S.R. FROM table WHERE Runs Scored = 161 AND Average > 26.83 |
Translate the following into a SQL query | What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293? | SELECT MIN Average FROM table WHERE S.R. = 70.43 AND Runs Scored < 293 |
Translate the following into a SQL query | Which S.R. has a Average smaller than 23.63 Runs Scored of 49? | SELECT S.R. FROM table WHERE Average < 23.63 AND Runs Scored = 49 |
Translate the following into a SQL query | What is the Acquisition that has less than 22, in the 2002 season? | SELECT Acquisition via FROM table WHERE Number < 22 AND Season = 2002 |
Translate the following into a SQL query | What is the number of the acquisition of import in the 2002 season? | SELECT Number FROM table WHERE Acquisition via = import AND Season = 2002 |
Translate the following into a SQL query | What is the name from the 2002 season, and acquired via free agency? | SELECT Name FROM table WHERE Season = 2002 AND Acquisition via = free agency |
Translate the following into a SQL query | What is the name of the player acquired via import and larger than 22? | SELECT Name FROM table WHERE Acquisition via = import AND Number > 22 |
Translate the following into a SQL query | Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket? | SELECT Prohibition ticket FROM table WHERE Greenback ticket = abraham j. cuddeback |
Translate the following into a SQL query | Which office was Richard M. Griffin vying for on the Greenback ticket? | SELECT Office FROM table WHERE Greenback ticket = richard m. griffin |
Translate the following into a SQL query | Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket? | SELECT Prohibition ticket FROM table WHERE Greenback ticket = thomas armstrong |
Translate the following into a SQL query | Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong? | SELECT Prohibition ticket FROM table WHERE Greenback ticket = thomas armstrong |
Translate the following into a SQL query | Who was on the Republican ticket for the office of Inspector of state prisons? | SELECT Republican ticket FROM table WHERE Office = inspector of state prisons |
Translate the following into a SQL query | What office did Henry Hagner run for on the prohibition ticket? | SELECT Office FROM table WHERE Prohibition ticket = henry hagner |
Translate the following into a SQL query | What is the total number of 13.5 inch/1400 lb that has a 0 13.5 inch/1250 lb; 3 for a total and a 15 inch less than 1? | SELECT COUNT 13.5-inch/1400lb FROM table WHERE 13.5-inch/1250lb = 0 AND Total = 3 AND 15-inch < 1 |
Translate the following into a SQL query | What is the home of the team with a 16-8 record? | SELECT Home FROM table WHERE Record = 16-8 |
Translate the following into a SQL query | What is the date of the game that ended with a score of 96-89? | SELECT Date FROM table WHERE Score = 96-89 |
Translate the following into a SQL query | How many people went to the game with Indiana visiting? | SELECT Attendance FROM table WHERE Visitor = indiana |
Translate the following into a SQL query | What is the date of the Cleveland home game with a 20-8 record? | SELECT Date FROM table WHERE Home = cleveland AND Record = 20-8 |
Translate the following into a SQL query | What is the score of the New Jersey home game? | SELECT Score FROM table WHERE Home = new jersey |
Translate the following into a SQL query | How many people attended the game with a final score of 75-90? | SELECT Attendance FROM table WHERE Score = 75-90 |
Translate the following into a SQL query | What is Mike Weir's To par? | SELECT To par FROM table WHERE Player = mike weir |
Translate the following into a SQL query | From Country is Vijay Singh? | SELECT Country FROM table WHERE Player = vijay singh |
Translate the following into a SQL query | What is the Player in T5 Place? | SELECT Player FROM table WHERE Place = t5 |
Translate the following into a SQL query | What is the Place of the Player with a Score of 73-73-65-73=284? | SELECT Place FROM table WHERE Score = 73-73-65-73=284 |
Translate the following into a SQL query | Who was the Home captain that played at the venue Oval? | SELECT Home captain FROM table WHERE Venue = oval |
Translate the following into a SQL query | Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw? | SELECT Away captain FROM table WHERE Result = draw AND Date = 12,13,14 jun 1902 |
Translate the following into a SQL query | Who is the Away captain that played on 11,12,13 Aug 1902? | SELECT Away captain FROM table WHERE Date = 11,12,13 aug 1902 |
Translate the following into a SQL query | What was the result of the game that was played on 29,30β31 May 1902? | SELECT Result FROM table WHERE Date = 29,30β31 may 1902 |
Translate the following into a SQL query | What was the result of the game that was played on 3,4,5 Jul 1902? | SELECT Result FROM table WHERE Date = 3,4,5 jul 1902 |
Translate the following into a SQL query | What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends? | SELECT COUNT Ends Lost FROM table WHERE Blank Ends = 15 AND Stolen Ends < 14 |
Translate the following into a SQL query | What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct? | SELECT COUNT Blank Ends FROM table WHERE Stolen Ends = 17 AND Skip = jennifer jones AND Shot Pct. > 83 |
Translate the following into a SQL query | What is the average Wins, when F/Laps is greater than 1, and when Points is 80? | SELECT AVG Wins FROM table WHERE F/Laps > 1 AND Points = 80 |
Translate the following into a SQL query | What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32? | SELECT SUM Races FROM table WHERE Podiums < 3 AND Wins = 0 AND Season > 2001 AND Points = 32 |
Translate the following into a SQL query | What is the average Season, when F/Laps is 1, and when Poles is less than 0? | SELECT AVG Season FROM table WHERE F/Laps = 1 AND Poles < 0 |
Translate the following into a SQL query | What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007? | SELECT MAX Poles FROM table WHERE Series = ginetta championship AND Season < 2007 |
Translate the following into a SQL query | What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11? | SELECT MIN Wk 7 FROM table WHERE Wk 3 = 12 AND Wk 4 < 9 AND Wk 2 > 11 |
Translate the following into a SQL query | What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18? | SELECT MIN Wk 3 FROM table WHERE Wk 14 = n/r AND Wk 2 = 7 AND Wk 11 > 18 |
Translate the following into a SQL query | What is the Date for the actual title archie bunker's place? | SELECT Date FROM table WHERE Actual Title = archie bunker's place |
Translate the following into a SQL query | What is the name of the Artist for the Spoofed Title of the moron downer jr. show? | SELECT Artist FROM table WHERE Spoofed Title = the moron downer jr. show |
Translate the following into a SQL query | What issue was the Spoofed Title of the crockford files in? | SELECT Issue FROM table WHERE Spoofed Title = the crockford files |
Translate the following into a SQL query | What is the name of the writer for issue 224? | SELECT Writer FROM table WHERE Issue = 224 |
Translate the following into a SQL query | What is the smallest amount of points had a lost number of 2 when the position was less than 1? | SELECT MIN Points FROM table WHERE Lost = 2 AND Position < 1 |
Translate the following into a SQL query | What is the mean number of against when the position is less than 1? | SELECT AVG Against FROM table WHERE Position < 1 |
Translate the following into a SQL query | What is the mean number of played when there are less than 18 points and the position is less than 8? | SELECT AVG Played FROM table WHERE Points < 18 AND Position < 8 |
Translate the following into a SQL query | What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20? | SELECT COUNT Lost FROM table WHERE Against < 37 AND Drawn > 2 AND Played > 20 |
Translate the following into a SQL query | What is the total area of drakenstein and a population less than 251,262? | SELECT COUNT Area (km 2 ) FROM table WHERE Name = drakenstein AND Population (2011) < 251,262 |
Translate the following into a SQL query | For Stellenbosch, which has a population larger than 155,733, what is the average area? | SELECT AVG Area (km 2 ) FROM table WHERE Name = stellenbosch AND Population (2011) > 155,733 |
Translate the following into a SQL query | What is the lowest population for the area that has a density of 36.7? | SELECT MIN Population (2011) FROM table WHERE Density (inhabitants/km 2 ) = 36.7 |
Translate the following into a SQL query | How many points against has team Cardiff had when there were less than 7 tries? | SELECT COUNT Points against FROM table WHERE Team = cardiff AND Tries against < 7 |
Translate the following into a SQL query | What is the amount of fog where the rain is 1 109? | SELECT SUM Fog (days/year) FROM table WHERE Rain (mm/year) = 1 109 |
Translate the following into a SQL query | What is the amount of snow where the days for storms are 31? | SELECT SUM Snow (days/year) FROM table WHERE Storms (days/year) = 31 |
Translate the following into a SQL query | What is the amount of snow where the sunshine is 1 633, and storms are lower than 29? | SELECT AVG Snow (days/year) FROM table WHERE Sunshine (hrs/year) = 1 633 AND Storms (days/year) < 29 |
Translate the following into a SQL query | What are the number of storms where fog is lower than 74, and sunshine is 2 668? | SELECT COUNT Storms (days/year) FROM table WHERE Fog (days/year) < 74 AND Sunshine (hrs/year) = 2 668 |
Translate the following into a SQL query | Who is the away team for the tome team Leeds United, at the League Cup Competition? | SELECT Away team FROM table WHERE Home team = leeds united AND Competition = league cup |
Translate the following into a SQL query | What chassis has patrick racing as an entrant, with a start greater than 6? | SELECT Chassis FROM table WHERE Entrant = patrick racing AND Start > 6 |
Translate the following into a SQL query | What is the average finish that has 24 as the start, with a year after 1987? | SELECT AVG Finish FROM table WHERE Start = 24 AND Year > 1987 |
Translate the following into a SQL query | What is the lowest year that has lola t93/00 as the chassis with a start leas than 14? | SELECT MIN Year FROM table WHERE Chassis = lola t93/00 AND Start < 14 |
Translate the following into a SQL query | What is the lowest finish that has a start greater than 27, with a year after 1985? | SELECT MIN Finish FROM table WHERE Start > 27 AND Year > 1985 |
Translate the following into a SQL query | What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant? | SELECT Start FROM table WHERE Engine = ford cosworth dfx AND Year > 1981 AND Entrant = kraco enterprises |
Translate the following into a SQL query | What is the Date, when the Team Record is 2-0? | SELECT Date FROM table WHERE Team Record = 2-0 |
Translate the following into a SQL query | What is the Team Record, when the Result is l 0β24? | SELECT Team Record FROM table WHERE Result = l 0β24 |
Translate the following into a SQL query | What is Team Record, when Attendance is 16,151? | SELECT Team Record FROM table WHERE Attendance = 16,151 |
Translate the following into a SQL query | What is the highest draw that has points greater than 4, with a match greater than 5? | SELECT MAX Draw FROM table WHERE Points > 4 AND Match > 5 |
Translate the following into a SQL query | What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5? | SELECT AVG Draw FROM table WHERE Lost < 4 AND Team = gwardia bydgoszcz AND Match > 5 |
Translate the following into a SQL query | What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team? | SELECT MIN Match FROM table WHERE Lost > 3 AND Team = kolejarz rawicz |
Translate the following into a SQL query | How many matches have 0 as the lost? | SELECT COUNT Match FROM table WHERE Lost = 0 |
Translate the following into a SQL query | What is the sum of Game with a Score that is w 104β90 (ot)? | SELECT SUM Game FROM table WHERE Score = w 104β90 (ot) |
Translate the following into a SQL query | What is the High rebounds of a Game with 56? | SELECT High rebounds FROM table WHERE Game = 56 |
Translate the following into a SQL query | What was the option from Italy with general television content, and the Cielo television service? | SELECT Package/Option FROM table WHERE Country = italy AND Content = general television AND Television service = cielo |
Translate the following into a SQL query | What country has Tematico Content, and a package with sky TV and the Lei television service? | SELECT Country FROM table WHERE Content = tematico AND Package/Option = sky tv AND Television service = lei |
Translate the following into a SQL query | What is the television service that has package with sky tv, and it in Italian English? | SELECT Television service FROM table WHERE Package/Option = sky tv AND Language = italian english |
Translate the following into a SQL query | What language is the Tematico content with a sky tv package, and Fox Crime television service? | SELECT Language FROM table WHERE Content = tematico AND Package/Option = sky tv AND Television service = fox crime |
Translate the following into a SQL query | What country has a television service with Cartello Promozionale sky hd? | SELECT Country FROM table WHERE Television service = cartello promozionale sky hd |
Translate the following into a SQL query | What country has a Fox television service? | SELECT Country FROM table WHERE Television service = fox |
Translate the following into a SQL query | Who drove for Mathiasen Motorsports with dane cameron as pole position? | SELECT Winning driver FROM table WHERE Winning team = mathiasen motorsports AND Pole Position = dane cameron |
Translate the following into a SQL query | What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap? | SELECT Winning team FROM table WHERE Winning driver = jonathan bomarito AND Fastest Lap = jonathan summerton |
Translate the following into a SQL query | When Douglas Soares had the fastest lap, what was the report? | SELECT Report FROM table WHERE Fastest Lap = douglas soares |
Translate the following into a SQL query | When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap? | SELECT Fastest Lap FROM table WHERE Winning team = mathiasen motorsports AND Pole Position = jonathan bomarito |
Translate the following into a SQL query | When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report? | SELECT Report FROM table WHERE Winning driver = jonathan summerton AND Fastest Lap = dane cameron |
Translate the following into a SQL query | Which Year has a Competition of olympic games, and a Venue of atlanta, united states? | SELECT AVG Year FROM table WHERE Competition = olympic games AND Venue = atlanta, united states |
Translate the following into a SQL query | Which Competition has a Year of 1993? | SELECT Competition FROM table WHERE Year = 1993 |
Translate the following into a SQL query | Which Notes has a Competition of venice marathon? | SELECT Notes FROM table WHERE Competition = venice marathon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.