instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What year had less than 160 laps and a rank of 26? | SELECT Year FROM table WHERE Laps < 160 AND Rank = 26 |
Translate the following into a SQL query | for the other of soun, what's the khmer? | SELECT Khmer FROM table WHERE Other = soun |
Translate the following into a SQL query | for the other of mouy, what's the khmer? | SELECT Khmer FROM table WHERE Other = mouy |
Translate the following into a SQL query | What is the language of the film directed by Hans Kristensen? | SELECT Language FROM table WHERE Director = hans kristensen |
Translate the following into a SQL query | What is the original title of the film for which Dersu Uzala was nominated? | SELECT Original title FROM table WHERE Film title used in nomination = dersu uzala |
Translate the following into a SQL query | What is Argentina's language? | SELECT Language FROM table WHERE Country = argentina |
Translate the following into a SQL query | What chassis did Jolly Club Spa used after 1985? | SELECT Chassis FROM table WHERE Year > 1985 AND Entrant = jolly club spa |
Translate the following into a SQL query | What engine was paired with Minardi m187? | SELECT Engine FROM table WHERE Chassis = minardi m187 |
Translate the following into a SQL query | What is the highest points with g Tyres and Minardi m187? | SELECT MAX Points FROM table WHERE Tyres = g AND Chassis = minardi m187 |
Translate the following into a SQL query | What Chassis has g Tyres before 1987? | SELECT Chassis FROM table WHERE Tyres = g AND Year < 1987 |
Translate the following into a SQL query | How many years were g Tyres and Minardi m187 used? | SELECT AVG Year FROM table WHERE Tyres = g AND Chassis = minardi m187 |
Translate the following into a SQL query | What engine what in the vehicle when adt champion racing ranked in 1st place? | SELECT Engine FROM table WHERE Rank = 1st AND Entrant = adt champion racing |
Translate the following into a SQL query | What Chassis ranked 18th? | SELECT Chassis FROM table WHERE Rank = 18th |
Translate the following into a SQL query | What was the class when adt champion racing ranked 1st with an audi r8 chassis, and less than 206 points? | SELECT Class FROM table WHERE Points < 206 AND Chassis = audi r8 AND Entrant = adt champion racing AND Rank = 1st |
Translate the following into a SQL query | Who were the winner and nominees in 2001? | SELECT Winner/Nominee(s) FROM table WHERE Year = 2001 |
Translate the following into a SQL query | Who is nominated for the film Rugrats Go Wild? | SELECT Winner/Nominee(s) FROM table WHERE Result = nominated AND Film = rugrats go wild |
Translate the following into a SQL query | How many goals did he score with under 26 appearances for werder bremen? | SELECT COUNT Goals FROM table WHERE Apps. < 26 AND Club = werder bremen |
Translate the following into a SQL query | How many goals did he have in the bundesliga with under 7 appearances? | SELECT AVG Goals FROM table WHERE Competition = bundesliga AND Apps. < 7 |
Translate the following into a SQL query | What season did he have 7 appearances? | SELECT Season FROM table WHERE Apps. = 7 |
Translate the following into a SQL query | What is the to par for the score 73-71=144? | SELECT To par FROM table WHERE Score = 73-71=144 |
Translate the following into a SQL query | What area did Julius Boros play at? | SELECT Place FROM table WHERE Player = julius boros |
Translate the following into a SQL query | What country has a score of 74-70=144 | SELECT Country FROM table WHERE Score = 74-70=144 |
Translate the following into a SQL query | Which of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87? | SELECT Canterbury FROM table WHERE Central Districts = 276* m.d. crowe & p.s. briasco v (c) 1986/87 |
Translate the following into a SQL query | What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksworth V (C) 1931/32? | SELECT Auckland FROM table WHERE Otago = 184 r.c. blunt & w. hawksworth v (c) 1931/32 |
Translate the following into a SQL query | What tournament was after 2009? | SELECT Tournament FROM table WHERE Year > 2009 |
Translate the following into a SQL query | What event was held in Chihuahua, Mexico? | SELECT Event FROM table WHERE Venue = chihuahua, mexico |
Translate the following into a SQL query | Can you tell me the total number of Rank that has the Area (km 2) smaller than 2,040, and the Population smaller than 1,234,596? | SELECT COUNT Rank FROM table WHERE Area (km 2 ) < 2,040 AND Population < 1,234,596 |
Translate the following into a SQL query | Can you tell me the sun of Population that has the Country/Region of hong kong, and the Rank smaller than 2? | SELECT SUM Population FROM table WHERE Country/Region = hong kong AND Rank < 2 |
Translate the following into a SQL query | Who is the manager with the Hewlett-Packard shirt sponsor? | SELECT Manager 1 FROM table WHERE Shirt sponsor = hewlett-packard |
Translate the following into a SQL query | Who is the captain of the team that has a kit manufacturer of Fox Leisure? | SELECT Captain FROM table WHERE Kit manufacturer = fox leisure |
Translate the following into a SQL query | One2one is the shirt sponsor for the captain of what team? | SELECT Captain FROM table WHERE Shirt sponsor = one2one |
Translate the following into a SQL query | What company is the kit manufacturer that Gareth Southgate belongs to? | SELECT Kit manufacturer FROM table WHERE Captain = gareth southgate |
Translate the following into a SQL query | for the tournament of world amateur championship what was the result in 2010? | SELECT Result FROM table WHERE Year = 2010 AND Tournament = world amateur championship |
Translate the following into a SQL query | Which location had a race that took place on 22 July 2011 and has a rank greater than 8? | SELECT Location FROM table WHERE Rank > 8 AND Date = 22 july 2011 |
Translate the following into a SQL query | How many gold medals for the school with 2 total medals and under 0 bronzes? | SELECT COUNT Gold Medals FROM table WHERE Total Medals = 2 AND Bronze Medals < 0 |
Translate the following into a SQL query | How many gold medals for bellbrook HS with less than 1 silver? | SELECT COUNT Gold Medals FROM table WHERE Ensemble = bellbrook hs AND Silver Medals < 1 |
Translate the following into a SQL query | How many silvers for a school with 2 golds and over 2 total? | SELECT Silver Medals FROM table WHERE Gold Medals = 2 AND Total Medals > 2 |
Translate the following into a SQL query | How many gold medals for the school with less than 1 total? | SELECT COUNT Gold Medals FROM table WHERE Total Medals < 1 |
Translate the following into a SQL query | What is the entrant for 1967? | SELECT Entrant FROM table WHERE Year = 1967 |
Translate the following into a SQL query | What ist he entrant later than 1963 with an eagle MK1 chassis? | SELECT Entrant FROM table WHERE Year > 1963 AND Chassis = eagle mk1 |
Translate the following into a SQL query | What is the entrant that has 0 points? | SELECT Entrant FROM table WHERE Pts. = 0 |
Translate the following into a SQL query | What is the earliest year with 16 points? | SELECT MIN Year FROM table WHERE Pts. = 16 |
Translate the following into a SQL query | Name the venue for margin less than 66 and opponent of north queensland cowboys | SELECT Venue FROM table WHERE Margin < 66 AND Opponent = north queensland cowboys |
Translate the following into a SQL query | Name the sum of year for penrith panthers opponent | SELECT SUM Year FROM table WHERE Opponent = penrith panthers |
Translate the following into a SQL query | Name the opponent for 1996 at the mt smart stadium venue | SELECT Opponent FROM table WHERE Venue = mt smart stadium AND Year = 1996 |
Translate the following into a SQL query | Name the average year for 46 margin | SELECT AVG Year FROM table WHERE Margin = 46 |
Translate the following into a SQL query | Name the margin for 2002 | SELECT Margin FROM table WHERE Year = 2002 |
Translate the following into a SQL query | Who participated in the Mixed Doubles when Tracey Hallam participated in the Women's Singles? | SELECT Mixed doubles FROM table WHERE Women's singles = tracey hallam |
Translate the following into a SQL query | Who participated in the Mixed Doubles when Simon Santoso participated in the Men's Singles after 2008? | SELECT Mixed doubles FROM table WHERE Men's singles = simon santoso AND Year > 2008 |
Translate the following into a SQL query | Which Affiliation has an Enrollement larger than 502? | SELECT Affiliation FROM table WHERE Enrollment > 502 |
Translate the following into a SQL query | What School has an Enrollement smaller than 301? | SELECT School FROM table WHERE Enrollment < 301 |
Translate the following into a SQL query | Which Grades has an Enrollment larger htan 443 with a Student body of Co-ed? | SELECT Grades FROM table WHERE Enrollment > 443 AND Student Body = co-ed |
Translate the following into a SQL query | What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502? | SELECT Student Body FROM table WHERE Affiliation = roman catholic AND Enrollment = 502 |
Translate the following into a SQL query | What is the average year that has a final Tour position of 54 and a final Vuelta position over 55? | SELECT AVG Year FROM table WHERE Final Position - Tour = 54 AND Final Position - Vuelta > 55 |
Translate the following into a SQL query | What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90? | SELECT Final Position - Vuelta FROM table WHERE Final Position - Giro > 39 AND Final Position - Tour = 90 |
Translate the following into a SQL query | How many Giro positions are associated with the year 1971 and Tour final positions over 50? | SELECT COUNT Final Position - Giro FROM table WHERE Year = 1971 AND Final Position - Tour > 50 |
Translate the following into a SQL query | How many laps did the rider Alex Baldolini take? | SELECT SUM Laps FROM table WHERE Rider = alex baldolini |
Translate the following into a SQL query | How many laps were completed in the time of +7.213 with a grid number larger than 7? | SELECT COUNT Laps FROM table WHERE Time/Retired = +7.213 AND Grid > 7 |
Translate the following into a SQL query | What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4? | SELECT COUNT Laps FROM table WHERE Manufacturer = ktm AND Time/Retired = +3.578 AND Grid > 4 |
Translate the following into a SQL query | What was the surface for the May 10, 2009 tournament? | SELECT Surface FROM table WHERE Date = may 10, 2009 |
Translate the following into a SQL query | Which co-driver has fewer than 282 laps and type P tyres? | SELECT Co-Drivers FROM table WHERE Laps < 282 AND Tyres = p |
Translate the following into a SQL query | Which class more recent than 1988 has G tyres? | SELECT Class FROM table WHERE Tyres = g AND Year > 1988 |
Translate the following into a SQL query | What is the greatest number of caps for Bruce Djite? | SELECT MAX Caps FROM table WHERE Player = bruce djite |
Translate the following into a SQL query | How many goals were scored by Eugene Galeković? | SELECT Goals FROM table WHERE Player = eugene galeković |
Translate the following into a SQL query | How many goals were scored by players with more than 16 caps? | SELECT Goals FROM table WHERE Caps > 16 |
Translate the following into a SQL query | What is the highest place of a swimmer from the Netherlands? | SELECT MAX Rank FROM table WHERE Nationality = netherlands |
Translate the following into a SQL query | Name the authority for te akau with roll less than 254 and decile of 8 | SELECT Authority FROM table WHERE Roll < 254 AND Decile = 8 AND Area = te akau |
Translate the following into a SQL query | Tell me the name with decile of 6 and roll of 93 | SELECT Name FROM table WHERE Decile = 6 AND Roll = 93 |
Translate the following into a SQL query | What is the result of the match on January 26, 2006? | SELECT Result FROM table WHERE Date = january 26, 2006 |
Translate the following into a SQL query | What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b? | SELECT Bluetooth FROM table WHERE Launch year > 2004 AND ROM ( MiB ) = 128 AND WiFi = 802.11b |
Translate the following into a SQL query | What is the RAM (MiB) value for the X30 Mid-Range model? | SELECT RAM ( MiB ) FROM table WHERE Model = x30 mid-range |
Translate the following into a SQL query | How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have? | SELECT SUM Points FROM table WHERE Games > 68 AND Tied = 4 AND Goals against > 272 |
Translate the following into a SQL query | Which event had the time 45.74? | SELECT Event FROM table WHERE Time = 45.74 |
Translate the following into a SQL query | What was the time of December 15, 2010? | SELECT Time FROM table WHERE Date = december 15, 2010 |
Translate the following into a SQL query | What were the notes for the time 45.74? | SELECT Notes FROM table WHERE Time = 45.74 |
Translate the following into a SQL query | What Player has 23 Tries? | SELECT Player FROM table WHERE Tries = 23 |
Translate the following into a SQL query | How many Goals did Matt Cook have? | SELECT Goals FROM table WHERE Player = matt cook |
Translate the following into a SQL query | What Full Back Player has 0 Apps? | SELECT Player FROM table WHERE Position = full back AND Apps = 0 |
Translate the following into a SQL query | With 0 Goals and less than 1 Tries, what is Matt James position? | SELECT Position FROM table WHERE Goals = 0 AND Tries < 1 AND Player = matt james |
Translate the following into a SQL query | What is the earliest round drafted for a University of Southern California player? | SELECT MIN Round FROM table WHERE School = university of southern california |
Translate the following into a SQL query | What round drafted was the 1b and a Signed of no cardinals - 1969 june? | SELECT COUNT Round FROM table WHERE Position = 1b AND Signed = no cardinals - 1969 june |
Translate the following into a SQL query | Which event has an Opponent of akihiro gono, and a Method of decision? | SELECT Event FROM table WHERE Opponent = akihiro gono AND Method = decision |
Translate the following into a SQL query | Which location has an Opponent of masanori suda? | SELECT Location FROM table WHERE Opponent = masanori suda |
Translate the following into a SQL query | Which opponent has a Time of 1:34? | SELECT Opponent FROM table WHERE Time = 1:34 |
Translate the following into a SQL query | Which event resulted in loss with an Opponent of maurice smith? | SELECT Event FROM table WHERE Res. = loss AND Opponent = maurice smith |
Translate the following into a SQL query | What is the winner of gold that also has ↓ 1 in the sport of cycling? | SELECT Gold FROM table WHERE Bronze = ↓ 1 AND Sport = cycling |
Translate the following into a SQL query | What is the most recent year that Gulf Racing Middle East won? | SELECT MAX Year FROM table WHERE Team = gulf racing middle east |
Translate the following into a SQL query | What is the class of the co-driver emanuele pirro jj lehto? | SELECT Class FROM table WHERE Co-Drivers = emanuele pirro jj lehto |
Translate the following into a SQL query | What was the final position of Arena Motorsports International? | SELECT Pos. FROM table WHERE Team = arena motorsports international |
Translate the following into a SQL query | Who was the Co-Driver of the winner of 1992's race? | SELECT Co-Drivers FROM table WHERE Year = 1992 |
Translate the following into a SQL query | What is the score in the final with runner-up as the outcome and hard (i) as the surface? | SELECT Score in the final FROM table WHERE Outcome = runner-up AND Surface = hard (i) |
Translate the following into a SQL query | Who is team 1 when 2nd leg score is 1-3 and Asec Mimosas is Team 2? | SELECT Team 1 FROM table WHERE 2nd leg = 1-3 AND Team 2 = asec mimosas |
Translate the following into a SQL query | What is the 1st leg score when 2nd leg score is 3-3? | SELECT 1st leg FROM table WHERE 2nd leg = 3-3 |
Translate the following into a SQL query | What is the 1st leg score when US Mbila Nzambi is team 1? | SELECT 1st leg FROM table WHERE Team 1 = us mbila nzambi |
Translate the following into a SQL query | Who was the opponent on May 20? | SELECT Opponent FROM table WHERE Date = may 20 |
Translate the following into a SQL query | Who took the loss on May 25? | SELECT Loss FROM table WHERE Date = may 25 |
Translate the following into a SQL query | What was the record after the game that ended in a 2-3 loss? | SELECT Record FROM table WHERE Score = 2-3 |
Translate the following into a SQL query | What was the date of the game that had a loss of Politte (0-2)? | SELECT Date FROM table WHERE Loss = politte (0-2) |
Translate the following into a SQL query | Who was the opponent at the game that had a loss of Hendrickson (0-1)? | SELECT Opponent FROM table WHERE Loss = hendrickson (0-1) |
Translate the following into a SQL query | What was the smallest attendance at a game when the record was 7-15? | SELECT MIN Attendance FROM table WHERE Record = 7-15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.