instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3? | SELECT AVG Rank FROM table WHERE Time = 2:25.65 AND Lane > 3 |
Translate the following into a SQL query | What is the Rank of Qi Hui? | SELECT COUNT Rank FROM table WHERE Name = qi hui |
Translate the following into a SQL query | How many Forfeits have Wins smaller than 8, and Losses larger than 16? | SELECT COUNT Forfeits FROM table WHERE Wins < 8 AND Losses > 16 |
Translate the following into a SQL query | How many Losses have a Millewa of nangiloc? | SELECT COUNT Losses FROM table WHERE Millewa = nangiloc |
Translate the following into a SQL query | How many Losses have Draws larger than 0? | SELECT MAX Losses FROM table WHERE Draws > 0 |
Translate the following into a SQL query | What is the spike for the club of d.c. in 2008? | SELECT Spike FROM table WHERE 2008 club = d.c. |
Translate the following into a SQL query | What is the average rank of Elise Matthysen in lanes under 8? | SELECT AVG Rank FROM table WHERE Name = elise matthysen AND Lane < 8 |
Translate the following into a SQL query | What is the time of Yuliya Yefimova? | SELECT Time FROM table WHERE Name = yuliya yefimova |
Translate the following into a SQL query | Who was from Great Britain in lanes under number 3? | SELECT Name FROM table WHERE Lane < 3 AND Nationality = great britain |
Translate the following into a SQL query | What wheel arrangement was made in 1910? | SELECT Wheel arrangement FROM table WHERE Year made = 1910 |
Translate the following into a SQL query | What year were the retired serial numbers 27317β27336? | SELECT Year(s) retired FROM table WHERE Serial numbers = 27317β27336 |
Translate the following into a SQL query | Which Surface has a score of 7-5, 5-7, 6-3? | SELECT Surface FROM table WHERE Score = 7-5, 5-7, 6-3 |
Translate the following into a SQL query | Which tournament has a Score of 6-4, 6-4? | SELECT Tournament FROM table WHERE Score = 6-4, 6-4 |
Translate the following into a SQL query | What was the Surface on during 10 November 2006? | SELECT Surface FROM table WHERE Date = 10 november 2006 |
Translate the following into a SQL query | What was the Score on 25 May 2007? | SELECT Score FROM table WHERE Date = 25 may 2007 |
Translate the following into a SQL query | What was the score on 10 November 2006? | SELECT Score FROM table WHERE Date = 10 november 2006 |
Translate the following into a SQL query | Which Partnering has a Score of 6-3, 4-6, 6-4? | SELECT Partnering FROM table WHERE Score = 6-3, 4-6, 6-4 |
Translate the following into a SQL query | What is the rank for the man from China with notes of QS? | SELECT MAX Rank FROM table WHERE Notes = qs AND Country = china |
Translate the following into a SQL query | What is the rank for the competitor from Bulgaria? | SELECT MIN Rank FROM table WHERE Country = bulgaria |
Translate the following into a SQL query | Which athlete is ranked below 5 and is from China? | SELECT Athletes FROM table WHERE Rank < 5 AND Country = china |
Translate the following into a SQL query | Which game was a Platformer? | SELECT Game FROM table WHERE Genre = platformer |
Translate the following into a SQL query | Who was the developer of XCom: Enemy Unknown? | SELECT Developer(s) FROM table WHERE Game = xcom: enemy unknown |
Translate the following into a SQL query | Which platform was Red Dead Redemption for? | SELECT Platform(s) FROM table WHERE Game = red dead redemption |
Translate the following into a SQL query | What is the highest total for players with under 2 Egyptian Premier League goals and 0 Egypt Cup goals? | SELECT MAX Total FROM table WHERE Egyptian Premier League < 2 AND Egypt Cup < 0 |
Translate the following into a SQL query | What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6? | SELECT AVG Egypt Cup FROM table WHERE CAF Champions League = 0 AND Egyptian Premier League = 6 AND Total < 6 |
Translate the following into a SQL query | how many times is gold more than 0 and the rank less than 2? | SELECT COUNT Silver FROM table WHERE Gold > 0 AND Rank < 2 |
Translate the following into a SQL query | what is the highest total when the nation is france and silver is more than 1? | SELECT MAX Total FROM table WHERE Nation = france AND Silver > 1 |
Translate the following into a SQL query | what is the least silver for germany when gold is more than 4? | SELECT MIN Silver FROM table WHERE Nation = germany AND Gold > 4 |
Translate the following into a SQL query | How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3? | SELECT COUNT Silver FROM table WHERE Total < 15 AND Rank < 5 AND Bronze = 4 AND Gold < 3 |
Translate the following into a SQL query | What venue did the game on september 5, 1998 take place at? | SELECT Venue FROM table WHERE Date = september 5, 1998 |
Translate the following into a SQL query | What venue did the 2000 tiger cup take place at on November 10, 2000? | SELECT Venue FROM table WHERE Competition = 2000 tiger cup AND Date = november 10, 2000 |
Translate the following into a SQL query | What date had a game with a score of 5-4? | SELECT Date FROM table WHERE Score = 5-4 |
Translate the following into a SQL query | What is the total of Barangay with an area larger than 865.13? | SELECT SUM s Barangay FROM table WHERE Area ( has .) > 865.13 |
Translate the following into a SQL query | What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82? | SELECT MIN Pop. density (per km2) FROM table WHERE District = santa cruz AND s Barangay > 82 |
Translate the following into a SQL query | What is the highest population density that is less than 115,942 and a Barangay less than 82? | SELECT MAX Pop. density (per km2) FROM table WHERE Population (2010 census) < 115,942 AND s Barangay < 82 |
Translate the following into a SQL query | What is the total population with a population density less than 29,384.8 in San Nicolas? | SELECT SUM Population (2010 census) FROM table WHERE Pop. density (per km2) < 29,384.8 AND District = san nicolas |
Translate the following into a SQL query | What is the average number of golds for teams in rank 17 with more than 4 silver? | SELECT AVG Gold FROM table WHERE Rank = 17 AND Silver > 4 |
Translate the following into a SQL query | What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold? | SELECT AVG Total FROM table WHERE Bronze < 34 AND Gold < 14 AND Silver < 0 |
Translate the following into a SQL query | What is the fewest number of golds for teams with 0 silver? | SELECT MIN Gold FROM table WHERE Silver < 0 |
Translate the following into a SQL query | What nations participated in 2007? | SELECT Nations FROM table WHERE Year = 2007 |
Translate the following into a SQL query | What event type had BODY CMAS in 1980 and underwater hockey? | SELECT Event type FROM table WHERE Body = cmas AND Year = 1980 AND Sport = underwater hockey |
Translate the following into a SQL query | What body is at the World Championship for Underwater Target shooting? | SELECT Body FROM table WHERE Event type = world championship AND Sport = underwater target shooting |
Translate the following into a SQL query | What body participated in 1973? | SELECT Body FROM table WHERE Year = 1973 |
Translate the following into a SQL query | What was the record setting time in the 800m freestyle? | SELECT Time FROM table WHERE Event = 800m freestyle |
Translate the following into a SQL query | What is the least rank for the premier that assumed office on 17 may 1919 and was in office for 7 years, 335 days? | SELECT MIN Rank: FROM table WHERE TOTAL Time in office: = 7 years, 335 days AND Assumed office: = 17 may 1919 |
Translate the following into a SQL query | Premier Sir Charles Cowper (1807-1875) KCMG left office 2 October 1856, when did he assume office? | SELECT Assumed office: FROM table WHERE Premier: = sir charles cowper (1807-1875) kcmg AND Left office: = 2 october 1856 |
Translate the following into a SQL query | What average rank of the premier has NSW as the state, Liberalism as the party, and 22 March 1877 was the assumed office? | SELECT AVG Rank: FROM table WHERE State: = nsw AND Party: = liberalism AND Assumed office: = 22 march 1877 |
Translate the following into a SQL query | What power has A as the class, and 93.7 as the frequency? | SELECT Power FROM table WHERE Class = a AND Frequency = 93.7 |
Translate the following into a SQL query | What city of license has cbon-fm-11 as the identifier? | SELECT City of license FROM table WHERE Identifier = cbon-fm-11 |
Translate the following into a SQL query | What power has thunder bay as the city of license? | SELECT Power FROM table WHERE City of license = thunder bay |
Translate the following into a SQL query | What identifier has 100000 watts as the power? | SELECT Identifier FROM table WHERE Power = 100000 watts |
Translate the following into a SQL query | What identifier has 90.3 as the frequency? | SELECT Identifier FROM table WHERE Frequency = 90.3 |
Translate the following into a SQL query | What class has cbon-fm-23 as the identifier? | SELECT Class FROM table WHERE Identifier = cbon-fm-23 |
Translate the following into a SQL query | What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals? | SELECT COUNT Total FROM table WHERE Bronze > 1 AND Nation = west germany AND Gold > 2 |
Translate the following into a SQL query | What is Denmark's rank? | SELECT Rank FROM table WHERE Nation = denmark |
Translate the following into a SQL query | What country did ekaterina karsten row for with fa listed under notes? | SELECT Country FROM table WHERE Notes = fa AND Athlete = ekaterina karsten |
Translate the following into a SQL query | What time was the race for the country of france? | SELECT Time FROM table WHERE Country = france |
Translate the following into a SQL query | What time was the race for the country of france with fb listed under notes? | SELECT Time FROM table WHERE Notes = fb AND Country = france |
Translate the following into a SQL query | What is the sum of the ranks for bulgaria? | SELECT SUM Rank FROM table WHERE Country = bulgaria |
Translate the following into a SQL query | What is the rank of the new zealand team that had fb listed under notes? | SELECT Rank FROM table WHERE Notes = fb AND Country = new zealand |
Translate the following into a SQL query | Which Position has a Pick of 74? | SELECT Position FROM table WHERE Pick = 74 |
Translate the following into a SQL query | Which Team has a Position of linebacker? | SELECT Team FROM table WHERE Position = linebacker |
Translate the following into a SQL query | What is the Team for Stanford College? | SELECT Team FROM table WHERE College = stanford |
Translate the following into a SQL query | What Pick does the College Southeastern Louisiana have? | SELECT Pick FROM table WHERE College = southeastern louisiana |
Translate the following into a SQL query | Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1? | SELECT Gold FROM table WHERE Total > 2 AND Bronze < 1 |
Translate the following into a SQL query | Can you tell me the Nation that has the Bronze of 1, and the Gold of 0? | SELECT Nation FROM table WHERE Bronze = 1 AND Gold = 0 |
Translate the following into a SQL query | Can you tell me the average Total that has the Silver larger than 1, and the Bronze smaller than 8? | SELECT AVG Total FROM table WHERE Silver > 1 AND Bronze < 8 |
Translate the following into a SQL query | What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals? | SELECT MAX Bronze FROM table WHERE Total = 4 AND Silver = 1 AND Gold < 2 |
Translate the following into a SQL query | Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2? | SELECT SUM Pommel Horse FROM table WHERE Rings < 59.85 AND Team Total > 361.2 |
Translate the following into a SQL query | Name the highest Parallel Bars of the united states with a Vault smaller than 63.85? | SELECT MAX Parallel Bars FROM table WHERE Country = united states AND Vault < 63.85 |
Translate the following into a SQL query | Name the highest Horizontal Bar which is in france and Rings smaller than 58.975? | SELECT MAX Horizontal Bar FROM table WHERE Country = france AND Rings < 58.975 |
Translate the following into a SQL query | who is the artist when the televote/sms is 3.20%? | SELECT Artist FROM table WHERE Televote/SMS = 3.20% |
Translate the following into a SQL query | what is the place when the televote/sms is 2.39%? | SELECT SUM Place FROM table WHERE Televote/SMS = 2.39% |
Translate the following into a SQL query | how many times was the televote/sms 2.39% and the place more than 9? | SELECT COUNT Draw FROM table WHERE Televote/SMS = 2.39% AND Place > 9 |
Translate the following into a SQL query | Which Release date has a Production Num larger than 5888, and a Director of hugh harman and friz freleng? | SELECT Release date FROM table WHERE Production Num. > 5888 AND Director = hugh harman and friz freleng |
Translate the following into a SQL query | How many production numbers have a Title of bosko in dutch? | SELECT SUM Production Num. FROM table WHERE Title = bosko in dutch |
Translate the following into a SQL query | Which Release date has a Director of tom palmer, and a Production Num larger than 5956? | SELECT Release date FROM table WHERE Director = tom palmer AND Production Num. > 5956 |
Translate the following into a SQL query | How many Goals have Years at club of 1961β1966, and a Debut year larger than 1961? | SELECT COUNT Goals FROM table WHERE Years at club = 1961β1966 AND Debut year > 1961 |
Translate the following into a SQL query | Which Debut year has Goals of 0, and Years at club of 1963, and Games larger than 5? | SELECT AVG Debut year FROM table WHERE Goals = 0 AND Years at club = 1963 AND Games > 5 |
Translate the following into a SQL query | Which Debut year has a Player of bob hayton, and Games smaller than 2? | SELECT AVG Debut year FROM table WHERE Player = bob hayton AND Games < 2 |
Translate the following into a SQL query | What is the name of the player who competed in the Women's Individual Class 3 in Table Tennis? | SELECT Name FROM table WHERE Sport = table tennis AND Event = women's individual class 3 |
Translate the following into a SQL query | What was the date of the Women's Individual Class 3? | SELECT Date FROM table WHERE Event = women's individual class 3 |
Translate the following into a SQL query | What event did Rastislav Turecek participate in? | SELECT Event FROM table WHERE Name = rastislav turecek |
Translate the following into a SQL query | What sport did Miroslav Jambor Richard Csejtey participate in? | SELECT Sport FROM table WHERE Name = miroslav jambor richard csejtey |
Translate the following into a SQL query | Which Artist has a Draw of 6? | SELECT Artist FROM table WHERE Draw = 6 |
Translate the following into a SQL query | Which Song has a Draw smaller than 7, and Points larger than 41, and a Language of german? | SELECT Song FROM table WHERE Draw < 7 AND Points > 41 AND Language = german |
Translate the following into a SQL query | What was the result for the years after 2001? | SELECT Result FROM table WHERE Year > 2001 |
Translate the following into a SQL query | Who was the nominee for 2005? | SELECT Nominee(s) FROM table WHERE Year = 2005 |
Translate the following into a SQL query | what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151? | SELECT GP-GS FROM table WHERE Receptions > 4 AND Long = 55 AND Avg/G = 151 |
Translate the following into a SQL query | what is the name when avg/g is 13.7? | SELECT Name FROM table WHERE Avg/G = 13.7 |
Translate the following into a SQL query | How many times is avg/g 2? | SELECT COUNT Receptions FROM table WHERE Avg/G = 2 |
Translate the following into a SQL query | what is the avg/g for john conner when long is less than 25? | SELECT SUM Avg/G FROM table WHERE Name = john conner AND Long < 25 |
Translate the following into a SQL query | What conference did the player originally from the denver broncos play in? | SELECT Conf. FROM table WHERE Original NFL team = denver broncos |
Translate the following into a SQL query | Who was the player from texas southern? | SELECT Player FROM table WHERE College = texas southern |
Translate the following into a SQL query | What conference did the player with the position of rb play in? | SELECT Conf. FROM table WHERE Pos. = rb |
Translate the following into a SQL query | What was the original nfl team that the player was in from the midwestern conference? | SELECT Original NFL team FROM table WHERE Conf. = midwestern |
Translate the following into a SQL query | What position did athlete play from Tennessee state? | SELECT Pos. FROM table WHERE College = tennessee state |
Translate the following into a SQL query | Which Affected area codes have an Effective date of august 30, 2014? | SELECT Affected area codes FROM table WHERE Effective date = august 30, 2014 |
Translate the following into a SQL query | Which Effective date has a Where of illinois, and Affected area codes of 217? | SELECT Effective date FROM table WHERE Where = illinois AND Affected area codes = 217 |
Translate the following into a SQL query | Which New area code is in nevada? | SELECT New area code FROM table WHERE Where = nevada |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.