instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What date was the record 20–16? | SELECT Date FROM table WHERE Record = 20–16 |
Translate the following into a SQL query | What was the attendance in the gave versus the Brewers with a score of 9–6? | SELECT Attendance FROM table WHERE Opponent = brewers AND Score = 9–6 |
Translate the following into a SQL query | What was the attendance on May 26? | SELECT Attendance FROM table WHERE Date = may 26 |
Translate the following into a SQL query | Matches of 127 has how many total number of inns? | SELECT COUNT Inns FROM table WHERE Matches = 127 |
Translate the following into a SQL query | Name of clem hill, and Inns larger than 126 has the lowest runs? | SELECT MIN Runs FROM table WHERE Name = clem hill AND Inns > 126 |
Translate the following into a SQL query | Runs smaller than 6106, and Inns smaller than 146 has what total number of matches? | SELECT COUNT Matches FROM table WHERE Runs < 6106 AND Inns < 146 |
Translate the following into a SQL query | Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns? | SELECT MAX Inns FROM table WHERE Seasons = 1987–2007 AND Runs > 11622 |
Translate the following into a SQL query | Name the partner for opponents of františek čermák michal mertiňák | SELECT Partner FROM table WHERE Opponents in the final = františek čermák michal mertiňák |
Translate the following into a SQL query | Name the score in the final for january 12, 2013 | SELECT Score in the final FROM table WHERE Date = january 12, 2013 |
Translate the following into a SQL query | Name the opponents for outcome of runner-up and date of august 7, 2011 | SELECT Opponents in the final FROM table WHERE Outcome = runner-up AND Date = august 7, 2011 |
Translate the following into a SQL query | Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner | SELECT Partner FROM table WHERE Surface = grass AND Opponents in the final = jürgen melzer philipp petzschner |
Translate the following into a SQL query | Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić | SELECT Score in the final FROM table WHERE Outcome = runner-up AND Surface = hard AND Opponents in the final = michaël llodra nenad zimonjić |
Translate the following into a SQL query | What date was the ship 'Wyandotte' launched? | SELECT Launched FROM table WHERE Ship = wyandotte |
Translate the following into a SQL query | What was the original name of the ship 'Ajax'? | SELECT Renamed FROM table WHERE Ship = ajax |
Translate the following into a SQL query | What date was the ship named Manhattan completed? | SELECT Commissioned or completed(*) FROM table WHERE Ship = manhattan |
Translate the following into a SQL query | What position had fewer than 373 laps and a class position of 1st? | SELECT Pos. FROM table WHERE Laps < 373 AND Class Pos. = 1st |
Translate the following into a SQL query | What class had fewer than 336 laps in 2004? | SELECT Class FROM table WHERE Laps < 336 AND Year = 2004 |
Translate the following into a SQL query | What is the average attendance of game 1? | SELECT AVG Attendance FROM table WHERE Game < 1 |
Translate the following into a SQL query | What is the attendance amount of the race with a time of 2:07? | SELECT MAX Attendance FROM table WHERE Time = 2:07 |
Translate the following into a SQL query | What club has less than 61 goals for and 55 goals against? | SELECT Club FROM table WHERE Goals for < 61 AND Goals against = 55 |
Translate the following into a SQL query | What is the amount of Draws for the game that had a score of 45+7 and a position below 3? | SELECT COUNT Draws FROM table WHERE Points = 45+7 AND Position < 3 |
Translate the following into a SQL query | What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? | SELECT MIN Draws FROM table WHERE Goal Difference > -16 AND Club = elche cf AND Played > 38 |
Translate the following into a SQL query | Who was the recipient for Outstanding actress television series prior to 2008? | SELECT Recipient FROM table WHERE Year < 2008 |
Translate the following into a SQL query | Who was the opponent at the game when the record was 71-78? | SELECT Opponent FROM table WHERE Record = 71-78 |
Translate the following into a SQL query | What was the date of the game that had a loss of Risley (0-1)? | SELECT Date FROM table WHERE Loss = risley (0-1) |
Translate the following into a SQL query | What was the date of the game when the record was 70-74? | SELECT Date FROM table WHERE Record = 70-74 |
Translate the following into a SQL query | What player was moving from manchester united? | SELECT Name FROM table WHERE Moving from = manchester united |
Translate the following into a SQL query | What player costs £210k to transfer? | SELECT Name FROM table WHERE Transfer fee = £210k |
Translate the following into a SQL query | Who is moving during winter from wal? | SELECT Moving from FROM table WHERE Transfer window = winter AND Country = wal |
Translate the following into a SQL query | Which original artist has a Episode of workshop #1? | SELECT Original artist FROM table WHERE Episode = workshop #1 |
Translate the following into a SQL query | Which theme has a Episode of top 6? | SELECT Theme FROM table WHERE Episode = top 6 |
Translate the following into a SQL query | Which Theme has a Order # of 9? | SELECT Theme FROM table WHERE Order # = 9 |
Translate the following into a SQL query | What was the score on August 19? | SELECT Score FROM table WHERE Date = august 19 |
Translate the following into a SQL query | Where the time is 2:46, what is the record? | SELECT Record FROM table WHERE Time = 2:46 |
Translate the following into a SQL query | What is the Date, when the home team is the NY Rangers? | SELECT Date FROM table WHERE Home = ny rangers |
Translate the following into a SQL query | Power of 220kw (299hp) @ 4000 has what torque? | SELECT Torque FROM table WHERE Power = 220kw (299hp) @ 4000 |
Translate the following into a SQL query | What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002? | SELECT Displacement FROM table WHERE Year > 2002 AND Power = 220kw (299hp) @ 4000 |
Translate the following into a SQL query | Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine? | SELECT Engine FROM table WHERE Displacement = 4.4l (4423cc/269in³) AND Power = 220kw (299hp) @ 4000 |
Translate the following into a SQL query | What week was the Original artist, the police ? | SELECT Week FROM table WHERE Original artist = the police |
Translate the following into a SQL query | Which song garnered an advanced result during top 20 week ? | SELECT Song choice FROM table WHERE Result = advanced AND Week = top 20 |
Translate the following into a SQL query | Which Malaysia Satellite tournaments were played after 1998? | SELECT Outcome FROM table WHERE Year > 1998 AND Tournament = malaysia satellite |
Translate the following into a SQL query | Who was the runner-up for the Bulgaria Open, before 2007? | SELECT Score FROM table WHERE Year < 2007 AND Outcome = runner-up AND Tournament = bulgaria open |
Translate the following into a SQL query | What was the score of the player who played against Wong Choong Hann in the Dutch Open? | SELECT Score FROM table WHERE Tournament = dutch open AND Opponent = wong choong hann |
Translate the following into a SQL query | What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open? | SELECT Outcome FROM table WHERE Opponent = nguyen tien minh AND Tournament = bulgaria open |
Translate the following into a SQL query | What was the final score when the New York Jets were the Visiting Team? | SELECT Final Score FROM table WHERE Visiting Team = new york jets |
Translate the following into a SQL query | When were the Cleveland Browns the visiting team? | SELECT Date FROM table WHERE Visiting Team = cleveland browns |
Translate the following into a SQL query | Where were the New York Jets visiting? | SELECT Stadium FROM table WHERE Visiting Team = new york jets |
Translate the following into a SQL query | What was the final score in Robert F. Kennedy Memorial Stadium? | SELECT Final Score FROM table WHERE Stadium = robert f. kennedy memorial stadium |
Translate the following into a SQL query | What was the visiting team on November 12? | SELECT Visiting Team FROM table WHERE Date = november 12 |
Translate the following into a SQL query | In what stadium were the New England Patriots the visiting team? | SELECT Stadium FROM table WHERE Visiting Team = new england patriots |
Translate the following into a SQL query | If the games played are smaller than 18, what are the lowest goals conceded? | SELECT MIN Goals Conceded FROM table WHERE Played < 18 |
Translate the following into a SQL query | If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded? | SELECT COUNT Goals Conceded FROM table WHERE Place < 8 AND Played > 18 |
Translate the following into a SQL query | What is the sum of the place that has less than 2 losses? | SELECT SUM Place FROM table WHERE Lost < 2 |
Translate the following into a SQL query | What is the aspect ration when the max fps HDRx is 80? | SELECT Aspect Ratio FROM table WHERE max. fps HDRx = 80 |
Translate the following into a SQL query | What is the smallest width for a frame size of 5k and a height shorter than 2700? | SELECT MIN Width FROM table WHERE Frame size = 5k AND Height < 2700 |
Translate the following into a SQL query | What was the opponent on August 29? | SELECT Opponent FROM table WHERE Date = august 29 |
Translate the following into a SQL query | Which team had the attendance of 16,468 and lost? | SELECT Loss FROM table WHERE Attendance = 16,468 |
Translate the following into a SQL query | What opponent has a loss of Trachsel (10-11)? | SELECT Opponent FROM table WHERE Loss = trachsel (10-11) |
Translate the following into a SQL query | What was the attendance on August 8? | SELECT Attendance FROM table WHERE Date = august 8 |
Translate the following into a SQL query | Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji? | SELECT Rapid FROM table WHERE Distance (km) < 14.2 AND Station = kōmyōji |
Translate the following into a SQL query | What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? | SELECT SUM Other FROM table WHERE Name = simon gillett category:articles with hcards AND Total < 34 |
Translate the following into a SQL query | What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0? | SELECT SUM League Cup FROM table WHERE Total < 1 AND League < 0 |
Translate the following into a SQL query | What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0? | SELECT MAX Total FROM table WHERE FA Cup = 0 AND Name = robbie williams category:articles with hcards AND League Cup < 0 |
Translate the following into a SQL query | What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3? | SELECT AVG Total FROM table WHERE Name = simon gillett category:articles with hcards AND Other > 3 |
Translate the following into a SQL query | What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1? | SELECT SUM League Cup FROM table WHERE Other < 1 AND Name = gareth farrelly category:articles with hcards AND League > 1 |
Translate the following into a SQL query | Name the runner-up which has 3rd place of terry hollands | SELECT Runner-Up FROM table WHERE 3rd Place = terry hollands |
Translate the following into a SQL query | Name the champion for christopher miles runner-up | SELECT Champion FROM table WHERE Runner-Up = christopher miles |
Translate the following into a SQL query | Name the champion for 2000 | SELECT Champion FROM table WHERE Year = 2000 |
Translate the following into a SQL query | Name the champion for 3rd place tbc and runner-up tbc | SELECT Champion FROM table WHERE 3rd Place = tbc AND Runner-Up = tbc |
Translate the following into a SQL query | Name the location for 1998 | SELECT Location FROM table WHERE Year = 1998 |
Translate the following into a SQL query | How many gold medals correspond with a total over 4? | SELECT Gold FROM table WHERE Total > 4 |
Translate the following into a SQL query | What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals? | SELECT SUM Gold FROM table WHERE Total = 12 AND Bronze < 4 |
Translate the following into a SQL query | What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals? | SELECT MIN Gold FROM table WHERE Rank = total AND Bronze > 4 |
Translate the following into a SQL query | What is the smallest number of bronze medals with more than 4 gold medals? | SELECT MIN Bronze FROM table WHERE Gold > 4 |
Translate the following into a SQL query | The candidate with Riding of st. john's south—mount pearl is what gender? | SELECT Gender FROM table WHERE Riding = st. john's south—mount pearl |
Translate the following into a SQL query | What is the rank of walter noel from st. john's? | SELECT Rank FROM table WHERE Residence = st. john's AND Candidate's Name = walter noel |
Translate the following into a SQL query | What is the name of the candidate from happy valley-goose bay with a gender of m? | SELECT Candidate's Name FROM table WHERE Gender = m AND Residence = happy valley-goose bay |
Translate the following into a SQL query | Which number has a 0.35 percentage? | SELECT Number FROM table WHERE percentage (%) = 0.35 |
Translate the following into a SQL query | What is the percentage for Russian? | SELECT percentage (%) FROM table WHERE Language = russian |
Translate the following into a SQL query | How many males speak Russian? | SELECT males FROM table WHERE Language = russian |
Translate the following into a SQL query | Who is the writer for Red Rose Chain LTD? | SELECT Writer(s) FROM table WHERE Recipient = red rose chain ltd |
Translate the following into a SQL query | Which producer did Daniel Cormack direct? | SELECT Producer(s) FROM table WHERE Director(s) = daniel cormack |
Translate the following into a SQL query | Who produced Laura Tunstall? | SELECT Producer(s) FROM table WHERE Recipient = laura tunstall |
Translate the following into a SQL query | Who wrote the film Jehovah's Witness? | SELECT Writer(s) FROM table WHERE Film = jehovah's witness |
Translate the following into a SQL query | When did Hein Vergeer have a distance of 5,000m? | SELECT Date FROM table WHERE Distance = 5,000m |
Translate the following into a SQL query | What were the notes during the distance of Men's Speed Skating? | SELECT Notes FROM table WHERE Distance = men's speed skating |
Translate the following into a SQL query | What date has the competition of uefa euro 2012 qualifying? | SELECT Date FROM table WHERE Competition = uefa euro 2012 qualifying |
Translate the following into a SQL query | What is the Grade that has Turf 1600m? | SELECT Grade FROM table WHERE Priority-entry-rights to Derby = turf 1600m |
Translate the following into a SQL query | What is the Priority-entry-rights to Derby in rank 4? | SELECT Priority-entry-rights to Derby FROM table WHERE !Race name = 4 |
Translate the following into a SQL query | How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737? | SELECT COUNT Baia Mare FROM table WHERE Electrica North Transylvania < 14.476 AND Bistrita = 643 AND Zalau < 737 |
Translate the following into a SQL query | What is the smallest Satu Mare value associated with Baia Mare over 523? | SELECT MIN Satu Mare FROM table WHERE Baia Mare > 523 |
Translate the following into a SQL query | Which Word wrap support has a Format of mobipocket? | SELECT Word wrap support FROM table WHERE Format = mobipocket |
Translate the following into a SQL query | Which Interactivity support has a Format of fictionbook? | SELECT Interactivity support FROM table WHERE Format = fictionbook |
Translate the following into a SQL query | Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no? | SELECT Filename extension FROM table WHERE Interactivity support = no AND Open standard = yes AND Image support = no |
Translate the following into a SQL query | Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes? | SELECT Filename extension FROM table WHERE Word wrap support = yes AND Open standard = no AND Interactivity support = yes |
Translate the following into a SQL query | Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes? | SELECT Format FROM table WHERE Interactivity support = no AND Word wrap support = yes AND Image support = yes AND Open standard = yes |
Translate the following into a SQL query | Position of guard, and a Pick # larger than 9 is what highest round? | SELECT MAX Round FROM table WHERE Position = guard AND Pick # > 9 |
Translate the following into a SQL query | Pick # smaller than 11, and a Name of von hutchins belongs to what college? | SELECT College FROM table WHERE Pick # < 11 AND Name = von hutchins |
Translate the following into a SQL query | College of idaho, and an Overall smaller than 141 is what average round? | SELECT AVG Round FROM table WHERE College = idaho AND Overall < 141 |
Translate the following into a SQL query | Name of David Kimball, and an Overall smaller than 229 is what highest round? | SELECT MAX Round FROM table WHERE Name = david kimball AND Overall < 229 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.