instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Supercopa 1994 has a Team of estudiantes? | SELECT Supercopa 1994 FROM table WHERE Team = estudiantes |
Translate the following into a SQL query | Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo? | SELECT CONMEBOL 1994 FROM table WHERE Supercopa 1994 = n/a AND Recopa 1994 = n/a AND Team = san lorenzo |
Translate the following into a SQL query | Which Recopa 1994 has a Supercopa 1994 of 1st round, and a Team of argentinos juniors? | SELECT Recopa 1994 FROM table WHERE Supercopa 1994 = 1st round AND Team = argentinos juniors |
Translate the following into a SQL query | Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round? | SELECT Team FROM table WHERE Recopa 1994 = n/a AND CONMEBOL 1994 = 1st round |
Translate the following into a SQL query | Which Social and Liberal Democrats/ Liberal Democrats has a Control of labour hold, and a Liberal larger than 0? | SELECT SUM Social and Liberal Democrats/ Liberal Democrats FROM table WHERE Control = labour hold AND Liberal > 0 |
Translate the following into a SQL query | Which Social and Liberal Democrats/ Liberal Democrats has an Independent of 1, and an Election larger than 1988, and a Green smaller than 1? | SELECT Social and Liberal Democrats/ Liberal Democrats FROM table WHERE Independent = 1 AND Election > 1988 AND Green < 1 |
Translate the following into a SQL query | Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control? | SELECT Other FROM table WHERE Green = 0 AND Independent = 1 AND Labour < 45 AND Control = labour lose to no overall control |
Translate the following into a SQL query | Which Social Democratic Party has a Green smaller than 0? | SELECT AVG Social Democratic Party FROM table WHERE Green < 0 |
Translate the following into a SQL query | When the try bonus was 10 what was the losing bonus? | SELECT Losing bonus FROM table WHERE Try bonus = 10 |
Translate the following into a SQL query | When the losing bonus was 2 what was drawn score? | SELECT Drawn FROM table WHERE Losing bonus = 2 |
Translate the following into a SQL query | If the try bonus was 5 what was the try against score? | SELECT Tries against FROM table WHERE Try bonus = 5 |
Translate the following into a SQL query | When the tries against is 90 how many points are there? | SELECT Points FROM table WHERE Tries against = 90 |
Translate the following into a SQL query | What club has tries against of 75? | SELECT Club FROM table WHERE Tries against = 75 |
Translate the following into a SQL query | What is the total number of overall figures when duke was the college and the round was higher than 7? | SELECT SUM Overall FROM table WHERE College = duke AND Round > 7 |
Translate the following into a SQL query | Which of the highest pick numbers had a round of less than 2? | SELECT MAX Pick # FROM table WHERE Round < 2 |
Translate the following into a SQL query | Which pick number had a round of less than 7, an overall of less than 127, and where the name was Robert Alford? | SELECT Pick # FROM table WHERE Round < 7 AND Overall < 127 AND Name = robert alford |
Translate the following into a SQL query | Which highest overall figure had Robert Alford as a name and a round of more than 2? | SELECT MAX Overall FROM table WHERE Name = robert alford AND Round > 2 |
Translate the following into a SQL query | What Game site has an Opponent of Miami Dolphins? | SELECT Game site FROM table WHERE Opponent = miami dolphins |
Translate the following into a SQL query | What's the Lowest Attendance with a Game site of Riverfront Stadium? | SELECT MIN Attendance FROM table WHERE Game site = riverfront stadium |
Translate the following into a SQL query | What's the lowest Attendance for a Week of 2? | SELECT MIN Attendance FROM table WHERE Week = 2 |
Translate the following into a SQL query | How many bronze medals does South Korea have? | SELECT Bronze FROM table WHERE Nation = south korea |
Translate the following into a SQL query | What is the smallest number of total medals for Georgia with 0 silver and 1 bronze? | SELECT MIN Total FROM table WHERE Silver > 0 AND Nation = georgia AND Bronze < 1 |
Translate the following into a SQL query | What is the lowest year that had foil team as the event at Melbourne? | SELECT MIN Year FROM table WHERE Event = foil team AND Venue = melbourne |
Translate the following into a SQL query | What is the number of years that the event was foil team and took place in Los Angeles? | SELECT COUNT Year FROM table WHERE Venue = los angeles AND Event = foil team |
Translate the following into a SQL query | What was the position at the venue of lyon? | SELECT Position FROM table WHERE Venue = lyon |
Translate the following into a SQL query | What was the position for mauro at the world championships in 1985 during the foil individual event? | SELECT Position FROM table WHERE Event = foil individual AND Competition = world championships AND Year = 1985 |
Translate the following into a SQL query | What was the playoff status when the head coach was Brent Sutter, the finish was 4th central, and the points were 82? | SELECT Playoffs FROM table WHERE Head Coach = brent sutter AND Finish = 4th central AND Points = 82 |
Translate the following into a SQL query | 2001 of 2–4 was in which tournament? | SELECT Tournament FROM table WHERE 2001 = 2–4 |
Translate the following into a SQL query | 2013 of 4–4 is involved in what 2006? | SELECT 2006 FROM table WHERE 2013 = 4–4 |
Translate the following into a SQL query | 2007 of 1r is involved in what 2001? | SELECT 2001 FROM table WHERE 2007 = 1r |
Translate the following into a SQL query | 2007 of 8–4 is involved in what 2002? | SELECT 2002 FROM table WHERE 2007 = 8–4 |
Translate the following into a SQL query | 2005 of 3r, and a 2000 of lq, and a 2002 of 3r is in what 2004? | SELECT 2004 FROM table WHERE 2005 = 3r AND 2000 = lq AND 2002 = 3r |
Translate the following into a SQL query | 2006 of 10–4 is in which 2000? | SELECT 2000 FROM table WHERE 2006 = 10–4 |
Translate the following into a SQL query | What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games? | SELECT MIN Drawn FROM table WHERE Points < 4 AND Lost > 4 |
Translate the following into a SQL query | What is the sum of the points when there are fewer than 4 games? | SELECT SUM Points FROM table WHERE Games < 4 |
Translate the following into a SQL query | Who holds the lead role when Aanders Brorson is third? | SELECT Lead FROM table WHERE Third = aanders brorson |
Translate the following into a SQL query | Who has the role of skip when the lead is Dominik Greindl? | SELECT Skip FROM table WHERE Lead = dominik greindl |
Translate the following into a SQL query | Who is the second when Mikkel Krause is the third? | SELECT Second FROM table WHERE Third = mikkel krause |
Translate the following into a SQL query | Who is the Skip when Alasdair Guthrie is the third? | SELECT Skip FROM table WHERE Third = alasdair guthrie |
Translate the following into a SQL query | Who is the Second when Michel Gribi is the lead? | SELECT Second FROM table WHERE Lead = michel gribi |
Translate the following into a SQL query | What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played? | SELECT MAX Position FROM table WHERE Against = 12 AND Points < 11 AND Drawn > 2 AND Played > 9 |
Translate the following into a SQL query | What is the difference of the team with 12 points? | SELECT Difference FROM table WHERE Points = 12 |
Translate the following into a SQL query | What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against? | SELECT AVG Played FROM table WHERE Lost = 3 AND Points > 9 AND Position = 5 AND Against < 12 |
Translate the following into a SQL query | Name the rating % for channel of anhui satellite tv | SELECT Rating (%) FROM table WHERE Channel = anhui satellite tv |
Translate the following into a SQL query | Name the most share for anhui satellite tv | SELECT MAX Share (%) FROM table WHERE Channel = anhui satellite tv |
Translate the following into a SQL query | Name the sum of rating % for cctv and position more than 7 | SELECT SUM Rating (%) FROM table WHERE Owner = cctv AND Position > 7 |
Translate the following into a SQL query | Name the average rating % for shandong satellite tv and share % less than 1.74 | SELECT AVG Rating (%) FROM table WHERE Channel = shandong satellite tv AND Share (%) < 1.74 |
Translate the following into a SQL query | what year had a dnq of 11 | SELECT 2005/ 06 FROM table WHERE 2010/ 11 = dnq |
Translate the following into a SQL query | What date was Montreal the visitor? | SELECT Date FROM table WHERE Visitor = montreal |
Translate the following into a SQL query | What is the record for the NY Rangers? | SELECT Record FROM table WHERE Home = ny rangers |
Translate the following into a SQL query | Name the sum of round for pick of 169 | SELECT SUM Round FROM table WHERE Pick = 169 |
Translate the following into a SQL query | Name the nationality for pick of 16 | SELECT Nationality FROM table WHERE Pick = 16 |
Translate the following into a SQL query | Which Lead has a Skip of pavol pitonak? | SELECT Lead FROM table WHERE Skip = pavol pitonak |
Translate the following into a SQL query | What is the skip in Wales? | SELECT Skip FROM table WHERE Nation = wales |
Translate the following into a SQL query | Which Nation has a Second of tomas pitonak? | SELECT Nation FROM table WHERE Second = tomas pitonak |
Translate the following into a SQL query | Which Second has a Third of athanassios pantios? | SELECT Second FROM table WHERE Third = athanassios pantios |
Translate the following into a SQL query | Where did Croatia lead? | SELECT Lead FROM table WHERE Nation = croatia |
Translate the following into a SQL query | Which Skip has a Third of carlo alessandro zisa? | SELECT Skip FROM table WHERE Third = carlo alessandro zisa |
Translate the following into a SQL query | What is the nationality of Shaun Sabol? | SELECT Nationality FROM table WHERE Player = shaun sabol |
Translate the following into a SQL query | What is the position of United States' player Brett Lawrence? | SELECT Position FROM table WHERE Nationality = united states AND Player = brett lawrence |
Translate the following into a SQL query | Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha? | SELECT DX 10 Name FROM table WHERE Alpha premultiplied? = no AND Description = explicit alpha |
Translate the following into a SQL query | Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4? | SELECT Compression ratio FROM table WHERE DX 10 Name = (none) AND FOURCC = dxt4 |
Translate the following into a SQL query | Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC? | SELECT Alpha premultiplied? FROM table WHERE Compression ratio = 4:1 AND FOURCC = dxt3 |
Translate the following into a SQL query | What is the venue of the napa auto parts 200 race with a mrn radio? | SELECT Venue FROM table WHERE Radio = mrn AND Race = napa auto parts 200 |
Translate the following into a SQL query | What is the race on 10/10/2008? | SELECT Race FROM table WHERE Date = 10/10/2008 |
Translate the following into a SQL query | Which race has a distance of 201.44 miles? | SELECT Race FROM table WHERE Distance = 201.44 miles |
Translate the following into a SQL query | What is the distance of the race at the Atlanta Motor Speedway? | SELECT Distance FROM table WHERE Venue = atlanta motor speedway |
Translate the following into a SQL query | What is the distance of the Sam's town 250 race? | SELECT Distance FROM table WHERE Race = sam's town 250 |
Translate the following into a SQL query | What is the venue of teh carfax 250 race? | SELECT Venue FROM table WHERE Race = carfax 250 |
Translate the following into a SQL query | What is the name of the event where Cornell-Penn played? | SELECT Name FROM table WHERE Teams = cornell-penn |
Translate the following into a SQL query | Who many games were played for the series with the Sawhorse Dollar trophy? | SELECT Games played FROM table WHERE Trophy = sawhorse dollar |
Translate the following into a SQL query | How many games have Points smaller than 4, and an October smaller than 5? | SELECT COUNT Game FROM table WHERE Points < 4 AND October < 5 |
Translate the following into a SQL query | Which Game has a Record of 8–2–0, and Points larger than 16? | SELECT SUM Game FROM table WHERE Record = 8–2–0 AND Points > 16 |
Translate the following into a SQL query | Which Score has an October smaller than 15, and a Record of 2–0–0? | SELECT Score FROM table WHERE October < 15 AND Record = 2–0–0 |
Translate the following into a SQL query | How many games have November 7 as the date, and points greater than 17? | SELECT COUNT Game FROM table WHERE November = 7 AND Points > 17 |
Translate the following into a SQL query | How many points have November of 15? | SELECT SUM Points FROM table WHERE November = 15 |
Translate the following into a SQL query | What is the men's doubles for 2003? | SELECT Men's doubles FROM table WHERE Year = 2003 |
Translate the following into a SQL query | What is the mixed doubles in the year 2007 when the men's singles is eduards loze? | SELECT Mixed doubles FROM table WHERE Year > 2007 AND Men's singles = eduards loze |
Translate the following into a SQL query | Name the winning score for 54 holes of 5 shot deficit | SELECT Winning score FROM table WHERE 54 holes = 5 shot deficit |
Translate the following into a SQL query | Name the winning score for jim barnes and year of 1924 | SELECT Winning score FROM table WHERE Runner-up = jim barnes AND Year = 1924 |
Translate the following into a SQL query | What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80? | SELECT Rider FROM table WHERE Team = lcr honda 600cc AND Time = 59’ 22.80 |
Translate the following into a SQL query | What Rider had a Speed of 108.347mph and Time of 1:02.40.93? | SELECT Rider FROM table WHERE Speed = 108.347mph AND Time = 1:02.40.93 |
Translate the following into a SQL query | What Rider had a Time of 1:01.50.57? | SELECT Rider FROM table WHERE Time = 1:01.50.57 |
Translate the following into a SQL query | What is the average attendance that has june 24 as the date? | SELECT AVG Attendance FROM table WHERE Date = june 24 |
Translate the following into a SQL query | What date has 2:59 as the time? | SELECT Date FROM table WHERE Time = 2:59 |
Translate the following into a SQL query | What is the surface when the tournament is manta, ecuador? | SELECT Surface FROM table WHERE Tournament = manta, ecuador |
Translate the following into a SQL query | What is the surface for the tournament of manta, ecuador? | SELECT Surface FROM table WHERE Tournament = manta, ecuador |
Translate the following into a SQL query | What tournament is lesley joseph the opponent? | SELECT Tournament FROM table WHERE Opponent = lesley joseph |
Translate the following into a SQL query | What date was marcos daniel the opponent? | SELECT Date FROM table WHERE Opponent = marcos daniel |
Translate the following into a SQL query | What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999? | SELECT Copa Libertadores 1999 FROM table WHERE Copa CONMEBOL 1999 = did not qualify AND Team = grêmio |
Translate the following into a SQL query | What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999? | SELECT Copa Mercosur 1999 FROM table WHERE Copa Libertadores 1999 = did not qualify AND Copa CONMEBOL 1999 = did not qualify AND Team = grêmio |
Translate the following into a SQL query | What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999? | SELECT Intercontinental Cup 1999 FROM table WHERE Copa Libertadores 1999 = did not qualify AND Copa Mercosur 1999 = quarterfinals |
Translate the following into a SQL query | What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999? | SELECT Copa Libertadores 1999 FROM table WHERE Copa Mercosur 1999 = group stage AND Team = vasco |
Translate the following into a SQL query | What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up? | SELECT Intercontinental Cup 1999 FROM table WHERE Copa CONMEBOL 1999 = runner-up |
Translate the following into a SQL query | What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999? | SELECT Copa CONMEBOL 1999 FROM table WHERE Copa Libertadores 1999 = did not qualify AND Team = cruzeiro |
Translate the following into a SQL query | How many people attended the game that lost 2-4 and the date was higher than 15? | SELECT COUNT Attendance FROM table WHERE Result = lost 2-4 AND Date > 15 |
Translate the following into a SQL query | What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent? | SELECT Competition FROM table WHERE Attendance > 914 AND Opponent = wightlink raiders |
Translate the following into a SQL query | How many people attended the away league competition with a date of 22? | SELECT Attendance FROM table WHERE Competition = league AND Venue = away AND Date = 22 |
Translate the following into a SQL query | Which Series has a Date of may 2? | SELECT Series FROM table WHERE Date = may 2 |
Translate the following into a SQL query | Which Game has a Series of bruins lead 3–1? | SELECT SUM Game FROM table WHERE Series = bruins lead 3–1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.