instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the event for the year less than 1913 with the position of 2nd? | SELECT Event FROM table WHERE Year < 1913 AND Position = 2nd |
Translate the following into a SQL query | what is the competition in paris for the parallel bars with a position of 1st? | SELECT Competition FROM table WHERE Venue = paris AND Position = 1st AND Event = parallel bars |
Translate the following into a SQL query | what is the competition in a year after 1911 with the position of 1st for the rings? | SELECT Competition FROM table WHERE Year > 1911 AND Position = 1st AND Event = rings |
Translate the following into a SQL query | what is the year that the position was 1st in paris? | SELECT Year FROM table WHERE Position = 1st AND Venue = paris |
Translate the following into a SQL query | Which team plays their home matches at the mcg Venue? | SELECT Home team FROM table WHERE Venue = mcg |
Translate the following into a SQL query | What host has an original air date of june 11, 2007? | SELECT Host FROM table WHERE Original Airdate = june 11, 2007 |
Translate the following into a SQL query | Where is the location of a team with a 3-2 record? | SELECT Location FROM table WHERE Record = 3-2 |
Translate the following into a SQL query | What is the result of the team with the 4-2 record? | SELECT Res. FROM table WHERE Record = 4-2 |
Translate the following into a SQL query | What day was played in SCG with the attendance more than 24,824? | SELECT Date FROM table WHERE Crowd > 24,824 AND Venue = scg |
Translate the following into a SQL query | What was St Kilda's away team score? | SELECT Away team score FROM table WHERE Home team = st kilda |
Translate the following into a SQL query | What was the attendance at Moorabbin Oval? | SELECT AVG Crowd FROM table WHERE Venue = moorabbin oval |
Translate the following into a SQL query | Who was Melbourne's away team opponent? | SELECT Away team FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | What was the attendance at the Footscray away game? | SELECT Crowd FROM table WHERE Away team = footscray |
Translate the following into a SQL query | Tell me the competition that happened on 14 june 2008 | SELECT Competition FROM table WHERE Date = 14 june 2008 |
Translate the following into a SQL query | Tell me the score for Venue of tanteen recreation ground, st. george's | SELECT Score FROM table WHERE Venue = tanteen recreation ground, st. george's |
Translate the following into a SQL query | How many weeks are associated with Season 3 – spring 2008? | SELECT COUNT # of Weeks FROM table WHERE Season = 3 – spring 2008 |
Translate the following into a SQL query | Who won when robert kudelski finished with under 13 weeks? | SELECT Winner FROM table WHERE # of Weeks < 13 AND Third place = robert kudelski |
Translate the following into a SQL query | What is the average attendance when Brewers are the opponent with a score of 6–3? | SELECT AVG Attendance FROM table WHERE Opponent = brewers AND Score = 6–3 |
Translate the following into a SQL query | What loss occurred on June 10? | SELECT Loss FROM table WHERE Date = june 10 |
Translate the following into a SQL query | Who is the opponent with a score of 5–4? | SELECT Opponent FROM table WHERE Score = 5–4 |
Translate the following into a SQL query | What is the week for Result of w 28-17? | SELECT Week FROM table WHERE Result = w 28-17 |
Translate the following into a SQL query | What is the avarage Attendance for the Date of october 26, 1947? | SELECT AVG Attendance FROM table WHERE Date = october 26, 1947 |
Translate the following into a SQL query | Can you tell me the Years that has the Name of arapohue school? | SELECT Years FROM table WHERE Name = arapohue school |
Translate the following into a SQL query | Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86? | SELECT MIN Decile FROM table WHERE Area = matakohe AND Roll > 86 |
Translate the following into a SQL query | Can you tell me the total number of Roll that has the Area of aranga? | SELECT COUNT Roll FROM table WHERE Area = aranga |
Translate the following into a SQL query | Can you tell me the Name that has the Roll larger than 419? | SELECT Name FROM table WHERE Roll > 419 |
Translate the following into a SQL query | Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? | SELECT COUNT Week FROM table WHERE Opponent = at new orleans saints AND Attendance > 53,448 |
Translate the following into a SQL query | Which Attendance has a Result of w 51-21? | SELECT Attendance FROM table WHERE Result = w 51-21 |
Translate the following into a SQL query | Who was the Away team at Arden Street Oval? | SELECT Away team FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | What is the smallest crowd size for a game when the away team scored 17.16 (118)? | SELECT MIN Crowd FROM table WHERE Away team score = 17.16 (118) |
Translate the following into a SQL query | What is the average top-25 value for majors that have more than 0 wins? | SELECT AVG Top-25 FROM table WHERE Wins > 0 |
Translate the following into a SQL query | What is the most number of cuts made that had more than 7 events played and more than 2 top-25s? | SELECT MAX Cuts made FROM table WHERE Events = 7 AND Top-25 > 2 |
Translate the following into a SQL query | For top-25 values under 2, what is the average number of cuts made? | SELECT AVG Cuts made FROM table WHERE Top-25 < 2 |
Translate the following into a SQL query | With a dail of 24th and more than 57 seats, what is the election? | SELECT Election FROM table WHERE Seats > 57 AND Dáil = 24th |
Translate the following into a SQL query | with shares of 45.3% and total seats less than 166. what is the greatest number of seat? | SELECT MAX Seats FROM table WHERE Share of votes = 45.3% AND Total seats < 166 |
Translate the following into a SQL query | with a share of 44.2% and 77 seats, what is the greatest seat total? | SELECT MAX Total seats FROM table WHERE Seats = 77 AND Share of votes = 44.2% |
Translate the following into a SQL query | What is the long in 1994? | SELECT Long FROM table WHERE Year = 1994 |
Translate the following into a SQL query | Which team has a long of 67? | SELECT Team FROM table WHERE Long = 67 |
Translate the following into a SQL query | What is the RAvg of the year with Ratt of 9? | SELECT RAvg FROM table WHERE RAtt = 9 |
Translate the following into a SQL query | What is the Ratt of the year with a 78 long? | SELECT RAtt FROM table WHERE Long = 78 |
Translate the following into a SQL query | Which team has a Ravg of 1.3? | SELECT Team FROM table WHERE RAvg = 1.3 |
Translate the following into a SQL query | What is the rate of 17 years? | SELECT Rate FROM table WHERE Year = 17 years |
Translate the following into a SQL query | Name the samurai for stampede of t. mask | SELECT Samurai FROM table WHERE Stampede = t. mask |
Translate the following into a SQL query | Which series is based in Toronto on may 18? | SELECT Series FROM table WHERE Home = toronto AND Date = may 18 |
Translate the following into a SQL query | What is the combined crowd in Vancouver on may 22? | SELECT SUM Attendance FROM table WHERE Home = vancouver AND Date = may 22 |
Translate the following into a SQL query | Tell me the 2012 when 2005 is 314 | SELECT 2012 FROM table WHERE 2005 = 314 |
Translate the following into a SQL query | What position does the player with 13 caps play? | SELECT Position FROM table WHERE Caps = 13 |
Translate the following into a SQL query | How many caps for mike macdonald? | SELECT SUM Caps FROM table WHERE Player = mike macdonald |
Translate the following into a SQL query | Tell me the position for round less than 3 | SELECT Position FROM table WHERE Round < 3 |
Translate the following into a SQL query | Name the nationality for d | SELECT Nationality FROM table WHERE Position = d |
Translate the following into a SQL query | What sort of Fuel/Trans does the Grey & Red locomotive have? | SELECT Fuel/ Trans FROM table WHERE Colour = grey & red |
Translate the following into a SQL query | What is the status of the Cub/John locomotive? | SELECT Status FROM table WHERE Name = the cub/john |
Translate the following into a SQL query | What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric? | SELECT Built FROM table WHERE Fuel/ Trans = diesel-electric |
Translate the following into a SQL query | What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service? | SELECT Built FROM table WHERE Wheels = 0-4-0 AND Status = in service |
Translate the following into a SQL query | What is the color of the locomotive built by Minirail 1954? | SELECT Colour FROM table WHERE Built = minirail 1954 |
Translate the following into a SQL query | What's the total number of rounds with a win result at the sf 5: stadium event? | SELECT COUNT Round FROM table WHERE Res. = win AND Event = sf 5: stadium |
Translate the following into a SQL query | What location was fábio maldonado the opponent at? | SELECT Location FROM table WHERE Opponent = fábio maldonado |
Translate the following into a SQL query | How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4? | SELECT COUNT Final Rank FROM table WHERE Rank in FS = 3 AND Rank in SP > 4 |
Translate the following into a SQL query | What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5? | SELECT AVG Rank in SP FROM table WHERE Rank in FS > 2 AND Final Rank > 5 |
Translate the following into a SQL query | What tournament is listed as A in 1972 and 2R in 1975? | SELECT Tournament FROM table WHERE 1972 = a AND 1975 = 2r |
Translate the following into a SQL query | What is theW-L of the tournament listed as A for 1976? | SELECT Career W–L FROM table WHERE 1976 = a |
Translate the following into a SQL query | What is the listing for the US Open in 1977? | SELECT 1977 FROM table WHERE Tournament = us open |
Translate the following into a SQL query | What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974? | SELECT Career W–L FROM table WHERE 1968 = a AND 1974 = 4r |
Translate the following into a SQL query | What is the combined consumption of 1.6 16v? | SELECT Combined consumption FROM table WHERE Name = 1.6 16v |
Translate the following into a SQL query | What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code? | SELECT Power FROM table WHERE Combined consumption = (gas/ethanol) AND Code = k7m hi-torque |
Translate the following into a SQL query | What is the combined consumption of the engine with the code k9k 796? | SELECT Combined consumption FROM table WHERE Code = k9k 796 |
Translate the following into a SQL query | What is the torque of the engine with a type 16 valves dohc and a code k4m hi-flex? | SELECT Torque FROM table WHERE Type = 16 valves dohc AND Code = k4m hi-flex |
Translate the following into a SQL query | Who had the highest assists on the November 13 game? | SELECT High assists FROM table WHERE Date = november 13 |
Translate the following into a SQL query | What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7? | SELECT MAX Date FROM table WHERE Score in the final = 1–6, 4–6, 5–7 |
Translate the following into a SQL query | What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface? | SELECT Championship FROM table WHERE Surface = clay AND Score in the final = 6–2, 5–7, 6–4, 6–2 |
Translate the following into a SQL query | What was the score in the final, that Víctor Pecci was the opponent and winner after 1984? | SELECT Score in the final FROM table WHERE Date > 1984 AND Outcome = winner AND Opponent in the final = víctor pecci |
Translate the following into a SQL query | Which championship had a score in the final of 3–6, 6–4, 5–7? | SELECT Championship FROM table WHERE Score in the final = 3–6, 6–4, 5–7 |
Translate the following into a SQL query | What is the grid total when there are 37 laps? | SELECT COUNT Grid FROM table WHERE Laps = 37 |
Translate the following into a SQL query | What constructor has a grid less than 13 with under 9 laps? | SELECT Constructor FROM table WHERE Grid < 13 AND Laps < 9 |
Translate the following into a SQL query | What year was the Competition of World Junior Championships with a 20th (qf) position? | SELECT AVG Year FROM table WHERE Competition = world junior championships AND Position = 20th (qf) |
Translate the following into a SQL query | What was the notes of the 400 m event before 2004 with a position of 12th (h)? | SELECT Notes FROM table WHERE Event = 400 m AND Year < 2004 AND Position = 12th (h) |
Translate the following into a SQL query | Which venue had a note of 3:34.88 after 2003? | SELECT Venue FROM table WHERE Year > 2003 AND Notes = 3:34.88 |
Translate the following into a SQL query | What were the notes of the All-Africa Games before 2007? | SELECT Notes FROM table WHERE Competition = all-africa games AND Year < 2007 |
Translate the following into a SQL query | Which event in 2007 had a position of 5th? | SELECT Event FROM table WHERE Year = 2007 AND Position = 5th |
Translate the following into a SQL query | How many attended the game on 12/17 with stephen jackson as the leading scorer? | SELECT SUM Attendance FROM table WHERE Leading scorer = stephen jackson AND Date = 12/17 |
Translate the following into a SQL query | WHAT WAS THE SCORE IN THE FINAL PLAYED AGAINST JOSE CHECA-CALVO IN THE SANT CUGAT TOURNAMENT ? | SELECT Score FROM table WHERE Tournament = sant cugat AND Opponent in the final = jose checa-calvo |
Translate the following into a SQL query | WHAT WAS THE SCORE IN THE FINAL AGAINST RABIE CHAKI? | SELECT Score FROM table WHERE Opponent in the final = rabie chaki |
Translate the following into a SQL query | What was the away team's score when Collingwood was the home team? | SELECT Away team score FROM table WHERE Home team = collingwood |
Translate the following into a SQL query | Who was the home team for the game played at Victoria Park? | SELECT Home team FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | Who was the home team when Fitzroy was the away team? | SELECT Home team FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | Who was the home team for the game played at Lake Oval? | SELECT Home team FROM table WHERE Venue = lake oval |
Translate the following into a SQL query | Who was the opponent in the championship in Johannesburg, South Africa? | SELECT Opponent in the final FROM table WHERE Championship = johannesburg, south africa |
Translate the following into a SQL query | What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has? | SELECT MIN Wins FROM table WHERE Pct. > 0.526 AND Rank < 37 AND Losses = 947 |
Translate the following into a SQL query | I want the total number of people in the crowd for essendon home team | SELECT COUNT Crowd FROM table WHERE Home team = essendon |
Translate the following into a SQL query | How many grids have 102 laps and a Time/Retired of + 6.18? | SELECT COUNT Grid FROM table WHERE Laps > 102 AND Time/Retired = + 6.18 |
Translate the following into a SQL query | How many laps did innes ireland drive with a grid higher than 11? | SELECT SUM Laps FROM table WHERE Driver = innes ireland AND Grid > 11 |
Translate the following into a SQL query | What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? | SELECT AVG Grid FROM table WHERE Constructor = brm AND Driver = tony maggs AND Laps > 102 |
Translate the following into a SQL query | I want the score for 23 july 1992 | SELECT Score FROM table WHERE Date = 23 july 1992 |
Translate the following into a SQL query | I want the venue for 23 july 1992 | SELECT Venue FROM table WHERE Date = 23 july 1992 |
Translate the following into a SQL query | What is the Time/Retired that has a Grid smaller than 8, 73 laps, and a Constructor of williams - bmw? | SELECT Time/Retired FROM table WHERE Grid < 8 AND Laps = 73 AND Constructor = williams - bmw |
Translate the following into a SQL query | Which away team has a home team score of 12.10 (82)? | SELECT Away team FROM table WHERE Home team score = 12.10 (82) |
Translate the following into a SQL query | On what date was Richmond playing as an away team? | SELECT Date FROM table WHERE Away team = richmond |
Translate the following into a SQL query | What is the crowd size for Victoria park? | SELECT Crowd FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What is the average crowd size for princes park? | SELECT AVG Crowd FROM table WHERE Venue = princes park |
Translate the following into a SQL query | What is the home team score when the away team score is 17.18 (120)? | SELECT Home team score FROM table WHERE Away team score = 17.18 (120) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.