instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What's the Years as tallest with a Street address of 324 E. 11th Street? | SELECT Years as tallest FROM table WHERE Street address = 324 e. 11th street |
Translate the following into a SQL query | What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? | SELECT Height feet / m FROM table WHERE Street address = 2345 grand avenue |
Translate the following into a SQL query | What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000? | SELECT AVG Capacity FROM table WHERE City = london AND Enrollment < 30,000 |
Translate the following into a SQL query | Who had a score of 69-70=139? | SELECT Player FROM table WHERE Score = 69-70=139 |
Translate the following into a SQL query | What was the score of the game that had a result of 5–0? | SELECT Score FROM table WHERE Result = 5–0 |
Translate the following into a SQL query | What is the heat number of the athlete who finished in 2:23.95? | SELECT AVG Heat FROM table WHERE Time = 2:23.95 |
Translate the following into a SQL query | Which lane did the athlete from Zambia swim in? | SELECT Lane FROM table WHERE Nationality = zambia |
Translate the following into a SQL query | Who was the opponent at the game when the record was 4-5? | SELECT Opponent FROM table WHERE Record = 4-5 |
Translate the following into a SQL query | What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2 | SELECT AVG 2009 FROM table WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2 |
Translate the following into a SQL query | What is the listing for 2009 when 1989 is less than 0? | SELECT SUM 2009 FROM table WHERE 1989 < 0 |
Translate the following into a SQL query | what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5? | SELECT AVG 2005 FROM table WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 |
Translate the following into a SQL query | what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0? | SELECT SUM 1999 FROM table WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 |
Translate the following into a SQL query | what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11? | SELECT MIN 2012 FROM table WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11 |
Translate the following into a SQL query | what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2? | SELECT SUM 1992 FROM table WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2 |
Translate the following into a SQL query | How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps? | SELECT % of 1 Rep Max(Last Set) FROM table WHERE Set 4 = 145lb x 5reps |
Translate the following into a SQL query | How many lbs does a set 4 of 115lb x 8reps have? | SELECT Volume Lbs. FROM table WHERE Set 4 = 115lb x 8reps |
Translate the following into a SQL query | What is set 3 on week 6? | SELECT Set 3 FROM table WHERE Week = 6 |
Translate the following into a SQL query | What is the per-capita GDP for the country with an overall GDP of 156.640? | SELECT GDP per capita (US$) FROM table WHERE GDP (billion US$) = 156.640 |
Translate the following into a SQL query | What is the per-capita GDP of the country with an overall GDP of 80.955? | SELECT GDP per capita (US$) FROM table WHERE GDP (billion US$) = 80.955 |
Translate the following into a SQL query | Which country has an area of 871,980 square km? | SELECT Member countries FROM table WHERE Area (km²) = 871,980 |
Translate the following into a SQL query | On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match? | SELECT Outcome FROM table WHERE Partner = dora djilianova AND Date = october 1, 1995 |
Translate the following into a SQL query | With Lindsay Lee-Waters as a partner, what was the final score? | SELECT Score in the final FROM table WHERE Partner = lindsay lee-waters |
Translate the following into a SQL query | Which score has a Date of august 17? | SELECT Score FROM table WHERE Date = august 17 |
Translate the following into a SQL query | Which score has an Opponent of @ athletics, and a Record of 76-57? | SELECT Score FROM table WHERE Opponent = @ athletics AND Record = 76-57 |
Translate the following into a SQL query | Which loss has a Record of 67-51? | SELECT Loss FROM table WHERE Record = 67-51 |
Translate the following into a SQL query | Which position has 2 wins in 1992? | SELECT Position FROM table WHERE Wins = 2 AND Season = 1992 |
Translate the following into a SQL query | How many wins have a Series of formula nippon, and a Position of 8th? | SELECT Wins FROM table WHERE Series = formula nippon AND Position = 8th |
Translate the following into a SQL query | What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship> | SELECT MIN Season FROM table WHERE Races = 6 AND Series = all-japan gt championship AND Wins = 2 |
Translate the following into a SQL query | What was Mark Brooks total score when he finished more than 2 above par? | SELECT AVG Total FROM table WHERE To par > 2 AND Player = mark brooks |
Translate the following into a SQL query | What was the winning to par score of the 1993 PGA Championship? | SELECT To par FROM table WHERE Year(s) won = 1993 |
Translate the following into a SQL query | How many constructions has a Wheel arrange- ment of 4-4-0? | SELECT SUM Construct- tion no. FROM table WHERE Wheel arrange- ment = 4-4-0 |
Translate the following into a SQL query | Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)? | SELECT Builder FROM table WHERE TC&StL no. (1883–84) > 54 AND Date ordered = november 1881 |
Translate the following into a SQL query | What is the Season Outcome for the Sussex Central School? | SELECT Season Outcome FROM table WHERE School = sussex central |
Translate the following into a SQL query | What is the School of Sussex Tech's Team? | SELECT Team FROM table WHERE School = sussex tech |
Translate the following into a SQL query | What is the Team for the Milford School? | SELECT Team FROM table WHERE School = milford |
Translate the following into a SQL query | Which season was one of the players rated +33? | SELECT Season FROM table WHERE Rating = +33 |
Translate the following into a SQL query | What is the name of the team that had 1 win and a rating of +85? | SELECT Team FROM table WHERE Win # = 1 AND Rating = +85 |
Translate the following into a SQL query | Which season was one of the players rated +98? | SELECT Season FROM table WHERE Rating = +98 |
Translate the following into a SQL query | What is Patrice Bergeron's rating? | SELECT Rating FROM table WHERE Player = patrice bergeron |
Translate the following into a SQL query | Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? | SELECT AVG Overall FROM table WHERE Position = defensive tackle AND Round = 4 AND Pick # < 36 |
Translate the following into a SQL query | Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers? | SELECT COUNT Pick # FROM table WHERE Name = jaimie thomas AND Round < 7 |
Translate the following into a SQL query | What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? | SELECT Muzzle device FROM table WHERE Barrel twist = 1:7 AND Stock = 4th generation |
Translate the following into a SQL query | When was the opponent Poland and the match type EC -qualifier? | SELECT Date FROM table WHERE Opponenent = poland AND Match type = ec -qualifier |
Translate the following into a SQL query | Where was the opponent Germany? | SELECT Location FROM table WHERE Opponenent = germany |
Translate the following into a SQL query | Who was the opponent when the result was 2-2 (draw)? | SELECT Opponenent FROM table WHERE Result = 2-2 (draw) |
Translate the following into a SQL query | What was the match type in Budapest where the opponent was Luxembourg? | SELECT Match type FROM table WHERE Location = budapest AND Opponenent = luxembourg |
Translate the following into a SQL query | Which player has the score 72-67-69=208? | SELECT Player FROM table WHERE Score = 72-67-69=208 |
Translate the following into a SQL query | Who has the par score of 70-76-68-214? | SELECT To par FROM table WHERE Score = 70-76-68-214 |
Translate the following into a SQL query | Which country has the score 70-76-68-214? | SELECT Country FROM table WHERE Score = 70-76-68-214 |
Translate the following into a SQL query | when was the first performance for the ballet with peter mazurowski in the final cast? | SELECT First Performance FROM table WHERE Style = ballet AND Status = final cast AND Name = peter mazurowski |
Translate the following into a SQL query | who had the first performance on 3 july 2011? | SELECT Name FROM table WHERE First Performance = 3 july 2011 |
Translate the following into a SQL query | who had a last performance of 3 july 2011? | SELECT Name FROM table WHERE Last Performance = 3 july 2011 |
Translate the following into a SQL query | what's the status in the style of ballet/ gymnastics? | SELECT Status FROM table WHERE Style = ballet/ gymnastics |
Translate the following into a SQL query | what's the name with final cast status and first performance on 12 november 2011? | SELECT Name FROM table WHERE Status = final cast AND First Performance = 12 november 2011 |
Translate the following into a SQL query | what last performance has past status, ballet as style and tommy batchelor? | SELECT Last Performance FROM table WHERE Status = past AND Style = ballet AND Name = tommy batchelor |
Translate the following into a SQL query | How many goals was by Rix from Eng who started before 2005 in the youth system? | SELECT COUNT Goals FROM table WHERE Nat. = eng AND Transfer fee = youth system AND Since < 2005 AND Name = rix |
Translate the following into a SQL query | Where is Rix from? | SELECT Nat. FROM table WHERE Name = rix |
Translate the following into a SQL query | What is the specification of the locomotives with a total produced more than 19 and a model of fb-1? | SELECT Specification FROM table WHERE Total produced > 19 AND Model = fb-1 |
Translate the following into a SQL query | What is the build date of the locomotives with a total produced less than 45 and a fb-2 model? | SELECT Build date FROM table WHERE Total produced < 45 AND Model = fb-2 |
Translate the following into a SQL query | What is the prime mover of the locomotive with a fa-2 model? | SELECT Prime mover FROM table WHERE Model = fa-2 |
Translate the following into a SQL query | What is the build date of the locomotive with a fa-2 model? | SELECT Build date FROM table WHERE Model = fa-2 |
Translate the following into a SQL query | What region has a transmitter located at Mount Sugarloaf? | SELECT Region served FROM table WHERE Transmitter Location = mount sugarloaf |
Translate the following into a SQL query | Name the 3rd round for 1st eound of out of playoffs | SELECT 3rd round FROM table WHERE 1st round = out of playoffs |
Translate the following into a SQL query | Name the finals for prelim of out of playoffs | SELECT Finals FROM table WHERE Prelim = out of playoffs |
Translate the following into a SQL query | Name the 2nd round for 1st round of l, 1–3, sjnb | SELECT 2nd round FROM table WHERE 1st round = l, 1–3, sjnb |
Translate the following into a SQL query | Who is the musical director of the film Vettaiyaadu vilaiyaadu? | SELECT Music director FROM table WHERE Film = vettaiyaadu vilaiyaadu |
Translate the following into a SQL query | What is the 2007 film in Hindi with a music director Shantanu moitra? | SELECT Film FROM table WHERE Year = 2007 AND Language = hindi AND Music director = shantanu moitra |
Translate the following into a SQL query | What is the number of losses that coach John Kowalski has with a PTS smaller than 9? | SELECT COUNT Loss FROM table WHERE Coach = john kowalski AND PTS. < 9 |
Translate the following into a SQL query | What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? | SELECT AVG PCT. FROM table WHERE PTS. < 9 AND Wins > 1 |
Translate the following into a SQL query | What is the sum of PTS when there is a PCT smaller than 0.1? | SELECT SUM PTS. FROM table WHERE PCT. < 0.1 |
Translate the following into a SQL query | What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? | SELECT Coach FROM table WHERE PCT. > 0.1 AND PTS. > 9 AND Loss = 19 |
Translate the following into a SQL query | What's the name of spain rank greater than 2? | SELECT Name FROM table WHERE Rank > 2 AND Nationality = spain |
Translate the following into a SQL query | Spain had what time with lanes smaller than 4? | SELECT Time FROM table WHERE Lane < 4 AND Nationality = spain |
Translate the following into a SQL query | What's the smallest rank of noriko inada? | SELECT MIN Rank FROM table WHERE Name = noriko inada |
Translate the following into a SQL query | How many total losses have teams that played more than 30 games? | SELECT COUNT Lost FROM table WHERE Played > 30 |
Translate the following into a SQL query | What is the number of the rank when the time is 2:15.98, in a lane larger than 7? | SELECT COUNT Rank FROM table WHERE Time = 2:15.98 AND Lane > 7 |
Translate the following into a SQL query | What is the number of the rank for the name of Chen Yan in a lane less than 2? | SELECT COUNT Rank FROM table WHERE Name = chen yan AND Lane < 2 |
Translate the following into a SQL query | What is the smallest lane for rank 6? | SELECT MIN Lane FROM table WHERE Rank = 6 |
Translate the following into a SQL query | What's the total for a league cup less than 1? | SELECT COUNT League Cup FROM table WHERE Total < 1 |
Translate the following into a SQL query | What's the FA Cup that has a league less than 1? | SELECT SUM FA Cup FROM table WHERE League < 1 |
Translate the following into a SQL query | Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802? | SELECT MAX Villages FROM table WHERE Hanzi = 南流乡 AND Population > 24,802 |
Translate the following into a SQL query | What position did lap 296 come in? | SELECT Pos. FROM table WHERE Laps = 296 |
Translate the following into a SQL query | How many games did the Club that has a try bonus of 4 and 391 points against play ? | SELECT Played FROM table WHERE Try bonus = 4 AND Points against = 391 |
Translate the following into a SQL query | How many points against did Carmarthen Athletic RFC have when they played 22 games ? | SELECT Points against FROM table WHERE Played = 22 AND Club = carmarthen athletic rfc |
Translate the following into a SQL query | Which club lost 10 games ? | SELECT Club FROM table WHERE Lost = 10 |
Translate the following into a SQL query | How many points for did the club that had 77 tries for have ? | SELECT Points for FROM table WHERE Tries for = 77 |
Translate the following into a SQL query | Which club has a try bonus of 2 ? | SELECT Club FROM table WHERE Try bonus = 2 |
Translate the following into a SQL query | Name the most attendance for october 11 | SELECT MAX Attendance FROM table WHERE Date = october 11 |
Translate the following into a SQL query | Name the visitor for october 19 | SELECT Visitor FROM table WHERE Date = october 19 |
Translate the following into a SQL query | The highest year for the series titled dragon laws ii: kidnapped is what? | SELECT MAX Year FROM table WHERE Series title = dragon laws ii: kidnapped |
Translate the following into a SQL query | The series titled dragon laws i: the undercover has what role? | SELECT Role FROM table WHERE Series title = dragon laws i: the undercover |
Translate the following into a SQL query | Which athlete has the fastest time of 15.82? | SELECT Athlete FROM table WHERE Fastest time (s) = 15.82 |
Translate the following into a SQL query | What is the total number of years that an entrant had more than 0 points? | SELECT COUNT Year FROM table WHERE Points > 0 |
Translate the following into a SQL query | Name the total number of years for brm straight-4 | SELECT COUNT Year FROM table WHERE Engine = brm straight-4 |
Translate the following into a SQL query | Name the total number of points for chassis of bmw t269 (f2) | SELECT COUNT Points FROM table WHERE Chassis = bmw t269 (f2) |
Translate the following into a SQL query | Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? | SELECT MAX Promotions FROM table WHERE Team = pallacanestro messina AND Relegations > 0 |
Translate the following into a SQL query | What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985? | SELECT MIN Points FROM table WHERE Chassis = zakspeed 841 AND Year < 1985 |
Translate the following into a SQL query | What is the lowest year with tyres in g and less than 0 points? | SELECT MIN Year FROM table WHERE Tyres = g AND Points < 0 |
Translate the following into a SQL query | Which year has an Engine(s) of yamaha v8? | SELECT Year FROM table WHERE Engine(s) = yamaha v8 |
Translate the following into a SQL query | What are the average points with a Chassis of zakspeed 881? | SELECT AVG Points FROM table WHERE Chassis = zakspeed 881 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.