instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How many picks on average did Jay Bruchak have before round 6? | SELECT AVG Pick FROM table WHERE Player = jay bruchak AND Round < 6 |
Translate the following into a SQL query | How many rounds did Pierre Bland have a pick larger than 148? | SELECT COUNT Round FROM table WHERE Pick > 148 AND Player = pierre bland |
Translate the following into a SQL query | What was the earliest round that Purdue had a pick larger than 10? | SELECT MIN Round FROM table WHERE College = purdue AND Pick > 10 |
Translate the following into a SQL query | How many picks did Jay Bruchak have? | SELECT COUNT Pick FROM table WHERE Player = jay bruchak |
Translate the following into a SQL query | In what round was the Alianza home game? | SELECT Round FROM table WHERE Home = alianza |
Translate the following into a SQL query | What was the visiting team that played a round 16 game? | SELECT Away FROM table WHERE Round = round 16 |
Translate the following into a SQL query | How many weeks have an Attendance of 62,289? | SELECT SUM Week FROM table WHERE Attendance = 62,289 |
Translate the following into a SQL query | Which Week has an Attendance larger than 65,070? | SELECT MAX Week FROM table WHERE Attendance > 65,070 |
Translate the following into a SQL query | Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114? | SELECT MIN Week FROM table WHERE Opponent = atlanta falcons AND Attendance < 63,114 |
Translate the following into a SQL query | which Tms has a Season of 2013? | SELECT Tms. FROM table WHERE Season = 2013 |
Translate the following into a SQL query | What's the population with a code more than 90902 and an area less than 1,335.47? | SELECT MIN Population FROM table WHERE Code > 90902 AND Area (km 2 ) < 1,335.47 |
Translate the following into a SQL query | What's the most area of Bochum Part 2 with a population less than 15,911? | SELECT MAX Area (km 2 ) FROM table WHERE Place = bochum part 2 AND Population < 15,911 |
Translate the following into a SQL query | What's the place with an area of less than 2,198.72 and a code more than 90909? | SELECT Place FROM table WHERE Area (km 2 ) < 2,198.72 AND Code > 90909 |
Translate the following into a SQL query | What is the Original NFL team of the CB Player? | SELECT Original NFL team FROM table WHERE Pos. = cb |
Translate the following into a SQL query | What is the College of the WR Player from SWC Conf? | SELECT College FROM table WHERE Conf. = swc AND Pos. = wr |
Translate the following into a SQL query | What Player is from the College of memphis? | SELECT Player FROM table WHERE College = memphis |
Translate the following into a SQL query | What is the College of the LB Player with Big Ten Conf.? | SELECT College FROM table WHERE Pos. = lb AND Conf. = big ten |
Translate the following into a SQL query | How many draws are there when there are 11 wins, and more than 7 losses? | SELECT SUM Draws FROM table WHERE Wins = 11 AND Losses > 7 |
Translate the following into a SQL query | What is the draws when there are less than 3 losses and more than 16 wins? | SELECT MAX Draws FROM table WHERE Losses < 3 AND Wins > 16 |
Translate the following into a SQL query | What is the wins when there are 5 losses, and against is more than 1205? | SELECT MAX Wins FROM table WHERE Losses = 5 AND Against > 1205 |
Translate the following into a SQL query | What is the losses when Sunrayia FL is Red Cliffs, and the against is more than 2294? | SELECT AVG Losses FROM table WHERE Sunrayia FL = red cliffs AND Against > 2294 |
Translate the following into a SQL query | What is the number against when losses are smaller than 3, and wins arelarger than 16? | SELECT COUNT Against FROM table WHERE Losses < 3 AND Wins > 16 |
Translate the following into a SQL query | What is the Notes of the Frequency with Call sign CFUN-FM-1? | SELECT Notes FROM table WHERE Call sign = cfun-fm-1 |
Translate the following into a SQL query | What is the Format of FM 100.5 Licensed to Hope? | SELECT Format FROM table WHERE Notes = licensed to hope AND Frequency = fm 100.5 |
Translate the following into a SQL query | What is the Notes of the Frequency with a call sign of CBUE-FM? | SELECT Notes FROM table WHERE Call sign = cbue-fm |
Translate the following into a SQL query | what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1? | SELECT AVG Dynamo FROM table WHERE Draw > 0 AND Played < 15 AND Spartak > 1 |
Translate the following into a SQL query | what is the highest spartak when played is less than 15 and dynamo is less than 3? | SELECT MAX Spartak FROM table WHERE Played < 15 AND Dynamo < 3 |
Translate the following into a SQL query | what is the most draw when the competition is soviet league and dynamo is more than 34? | SELECT MAX Draw FROM table WHERE Competition = soviet league AND Dynamo > 34 |
Translate the following into a SQL query | what is the sum of spartak when played is 102 and draw is less than 19? | SELECT SUM Spartak FROM table WHERE Played = 102 AND Draw < 19 |
Translate the following into a SQL query | what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24? | SELECT MIN Dynamo FROM table WHERE Spartak > 9 AND Competition = totals AND Draw > 24 |
Translate the following into a SQL query | What's the result when the Washington Redskins were the opponents on a week after 8? | SELECT Result FROM table WHERE Week > 8 AND Opponent = washington redskins |
Translate the following into a SQL query | What is the 4.45 for Anna Rogowska from Poland? | SELECT 4.45 FROM table WHERE Nationality = poland AND Name = anna rogowska |
Translate the following into a SQL query | What is the 4.45 for Yelena Isinbayeva? | SELECT 4.45 FROM table WHERE Name = yelena isinbayeva |
Translate the following into a SQL query | What is Anna Rogowska's average result? | SELECT AVG Result FROM table WHERE Name = anna rogowska |
Translate the following into a SQL query | What national has 4.45 for o and 4.55 for xo? | SELECT Nationality FROM table WHERE 4.45 = o AND 4.55 = xo |
Translate the following into a SQL query | What is the sum of staterooms in with a year buit of 2008, and a crew less than 28? | SELECT SUM Staterooms FROM table WHERE Year built = 2008 AND Crew < 28 |
Translate the following into a SQL query | What is the total for guests with a ship name of rv indochina, and a crew smaller than 28? | SELECT COUNT Guests FROM table WHERE Ship name = rv indochina AND Crew < 28 |
Translate the following into a SQL query | what is the country when the total is 111 and the day 1 is 69? | SELECT Country FROM table WHERE Total = 111 AND Day 1 = 69 |
Translate the following into a SQL query | what is the average rank when the day 1 is less than 71 and the country is romania? | SELECT AVG Rank FROM table WHERE Day 1 < 71 AND Country = romania |
Translate the following into a SQL query | how many times is the athlete jin di and the total less than 118? | SELECT COUNT Rank FROM table WHERE Athlete = jin di AND Total < 118 |
Translate the following into a SQL query | What is the highest goal for a GEO nat., that ended after 2010? | SELECT MAX Goals FROM table WHERE Nat. = geo AND Ends > 2010 |
Translate the following into a SQL query | what is the venue when the year is 2006, the competition is asian games and the event is 400 m? | SELECT Venue FROM table WHERE Year = 2006 AND Competition = asian games AND Event = 400 m |
Translate the following into a SQL query | what is the venue when the event is 4x400 m relay and the competition is asian championships? | SELECT Venue FROM table WHERE Event = 4x400 m relay AND Competition = asian championships |
Translate the following into a SQL query | what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002? | SELECT Venue FROM table WHERE Competition = asian games AND Event = 4x400 m relay AND Year = 2002 |
Translate the following into a SQL query | During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson? | SELECT Spokespersons FROM table WHERE Commentator = pierre tchernia AND Voting order = 11 |
Translate the following into a SQL query | What was the voting order when bunny carr was the commentator? | SELECT SUM Voting order FROM table WHERE Commentator = bunny carr |
Translate the following into a SQL query | Who was the commentator when the spokesperson was michael aspel? | SELECT Commentator FROM table WHERE Spokespersons = michael aspel |
Translate the following into a SQL query | What was the voting order when the commentator was renato tagliani? | SELECT Voting order FROM table WHERE Commentator = renato tagliani |
Translate the following into a SQL query | Which Bronze has a Total smaller than 1? | SELECT AVG Bronze FROM table WHERE Total < 1 |
Translate the following into a SQL query | How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4? | SELECT COUNT Silver FROM table WHERE Bronze > 1 AND Gold = 0 AND Rank < 4 |
Translate the following into a SQL query | Which Bronze has a Rank of 4, and a Gold smaller than 0? | SELECT MAX Bronze FROM table WHERE Rank = 4 AND Gold < 0 |
Translate the following into a SQL query | How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3? | SELECT SUM Gold FROM table WHERE Bronze < 2 AND Silver = 0 AND Rank > 3 |
Translate the following into a SQL query | What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)? | SELECT Percentage (2011) FROM table WHERE Population (2006) > 120 AND Percentage (2006) = 45.22% |
Translate the following into a SQL query | What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006? | SELECT COUNT Population (2011) FROM table WHERE Population (2006) = 120 |
Translate the following into a SQL query | How many people ha Romanian as their mother tongue in 2006? | SELECT MAX Population (2006) FROM table WHERE Mother Tongue = romanian |
Translate the following into a SQL query | What is the mother tongue language shared by 300 people in 2006? | SELECT Mother Tongue FROM table WHERE Population (2006) = 300 |
Translate the following into a SQL query | What percentage of people in 2011 had a mother tongue that was shared by less than 8,085 in 2006 and less than 145 in 2011? | SELECT Percentage (2011) FROM table WHERE Population (2006) < 8,085 AND Population (2011) < 145 |
Translate the following into a SQL query | What's the total number of points when the English translation is Long Live Life and the draw is less than 2? | SELECT COUNT Points FROM table WHERE English translation = long live life AND Draw < 2 |
Translate the following into a SQL query | What's the language of Draw number 9? | SELECT Language FROM table WHERE Draw = 9 |
Translate the following into a SQL query | What are the lowest points when the language is Portuguese? | SELECT MIN Points FROM table WHERE Language = portuguese |
Translate the following into a SQL query | What's the island with a summit of Haleakalā? | SELECT Island FROM table WHERE Summit = haleakalā |
Translate the following into a SQL query | What's the lowest Col ranked less than 6 with an Island of Molokaʻi? | SELECT MIN Col (m) FROM table WHERE Island = island of molokaʻi AND Rank < 6 |
Translate the following into a SQL query | What's the col (m) ranked more than 4 with a summit of Kawaikini? | SELECT Col (m) FROM table WHERE Rank > 4 AND Summit = kawaikini |
Translate the following into a SQL query | What's the rank when the col (m) is less than 33 and has a summit of Haleakalā? | SELECT SUM Rank FROM table WHERE Col (m) < 33 AND Summit = haleakalā |
Translate the following into a SQL query | What's the summit when the rank is less than 2 and has a col (m) of 0? | SELECT Summit FROM table WHERE Col (m) = 0 AND Rank < 2 |
Translate the following into a SQL query | Which Year has an Edition of 41st? | SELECT Year FROM table WHERE Edition = 41st |
Translate the following into a SQL query | How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1? | SELECT No. of Events FROM table WHERE Country = trinidad and tobago AND Date = march 30-april 1 |
Translate the following into a SQL query | Which Country has a Top Team of jam, and an Edition of 31st? | SELECT Country FROM table WHERE Top Team = jam AND Edition = 31st |
Translate the following into a SQL query | What was the outcome of the final with a partner of Brett Steven? | SELECT Outcome FROM table WHERE Partner = brett steven |
Translate the following into a SQL query | On what type of surface was the tournament of Italy f28? | SELECT Surface FROM table WHERE Tournament = italy f28 |
Translate the following into a SQL query | Who was the opponent in the final of the Senegal f2 tournament> | SELECT Opponent in the final FROM table WHERE Tournament = senegal f2 |
Translate the following into a SQL query | What's the score on December 12, 1998? | SELECT Score FROM table WHERE Date = december 12, 1998 |
Translate the following into a SQL query | What was the venue when the score was 7-1? | SELECT Venue FROM table WHERE Score = 7-1 |
Translate the following into a SQL query | What's the score of the friendly competition? | SELECT Score FROM table WHERE Competition = friendly |
Translate the following into a SQL query | What's the competition that happened in Singapore? | SELECT Competition FROM table WHERE Venue = singapore |
Translate the following into a SQL query | What's the venue of the 1995 Southeast Asian Games? | SELECT Venue FROM table WHERE Competition = 1995 southeast asian games |
Translate the following into a SQL query | What was the date of the inauguration in the row with an entry of lifespan in the lifespan column? | SELECT Date of inauguration FROM table WHERE Lifespan = lifespan |
Translate the following into a SQL query | What was the date of death entry in the row that has a date of inauguration entry of date of inauguration? | SELECT Date of death FROM table WHERE Date of inauguration = date of inauguration |
Translate the following into a SQL query | What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma? | SELECT Length of retirement FROM table WHERE President = sharma, shankar shankar dayal sharma |
Translate the following into a SQL query | How many draw is in a place that is less than 1? | SELECT COUNT Draw FROM table WHERE Place < 1 |
Translate the following into a SQL query | What percentage has a less than 5 place, and a greater than 3 draw, and "S Teb" as the song? | SELECT Percentage FROM table WHERE Place < 5 AND Draw > 3 AND Song = "s teb" |
Translate the following into a SQL query | Emilya Valenti has what draw average? | SELECT AVG Draw FROM table WHERE Artist = emilya valenti |
Translate the following into a SQL query | What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website? | SELECT Airing date FROM table WHERE Official website = official website AND Number of episodes = 20 AND Genre = modern action AND English title (Chinese title) = armed reaction 陀槍師姐 |
Translate the following into a SQL query | What's the airing date for the show with 62 episodes? | SELECT Airing date FROM table WHERE Number of episodes = 62 |
Translate the following into a SQL query | What's the official website of Burning Flame 烈火雄心 with 22 episodes? | SELECT Official website FROM table WHERE Number of episodes > 22 AND English title (Chinese title) = burning flame 烈火雄心 |
Translate the following into a SQL query | what is the position for the competitor that has a score more than 7 | SELECT Position FROM table WHERE A Score > 7 |
Translate the following into a SQL query | what is the score for the 5th position and a score less than 7 | SELECT MIN B Score FROM table WHERE Position = 5th AND A Score < 7 |
Translate the following into a SQL query | what is the total scored for the 8th position and a score more than 6.6 | SELECT MAX Total FROM table WHERE Position = 8th AND A Score > 6.6 |
Translate the following into a SQL query | What is the Meet of the Event with a Time of 7:55.02? | SELECT Meet FROM table WHERE Time = 7:55.02 |
Translate the following into a SQL query | What is the Location of the Event with a Time of 2:22.32? | SELECT Location FROM table WHERE Time = 2:22.32 |
Translate the following into a SQL query | Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4? | SELECT MIN Body Width/mm FROM table WHERE Lead Pitch/mm < 0.55 AND Body Length/mm > 18.4 |
Translate the following into a SQL query | Which Body Length/mm has a Lead Pitch/mm smaller than 0.5? | SELECT AVG Body Length/mm FROM table WHERE Lead Pitch/mm < 0.5 |
Translate the following into a SQL query | How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40? | SELECT COUNT Body Width/mm FROM table WHERE Body Length/mm = 18.4 AND Pins = 40 |
Translate the following into a SQL query | Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48? | SELECT MIN Body Width/mm FROM table WHERE Lead Pitch/mm < 0.55 AND Part Number = tsop48 |
Translate the following into a SQL query | Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4? | SELECT MAX Lead Pitch/mm FROM table WHERE Part Number = tsop40 AND Body Length/mm > 18.4 |
Translate the following into a SQL query | What was the least attendance when the time was 3:15? | SELECT MIN Attendance FROM table WHERE Time = 3:15 |
Translate the following into a SQL query | What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5? | SELECT Date FROM table WHERE Game < 5 AND Location = oakland-alameda county coliseum AND Time = 3:40 |
Translate the following into a SQL query | Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5? | SELECT AVG Bronze FROM table WHERE Gold > 1 AND Total > 11 AND Silver > 5 |
Translate the following into a SQL query | How many silvers have more than 2 golds? | SELECT COUNT Silver FROM table WHERE Gold > 2 |
Translate the following into a SQL query | What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome? | SELECT Firefox , Other Mozilla FROM table WHERE Chrome = 1.93% |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.