instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the average number of matches of leonardo in seasons after 1? | SELECT AVG Matches FROM table WHERE Name = leonardo AND Seasons > 1 |
Translate the following into a SQL query | What is the average membership with 3.33% LDS and less than 47 branches? | SELECT AVG Membership FROM table WHERE % LDS = 3.33% AND Branches < 47 |
Translate the following into a SQL query | what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r? | SELECT 2005 FROM table WHERE 2003 = a AND 2007 = 2r AND 2012 = 3r |
Translate the following into a SQL query | what is 2004 when the tournament is paris masters? | SELECT 2004 FROM table WHERE Tournament = paris masters |
Translate the following into a SQL query | what is 2009 when 2004 is 107? | SELECT 2009 FROM table WHERE 2004 = 107 |
Translate the following into a SQL query | what is 2003 when 2005 is did not qualify? | SELECT 2003 FROM table WHERE 2005 = did not qualify |
Translate the following into a SQL query | what is 2012 when the tournament is win %? | SELECT 2012 FROM table WHERE Tournament = win % |
Translate the following into a SQL query | What was the record on February 2? | SELECT Record FROM table WHERE Date = february 2 |
Translate the following into a SQL query | What was the location of the game on February 2? | SELECT Location/Attendance FROM table WHERE Date = february 2 |
Translate the following into a SQL query | What year was Black Swan up for the Gotham Awards? | SELECT COUNT Year FROM table WHERE Title = black swan AND Award = gotham awards |
Translate the following into a SQL query | What is the earliest year in which Requiem for a Dream was in the running for Best Director? | SELECT MIN Year FROM table WHERE Title = requiem for a dream AND Category = best director |
Translate the following into a SQL query | Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5? | SELECT Record FROM table WHERE Location = fleetcenter AND Date = fri. apr. 5 |
Translate the following into a SQL query | Can you tell me the Record that has the Game smaller than 76? | SELECT Record FROM table WHERE Game < 76 |
Translate the following into a SQL query | Can you tell me the highest Game that has the Opponent of atlanta hawks? | SELECT MAX Game FROM table WHERE Opponent = atlanta hawks |
Translate the following into a SQL query | Can you tell me the Game that has the Opponent of miami heat? | SELECT Game FROM table WHERE Opponent = miami heat |
Translate the following into a SQL query | Can you tell me the Record that has the Score of 100-105? | SELECT Record FROM table WHERE Score = 100-105 |
Translate the following into a SQL query | Which Opponent has a Location/Attendance of delta center/19,911 on dec 6? | SELECT Opponent FROM table WHERE Location/Attendance = delta center/19,911 AND Date = dec 6 |
Translate the following into a SQL query | What is the Record for Game 17? | SELECT Record FROM table WHERE Game = 17 |
Translate the following into a SQL query | What is the Location/Attendance on Dec 14? | SELECT Location/Attendance FROM table WHERE Date = dec 14 |
Translate the following into a SQL query | Which Record is dated Dec 10? | SELECT Record FROM table WHERE Date = dec 10 |
Translate the following into a SQL query | What was the Location/Attendance on Dec 2? | SELECT Location/Attendance FROM table WHERE Date = dec 2 |
Translate the following into a SQL query | Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps? | SELECT Rider FROM table WHERE Bike = honda cbr1000rr AND Laps < 22 AND Time = +2 laps |
Translate the following into a SQL query | What is the highest grid when the time is +45.162? | SELECT MAX Grid FROM table WHERE Time = +45.162 |
Translate the following into a SQL query | What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000? | SELECT AVG Grid FROM table WHERE Bike = suzuki gsx-r1000 AND Rider = fonsi nieto |
Translate the following into a SQL query | How many grids did Shinichi Nakatomi ride in? | SELECT SUM Grid FROM table WHERE Rider = shinichi nakatomi |
Translate the following into a SQL query | How many tries against have a losing bonus of 9? | SELECT Tries against FROM table WHERE Losing bonus = 9 |
Translate the following into a SQL query | How many points were there for 15 losses? | SELECT Points for FROM table WHERE Lost = 15 |
Translate the following into a SQL query | For which play was the points 271? | SELECT Played FROM table WHERE Points against = 271 |
Translate the following into a SQL query | How many points were there when the try bonus was 2? | SELECT Points FROM table WHERE Try bonus = 2 |
Translate the following into a SQL query | Which 2007–08 season has a Club of genoa c.f.c.? | SELECT 2007–08 season FROM table WHERE Club = genoa c.f.c. |
Translate the following into a SQL query | Which City has a Stadium of stadio artemio franchi, florence? | SELECT City FROM table WHERE Stadium = stadio artemio franchi, florence |
Translate the following into a SQL query | What is the description when the reserve is Half Moon Caye? | SELECT Description FROM table WHERE Reserve = half moon caye |
Translate the following into a SQL query | Which district has an IUCN of iii and was established in 1998? | SELECT District FROM table WHERE IUCN = iii AND Est. = 1998 |
Translate the following into a SQL query | What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal? | SELECT IUCN FROM table WHERE District = cayo AND Reserve = actun tunichil muknal |
Translate the following into a SQL query | What is the sum of value for average finish with poles less than 0? | SELECT SUM Avg. Finish FROM table WHERE Poles < 0 |
Translate the following into a SQL query | What is the average start with wins larger than 0 and 32nd position? | SELECT AVG Starts FROM table WHERE Wins > 0 AND Position = 32nd |
Translate the following into a SQL query | What is the average SFC in lb/(lbf·h) for engines with an Effective exhaust velocity (m/s) larger than 29,553, and a SFC in g/(kN·s) of 17.1? | SELECT AVG SFC in lb/(lbf·h) FROM table WHERE Effective exhaust velocity (m/s) > 29,553 AND SFC in g/(kN·s) = 17.1 |
Translate the following into a SQL query | What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)? | SELECT Specific impulse (s) FROM table WHERE Scenario = sr-71 at mach 3.2 (wet) |
Translate the following into a SQL query | what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423 | SELECT AVG Specific impulse (s) FROM table WHERE SFC in lb/(lbf·h) = 7.95 AND Effective exhaust velocity (m/s) > 4,423 |
Translate the following into a SQL query | The draft pick that was taken before round 4 went to what college? | SELECT College FROM table WHERE Round < 4 |
Translate the following into a SQL query | What player went to DePaul University? | SELECT Player FROM table WHERE College = depaul |
Translate the following into a SQL query | What is 1st Round, when Team 1 is Sporting Toulon Var (D2)? | SELECT 1st round FROM table WHERE Team 1 = sporting toulon var (d2) |
Translate the following into a SQL query | What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)? | SELECT Score FROM table WHERE 1st round = 2 - 0 AND Team 2 = stade brestois (d1) |
Translate the following into a SQL query | What is Team 2, when Score is 2 - 1? | SELECT Team 2 FROM table WHERE Score = 2 - 1 |
Translate the following into a SQL query | What is Viewers, when Event is Johnson Vs. Moraga? | SELECT Viewers FROM table WHERE Event = johnson vs. moraga |
Translate the following into a SQL query | What is Rating, when Event is Johnson Vs. Dodson? | SELECT Rating FROM table WHERE Event = johnson vs. dodson |
Translate the following into a SQL query | What is Event, when Viewers is 2.4 Million, and when Rating is 1.4? | SELECT Event FROM table WHERE Viewers = 2.4 million AND Rating = 1.4 |
Translate the following into a SQL query | What is Event, when Date is April 20, 2013? | SELECT Event FROM table WHERE Date = april 20, 2013 |
Translate the following into a SQL query | What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga? | SELECT Date FROM table WHERE Rating = 1.5 AND Event = johnson vs. moraga |
Translate the following into a SQL query | What is Date, when Viewers is 4.4 million? | SELECT Date FROM table WHERE Viewers = 4.4 million |
Translate the following into a SQL query | What was Tiger Woods' score? | SELECT Score FROM table WHERE Player = tiger woods |
Translate the following into a SQL query | How did Justin Leonard of the United States score? | SELECT Score FROM table WHERE Country = united states AND Player = justin leonard |
Translate the following into a SQL query | Which player is from England? | SELECT Player FROM table WHERE Country = england |
Translate the following into a SQL query | Who scored 74-70-67=211 and placed t5? | SELECT Player FROM table WHERE Place = t5 AND Score = 74-70-67=211 |
Translate the following into a SQL query | Who is the player with a score less than 72 and a to par of +1? | SELECT Player FROM table WHERE Score < 72 AND To par = +1 |
Translate the following into a SQL query | Who is the player with a to par of +1? | SELECT Player FROM table WHERE To par = +1 |
Translate the following into a SQL query | What is the to par of player john buczek, who has a t9 place and is from the United States? | SELECT To par FROM table WHERE Place = t9 AND Country = united states AND Player = john buczek |
Translate the following into a SQL query | What is the to par of player bobby nichols? | SELECT To par FROM table WHERE Player = bobby nichols |
Translate the following into a SQL query | What was the date for XLLP 369? | SELECT Date FROM table WHERE Catalog = xllp 369 |
Translate the following into a SQL query | What was the label in the region of Canada? | SELECT Label FROM table WHERE Region = canada |
Translate the following into a SQL query | What is the format in the region of Europe with an XLCD369 and a label of XL? | SELECT Format FROM table WHERE Label = xl AND Catalog = xlcd369 AND Region = europe |
Translate the following into a SQL query | What date was the United States the region? | SELECT Date FROM table WHERE Region = united states |
Translate the following into a SQL query | What was the label in the region of Argentina and had a format of CD? | SELECT Label FROM table WHERE Format = cd AND Region = argentina |
Translate the following into a SQL query | What is the catalog with the region of the United States? | SELECT Catalog FROM table WHERE Region = united states |
Translate the following into a SQL query | Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18? | SELECT Opponent FROM table WHERE November > 26 AND Game > 18 |
Translate the following into a SQL query | Can you tell me the Record that has the Game of 19? | SELECT Record FROM table WHERE Game = 19 |
Translate the following into a SQL query | Which Date has a Rockets score of 94, and a Game of 66? | SELECT Date FROM table WHERE Rockets score = 94 AND Game = 66 |
Translate the following into a SQL query | Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101? | SELECT Opponent FROM table WHERE Rockets score > 86 AND Streak = won 1 AND Opponents < 101 |
Translate the following into a SQL query | Which Opponent has a Rockets score of 107? | SELECT Opponent FROM table WHERE Rockets score = 107 |
Translate the following into a SQL query | Which Opponent has a Date of march 16? | SELECT Opponent FROM table WHERE Date = march 16 |
Translate the following into a SQL query | When was the score l 111–122 (ot)? | SELECT Date FROM table WHERE Score = l 111–122 (ot) |
Translate the following into a SQL query | What was the score on January 26? | SELECT Score FROM table WHERE Date = january 26 |
Translate the following into a SQL query | What game was Minnesota the team? | SELECT COUNT Game FROM table WHERE Team = minnesota |
Translate the following into a SQL query | What was the record of Game 43? | SELECT Record FROM table WHERE Game = 43 |
Translate the following into a SQL query | What's the record of the game that Leandro Barbosa (32) had the high points? | SELECT Record FROM table WHERE High points = leandro barbosa (32) |
Translate the following into a SQL query | What is the score when the tie no is 29? | SELECT Score FROM table WHERE Tie no = 29 |
Translate the following into a SQL query | What was the tie no when Watford was the away team? | SELECT Tie no FROM table WHERE Away team = watford |
Translate the following into a SQL query | What team was the home team when Luton Town was the home team? | SELECT Home team FROM table WHERE Away team = luton town |
Translate the following into a SQL query | What team was the home team when the tie no was 27? | SELECT Home team FROM table WHERE Tie no = 27 |
Translate the following into a SQL query | Who played bass in 1994 for the Atlantic label? | SELECT Bass FROM table WHERE Label = atlantic AND Year = 1994 |
Translate the following into a SQL query | Who played drums for the Gray Race album? | SELECT Drums FROM table WHERE Album = the gray race |
Translate the following into a SQL query | Which album had Jay Bentley on bass and Bobby Schayer on drums? | SELECT Album FROM table WHERE Bass = jay bentley AND Drums = bobby schayer |
Translate the following into a SQL query | Who played the bass for the Against the Grain album after 1982? | SELECT Bass FROM table WHERE Year > 1982 AND Album = against the grain |
Translate the following into a SQL query | What is the position when lost is less than 7? | SELECT AVG Position FROM table WHERE Lost < 7 |
Translate the following into a SQL query | What is the largest drawn number when 14 is the position, and goals for is more than 66? | SELECT MAX Drawn FROM table WHERE Position = 14 AND Goals For > 66 |
Translate the following into a SQL query | What is the played number with points 1 is 80, and goals for is more than 77? | SELECT COUNT Played FROM table WHERE Points 1 = 80 AND Goals For > 77 |
Translate the following into a SQL query | What is the number of played when the position is less than 4, and the team is Witton Albion? | SELECT COUNT Played FROM table WHERE Position < 4 AND Team = witton albion |
Translate the following into a SQL query | What is the position when the points 1 is 61? | SELECT SUM Position FROM table WHERE Points 1 = 61 |
Translate the following into a SQL query | Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School? | SELECT Locality FROM table WHERE Ofsted < 106478 AND School = meadowbank primary and nursery school |
Translate the following into a SQL query | What website has an Ofsted less than 106478 in Atherton? | SELECT Website FROM table WHERE Ofsted < 106478 AND Locality = atherton |
Translate the following into a SQL query | How many values for Ofsted occurr at Chowbent Primary School? | SELECT COUNT Ofsted FROM table WHERE School = chowbent primary school |
Translate the following into a SQL query | Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey? | SELECT MIN League championships FROM table WHERE Venue = penn state ice pavilion AND Club = penn state nittany lions men's ice hockey |
Translate the following into a SQL query | How much Founded has a League championships larger than 0, and a Club of penn state nittany lions women's volleyball? | SELECT COUNT Founded FROM table WHERE League championships > 0 AND Club = penn state nittany lions women's volleyball |
Translate the following into a SQL query | Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey? | SELECT Venue FROM table WHERE League = ncaa AND Founded < 1965 AND Club = penn state nittany lions men's ice hockey |
Translate the following into a SQL query | What is the total when the Hindu is greater than 1,076, in the Jawa Barat province? | SELECT COUNT Total FROM table WHERE Hindu > 1,076 AND Province = jawa barat |
Translate the following into a SQL query | What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu? | SELECT % Hindu 2010 FROM table WHERE % Hindu 2000 = 0.01% AND Hindu > 136 |
Translate the following into a SQL query | What is the freestyle leg for the Netherlands? | SELECT Freestyle leg FROM table WHERE Country = netherlands |
Translate the following into a SQL query | In which state did Marquis Li rule? | SELECT State FROM table WHERE Name = li AND Title = marquis |
Translate the following into a SQL query | What was the Royal House for the state of Song? | SELECT Royal house FROM table WHERE State = song |
Translate the following into a SQL query | What type of state was Chu? | SELECT Type FROM table WHERE State = chu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.