instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Winner has a Season of 2005β06? | SELECT Winner FROM table WHERE Season = 2005β06 |
Translate the following into a SQL query | Which Runner-up played in the Season of 2000β01? | SELECT Runner-up FROM table WHERE Season = 2000β01 |
Translate the following into a SQL query | What was the venue during the Season of 2010β11? | SELECT Venue FROM table WHERE Season = 2010β11 |
Translate the following into a SQL query | Which Winner has a Runner-up of larne, and a Season of 2003β04? | SELECT Winner FROM table WHERE Runner-up = larne AND Season = 2003β04 |
Translate the following into a SQL query | Which Winner has a Score of 1 β 0, and a Season of 2011β12? | SELECT Winner FROM table WHERE Score = 1 β 0 AND Season = 2011β12 |
Translate the following into a SQL query | What position does Martin Rucker play? | SELECT Position FROM table WHERE Name = martin rucker |
Translate the following into a SQL query | What was the lowest round for Paul Hubbard? | SELECT MIN Round FROM table WHERE Name = paul hubbard |
Translate the following into a SQL query | What was the lowest round for a tight end position? | SELECT MIN Round FROM table WHERE Position = tight end |
Translate the following into a SQL query | What years did the person coach who had more than 31 ties? | SELECT Years FROM table WHERE Ties > 31 |
Translate the following into a SQL query | What is the average number of wins for the person who coached from 1951 to 1956 and had less than 174 losses and less than 6 ties? | SELECT AVG Wins FROM table WHERE Losses < 174 AND Years = 1951 to 1956 AND Ties < 6 |
Translate the following into a SQL query | Who was the coach who had 215 losses? | SELECT Coach FROM table WHERE Losses = 215 |
Translate the following into a SQL query | What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses? | SELECT Years FROM table WHERE Ties > 1 AND Wins < 311 AND Losses = 174 |
Translate the following into a SQL query | What years did the person coach who had less than 82 wins and more than 24 losses? | SELECT Years FROM table WHERE Wins < 82 AND Losses > 24 |
Translate the following into a SQL query | Which Points have a Game larger than 25, and an Opponent of dallas stars? | SELECT AVG Points FROM table WHERE Game > 25 AND Opponent = dallas stars |
Translate the following into a SQL query | Which Record has a December smaller than 28, and Points smaller than 38, and a Game smaller than 26, and a Score of 0β1 ot? | SELECT Record FROM table WHERE December < 28 AND Points < 38 AND Game < 26 AND Score = 0β1 ot |
Translate the following into a SQL query | Which Opponent has a Game of 31? | SELECT Opponent FROM table WHERE Game = 31 |
Translate the following into a SQL query | Which Record has Points smaller than 40, and a Game larger than 25, and a Score of 2β0? | SELECT Record FROM table WHERE Points < 40 AND Game > 25 AND Score = 2β0 |
Translate the following into a SQL query | Episode of 9 in which performer 3 had? | SELECT Performer 3 FROM table WHERE Episode = 9 |
Translate the following into a SQL query | Date of 8 july 1994 involves which performer 1? | SELECT Performer 1 FROM table WHERE Date = 8 july 1994 |
Translate the following into a SQL query | Date of 15 july 1994 involves which performer 3? | SELECT Performer 3 FROM table WHERE Date = 15 july 1994 |
Translate the following into a SQL query | Performer 2 of chip esten has what performer 3? | SELECT Performer 3 FROM table WHERE Performer 2 = chip esten |
Translate the following into a SQL query | Which Name has a Pennant number of f82? | SELECT Name FROM table WHERE Pennant number = f82 |
Translate the following into a SQL query | What is the Launched which is on 3 may 2001? | SELECT Launched FROM table WHERE Date of commission = 3 may 2001 |
Translate the following into a SQL query | What is the Homeport that has a Laid down on 14 december 1985? | SELECT Homeport (as of July 2013) FROM table WHERE Laid down = 14 december 1985 |
Translate the following into a SQL query | What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80? | SELECT Launched FROM table WHERE Homeport (as of July 2013) = sold to chile AND Pennant number = f80 |
Translate the following into a SQL query | Which player had more than 25 events? | SELECT Player FROM table WHERE Events > 25 |
Translate the following into a SQL query | What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji? | SELECT Prize money ( $ ) FROM table WHERE Rank < 7 AND Events > 6 AND Country = fiji |
Translate the following into a SQL query | What is the least amount of prize money when there are 21 events? | SELECT MIN Prize money ( $ ) FROM table WHERE Events = 21 |
Translate the following into a SQL query | Which series episode has a netflix figure of s04e21? | SELECT Series Ep. FROM table WHERE Netflix = s04e21 |
Translate the following into a SQL query | Which segment a's netflix figure is s04e24? | SELECT Segment A FROM table WHERE Netflix = s04e24 |
Translate the following into a SQL query | How many episodes have a segment d that is goalie masks (part 2)? | SELECT COUNT Episode FROM table WHERE Segment D = goalie masks (part 2) |
Translate the following into a SQL query | Which episode's segment b is s hacksaw? | SELECT Episode FROM table WHERE Segment B = s hacksaw |
Translate the following into a SQL query | When was Lachlan Dale born? | SELECT D.O.B. FROM table WHERE Surname = dale AND First = lachlan |
Translate the following into a SQL query | Which batter played P and was born 18 April 1984? | SELECT Bats FROM table WHERE Position = p AND D.O.B. = 18 april 1984 |
Translate the following into a SQL query | Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989? | SELECT Surname FROM table WHERE Bats = r AND Position = p AND D.O.B. = 20 may 1989 |
Translate the following into a SQL query | Which Position has Throws of r, and a DOB of 12 february 1983? | SELECT Position FROM table WHERE Throws = r AND D.O.B. = 12 february 1983 |
Translate the following into a SQL query | How many throws did Needle have? | SELECT Throws FROM table WHERE Surname = needle |
Translate the following into a SQL query | Which DOB has Bats of s, and a Position of inf? | SELECT D.O.B. FROM table WHERE Bats = s AND Position = inf |
Translate the following into a SQL query | What is the Lap Length of the race with a Grand Prix Fia Category? | SELECT Lap length FROM table WHERE Category = grand prix fia |
Translate the following into a SQL query | What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship? | SELECT Race FROM table WHERE Category = formula 2 fia, non-championship AND Date = july 30, 1950 |
Translate the following into a SQL query | What was his record when the match went for 3:05? | SELECT Record FROM table WHERE Time = 3:05 |
Translate the following into a SQL query | How many rounds did the match go for the Bellator 72 event? | SELECT SUM Round FROM table WHERE Event = bellator 72 |
Translate the following into a SQL query | What is the rating that has live viewers over 3.06 and DVR viewers of 5.36? | SELECT Rating FROM table WHERE Viewers [Live] (m) > 3.06 AND Viewers [DVR+7] (m) = 5.36 |
Translate the following into a SQL query | What is the sum of the live viewers for episodes with share over 5? | SELECT SUM Viewers [Live] (m) FROM table WHERE Share > 5 |
Translate the following into a SQL query | What is the sum of the ratings for episodes with live viewers of 2.96? | SELECT SUM Rating FROM table WHERE Viewers [Live] (m) = 2.96 |
Translate the following into a SQL query | Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? | SELECT Callsign FROM table WHERE Webcast = listen live AND Frequency < 1210 AND Brand = newsradio 740 ktrh |
Translate the following into a SQL query | Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey? | SELECT Website FROM table WHERE City of License = monterrey AND Webcast = listen live AND Frequency < 1050 |
Translate the following into a SQL query | The KTRH.com website includes which type of webcast? | SELECT Webcast FROM table WHERE Website = ktrh.com |
Translate the following into a SQL query | Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio. | SELECT Website FROM table WHERE City of License = san antonio AND Webcast = listen live AND Frequency = 680 |
Translate the following into a SQL query | Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet? | SELECT MIN Frequency FROM table WHERE Webcast = listen live AND City of License = monterrey AND Callsign = xet |
Translate the following into a SQL query | Which Games is the highest one that has a Drawn smaller than 0? | SELECT MAX Games FROM table WHERE Drawn < 0 |
Translate the following into a SQL query | What is the score for game 6? | SELECT Score FROM table WHERE Game = 6 |
Translate the following into a SQL query | Which Position in 2000 has a Capacity larger than 10,080, and a Venue of central, rechytsa? | SELECT Position in 2000 FROM table WHERE Capacity > 10,080 AND Venue = central, rechytsa |
Translate the following into a SQL query | Which Capacity has a Location of mogilev? | SELECT SUM Capacity FROM table WHERE Location = mogilev |
Translate the following into a SQL query | What was the District of California 2 result? | SELECT Result FROM table WHERE District = california 2 |
Translate the following into a SQL query | What was the district Incumbent Julius Kahn was in that was smaller than 1906? | SELECT District FROM table WHERE First elected < 1906 AND Incumbent = julius kahn |
Translate the following into a SQL query | What was the lowest re-elected result for Sylvester C. Smith? | SELECT MIN First elected FROM table WHERE Result = re-elected AND Incumbent = sylvester c. smith |
Translate the following into a SQL query | What was the result for Julius Kahn's first election of 1898? | SELECT Result FROM table WHERE First elected = 1898 AND Incumbent = julius kahn |
Translate the following into a SQL query | Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble? | SELECT Party FROM table WHERE Result = retired democratic hold AND First elected < 1884 AND Incumbent = samuel dibble |
Translate the following into a SQL query | Which district had a first elected in 1882 with a result of re-elected? | SELECT District FROM table WHERE First elected = 1882 AND Result = re-elected |
Translate the following into a SQL query | Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12? | SELECT MIN Average FROM table WHERE Total < 134 AND Number of dances < 3 AND Rank by average < 12 |
Translate the following into a SQL query | Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3? | SELECT Couple FROM table WHERE Rank by average > 3 AND Average > 16.5 AND Total < 195 AND Number of dances > 3 |
Translate the following into a SQL query | Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1? | SELECT MIN Rank by average FROM table WHERE Total = 425 AND Place > 1 |
Translate the following into a SQL query | What nation are carolina hermann / daniel hermann from? | SELECT Nation FROM table WHERE Name = carolina hermann / daniel hermann |
Translate the following into a SQL query | What is the rank associated with 141.48 points? | SELECT Rank FROM table WHERE Points = 141.48 |
Translate the following into a SQL query | What competitors are scored 124.51 points? | SELECT Name FROM table WHERE Points = 124.51 |
Translate the following into a SQL query | At what percent was Pat Robertson when George H.W. Bush had 76%? | SELECT Pat Robertson FROM table WHERE George H.W. Bush = 76% |
Translate the following into a SQL query | When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have? | SELECT Bob Dole FROM table WHERE George H.W. Bush = 81% AND Pat Robertson = 9% |
Translate the following into a SQL query | When Pat Robertson was at 16%, what did Pete du Pont have? | SELECT Pete du Pont FROM table WHERE Pat Robertson = 16% |
Translate the following into a SQL query | When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have? | SELECT Pat Robertson FROM table WHERE Bob Dole = 26% AND George H.W. Bush = 47% |
Translate the following into a SQL query | When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have? | SELECT Pat Robertson FROM table WHERE Bob Dole = 26% AND Pete du Pont = 0% |
Translate the following into a SQL query | When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have? | SELECT George H.W. Bush FROM table WHERE Pat Robertson = 19% AND Bob Dole = 26% |
Translate the following into a SQL query | Attendance larger than 45,710, and a Venue of metropolitan stadium had what highest week? | SELECT MAX Week FROM table WHERE Attendance > 45,710 AND Venue = metropolitan stadium |
Translate the following into a SQL query | Date of october 10, 1965 had what lowest attendance? | SELECT MIN Attendance FROM table WHERE Date = october 10, 1965 |
Translate the following into a SQL query | Opponent of chicago bears involved what date? | SELECT Date FROM table WHERE Opponent = chicago bears |
Translate the following into a SQL query | Performer 2 of compilation 2 is what performer 1? | SELECT Performer 1 FROM table WHERE Performer 2 = compilation 2 |
Translate the following into a SQL query | Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4? | SELECT Performer 4 FROM table WHERE Performer 1 = greg proops AND Date = 25 august 1995 |
Translate the following into a SQL query | Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode? | SELECT AVG Episode FROM table WHERE Performer 1 = greg proops AND Performer 3 = ryan stiles AND Date = 25 august 1995 |
Translate the following into a SQL query | Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, and a Date of 15 September 1995 is what performer 3? | SELECT Performer 3 FROM table WHERE Performer 1 = stephen frost AND Performer 2 = josie lawrence AND Date = 15 september 1995 |
Translate the following into a SQL query | WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov? | SELECT Mountains classification FROM table WHERE Asian team classification = seoul cycling team AND Winner = alexandre usov |
Translate the following into a SQL query | WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9? | SELECT Asian rider classification FROM table WHERE General classification = ruslan ivanov AND Stage = 9 |
Translate the following into a SQL query | WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt? | SELECT General classification FROM table WHERE Asian rider classification = shinichi fukushima AND Winner = jeremy hunt |
Translate the following into a SQL query | Which Stage has a Mountains classification of filippo savini? | SELECT Stage FROM table WHERE Mountains classification = filippo savini |
Translate the following into a SQL query | Which Stage has a Winner of jeremy hunt? | SELECT Stage FROM table WHERE Winner = jeremy hunt |
Translate the following into a SQL query | Which winning team has Iowa city as the site, and december 3, 2006 as the date? | SELECT Winning team FROM table WHERE Site = iowa city AND Date = december 3, 2006 |
Translate the following into a SQL query | What site has november 30, 2006 as the date? | SELECT Site FROM table WHERE Date = november 30, 2006 |
Translate the following into a SQL query | What winning team has volleyball as the sport? | SELECT Winning team FROM table WHERE Sport = volleyball |
Translate the following into a SQL query | What is the total number in January when the St. Louis Blues had a game smaller than 42? | SELECT COUNT January FROM table WHERE Opponent = st. louis blues AND Game < 42 |
Translate the following into a SQL query | What is the January sum with the record of 17-20-2 with a game smaller than 39? | SELECT SUM January FROM table WHERE Record = 17-20-2 AND Game < 39 |
Translate the following into a SQL query | What was the record when the New York Knicks played at the Boston Garden? | SELECT Record FROM table WHERE Location = boston garden AND Opponent = new york knicks |
Translate the following into a SQL query | When the record was 7-2, what was the score for the game? | SELECT Score FROM table WHERE Record = 7-2 |
Translate the following into a SQL query | On what date was the record 4-2? | SELECT Date FROM table WHERE Record = 4-2 |
Translate the following into a SQL query | Which Females Rank is the highest one that has Females (%) larger than 53, and an HIV awareness (males%) smaller than 89, and a State of odisha? | SELECT MAX Females Rank FROM table WHERE Females (%) > 53 AND HIV awareness (males%) < 89 AND State = odisha |
Translate the following into a SQL query | How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1? | SELECT COUNT Females (%) FROM table WHERE Females Rank < 21 AND State = kerala AND Males Rank > 1 |
Translate the following into a SQL query | How many Females (%) have a State of karnataka, and Males Rank larger than 16? | SELECT COUNT Females (%) FROM table WHERE State = karnataka AND Males Rank > 16 |
Translate the following into a SQL query | Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22? | SELECT MAX Males Rank FROM table WHERE Females (%) < 40 AND Females Rank < 22 |
Translate the following into a SQL query | Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3? | SELECT SUM Females (%) FROM table WHERE HIV awareness (males%) > 92 AND Females Rank > 2 AND Males Rank < 3 |
Translate the following into a SQL query | League Cup smaller than 0 is what sum of the total? | SELECT SUM Total FROM table WHERE League Cup < 0 |
Translate the following into a SQL query | Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup? | SELECT MAX League Cup FROM table WHERE Championship > 3 AND FA Cup < 3 AND Total < 6 |
Translate the following into a SQL query | Which Opponent has a Surface of hard on 28 august 1993? | SELECT Opponent FROM table WHERE Surface = hard AND Date = 28 august 1993 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.