instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | DId the school with an enrollment of 50 have football? | SELECT Football? FROM table WHERE School Enrollment (2008–10) = 50 |
Translate the following into a SQL query | What is the highest number of school enrollment for Union Star High School in De Kalb county? | SELECT MAX School Enrollment (2008–10) FROM table WHERE County = de kalb AND School = union star high school |
Translate the following into a SQL query | What school had a team name of the Trojans? | SELECT School FROM table WHERE Team Name = trojans |
Translate the following into a SQL query | What date was the Site michigan stadium • ann arbor, mi? | SELECT Date FROM table WHERE Site = michigan stadium • ann arbor, mi |
Translate the following into a SQL query | What is the site of the game with a Result of l7-33? | SELECT Site FROM table WHERE Result = l7-33 |
Translate the following into a SQL query | What is the name of the Opponent when the Result was w48-0? | SELECT Opponent FROM table WHERE Result = w48-0 |
Translate the following into a SQL query | What is the Date at memorial stadium • minneapolis, mn, and an Opponent of northwestern? | SELECT Date FROM table WHERE Site = memorial stadium • minneapolis, mn AND Opponent = northwestern |
Translate the following into a SQL query | What is the Result of the game on 10/11/1930? | SELECT Result FROM table WHERE Date = 10/11/1930 |
Translate the following into a SQL query | What is the total number of games played against the Buffalo Sabres? | SELECT COUNT Game FROM table WHERE Opponent = buffalo sabres |
Translate the following into a SQL query | Which April has Points of 95, and a Record of 41–25–10–3, and a Game smaller than 79? | SELECT SUM April FROM table WHERE Points = 95 AND Record = 41–25–10–3 AND Game < 79 |
Translate the following into a SQL query | How many Points have a Score of 1–3, and a Game larger than 82? | SELECT COUNT Points FROM table WHERE Score = 1–3 AND Game > 82 |
Translate the following into a SQL query | Which Game is the lowest one that has Points smaller than 92? | SELECT MIN Game FROM table WHERE Points < 92 |
Translate the following into a SQL query | Which April is the smallest one that has a Score of 2–4, and a Game smaller than 76? | SELECT MAX April FROM table WHERE Score = 2–4 AND Game < 76 |
Translate the following into a SQL query | What is the high point total associated with a difference of 1 and 0 draws? | SELECT MAX Points FROM table WHERE Difference = 1 AND Drawn = 0 |
Translate the following into a SQL query | What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws? | SELECT COUNT Position FROM table WHERE Difference = - 6 AND Lost = 3 AND Drawn > 4 |
Translate the following into a SQL query | Which round has the scorer of Di Matteo? | SELECT Round FROM table WHERE Scorers = di matteo |
Translate the following into a SQL query | What is the lowest attendance of a game that has the result of 2-0? | SELECT MIN Attendance FROM table WHERE Result = 2-0 |
Translate the following into a SQL query | What Metric value has a Unit of dolia? | SELECT Metric value FROM table WHERE Unit = dolia |
Translate the following into a SQL query | What Russian has a Ratio of 40? | SELECT Russian FROM table WHERE Ratio = 40 |
Translate the following into a SQL query | What Avoirdupois value has a Russian of берковец? | SELECT Avoirdupois value FROM table WHERE Russian = берковец |
Translate the following into a SQL query | What Russian has an Avoirdupois value of 0.686 gr? | SELECT Russian FROM table WHERE Avoirdupois value = 0.686 gr |
Translate the following into a SQL query | What Unit has a Ratio of 1/32? | SELECT Unit FROM table WHERE Ratio = 1/32 |
Translate the following into a SQL query | What Ratio has a Unit of zolotnik? | SELECT Ratio FROM table WHERE Unit = zolotnik |
Translate the following into a SQL query | What player from New Mexico plays the WR position? | SELECT Player FROM table WHERE Position = wr AND School/Club Team = new mexico |
Translate the following into a SQL query | What's the Uni# of Timms, who has bats of R? | SELECT Uni# FROM table WHERE Bats = r AND Surname = timms |
Translate the following into a SQL query | What team were the Opponent in Game 29? | SELECT Opponent FROM table WHERE Game = 29 |
Translate the following into a SQL query | When did the woman who died at 31 first contact Hitlers? | SELECT First contact with Hitler FROM table WHERE Age at death = 31 |
Translate the following into a SQL query | What is the relationship of the woman who died at 96? | SELECT Relationship FROM table WHERE Age at death = 96 |
Translate the following into a SQL query | What is the lifespan of Stefanie Rabatsch? | SELECT Life FROM table WHERE Name = stefanie rabatsch |
Translate the following into a SQL query | What is Brendan Gaughan's Car #? | SELECT Car # FROM table WHERE Driver = brendan gaughan |
Translate the following into a SQL query | What is Mike Skinner's Chevrolet's Car #? | SELECT COUNT Car # FROM table WHERE Make = chevrolet AND Driver = mike skinner |
Translate the following into a SQL query | What is Driver Brendan Gaughan's Pos? | SELECT Pos. FROM table WHERE Driver = brendan gaughan |
Translate the following into a SQL query | What was the 2009 value for a total over 1 and 4th on 2010? | SELECT 2009 FROM table WHERE Total > 1 AND 2010 = 4th |
Translate the following into a SQL query | What is the number of laps for the Time/Retired of +16.445? | SELECT Laps FROM table WHERE Time/Retired = +16.445 |
Translate the following into a SQL query | What is the number of laps for the honda vehicle, with a grid of 13? | SELECT Laps FROM table WHERE Constructor = honda AND Grid = 13 |
Translate the following into a SQL query | What is the name of the company that constructed the vehicle for Timo Glock? | SELECT Constructor FROM table WHERE Driver = timo glock |
Translate the following into a SQL query | What is the Grid for Rubens Barrichello? | SELECT Grid FROM table WHERE Driver = rubens barrichello |
Translate the following into a SQL query | What is the Time/Retired for the BMW Sauber, and Nick Heidfeld? | SELECT Time/Retired FROM table WHERE Constructor = bmw sauber AND Driver = nick heidfeld |
Translate the following into a SQL query | What were the total number of games in April greater than 83? | SELECT COUNT April FROM table WHERE Game > 83 |
Translate the following into a SQL query | Which Games↑ is the lowest one that has a Position of wlb? | SELECT MIN Games↑ FROM table WHERE Position = wlb |
Translate the following into a SQL query | Which Games↑ is the lowest one that has a Number of 98? | SELECT MIN Games↑ FROM table WHERE Number = 98 |
Translate the following into a SQL query | What is the height of Josh Tabb? | SELECT Height FROM table WHERE Name = josh tabb |
Translate the following into a SQL query | What series episode has stetson hats (part 1) under segment C? | SELECT Series Ep. FROM table WHERE Segment C = stetson hats (part 1) |
Translate the following into a SQL query | What is under segment C when s cuckoo clock is under segment B? | SELECT Segment C FROM table WHERE Segment B = s cuckoo clock |
Translate the following into a SQL query | When segment B is s pineapple, what is the segment C? | SELECT Segment C FROM table WHERE Segment B = s pineapple |
Translate the following into a SQL query | What series episode has jukeboxes as segment B? | SELECT Series Ep. FROM table WHERE Segment B = jukeboxes |
Translate the following into a SQL query | What week ended in a result of w 30-3, and had an attendance less than 62,795? | SELECT MIN Week FROM table WHERE Result = w 30-3 AND Attendance < 62,795 |
Translate the following into a SQL query | Which Format has a Catalog of 61298, and a Date of september 1984? | SELECT Format FROM table WHERE Catalog = 61298 AND Date = september 1984 |
Translate the following into a SQL query | Which Catalog has a Format of 7" single (second cover)? | SELECT Catalog FROM table WHERE Format = 7" single (second cover) |
Translate the following into a SQL query | Which Region has a Label of rca, and a Catalog of 61298, and a Format of 7" single (first cover)? | SELECT Region FROM table WHERE Label = rca AND Catalog = 61298 AND Format = 7" single (first cover) |
Translate the following into a SQL query | Which Format has a Catalog smaller than 61298? | SELECT Format FROM table WHERE Catalog < 61298 |
Translate the following into a SQL query | What was the score of the game with 96 points? | SELECT Score FROM table WHERE Points = 96 |
Translate the following into a SQL query | What was the score of the game with a record of 34–17–11–2? | SELECT Score FROM table WHERE Record = 34–17–11–2 |
Translate the following into a SQL query | What was the record after the game at Rich Stadium? | SELECT Record FROM table WHERE Game Site = rich stadium |
Translate the following into a SQL query | When was the first cap associated with 74 caps? | SELECT First cap FROM table WHERE Caps = 74 |
Translate the following into a SQL query | How many goals are associated with over 97 caps and a Latest cap of april 24, 2013? | SELECT AVG Goals FROM table WHERE Latest cap = april 24, 2013 AND Caps > 97 |
Translate the following into a SQL query | When was the first cap associated with 39 caps and under 33 goals? | SELECT First cap FROM table WHERE Goals < 33 AND Caps = 39 |
Translate the following into a SQL query | What is the highest number of goals associated with 39 caps? | SELECT MAX Goals FROM table WHERE Caps = 39 |
Translate the following into a SQL query | How many days in April has a record of 42–22–12–3, and less than 99 points? | SELECT COUNT April FROM table WHERE Record = 42–22–12–3 AND Points < 99 |
Translate the following into a SQL query | Name the total number of points for 44 game and january more than 15 | SELECT COUNT Points FROM table WHERE Game = 44 AND January > 15 |
Translate the following into a SQL query | Men's singles of kęstutis navickas, and a Women's singles of ugnė urbonaitė, and a Year larger than 2004 involved which mens double? | SELECT Men's doubles FROM table WHERE Men's singles = kęstutis navickas AND Women's singles = ugnė urbonaitė AND Year > 2004 |
Translate the following into a SQL query | Women's singles of akvilė stapušaitytė, and a Year of 2010 had what mixed doubles? | SELECT Mixed doubles FROM table WHERE Women's singles = akvilė stapušaitytė AND Year = 2010 |
Translate the following into a SQL query | Year smaller than 1993, and a Women's singles of jūratė markaitytė, and a Men's singles of arūnas petkevičius involved which women's doubles? | SELECT Women's doubles FROM table WHERE Year < 1993 AND Women's singles = jūratė markaitytė AND Men's singles = arūnas petkevičius |
Translate the following into a SQL query | Which Date had a Result of 7–20? | SELECT Date FROM table WHERE Result = 7–20 |
Translate the following into a SQL query | Which Date had an Opponent of buffalo bills? | SELECT Date FROM table WHERE Opponent = buffalo bills |
Translate the following into a SQL query | Which Kickoff had a Game Site of bank of america stadium? | SELECT Kickoff FROM table WHERE Game Site = bank of america stadium |
Translate the following into a SQL query | Which Kickoff had a Game Site of fawcett stadium? | SELECT Kickoff FROM table WHERE Game Site = fawcett stadium |
Translate the following into a SQL query | Which NFL Recap had a Kickoff of 7:00pm edt? | SELECT NFL Recap FROM table WHERE Kickoff = 7:00pm edt |
Translate the following into a SQL query | Which NFL Recap had a Record of 1–3? | SELECT NFL Recap FROM table WHERE Record = 1–3 |
Translate the following into a SQL query | What was the Record on Game 50? | SELECT Record FROM table WHERE Game = 50 |
Translate the following into a SQL query | what player score is higher than 17 | SELECT Player FROM table WHERE Round = 17 |
Translate the following into a SQL query | What is the lowest population associated with a Regional Percentage of Population of 2.95? | SELECT MIN Total Population FROM table WHERE Regional Percentage of Population = 2.95 |
Translate the following into a SQL query | Which opponent has an attendance of 17,015? | SELECT Opponent FROM table WHERE Attendance = 17,015 |
Translate the following into a SQL query | Which Frequency MHz is the highest one that has a Call sign of k241an? | SELECT MAX Frequency MHz FROM table WHERE Call sign = k241an |
Translate the following into a SQL query | Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas? | SELECT MAX ERP W FROM table WHERE Frequency MHz > 88.3 AND City of license = lewis, kansas |
Translate the following into a SQL query | Which FCC info has a ERP W smaller than 222, and a Call sign of k297ai? | SELECT FCC info FROM table WHERE ERP W < 222 AND Call sign = k297ai |
Translate the following into a SQL query | Which City of license has a Call sign of k241an? | SELECT City of license FROM table WHERE Call sign = k241an |
Translate the following into a SQL query | Which Class has an ERP W of 222? | SELECT Class FROM table WHERE ERP W = 222 |
Translate the following into a SQL query | What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent? | SELECT Score FROM table WHERE Surface = clay AND Year > 2006 AND Opponent = david ferrer |
Translate the following into a SQL query | Which championship is in a year later than 2010 on a grass surface? | SELECT Championship FROM table WHERE Year > 2010 AND Surface = grass |
Translate the following into a SQL query | Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007? | SELECT Championship FROM table WHERE Opponent = roger federer AND Surface = clay AND Year < 2007 |
Translate the following into a SQL query | How many weeks have an attendance greater than 21,231, with l 38-10 as the result? | SELECT COUNT Week FROM table WHERE Attendance > 21,231 AND Result = l 38-10 |
Translate the following into a SQL query | Which opponent has an attendance greater than 57,491, with october 28, 1962 as the date? | SELECT Opponent FROM table WHERE Attendance > 57,491 AND Date = october 28, 1962 |
Translate the following into a SQL query | What is the largest attendance that has December 16, 1962 as the date? | SELECT MAX Attendance FROM table WHERE Date = december 16, 1962 |
Translate the following into a SQL query | What is the largest week that has t 35-35 as the result? | SELECT MAX Week FROM table WHERE Result = t 35-35 |
Translate the following into a SQL query | Name the total number of no result for losses more than 1 and played of 38 and wins less than 19 | SELECT COUNT No Result FROM table WHERE Losses > 1 AND Played = 38 AND Wins < 19 |
Translate the following into a SQL query | Name the sum of played with wins more than 19 | SELECT SUM Played FROM table WHERE Wins > 19 |
Translate the following into a SQL query | Name the total number of losses with number result less than 0 | SELECT COUNT Losses FROM table WHERE No Result < 0 |
Translate the following into a SQL query | Which Rank has Goals larger than 4, and a Scorer of oh seok-jae? | SELECT Rank FROM table WHERE Goals > 4 AND Scorer = oh seok-jae |
Translate the following into a SQL query | Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in? | SELECT MIN Goals FROM table WHERE Matches = 16 AND Scorer = park sang-in |
Translate the following into a SQL query | Which Club has a Rank of 1? | SELECT Club FROM table WHERE Rank = 1 |
Translate the following into a SQL query | Which Goals have a Club of hallelujah fc, and a Rank of 7? | SELECT SUM Goals FROM table WHERE Club = hallelujah fc AND Rank = 7 |
Translate the following into a SQL query | How many Extra points have Touchdowns larger than 2, and Field goals larger than 0? | SELECT COUNT Extra points FROM table WHERE Touchdowns > 2 AND Field goals > 0 |
Translate the following into a SQL query | Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4? | SELECT MAX Field goals FROM table WHERE Touchdowns = 0 AND Points > 4 |
Translate the following into a SQL query | How many Totals have a High Game Tackles of 19 (purdue), and Interceptions smaller than 3? | SELECT COUNT Totals FROM table WHERE High Game Tackles = 19 (purdue) AND Interceptions < 3 |
Translate the following into a SQL query | What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps? | SELECT SUM Grid FROM table WHERE Manufacturer = aprilia AND Laps < 19 AND Rider = sandro cortese |
Translate the following into a SQL query | Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73? | SELECT MAX Rank FROM table WHERE Lost < 12 AND Played > 20 AND Avg. Points > 1.73 |
Translate the following into a SQL query | Which Drew has a Rank of 5, and a Played larger than 30? | SELECT COUNT Drew FROM table WHERE Rank = 5 AND Played > 30 |
Translate the following into a SQL query | Which Rank has a Club of zulte waregem, and Points larger than 22? | SELECT COUNT Rank FROM table WHERE Club = zulte waregem AND Points > 22 |
Translate the following into a SQL query | Which Lost has Seasons of 2, and Goals against larger than 43? | SELECT MAX Lost FROM table WHERE Seasons = 2 AND Goals against > 43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.