instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which nation's total is less than 19 when there's less than 1 bronze? | SELECT Nation FROM table WHERE Total < 19 AND Bronze < 1 |
Translate the following into a SQL query | How many totals does Chile have when the number of silvers is more than 0? | SELECT COUNT Total FROM table WHERE Nation = chile AND Silver > 0 |
Translate the following into a SQL query | What was the record when TKO (punches and elbows) was the method? | SELECT Record FROM table WHERE Method = tko (punches and elbows) |
Translate the following into a SQL query | What venue has don bradman (nsw) as the player? | SELECT Venue FROM table WHERE Player = don bradman (nsw) |
Translate the following into a SQL query | What rank has Bill Ponsford (vic) as the player? | SELECT Rank FROM table WHERE Player = bill ponsford (vic) |
Translate the following into a SQL query | What match has Clem Hill (sa) as the player? | SELECT Match FROM table WHERE Player = clem hill (sa) |
Translate the following into a SQL query | Who played on December 25, 1925? | SELECT Competition FROM table WHERE Date = december 25, 1925 |
Translate the following into a SQL query | What was the score for the South American Championship dated December 13, 1925? | SELECT Result FROM table WHERE Competition = south american championship AND Date = december 13, 1925 |
Translate the following into a SQL query | What is the average number of House of Representatives seats had an abbreviation of d66? | SELECT AVG House of Rep. seats FROM table WHERE Abbr. = d66 |
Translate the following into a SQL query | For the tournament played on Oct 17, 1982, what was the winning score? | SELECT Winning score FROM table WHERE Date = oct 17, 1982 |
Translate the following into a SQL query | For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up? | SELECT Runner(s)-up FROM table WHERE Margin of victory = 5 strokes AND Date = nov 13, 1988 |
Translate the following into a SQL query | On what date was the tournament played that eneded with a winning score of +6 (74-71-70-71=286) and margin of victory of 2 strokes, and with Arnold palmer as the runner-up? | SELECT Date FROM table WHERE Runner(s)-up = arnold palmer AND Margin of victory = 2 strokes AND Winning score = +6 (74-71-70-71=286) |
Translate the following into a SQL query | What is 2008, when 2006 is "Grand Slam Tournaments"? | SELECT 2008 FROM table WHERE 2006 = grand slam tournaments |
Translate the following into a SQL query | What is 2007, when 2003 is 1R? | SELECT 2007 FROM table WHERE 2003 = 1r |
Translate the following into a SQL query | What is the Tournament, when 2012 is 3R? | SELECT Tournament FROM table WHERE 2012 = 3r |
Translate the following into a SQL query | What is Tournament, when 2009 is "Grand Slam Tournaments"? | SELECT Tournament FROM table WHERE 2009 = grand slam tournaments |
Translate the following into a SQL query | Which Free polite has a Genitive 3 of *ni-da? | SELECT Free polite FROM table WHERE Genitive 3 = *ni-da |
Translate the following into a SQL query | Which Free polite has a Genitive 1 of *=ku? | SELECT Free polite FROM table WHERE Genitive 1 = *=ku |
Translate the following into a SQL query | Which Free has a Free polite of *[i-]k-ita? | SELECT Free FROM table WHERE Free polite = *[i-]k-ita |
Translate the following into a SQL query | Which Free polite has a Genitive 3 of *n(i)-ami? | SELECT Free polite FROM table WHERE Genitive 3 = *n(i)-ami |
Translate the following into a SQL query | Which Genitive 1 has a Free polite of –, and a Genitive 2 of –, and a Genitive 3 of *n(i)-ia? | SELECT Genitive 1 FROM table WHERE Free polite = – AND Genitive 2 = – AND Genitive 3 = *n(i)-ia |
Translate the following into a SQL query | Which Genitive 1 has a Genitive 3 of *n(i)-ia? | SELECT Genitive 1 FROM table WHERE Genitive 3 = *n(i)-ia |
Translate the following into a SQL query | What is the Proto-Oceanic verb for the verb to sew? | SELECT Proto-Oceanic FROM table WHERE Verb = to sew |
Translate the following into a SQL query | What is the verb for the Proto-Austronesian word *diri? | SELECT Verb FROM table WHERE Proto-Austronesian = *diri |
Translate the following into a SQL query | What is the Proto-Oceanic verb for to die, be dead? | SELECT Proto-Oceanic FROM table WHERE Verb = to die, be dead |
Translate the following into a SQL query | What is the verb for the Proto-Polynesian word *mohe? | SELECT Verb FROM table WHERE Proto-Polynesian = *mohe |
Translate the following into a SQL query | What is the Proto-Austronesian word for the Proto-Polynesian word *tui? | SELECT Proto-Austronesian FROM table WHERE Proto-Polynesian = *tui |
Translate the following into a SQL query | What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi? | SELECT Proto-Malayo-Polynesian FROM table WHERE Proto-Oceanic = *saqit, *turi |
Translate the following into a SQL query | What station has a genre of talk music and is in Malay English language? | SELECT Station FROM table WHERE Genre = talk music AND Language = malay english |
Translate the following into a SQL query | Which genre is the fly fm station? | SELECT Genre FROM table WHERE Station = fly fm |
Translate the following into a SQL query | What frequency is the xfm station, which is part of the talk music genre? | SELECT Frequency FROM table WHERE Genre = talk music AND Station = xfm |
Translate the following into a SQL query | What is the coverage area of muzik fm station, which has a music genre? | SELECT Coverage Area FROM table WHERE Genre = music AND Station = muzik fm |
Translate the following into a SQL query | What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010? | SELECT Co-Drivers FROM table WHERE Laps > 196 AND Year < 2010 |
Translate the following into a SQL query | What is the Date when the week is more than 3 and the attendance shows bye? | SELECT Date FROM table WHERE Week > 3 AND Attendance = bye |
Translate the following into a SQL query | What is the Result when the week is later than 9, and there are 65,858 people in attendance? | SELECT Result FROM table WHERE Week > 9 AND Attendance = 65,858 |
Translate the following into a SQL query | What is the 1938 that has N/A for 1948? | SELECT 1938 FROM table WHERE 1948 = n/a |
Translate the following into a SQL query | What 1953 has 2 for 1947, and dne as 1938? | SELECT 1953 FROM table WHERE 1947 = 2 AND 1938 = dne |
Translate the following into a SQL query | What 1935 has 4 as a 1953? | SELECT 1935 FROM table WHERE 1953 = 4 |
Translate the following into a SQL query | What 1953 has 2 as a 1949, and 3 as 1952? | SELECT 1953 FROM table WHERE 1949 = 2 AND 1952 = 3 |
Translate the following into a SQL query | What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953? | SELECT 1941 FROM table WHERE 1945 = n/a AND 1948 = n/a AND 1953 = 9 |
Translate the following into a SQL query | What 1951 has dne for 1948? | SELECT 1951 FROM table WHERE 1948 = dne |
Translate the following into a SQL query | Which Cup Apps (sub) had 2 goals? | SELECT Cup Apps (sub) FROM table WHERE Cup Goals = 2 |
Translate the following into a SQL query | Which Total Apps (sub) has 6 goals total? | SELECT Total Apps (Sub) FROM table WHERE Total Goals = 6 |
Translate the following into a SQL query | What airline has a IATA of BX? | SELECT AIRLINE FROM table WHERE IATA = bx |
Translate the following into a SQL query | What is the ICAO for Asiana Airlines? | SELECT ICAO FROM table WHERE AIRLINE = asiana airlines |
Translate the following into a SQL query | What is the commenced operation where the ICAO is KAL? | SELECT COMMENCED OPERATIONS FROM table WHERE ICAO = kal |
Translate the following into a SQL query | What is the ICAO for Air Busan? | SELECT ICAO FROM table WHERE CALLSIGN = air busan |
Translate the following into a SQL query | What is the callsign where the ICAO is AAR? | SELECT CALLSIGN FROM table WHERE ICAO = aar |
Translate the following into a SQL query | What is the highest Goal for danny williams, with more than 0 Field Goals? | SELECT MAX Goals FROM table WHERE Player = danny williams AND Field Goals > 0 |
Translate the following into a SQL query | What is the average Tries with less than 0 goals? | SELECT AVG Tries FROM table WHERE Goals < 0 |
Translate the following into a SQL query | What is the total number of Points with less than 1 tries, and more than 0 goals? | SELECT COUNT Points FROM table WHERE Tries < 1 AND Goals > 0 |
Translate the following into a SQL query | Which club/province has more than 9 caps and Ben Franks as a player? | SELECT Club/province FROM table WHERE Caps > 9 AND Player = ben franks |
Translate the following into a SQL query | In which tournament was Ian Baker-Finch the runner-up? | SELECT Tournament FROM table WHERE Runner(s)-up = ian baker-finch |
Translate the following into a SQL query | What tournament was played on Feb 3, 1991? | SELECT Tournament FROM table WHERE Date = feb 3, 1991 |
Translate the following into a SQL query | In the Phoenix Open, what was the winning score? | SELECT Winning score FROM table WHERE Tournament = phoenix open |
Translate the following into a SQL query | In the tournament where Stuart Appleby was the runner-up, what was the margin of victory? | SELECT Margin of victory FROM table WHERE Runner(s)-up = stuart appleby |
Translate the following into a SQL query | What is the lowest number played with more than 30 points? | SELECT MIN Played FROM table WHERE Points > 30 |
Translate the following into a SQL query | What is the highest number lost with more than 29 points and an against less than 19? | SELECT MAX Lost FROM table WHERE Points > 29 AND Against < 19 |
Translate the following into a SQL query | What is the total number played with a difference of 22 and less than 34 against? | SELECT COUNT Played FROM table WHERE Difference = 22 AND Against < 34 |
Translate the following into a SQL query | What is the western title of the pinyin new chāojí mǎlìōu xiōngdì? | SELECT Western Title FROM table WHERE Pinyin = new chāojí mǎlìōu xiōngdì |
Translate the following into a SQL query | What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode? | SELECT Genre FROM table WHERE Game Modes = single-player AND Chinese Title = 摸摸瓦力欧制造 |
Translate the following into a SQL query | What is the pinyin for the Chinese title 直感一笔? | SELECT Pinyin FROM table WHERE Chinese Title = 直感一笔 |
Translate the following into a SQL query | What is the release date for the Chinese title 摸摸瓦力欧制造? | SELECT Released Date FROM table WHERE Chinese Title = 摸摸瓦力欧制造 |
Translate the following into a SQL query | What is the western title for the puzzle genre? | SELECT Western Title FROM table WHERE Genre = puzzle |
Translate the following into a SQL query | What is the total number of laps for the time of +7.277 and the grid number of more than 6? | SELECT SUM Laps FROM table WHERE Time = +7.277 AND Grid > 6 |
Translate the following into a SQL query | What is the smallest grid when the time is +8.051 and there were less than 23 laps? | SELECT MIN Grid FROM table WHERE Time = +8.051 AND Laps < 23 |
Translate the following into a SQL query | What is the average number of goals for players ranked above 9 and playing more than 205 matches? | SELECT AVG Goals FROM table WHERE Matches = 205 AND Rank > 9 |
Translate the following into a SQL query | What is the average rank for players with under 205 matches and under 100 goals? | SELECT AVG Rank FROM table WHERE Matches < 205 AND Goals < 100 |
Translate the following into a SQL query | What years played did the player with a rank under 10, more than 271 matches, and 152 goals have? | SELECT Years FROM table WHERE Rank < 10 AND Matches > 271 AND Goals = 152 |
Translate the following into a SQL query | Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn? | SELECT Republican ticket FROM table WHERE Communist ticket = elizabeth gurley flynn |
Translate the following into a SQL query | Who's the Communist ticket with an American Labor ticket of joseph v. o'leary? | SELECT Communist ticket FROM table WHERE American Labor ticket = joseph v. o'leary |
Translate the following into a SQL query | Who's the Republican ticket with a Democratic ticket of flora d. johnson? | SELECT Republican ticket FROM table WHERE Democratic ticket = flora d. johnson |
Translate the following into a SQL query | Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass? | SELECT Republican ticket FROM table WHERE Communist ticket = (none) AND Socialist ticket = joseph g. glass |
Translate the following into a SQL query | Who's the Republican ticket with a Democratic ticket of matthew j. merritt? | SELECT Republican ticket FROM table WHERE Democratic ticket = matthew j. merritt |
Translate the following into a SQL query | What is the giant slalom with a 37 super g? | SELECT Giant Slalom FROM table WHERE Super G = 37 |
Translate the following into a SQL query | What season had a game in the first round with a result of 4–1, 0–1? | SELECT Season FROM table WHERE Round = first round AND Result = 4–1, 0–1 |
Translate the following into a SQL query | What country had an opponent of Sampdoria? | SELECT Country FROM table WHERE Opponent = sampdoria |
Translate the following into a SQL query | Who was the opponent during the second round? | SELECT Opponent FROM table WHERE Round = second round |
Translate the following into a SQL query | What was the result of the second round? | SELECT Result FROM table WHERE Round = second round |
Translate the following into a SQL query | What Opponent has an Attendance that is 26,880? | SELECT Opponent FROM table WHERE Attendance = 26,880 |
Translate the following into a SQL query | What nation has a Record of 5.06m(16ft7in)? | SELECT Nation FROM table WHERE Record = 5.06m(16ft7in) |
Translate the following into a SQL query | What is the Date when Russia was the nation and the venue was madrid , spain? | SELECT Date FROM table WHERE Nation = russia AND Venue = madrid , spain |
Translate the following into a SQL query | What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)? | SELECT Date FROM table WHERE Athlete = yelena isinbayeva AND Record = 4.90m(16ft0¾in) |
Translate the following into a SQL query | What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)? | SELECT Nation FROM table WHERE Athlete = emma george AND Record = 4.58m(15ft0¼in) |
Translate the following into a SQL query | Who tied with 8 losses and 50% wins? | SELECT Tied FROM table WHERE Losses = 8 AND Win % = 50% |
Translate the following into a SQL query | Which win has a loss of IPL? | SELECT Wins FROM table WHERE Losses = ipl |
Translate the following into a SQL query | Which win has 38.67% wins? | SELECT Wins FROM table WHERE Win % = 38.67% |
Translate the following into a SQL query | What percentage of wins has 48 losses? | SELECT Win % FROM table WHERE Losses = 48 |
Translate the following into a SQL query | What was tied at 15 played? | SELECT Tied FROM table WHERE Played = 15 |
Translate the following into a SQL query | What was the average round for john markham draft pick? | SELECT AVG Round FROM table WHERE Player = john markham |
Translate the following into a SQL query | What school did draft pick before 125, will allen go to? | SELECT School FROM table WHERE Pick < 125 AND Player = will allen |
Translate the following into a SQL query | What school did draft pick from round 3 go to? | SELECT School FROM table WHERE Round = 3 |
Translate the following into a SQL query | What is the lowest number of FA Trophy matches for a player with a total number of matches under 22 and less than 0 league cups. | SELECT MIN FA Trophy FROM table WHERE Total < 22 AND League Cup < 0 |
Translate the following into a SQL query | What is the fewest games lost by Paulistano with more than 39 points? | SELECT MIN Lost FROM table WHERE Team = paulistano AND Points > 39 |
Translate the following into a SQL query | How many games were played against when the team played more than 22 total? | SELECT SUM Against FROM table WHERE Played > 22 |
Translate the following into a SQL query | What was the highest number of against when the difference was 58 and the total played was more than 22? | SELECT MAX Against FROM table WHERE Difference = 58 AND Played > 22 |
Translate the following into a SQL query | What is the Score with a Winning team that is san antonio spurs? | SELECT Score FROM table WHERE Winning team = san antonio spurs |
Translate the following into a SQL query | Which Result has an Attendance of 60,705? | SELECT Result FROM table WHERE Attendance = 60,705 |
Translate the following into a SQL query | How many Weeks have a Result of w 17–13? | SELECT AVG Week FROM table WHERE Result = w 17–13 |
Translate the following into a SQL query | Which Opponent that has a Week larger than 3 on october 6, 1991? | SELECT Opponent FROM table WHERE Week > 3 AND Date = october 6, 1991 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.