instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is Bobby Ryan's nationality? | SELECT Nationality FROM table WHERE Player = bobby ryan |
Translate the following into a SQL query | What's the location of the team Peter Stuyvesant International Racing? | SELECT City / State FROM table WHERE Team = peter stuyvesant international racing |
Translate the following into a SQL query | Who was the winner of the Adelaide International Raceway circuit? | SELECT Winner FROM table WHERE Circuit = adelaide international raceway |
Translate the following into a SQL query | What date has the Surfers Paradise International Raceway circuit? | SELECT Date FROM table WHERE Circuit = surfers paradise international raceway |
Translate the following into a SQL query | What is the race title of Dick Johnson Racing? | SELECT Race Title FROM table WHERE Team = dick johnson racing |
Translate the following into a SQL query | What is the career win-loss for the ATP Masters Series? | SELECT Career Win-Loss FROM table WHERE 1995 = atp masters series |
Translate the following into a SQL query | What's the least 180's of John Part having a LWAT less than 28 with 100+ less than 180? | SELECT MIN 180s FROM table WHERE LWAT < 28 AND Name = john part AND 100+ < 180 |
Translate the following into a SQL query | What's the LWAT having more than 43 for 180s, 194 for 100+, and more than 128 for 140+? | SELECT AVG LWAT FROM table WHERE 180s > 43 AND 100+ = 194 AND 140+ > 128 |
Translate the following into a SQL query | What's the total 140+ when the 100+ is 173? | SELECT COUNT 140+ FROM table WHERE 100+ = 173 |
Translate the following into a SQL query | What's the 100+ when the 140+ is less than 128 and the LWAT of 29? | SELECT SUM 100+ FROM table WHERE LWAT = 29 AND 140+ < 128 |
Translate the following into a SQL query | What's the Home ground(s) listed for the Name Melville Cricket Club? | SELECT Home ground(s) FROM table WHERE Name = melville cricket club |
Translate the following into a SQL query | What Name has the Captain Aaron Heal? | SELECT Name FROM table WHERE Captain = aaron heal |
Translate the following into a SQL query | What's the Nickname listed for the Name of University Cricket Club? | SELECT Nickname FROM table WHERE Name = university cricket club |
Translate the following into a SQL query | What Nickname has a Location of Southern River? | SELECT Nickname FROM table WHERE Location = southern river |
Translate the following into a SQL query | What is the Name listed for the Nickname of Storm? | SELECT Name FROM table WHERE Nickname = storm |
Translate the following into a SQL query | What Name has the Location of Bayswater? | SELECT Name FROM table WHERE Location = bayswater |
Translate the following into a SQL query | How many years have a Form album of the thing? | SELECT SUM Year FROM table WHERE From album = the thing |
Translate the following into a SQL query | Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul? | SELECT Label-Nr FROM table WHERE Year < 1968 AND Label = world pacific AND From album = chile con soul |
Translate the following into a SQL query | Which Year has a Label-Nr of 88146? | SELECT Year FROM table WHERE Label-Nr = 88146 |
Translate the following into a SQL query | How many years were there albums by heat wave? | SELECT SUM Year FROM table WHERE From album = heat wave |
Translate the following into a SQL query | Which Title has an album of tough talk, and a Label-Nr of x-371? | SELECT Title FROM table WHERE From album = tough talk AND Label-Nr = x-371 |
Translate the following into a SQL query | What is the lowest number of floors for the number 2 ranked Joyus Housing? | SELECT MIN Floors FROM table WHERE Name = joyus housing AND Rank < 2 |
Translate the following into a SQL query | What is the number of floors when the r Rank larger than 41, and a City of parel? | SELECT Floors FROM table WHERE Rank > 41 AND City = parel |
Translate the following into a SQL query | What is the rank for the city of sewri? | SELECT COUNT Rank FROM table WHERE City = sewri |
Translate the following into a SQL query | What rank has a status of proposed, with 80 floors for Celestia Spaces 4? | SELECT AVG Rank FROM table WHERE Status = proposed AND Floors = 80 AND Name = celestia spaces 4 |
Translate the following into a SQL query | What's the English Pluperfect when the Bulgarian is бяха чули? | SELECT English FROM table WHERE Bulgarian = бяха чули |
Translate the following into a SQL query | What's the Italian Pluperfect when the English is We Had Heard? | SELECT Italian FROM table WHERE English = we had heard |
Translate the following into a SQL query | What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu? | SELECT Portuguese FROM table WHERE French = ils/elles avaient entendu |
Translate the following into a SQL query | What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о? | SELECT German FROM table WHERE Macedonian = беше слушнал/-а/-о |
Translate the following into a SQL query | What is the least amount of silver for Italy with a total less than 5? | SELECT MIN Silver FROM table WHERE Nation = italy AND Total < 5 |
Translate the following into a SQL query | What is the total for Austria when there is less than 1 bronze? | SELECT AVG Total FROM table WHERE Nation = austria AND Bronze < 1 |
Translate the following into a SQL query | What is the total when silver is more than 3, and rank is 2? | SELECT MAX Total FROM table WHERE Silver > 3 AND Rank = 2 |
Translate the following into a SQL query | What is the gold number when total is more than 1, and bronze is 0, and rank is 5? | SELECT SUM Gold FROM table WHERE Total > 1 AND Bronze = 0 AND Rank = 5 |
Translate the following into a SQL query | What date was the episode that aired at 7:30 pm ET? | SELECT Date FROM table WHERE Time = 7:30 pm et |
Translate the following into a SQL query | What date did episode one air on? | SELECT Date FROM table WHERE Episode = one |
Translate the following into a SQL query | At what venue was the 2010 FIFA World Cup Qualification? | SELECT Venue FROM table WHERE Competition = 2010 fifa world cup qualification |
Translate the following into a SQL query | What's the snatch when the 139kg was 305kg and the Olympic Record was the world record? | SELECT Snatch FROM table WHERE World record = olympic record AND 139kg = 305kg |
Translate the following into a SQL query | What is the discipline for the summer Olympics in 2008? | SELECT Discipline FROM table WHERE Tournament = summer olympics AND Year = 2008 |
Translate the following into a SQL query | What venue has an extra of 45.08 S? | SELECT Venue FROM table WHERE Extra = 45.08 s |
Translate the following into a SQL query | What is the extra when the result is 4th at the NCAA Championships? | SELECT Extra FROM table WHERE Result = 4th AND Tournament = ncaa championships |
Translate the following into a SQL query | What tournament had an extra of 3:06.94 s? | SELECT Tournament FROM table WHERE Extra = 3:06.94 s |
Translate the following into a SQL query | Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? | SELECT MIN Time FROM table WHERE Nationality = jamaica AND Lane > 4 AND Rank < 1 |
Translate the following into a SQL query | Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06? | SELECT MIN Rank FROM table WHERE Lane = 5 AND Time < 11.06 |
Translate the following into a SQL query | Name the lowest Rank of carmelita jeter with a Time smaller than 11.08? | SELECT MIN Rank FROM table WHERE Name = carmelita jeter AND Time < 11.08 |
Translate the following into a SQL query | When the points are 98 what is the draw? | SELECT COUNT Draw FROM table WHERE Points = 98 |
Translate the following into a SQL query | What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen? | SELECT TOTAL Time in Office: FROM table WHERE Rank: < 18 AND Premier: = joh bjelke-petersen |
Translate the following into a SQL query | What is the assumed Office date when the TOTAL Time in Office is 5years, 316days? | SELECT Assumed Office: FROM table WHERE TOTAL Time in Office: = 5years, 316days |
Translate the following into a SQL query | What Akakios Kakiasvilis (GRE) is 187kg the 188kg? | SELECT Akakios Kakiasvilis ( GRE ) FROM table WHERE 188kg = 187kg |
Translate the following into a SQL query | What world record has the 188kg as 187kg? | SELECT World record FROM table WHERE 188kg = 187kg |
Translate the following into a SQL query | For what 188kg is the world record clean & jerk? | SELECT 188kg FROM table WHERE World record = clean & jerk |
Translate the following into a SQL query | What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? | SELECT Year FROM table WHERE Opponent in the final = brenda schultz-mccarthy AND Score = 6–7(5), 2–6 |
Translate the following into a SQL query | What year had a score of 4–6, 7–6, 7–5? | SELECT Year FROM table WHERE Score = 4–6, 7–6, 7–5 |
Translate the following into a SQL query | Who was the away team for the match with a home team of Citizen Team A? | SELECT Away team FROM table WHERE Home team = citizen team a |
Translate the following into a SQL query | What was the score for the match with a home team of Citizen Team A? | SELECT Score FROM table WHERE Home team = citizen team a |
Translate the following into a SQL query | Who was the home team in the match that had an away team of Convoy Sun Hei Team B? | SELECT Home team FROM table WHERE Away team = convoy sun hei team b |
Translate the following into a SQL query | What time did the match with an away team of Happy Valley Team B start? | SELECT Time FROM table WHERE Away team = happy valley team b |
Translate the following into a SQL query | What is the 2nd leg when second team is Sumykhimprom? | SELECT 2nd leg FROM table WHERE Team #2 = sumykhimprom |
Translate the following into a SQL query | What is the agg when the seconf leg is 58-75? | SELECT Agg. FROM table WHERE 2nd leg = 58-75 |
Translate the following into a SQL query | What is the first team when the 2nd leg is 100-113? | SELECT Team #1 FROM table WHERE 2nd leg = 100-113 |
Translate the following into a SQL query | What is team 1 when the 1st leg is 92-82? | SELECT Team #1 FROM table WHERE 1st leg = 92-82 |
Translate the following into a SQL query | What is team number 1 when then 2nd leg is 64-97? | SELECT Team #1 FROM table WHERE 2nd leg = 64-97 |
Translate the following into a SQL query | What is the 1st leg when team number 1 is CSU SIBIU? | SELECT 1st leg FROM table WHERE Team #1 = csu sibiu |
Translate the following into a SQL query | What is the average duration in 2007/08 with more than 3.8 in 2002/03, more than 8.9 in 2003/04, and less than 34.4 in 2001/02? | SELECT AVG 2007/08 FROM table WHERE 2002/03 > 3.8 AND 2003/04 > 8.9 AND 2001/02 < 34.4 |
Translate the following into a SQL query | What is the total duration in 2006/07 with 191,321 in 2003/04 and less than 160,920 in 2001/02? | SELECT COUNT 2006/07 FROM table WHERE 2003/04 = 191,321 AND 2001/02 < 160,920 |
Translate the following into a SQL query | Which Time/Retired has Laps smaller than 100, and Points larger than 0? | SELECT Time/Retired FROM table WHERE Laps < 100 AND Points > 0 |
Translate the following into a SQL query | Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | SELECT AVG Laps FROM table WHERE Time/Retired = + 4 laps AND Grid > 18 |
Translate the following into a SQL query | Which Team has Laps of 100, and a Time/Retired of +8.6 secs? | SELECT Team FROM table WHERE Laps = 100 AND Time/Retired = +8.6 secs |
Translate the following into a SQL query | What runs has 11 matches, and 2 as the 100s? | SELECT Runs FROM table WHERE Matches = 11 AND 100s = 2 |
Translate the following into a SQL query | What matches is 2 the 100s? | SELECT Matches FROM table WHERE 100s = 2 |
Translate the following into a SQL query | What strike rate is 9 the matches? | SELECT Strike Rate FROM table WHERE Matches = 9 |
Translate the following into a SQL query | Which player has 79.62 as the strike rate? | SELECT Player FROM table WHERE Strike Rate = 79.62 |
Translate the following into a SQL query | With 10 as matches, and 469 runs, what is the strike rate? | SELECT Strike Rate FROM table WHERE Matches = 10 AND Runs = 469 |
Translate the following into a SQL query | When the strike rate is 70.10, what is the balls? | SELECT Balls FROM table WHERE Strike Rate = 70.10 |
Translate the following into a SQL query | What nation has a time of 51.35 in the final heat? | SELECT Nation FROM table WHERE Time = 51.35 AND Heat/Semifinal/Final = final |
Translate the following into a SQL query | Which heat, semifinal or final has a time of 48.97? | SELECT Heat/Semifinal/Final FROM table WHERE Time = 48.97 |
Translate the following into a SQL query | What heat, semifinal or final has a time of 25.00? | SELECT Heat/Semifinal/Final FROM table WHERE Time = 25.00 |
Translate the following into a SQL query | What date was the men's 100m breaststroke in heat 6? | SELECT Date FROM table WHERE Event = men's 100m breaststroke AND Heat/Semifinal/Final = heat 6 |
Translate the following into a SQL query | Marion Buisson with a 4.00 of o had what result? | SELECT Result FROM table WHERE 4.00 = o AND Name = marion buisson |
Translate the following into a SQL query | Anastasija Reiberger from Germany had what 4.00? | SELECT 4.00 FROM table WHERE Nationality = germany AND Name = anastasija reiberger |
Translate the following into a SQL query | Alana Boyd of group B with a 4.30 result has what nationality? | SELECT Nationality FROM table WHERE Group = b AND Result = 4.30 AND Name = alana boyd |
Translate the following into a SQL query | Roslinda Samsu has what nationality? | SELECT Nationality FROM table WHERE Name = roslinda samsu |
Translate the following into a SQL query | What nation is Marion Buisson playing for? | SELECT Nationality FROM table WHERE Name = marion buisson |
Translate the following into a SQL query | Who is the rower from Canada? | SELECT Rowers FROM table WHERE Country = canada |
Translate the following into a SQL query | What is the sum of the rank of the rower with an r note from Australia? | SELECT SUM Rank FROM table WHERE Notes = r AND Country = australia |
Translate the following into a SQL query | What is the country with a rank less than 2? | SELECT Country FROM table WHERE Rank < 2 |
Translate the following into a SQL query | What notes did Gabriella Bascelli receive? | SELECT Notes FROM table WHERE Athlete = gabriella bascelli |
Translate the following into a SQL query | What rank did the time of 7:31.90 receive? | SELECT COUNT Rank FROM table WHERE Time = 7:31.90 |
Translate the following into a SQL query | Which Romaji Title has a Japanese Title of 女王の教室? | SELECT Romaji Title FROM table WHERE Japanese Title = 女王の教室 |
Translate the following into a SQL query | How many Episodes have a Romaji Title of slow dance? | SELECT SUM Episodes FROM table WHERE Romaji Title = slow dance |
Translate the following into a SQL query | How many Episodes have a Romaji Title of dragon zakura? | SELECT COUNT Episodes FROM table WHERE Romaji Title = dragon zakura |
Translate the following into a SQL query | Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? | SELECT Format FROM table WHERE Label = columbia AND Catalog < 88697411432 AND Date = october 24, 2008 |
Translate the following into a SQL query | Which Catalog has a Date of july 15, 2011? | SELECT AVG Catalog FROM table WHERE Date = july 15, 2011 |
Translate the following into a SQL query | Which opponent was on July 21, 2008? | SELECT Opponent FROM table WHERE Date = july 21, 2008 |
Translate the following into a SQL query | What was the date of the tournament with a clay surface and an opponent of Irina Falconi? | SELECT Date FROM table WHERE Surface = clay AND Opponent = irina falconi |
Translate the following into a SQL query | Who was the opponent on May 10, 2009? | SELECT Opponent FROM table WHERE Date = may 10, 2009 |
Translate the following into a SQL query | What is the score of the home team, bath city? | SELECT Score FROM table WHERE Home team = bath city |
Translate the following into a SQL query | What was the score for the away team southport? | SELECT Score FROM table WHERE Away team = southport |
Translate the following into a SQL query | What is the home team that had an away team of lincoln city? | SELECT Home team FROM table WHERE Away team = lincoln city |
Translate the following into a SQL query | What date had a game with wycombe wanderers as the away team? | SELECT Date FROM table WHERE Away team = wycombe wanderers |
Translate the following into a SQL query | How many places have an Artist of augustė, and a Draw smaller than 6? | SELECT COUNT Place FROM table WHERE Artist = augustė AND Draw < 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.