instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the method when the result is loss on january 19, 2008? | SELECT Method FROM table WHERE Result = loss AND Date = january 19, 2008 |
Translate the following into a SQL query | when is the opponent lyoto machida? | SELECT Date FROM table WHERE Opponent = lyoto machida |
Translate the following into a SQL query | who is the opponent when the method is tko (punches) at 4:26 of round 1? | SELECT Opponent FROM table WHERE Method = tko (punches) at 4:26 of round 1 |
Translate the following into a SQL query | who is the tuf competitor when the method id decision (unanimous)? | SELECT TUF Competitor FROM table WHERE Method = decision (unanimous) |
Translate the following into a SQL query | who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2? | SELECT Opponent FROM table WHERE Method = submission (rear naked choke) at 4:02 of round 2 |
Translate the following into a SQL query | What is the venue where the melbourne tigers play their home games? | SELECT Venue FROM table WHERE Home team = melbourne tigers |
Translate the following into a SQL query | What team has theoir home games in the venue of gold coast convention centre? | SELECT Home team FROM table WHERE Venue = gold coast convention centre |
Translate the following into a SQL query | What is the box score type for the game that has a score of 103-101? | SELECT Box Score FROM table WHERE Score = 103-101 |
Translate the following into a SQL query | What was the box score for the game where the away team was the sydney spirit? | SELECT Box Score FROM table WHERE Away team = sydney spirit |
Translate the following into a SQL query | What was the resolution of the fight when tim hague had a record of 15-7? | SELECT Res. FROM table WHERE Record = 15-7 |
Translate the following into a SQL query | What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4? | SELECT Event FROM table WHERE Time = 5:00 AND Record = 10-4 |
Translate the following into a SQL query | What method of resolution was the fight that took place at hardcore championship fighting: destiny? | SELECT Method FROM table WHERE Event = hardcore championship fighting: destiny |
Translate the following into a SQL query | What event did tim Hague have a record of 3-0? | SELECT Event FROM table WHERE Record = 3-0 |
Translate the following into a SQL query | On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%? | SELECT Dates administered FROM table WHERE Republican: John Kennedy = 45% AND Democrat: Mary Landrieu = 38% |
Translate the following into a SQL query | What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5? | SELECT Dates administered FROM table WHERE Lead Margin < 5.5 AND Poll Source = survey usa |
Translate the following into a SQL query | Which organization administered the poll that showed a lead margin of 5.5? | SELECT Poll Source FROM table WHERE Lead Margin = 5.5 |
Translate the following into a SQL query | Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy? | SELECT Republican: John Kennedy FROM table WHERE Democrat: Mary Landrieu = 53% |
Translate the following into a SQL query | What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky? | SELECT SUM Round FROM table WHERE Position = forward AND School/Club Team = western kentucky |
Translate the following into a SQL query | What is Position, when Pick is 7? | SELECT Position FROM table WHERE Pick = 7 |
Translate the following into a SQL query | What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina? | SELECT Pick FROM table WHERE Round > 1 AND School/Club Team = south carolina |
Translate the following into a SQL query | What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6? | SELECT Date FROM table WHERE Outcome = runner-up AND Score = 5–7, 3–6, 6–3, 2–6 |
Translate the following into a SQL query | What is the Date of the game with a Score of 4–6, 4–6? | SELECT Date FROM table WHERE Score = 4–6, 4–6 |
Translate the following into a SQL query | What is the Date of the game against Christo Van Rensburg? | SELECT Date FROM table WHERE Opponent = christo van rensburg |
Translate the following into a SQL query | Who was the home team for the game that has a Tie value of 3? | SELECT Home team FROM table WHERE Tie no = 3 |
Translate the following into a SQL query | How many in total were in attendance at games where Chelsea was the away team? | SELECT SUM Attendance FROM table WHERE Away team = chelsea |
Translate the following into a SQL query | What is the 2004 population for 昌黎县? | SELECT Population (2004 est.) FROM table WHERE Hanzi = 昌黎县 |
Translate the following into a SQL query | What is the 2004 population for 山海关区? | SELECT Population (2004 est.) FROM table WHERE Hanzi = 山海关区 |
Translate the following into a SQL query | Which Hanzi has a suburban population in 2004? | SELECT Hanzi FROM table WHERE Population (2004 est.) = suburban |
Translate the following into a SQL query | What is the density of 昌黎县? | SELECT Density (/km²) FROM table WHERE Hanzi = 昌黎县 |
Translate the following into a SQL query | Which Hanyu Pinyin is labeled rural? | SELECT Hanyu Pinyin FROM table WHERE Name = rural |
Translate the following into a SQL query | What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"? | SELECT Pressure in hPa (mbar) FROM table WHERE Vacuum range = medium vacuum |
Translate the following into a SQL query | What is Mean Free Path, when Vacuum Range is "medium vacuum"? | SELECT Mean free path FROM table WHERE Vacuum range = medium vacuum |
Translate the following into a SQL query | What is Mean Free Path, when Vacuum Range is "medium vacuum"? | SELECT Mean free path FROM table WHERE Vacuum range = medium vacuum |
Translate the following into a SQL query | what is the outcome when the date is 10 october 1994? | SELECT Outcome FROM table WHERE Date = 10 october 1994 |
Translate the following into a SQL query | what is the score on 22 february 1993? | SELECT Score FROM table WHERE Date = 22 february 1993 |
Translate the following into a SQL query | what is the outcome when the surface is grass on 23 june 1997? | SELECT Outcome FROM table WHERE Surface = grass AND Date = 23 june 1997 |
Translate the following into a SQL query | what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands? | SELECT Score FROM table WHERE Surface = carpet (i) AND Outcome = winner AND Championship = rotterdam, netherlands |
Translate the following into a SQL query | what is the title when the rank is less than 17 and the worldwide gross is $299,288,605? | SELECT Title FROM table WHERE Rank < 17 AND Worldwide Gross = $299,288,605 |
Translate the following into a SQL query | what is the highest rank for director john woo? | SELECT MAX Rank FROM table WHERE Director = john woo |
Translate the following into a SQL query | what is the title for director p.j. hogan? | SELECT Title FROM table WHERE Director = p.j. hogan |
Translate the following into a SQL query | What date was the pyramid location? | SELECT Date FROM table WHERE Location = the pyramid |
Translate the following into a SQL query | What date was the opponent the Portland Trail Blazers? | SELECT Date FROM table WHERE Opponent = portland trail blazers |
Translate the following into a SQL query | What is the record for the opponent the Cleveland Cavaliers? | SELECT Record FROM table WHERE Opponent = cleveland cavaliers |
Translate the following into a SQL query | What was the second qualification time for Dale Coyne Racing with a best of 1:03.757? | SELECT Qual 2 FROM table WHERE Team = dale coyne racing AND Best = 1:03.757 |
Translate the following into a SQL query | What was the second qualification time with a first qualification time of 1:02.813? | SELECT Qual 2 FROM table WHERE Qual 1 = 1:02.813 |
Translate the following into a SQL query | Which team has a second qualification time of 1:01.936? | SELECT Team FROM table WHERE Qual 2 = 1:01.936 |
Translate the following into a SQL query | Who had a best time of 1:00.870? | SELECT Name FROM table WHERE Best = 1:00.870 |
Translate the following into a SQL query | Who had a second qualification time of 1:01.777? | SELECT Name FROM table WHERE Qual 2 = 1:01.777 |
Translate the following into a SQL query | What type of 3D game was released between 2008-2011? | SELECT Genre FROM table WHERE Type = 3d AND Release date = 2008-2011 |
Translate the following into a SQL query | When did Riot Games release their 3D MOBA game? | SELECT Release date FROM table WHERE Type = 3d AND Genre = moba AND Developer(s) = riot games |
Translate the following into a SQL query | When did Masthead Studios release their game? | SELECT Release date FROM table WHERE Developer(s) = masthead studios |
Translate the following into a SQL query | What operating system was needed for 2D games? | SELECT Required OS FROM table WHERE Type = 2d |
Translate the following into a SQL query | What type of 3D game did Valve Corporation release? | SELECT Genre FROM table WHERE Type = 3d AND Developer(s) = valve corporation |
Translate the following into a SQL query | What was the minimum operating system required by Stunlock Studios' game? | SELECT Required OS FROM table WHERE Developer(s) = stunlock studios |
Translate the following into a SQL query | What was the total rounds Travis Hamonic played? | SELECT COUNT Round FROM table WHERE Player = travis hamonic |
Translate the following into a SQL query | What is the name of the ship with pit props as Cargo sunk by u-48 *? | SELECT Name FROM table WHERE Fate = sunk by u-48 * AND Cargo = pit props |
Translate the following into a SQL query | What is the Date of attack of the ship with iron ore sunk by u-101 *? | SELECT Date of attack FROM table WHERE Fate = sunk by u-101 * AND Cargo = iron ore |
Translate the following into a SQL query | What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played? | SELECT MIN Points FROM table WHERE Losses < 12 AND Goals against < 50 AND Goal Difference > 11 AND Played < 30 |
Translate the following into a SQL query | What is the most wins for a position with more than 30 played and a goal difference of 11? | SELECT MAX Wins FROM table WHERE Goal Difference = 11 AND Played > 30 |
Translate the following into a SQL query | What is the total number of played for the goals against over 44 and a goal difference of 11? | SELECT COUNT Played FROM table WHERE Goal Difference = 11 AND Goals against > 44 |
Translate the following into a SQL query | What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"? | SELECT Time FROM table WHERE Round < 2 AND Opponent = valentijn overeem |
Translate the following into a SQL query | What is Location, when Round is "1", and when Opponent is "Joe Slick"? | SELECT Location FROM table WHERE Round = 1 AND Opponent = joe slick |
Translate the following into a SQL query | What is Event, when Opponent is "Joe Pardo"? | SELECT Event FROM table WHERE Opponent = joe pardo |
Translate the following into a SQL query | What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"? | SELECT Event FROM table WHERE Round = 1 AND Location = new town, north dakota , united states AND Time = 4:12 |
Translate the following into a SQL query | On what Date was the Opponent the Tennessee Titans? | SELECT Date FROM table WHERE Opponent = tennessee titans |
Translate the following into a SQL query | What is the Result of the game with an Attendance of 64,104? | SELECT Result FROM table WHERE Attendance = 64,104 |
Translate the following into a SQL query | What is the Week number with a Result of W 30-28? | SELECT AVG Week FROM table WHERE Result = w 30-28 |
Translate the following into a SQL query | What is the date of the game against Philadelphia Eagles? | SELECT Date FROM table WHERE Opponent = philadelphia eagles |
Translate the following into a SQL query | What is the Attendance of the game September 21, 2003? | SELECT Attendance FROM table WHERE Date = september 21, 2003 |
Translate the following into a SQL query | how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102? | SELECT COUNT Year FROM table WHERE Total s Ton < 2,983,137 AND U.S. Rank < 102 |
Translate the following into a SQL query | what is the average domestic s tone when the foreign imports s tone is less than 225,281 and the year is later than 2003? | SELECT AVG Domestic s Ton FROM table WHERE Foreign Imports s Ton < 225,281 AND Year > 2003 |
Translate the following into a SQL query | what is the average domestic s tone when the total s tone is 2,926,536 and the foreign imports s tone is less than 464,774? | SELECT AVG Domestic s Ton FROM table WHERE Total s Ton = 2,926,536 AND Foreign Imports s Ton < 464,774 |
Translate the following into a SQL query | what is the average foreign imports s tone when the total s tone is 3,157,247 and the foreign exports s ton is less than 358,493? | SELECT AVG Foreign Imports s Ton FROM table WHERE Total s Ton = 3,157,247 AND Foreign Exports s Ton < 358,493 |
Translate the following into a SQL query | how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137? | SELECT COUNT Foreign Total s Ton FROM table WHERE U.S. Rank = 102 AND Year < 2006 AND Total s Ton < 2,983,137 |
Translate the following into a SQL query | what is the highest u.s. rank when the foreign total s ton is more than 703,638, the year is earlier than 2005, the foreign imports s ton is 284,347 and the foreign exports s ton is smaller than 478,317? | SELECT MAX U.S. Rank FROM table WHERE Foreign Total s Ton > 703,638 AND Year < 2005 AND Foreign Imports s Ton = 284,347 AND Foreign Exports s Ton < 478,317 |
Translate the following into a SQL query | What position has a pick less than 20? | SELECT Position FROM table WHERE Pick < 20 |
Translate the following into a SQL query | What is the number that is the lowest overall for the College of Baylor? | SELECT MIN Overall FROM table WHERE College = baylor |
Translate the following into a SQL query | What is the number that is the lowest overall for Round 6? | SELECT MIN Overall FROM table WHERE Round = 6 |
Translate the following into a SQL query | Where was the result a win against Mike Large? | SELECT Location FROM table WHERE Res. = win AND Opponent = mike large |
Translate the following into a SQL query | In what round did opponent Joe Lauzon play? | SELECT Round FROM table WHERE Opponent = joe lauzon |
Translate the following into a SQL query | Who was the opponent in a week over 8 on December 4, 1960? | SELECT Opponent FROM table WHERE Week > 8 AND Date = december 4, 1960 |
Translate the following into a SQL query | Who was the opponent in a week less than 8 on October 9, 1960? | SELECT Opponent FROM table WHERE Week < 8 AND Date = october 9, 1960 |
Translate the following into a SQL query | What was the result when 58,516 were in attendance? | SELECT Result FROM table WHERE Attendance = 58,516 |
Translate the following into a SQL query | Who was the opponent in a week below 3 on September 23, 1960? | SELECT Opponent FROM table WHERE Week < 3 AND Date = september 23, 1960 |
Translate the following into a SQL query | What is the biggest number of females where the males are at 28.2 with a rank greater than 5? | SELECT MAX Females FROM table WHERE Males = 28.2 AND Rank > 5 |
Translate the following into a SQL query | Who was the player in 1976? | SELECT Player FROM table WHERE Year = 1976 |
Translate the following into a SQL query | When was Elaine Powell (g) of the United states picked? | SELECT Pick FROM table WHERE Nationality = united states AND Player = elaine powell (g) |
Translate the following into a SQL query | When was there a result of w 65-20 after week 6? | SELECT Date FROM table WHERE Week > 6 AND Result = w 65-20 |
Translate the following into a SQL query | What is Celta's Agg.? | SELECT Agg. FROM table WHERE Team 1 = celta |
Translate the following into a SQL query | What is the 2nd leg for Barcelona Team 2? | SELECT 2nd leg FROM table WHERE Team 2 = barcelona |
Translate the following into a SQL query | What is team 2 if Team 1 is Numancia? | SELECT Team 2 FROM table WHERE Team 1 = numancia |
Translate the following into a SQL query | What is the maximum Credibility/Capital to Assets Ration (Score) that has a Credibility/Capital to Assets Ration (%) bigger than 4.66, and the Banking Power/Capital Base ($ Million) is less than 2,550? | SELECT MAX Credibility/Capital to Assets Ratio (Score) FROM table WHERE Credibility/Capital to Assets Ratio (%) > 4.66 AND Banking Power/Capital Base ($ Million) < 2,550 |
Translate the following into a SQL query | What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266? | SELECT COUNT Performance/Return on Capital (Score) FROM table WHERE Score (Iran) < 3 AND Score (Global) = 266 |
Translate the following into a SQL query | What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7? | SELECT Total Assets (% Change) FROM table WHERE Performance/Return on Capital (%) > 25.63 AND Performance/Return on Capital (Score) > 7 |
Translate the following into a SQL query | What is the NFL club of the cornerback player with a pick greater than 63? | SELECT NFL Club FROM table WHERE Pick > 63 AND Position = cornerback |
Translate the following into a SQL query | What is the total round of the tight end position player? | SELECT COUNT Round FROM table WHERE Position = tight end |
Translate the following into a SQL query | What is the pick of the NFL club buffalo bills? | SELECT Pick FROM table WHERE NFL Club = buffalo bills |
Translate the following into a SQL query | On What Date is the Competition Semifinal that has a result of 2-1 aet? | SELECT Date FROM table WHERE Competition = semifinal AND Result = 2-1 aet |
Translate the following into a SQL query | Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17? | SELECT Location FROM table WHERE Competition = group stage AND Lineup = start AND Date = 2000-09-17 |
Translate the following into a SQL query | Which Match has a Competition of Group Stage on 2000-09-17? | SELECT Match FROM table WHERE Competition = group stage AND Date = 2000-09-17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.