instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the city containing the KDKA-TV station? | SELECT City of License /Market FROM table WHERE Station = kdka-tv |
Translate the following into a SQL query | Which Channel TV is located in Baltimore? | SELECT Channel TV ( DT ) FROM table WHERE City of License /Market = baltimore |
Translate the following into a SQL query | What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup? | SELECT MIN Play-offs FROM table WHERE FA Cup = 2 |
Translate the following into a SQL query | What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals? | SELECT AVG FA Cup FROM table WHERE Total > 20 AND FA Trophy < 1 AND League < 25 |
Translate the following into a SQL query | What is the latitude and longitude for Surveyor 3? | SELECT Lat / Lon FROM table WHERE U.S. mission = surveyor 3 |
Translate the following into a SQL query | What is the largest mass for Tycho Crater? | SELECT MAX Mass (kg) FROM table WHERE Landing zone = tycho crater |
Translate the following into a SQL query | What Field was Commissioned in 1958, 2005? | SELECT Field FROM table WHERE Commissioned = 1958, 2005 |
Translate the following into a SQL query | What is the Annual Generation at Kawerau (Bope)? | SELECT Annual Generation (average GWh) FROM table WHERE Name = kawerau (bope) |
Translate the following into a SQL query | What is the Name of the power station with a Capacity of 25 MW? | SELECT Name FROM table WHERE Capacity (MW) = 25 |
Translate the following into a SQL query | What is the Name of the power station in the Field of Mokai? | SELECT Name FROM table WHERE Field = mokai |
Translate the following into a SQL query | How many goals were scored in 2004 when the gp/gs was "did not play"? | SELECT Goals FROM table WHERE GP/GS = did not play AND Year = 2004 |
Translate the following into a SQL query | How many assists were there when the total points was 2? | SELECT Assists FROM table WHERE Total Points = 2 |
Translate the following into a SQL query | What was the total number of points when there were 7 assists? | SELECT Total Points FROM table WHERE Assists = 7 |
Translate the following into a SQL query | What was the gp/gs when the assists was 1? | SELECT GP/GS FROM table WHERE Assists = 1 |
Translate the following into a SQL query | what was the gp/gs in 2003 when the total points was "did not play"? | SELECT GP/GS FROM table WHERE Total Points = did not play AND Year = 2003 |
Translate the following into a SQL query | What was the outcome for Jan Pisecky and his partner? | SELECT Outcome FROM table WHERE Partner = jan pisecky |
Translate the following into a SQL query | What player weight 235? | SELECT Player FROM table WHERE Weight = 235 |
Translate the following into a SQL query | What is the height of the F who weighs less than 195? | SELECT Height FROM table WHERE Pos. = f AND Weight < 195 |
Translate the following into a SQL query | What team does F Trey Gilder play for? | SELECT Team FROM table WHERE Pos. = f AND Player = trey gilder |
Translate the following into a SQL query | What player plays for the Dakota Wizards? | SELECT Player FROM table WHERE Team = dakota wizards |
Translate the following into a SQL query | Which player who weighs 210 plays for the Reno Bighorns? | SELECT Player FROM table WHERE Weight = 210 AND Team = reno bighorns |
Translate the following into a SQL query | What position does Brian Butch play? | SELECT Pos. FROM table WHERE Player = brian butch |
Translate the following into a SQL query | Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004? | SELECT Position FROM table WHERE Player = tyronn lue AND Years in Orlando = 2003–2004 |
Translate the following into a SQL query | Which School/Club Team has a Player of deandre liggins? | SELECT School/Club Team FROM table WHERE Player = deandre liggins |
Translate the following into a SQL query | Which Position has a Years in Orlando of 1997–1998? | SELECT Position FROM table WHERE Years in Orlando = 1997–1998 |
Translate the following into a SQL query | Which Position has a School/Club Team of stanford? | SELECT Position FROM table WHERE School/Club Team = stanford |
Translate the following into a SQL query | Which School/Club Team has a Years in Orlando of 1997–1998? | SELECT School/Club Team FROM table WHERE Years in Orlando = 1997–1998 |
Translate the following into a SQL query | Which Position has a Years in Orlando of 2003–2004? | SELECT Position FROM table WHERE Years in Orlando = 2003–2004 |
Translate the following into a SQL query | What is the High assists with a Date that is february 27? | SELECT High assists FROM table WHERE Date = february 27 |
Translate the following into a SQL query | What is the High points with a Game that is 56? | SELECT High points FROM table WHERE Game = 56 |
Translate the following into a SQL query | In what Distance has a Venue of sale? | SELECT Distance FROM table WHERE Venue = sale |
Translate the following into a SQL query | WHo is Winner/2nd that has c. symons? | SELECT Winner/2nd FROM table WHERE Jockey = c. symons |
Translate the following into a SQL query | Which Race that Jockey of d. nikolic is in? | SELECT Race FROM table WHERE Jockey = d. nikolic |
Translate the following into a SQL query | Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5? | SELECT Result FROM table WHERE Distance = 1200m AND Weight (kg) = 55.5 |
Translate the following into a SQL query | What is the previous team of the United States player who had 2 NBA years and played the F position? | SELECT Previous team FROM table WHERE Nationality = united states AND NBA years [a ] = 2 AND Pos. = f |
Translate the following into a SQL query | Which Team has a Score of 108-107? | SELECT Team FROM table WHERE Score = 108-107 |
Translate the following into a SQL query | Which Record has a Date of may 31? | SELECT Record FROM table WHERE Date = may 31 |
Translate the following into a SQL query | Which Game has a Team of at phoenix, and a Score of 107-119? | SELECT COUNT Game FROM table WHERE Team = at phoenix AND Score = 107-119 |
Translate the following into a SQL query | Which Location Attendance has a Game larger than 5? | SELECT Location Attendance FROM table WHERE Game > 5 |
Translate the following into a SQL query | Which Team has a Score of 89-123? | SELECT Team FROM table WHERE Score = 89-123 |
Translate the following into a SQL query | What is the average Game with a Date that is june 14? | SELECT AVG Game FROM table WHERE Date = june 14 |
Translate the following into a SQL query | What is the Record with a Team that is detroit and a Date that is june 10? | SELECT Record FROM table WHERE Team = detroit AND Date = june 10 |
Translate the following into a SQL query | What is the Location Attendance with a Record that is 1-4? | SELECT Location Attendance FROM table WHERE Record = 1-4 |
Translate the following into a SQL query | How much is the GDP for a population density of 254.7? | SELECT GDP (PPP) $M USD FROM table WHERE Population density (per km²) = 254.7 |
Translate the following into a SQL query | Which country has a population density of 50.3? | SELECT Country FROM table WHERE Population density (per km²) = 50.3 |
Translate the following into a SQL query | How much is the GDP for an area of 61,395? | SELECT GDP (PPP) $M USD FROM table WHERE Area (km²) = 61,395 |
Translate the following into a SQL query | How much is the population density with a GDP at $188,112? | SELECT Population density (per km²) FROM table WHERE GDP (PPP) $M USD = $188,112 |
Translate the following into a SQL query | How much is the GDP for an area of 116? | SELECT GDP (PPP) $M USD FROM table WHERE Area (km²) = 116 |
Translate the following into a SQL query | Which country has a population of 3,221,216? | SELECT Country FROM table WHERE Population (2011 est.) = 3,221,216 |
Translate the following into a SQL query | What was Miller Barber wins with Top-5 less than 2 and 19 Events? | SELECT COUNT Wins FROM table WHERE Top-5 < 2 AND Events = 19 |
Translate the following into a SQL query | What is the average number of Wins in a PGA Championship with a Top-5 less than 2? | SELECT AVG Wins FROM table WHERE Tournament = pga championship AND Top-5 < 2 |
Translate the following into a SQL query | What is the highest Top-5 ranking with Events less than 4? | SELECT MAX Top-5 FROM table WHERE Events < 4 |
Translate the following into a SQL query | Which week's game was attended by 65,272 people? | SELECT Week FROM table WHERE Attendance = 65,272 |
Translate the following into a SQL query | How many people attended the game in week 13? | SELECT Attendance FROM table WHERE Week = 13 |
Translate the following into a SQL query | During which week was the earliest game with an attendance of 65,904 people? | SELECT MIN Week FROM table WHERE Attendance = 65,904 |
Translate the following into a SQL query | What height is the tallest for an outside hitter? | SELECT MAX Height FROM table WHERE Position = outside hitter |
Translate the following into a SQL query | What is the highest silver rank with a total of 27? | SELECT MAX Silver FROM table WHERE Total = 27 |
Translate the following into a SQL query | What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria? | SELECT COUNT Silver FROM table WHERE Bronze < 1 AND Total < 2 AND Nation = bulgaria |
Translate the following into a SQL query | What is the temperature classification of a purple colored glass bulb? | SELECT Temperature Classification FROM table WHERE Glass Bulb Color = purple |
Translate the following into a SQL query | What is the color code with a temperature classification of ordinary? | SELECT Color Code (with Fusible Link) FROM table WHERE Temperature Classification = ordinary |
Translate the following into a SQL query | What is the temperature rating of the intermediate temperature classification? | SELECT Temperature Rating FROM table WHERE Temperature Classification = intermediate |
Translate the following into a SQL query | What is the average Goals for team Kairat, in the 2002 season with more than 29 apps? | SELECT AVG Goals FROM table WHERE Team = kairat AND Season = 2002 AND Apps > 29 |
Translate the following into a SQL query | What is the Country for the 2006-07 season? | SELECT Country FROM table WHERE Season = 2006-07 |
Translate the following into a SQL query | What is the average Apps for the team Kairat with level larger than 1? | SELECT AVG Apps FROM table WHERE Team = kairat AND Level > 1 |
Translate the following into a SQL query | How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633? | SELECT Laps FROM table WHERE Grid > 11 AND Bike = honda cbr1000rr AND Time = +42.633 |
Translate the following into a SQL query | Who was teh rider with 18 laps and a grid of 25? | SELECT Rider FROM table WHERE Laps = 18 AND Grid = 25 |
Translate the following into a SQL query | Who was the rider who had an accident time and a kawasaki zx-10r bike? | SELECT Rider FROM table WHERE Time = accident AND Bike = kawasaki zx-10r |
Translate the following into a SQL query | What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8? | SELECT Time FROM table WHERE Laps < 18 AND Grid > 8 AND Rider = loic napoleone |
Translate the following into a SQL query | How many laps did the rider with a grid larger than 14 and a time of +33.150 have? | SELECT Laps FROM table WHERE Grid > 14 AND Time = +33.150 |
Translate the following into a SQL query | What is Away, when Home is Guelph Gargoyles? | SELECT Away FROM table WHERE Home = guelph gargoyles |
Translate the following into a SQL query | What is Home, when Ground is Humber College North, and when Time is 15:00? | SELECT Home FROM table WHERE Ground = humber college north AND Time = 15:00 |
Translate the following into a SQL query | What is Date, when Away is High Park Demons? | SELECT Date FROM table WHERE Away = high park demons |
Translate the following into a SQL query | What is Date, when Away is High Park Demons? | SELECT Date FROM table WHERE Away = high park demons |
Translate the following into a SQL query | What is Time, when Away is Central Blues? | SELECT Time FROM table WHERE Away = central blues |
Translate the following into a SQL query | What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)? | SELECT Cover FROM table WHERE Published = may 27, 2009 (hc) may 20, 2009 (tpb) |
Translate the following into a SQL query | What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)? | SELECT Volume FROM table WHERE ISBN = 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb) |
Translate the following into a SQL query | What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)? | SELECT Series FROM table WHERE ISBN = 978-1-59582-523-0 (tpb) |
Translate the following into a SQL query | What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)? | SELECT Volume FROM table WHERE ISBN = 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb) |
Translate the following into a SQL query | What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast? | SELECT ISBN FROM table WHERE Series = conan the barbarian AND Title = queen of the black coast |
Translate the following into a SQL query | What cover has Throne of Aquilonia as the title? | SELECT Cover FROM table WHERE Title = throne of aquilonia |
Translate the following into a SQL query | With a Rank of less than 4, what is Pablo Prigioni's total number of Games? | SELECT COUNT Games FROM table WHERE Name = pablo prigioni AND Rank < 4 |
Translate the following into a SQL query | How many Assists for the Player with more than 25 Games? | SELECT SUM Assists FROM table WHERE Games > 25 |
Translate the following into a SQL query | What is the Rank of the Maccabi Tel Aviv Player with 25 Games? | SELECT COUNT Rank FROM table WHERE Games = 25 AND Team = maccabi tel aviv |
Translate the following into a SQL query | How many Assists for the Player with a Rank greater than 3 in less than 25 Games? | SELECT AVG Assists FROM table WHERE Rank > 3 AND Games < 25 |
Translate the following into a SQL query | How many Games for Rank 2 Terrell McIntyre? | SELECT MIN Games FROM table WHERE Name = terrell mcintyre AND Rank > 2 |
Translate the following into a SQL query | What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th? | SELECT Venue FROM table WHERE Year > 2006 AND Position = 7th AND Notes = heptathlon |
Translate the following into a SQL query | In what Year did Chernova come in 1st in Götzis, Austria? | SELECT SUM Year FROM table WHERE Venue = götzis, austria AND Position = 1st |
Translate the following into a SQL query | Which Cover Model was featured on 8-03? | SELECT Cover model FROM table WHERE Date = 8-03 |
Translate the following into a SQL query | Who was the Centerfold model when O.J. Simpson was the Interview Subject? | SELECT Centerfold model FROM table WHERE Interview subject = o.j. simpson |
Translate the following into a SQL query | Who was the Cover model when the Centerfold Model was Marketa Janska? | SELECT Cover model FROM table WHERE Centerfold model = marketa janska |
Translate the following into a SQL query | Who was the Cover model on 11-03? | SELECT Cover model FROM table WHERE Date = 11-03 |
Translate the following into a SQL query | Who was the Centerfold Model on 9-03? | SELECT Centerfold model FROM table WHERE Date = 9-03 |
Translate the following into a SQL query | Who was the Interview Subject when the 20 Questions was William H. Macy? | SELECT Interview subject FROM table WHERE 20 Questions = william h. macy |
Translate the following into a SQL query | How many rounds had a selection of 165? | SELECT SUM Round FROM table WHERE Selection = 165 |
Translate the following into a SQL query | What is the highest Weight for the position of D, and the 1990–1991 Team was the chicago blackhawks? | SELECT MAX Weight (kg) FROM table WHERE Position = d AND 1990–1991 Team = chicago blackhawks |
Translate the following into a SQL query | What is the average Height for the Position of d, with a Birthplace of new hope, minnesota? | SELECT AVG Height (cm) FROM table WHERE Position = d AND Birthplace = new hope, minnesota |
Translate the following into a SQL query | What is the 1990–1991 Team when the Birthplace shows as new york? | SELECT 1990–1991 Team FROM table WHERE Birthplace = new york |
Translate the following into a SQL query | What is the Position when the person's birthplace was toledo, ohio? | SELECT Position FROM table WHERE Birthplace = toledo, ohio |
Translate the following into a SQL query | What is the 1990–1991 Team that had Joel Otto? | SELECT 1990–1991 Team FROM table WHERE Name = joel otto |
Translate the following into a SQL query | Which T.C. has a Year larger than 2007, and a D.C. of 21st? | SELECT T.C. FROM table WHERE Year > 2007 AND D.C. = 21st |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.