instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which driver has a grid value larger than 11, and drove more than 52 laps? | SELECT Driver FROM table WHERE Grid > 11 AND Laps > 52 |
Translate the following into a SQL query | Tell me the away team score with the crowd bigger than 15,242 with home team of carlton | SELECT Away team score FROM table WHERE Crowd > 15,242 AND Home team = carlton |
Translate the following into a SQL query | What is the crowd for away team of north melbourne? | SELECT Crowd FROM table WHERE Away team = north melbourne |
Translate the following into a SQL query | What is the date when the away team is essendon? | SELECT Date FROM table WHERE Away team = essendon |
Translate the following into a SQL query | Name the visitor from vancouver on february 24 | SELECT Visitor FROM table WHERE Home = vancouver AND Date = february 24 |
Translate the following into a SQL query | Which description is dated 1962? | SELECT Description FROM table WHERE Date = 1962 |
Translate the following into a SQL query | Moorabbin oval is home to what team? | SELECT Home team FROM table WHERE Venue = moorabbin oval |
Translate the following into a SQL query | Which away team scored 10.14 (74)? | SELECT Away team FROM table WHERE Away team score = 10.14 (74) |
Translate the following into a SQL query | How many crowds had a home team score of 9.13 (67)? | SELECT COUNT Crowd FROM table WHERE Home team score = 9.13 (67) |
Translate the following into a SQL query | How many people were in the crowd on the day the home team scored 7.10 (52)? | SELECT Crowd FROM table WHERE Home team score = 7.10 (52) |
Translate the following into a SQL query | Who was the leader at the summit for the race in 2005? | SELECT Leader at the summit FROM table WHERE Year = 2005 |
Translate the following into a SQL query | What is the sum of the stages for category 1 races after the year 2003? | SELECT SUM Stage FROM table WHERE Category = 1 AND Year > 2003 |
Translate the following into a SQL query | What is the stadium of melbourne? | SELECT Venue FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | How big was the average crowd when the opposing team scored 19.16 (130)? | SELECT AVG Crowd FROM table WHERE Away team score = 19.16 (130) |
Translate the following into a SQL query | What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance? | SELECT Record FROM table WHERE Decision = backstrom AND Attendance > 18,568 |
Translate the following into a SQL query | For Getafe CF, what is the highest number of goals scored? | SELECT MAX Goals FROM table WHERE Team = getafe cf |
Translate the following into a SQL query | For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches? | SELECT AVG Matches FROM table WHERE Goals < 41 AND Team = ca osasuna AND Average < 1.06 |
Translate the following into a SQL query | For averages of 1.58 and matches under 38, what is the average number of goals? | SELECT AVG Goals FROM table WHERE Average = 1.58 AND Matches < 38 |
Translate the following into a SQL query | Which Ranking has a Season of 2009? | SELECT Ranking FROM table WHERE Season = 2009 |
Translate the following into a SQL query | Which Champions have a Runner-up of tobol, and a Coeff of 1.125? | SELECT Champions FROM table WHERE Runner-up = tobol AND Coeff = 1.125 |
Translate the following into a SQL query | In what Season is there a 3rd place of tobol, and a Champion of irtysh? | SELECT Season FROM table WHERE 3rd place = tobol AND Champions = irtysh |
Translate the following into a SQL query | Which Champion has a Coeff of 1.000? | SELECT Champions FROM table WHERE Coeff = 1.000 |
Translate the following into a SQL query | what is the game for 23 april when batting 2nd is england 5/113 (19)? | SELECT MIN Game FROM table WHERE Date = 23 april AND Batting 2nd = england 5/113 (19) |
Translate the following into a SQL query | what is the game when batting 2nd is new zealand 6/133 (18)? | SELECT MIN Game FROM table WHERE Batting 2nd = new zealand 6/133 (18) |
Translate the following into a SQL query | what is the game when the result is new zealand by 4 wickets? | SELECT MAX Game FROM table WHERE Result = new zealand by 4 wickets |
Translate the following into a SQL query | who is batting 1st in game 8? | SELECT Batting 1st FROM table WHERE Game = 8 |
Translate the following into a SQL query | What is the regular season 1 result of the season when the Copa México was no longer played, the pyramid level was 2, and the regular season 2 result was 15th? | SELECT Regular Season 1 FROM table WHERE Copa México = no longer played AND Pyramid Level = 2 AND Regular Season 2 = 15th |
Translate the following into a SQL query | What is the regular season 2 result of season 2001-02? | SELECT Regular Season 2 FROM table WHERE Season = 2001-02 |
Translate the following into a SQL query | What is the playoffs 2 result of season 2010-11? | SELECT Playoffs 2 FROM table WHERE Season = 2010-11 |
Translate the following into a SQL query | What is the playoffs 1 result of season 2004-05? | SELECT Playoffs 1 FROM table WHERE Season = 2004-05 |
Translate the following into a SQL query | Which Grid did Alain Prost drive on? | SELECT SUM Grid FROM table WHERE Driver = alain prost |
Translate the following into a SQL query | What was Riccardo Patrese's time/retired? | SELECT Time/Retired FROM table WHERE Driver = riccardo patrese |
Translate the following into a SQL query | What venue has a score of 14.15 (99) for away teams? | SELECT Venue FROM table WHERE Away team score = 14.15 (99) |
Translate the following into a SQL query | What venue has the score of 14.11 (95) for away teams? | SELECT Venue FROM table WHERE Away team score = 14.11 (95) |
Translate the following into a SQL query | How many rounds did geoff lees drive with chassis of n180? | SELECT Rounds FROM table WHERE Chassis = n180 AND Driver = geoff lees |
Translate the following into a SQL query | What is the tyres for Didier pironi? | SELECT Tyres FROM table WHERE Driver = didier pironi |
Translate the following into a SQL query | Who was the constructor of the car that Jan Lammers made 7-14 rounds in? | SELECT Constructor FROM table WHERE Driver = jan lammers AND Rounds = 7-14 |
Translate the following into a SQL query | What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6? | SELECT Engine FROM table WHERE Tyres = g AND Chassis = d3 d4 AND Driver = jan lammers AND Rounds = 4-6 |
Translate the following into a SQL query | Which Competition has a Venue of Seoul, and Result of 4-1? | SELECT Competition FROM table WHERE Venue = seoul AND Result = 4-1 |
Translate the following into a SQL query | What's the Result listed that has a Date of June 12, 1997? | SELECT Result FROM table WHERE Date = june 12, 1997 |
Translate the following into a SQL query | What's the Score listed that has a Result of 1-0? | SELECT Score FROM table WHERE Result = 1-0 |
Translate the following into a SQL query | What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993? | SELECT Result FROM table WHERE Competition = 1994 fifa world cup qualification AND Date = may 15, 1993 |
Translate the following into a SQL query | Which Competition had a Result of 3-0 and VEnue of Suwon? | SELECT Competition FROM table WHERE Result = 3-0 AND Venue = suwon |
Translate the following into a SQL query | What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok? | SELECT Result FROM table WHERE Competition = 1998 fifa world cup qualification AND Venue = bangkok |
Translate the following into a SQL query | Who had the decision with boston at home? | SELECT Decision FROM table WHERE Home = boston |
Translate the following into a SQL query | Who is the home team that played at MCG? | SELECT Home team FROM table WHERE Venue = mcg |
Translate the following into a SQL query | What is the score of the away team that played richmond? | SELECT Away team score FROM table WHERE Home team = richmond |
Translate the following into a SQL query | What is the score for the game that Colin Fleming Scott Lipsky played in? | SELECT Score FROM table WHERE Opponents = colin fleming scott lipsky |
Translate the following into a SQL query | Which tournament was Dieter Kindlmann a partner? | SELECT Tournament FROM table WHERE Partner = dieter kindlmann |
Translate the following into a SQL query | When the Apps were smaller than 22, what's the lowest amount of goals scored in a game? | SELECT MIN Goals FROM table WHERE Apps < 22 |
Translate the following into a SQL query | What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal? | SELECT COUNT Division FROM table WHERE Season = 2006/07 AND Goals > 1 |
Translate the following into a SQL query | What is the total of a crowd with an Away team score of 8.17 (65)? | SELECT SUM Crowd FROM table WHERE Away team score = 8.17 (65) |
Translate the following into a SQL query | What is the average crowd at victoria park? | SELECT AVG Crowd FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What is the Away team score with a crowd greater than 10,000 and st kilda as home team? | SELECT Away team score FROM table WHERE Crowd > 10,000 AND Home team = st kilda |
Translate the following into a SQL query | What is the Away team score with north melbourne as home team? | SELECT Away team score FROM table WHERE Home team = north melbourne |
Translate the following into a SQL query | Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22? | SELECT General classification FROM table WHERE Trofeo Fast Team = mapei-bricobi AND Points classification = mariano piccoli AND Mountains classification = marco pantani AND Stage = 22 |
Translate the following into a SQL query | Who was the winner in stage 3? | SELECT Winner FROM table WHERE Stage = 3 |
Translate the following into a SQL query | Which state was first elected in 1914, and a Member of edward jolley? | SELECT State FROM table WHERE First elected = 1914 AND Member = edward jolley |
Translate the following into a SQL query | Which state is frederick bamford a member of? | SELECT State FROM table WHERE Member = frederick bamford |
Translate the following into a SQL query | Which first election for the labor party is James Sharpe a part of? | SELECT First elected FROM table WHERE Party = labor AND Member = james sharpe |
Translate the following into a SQL query | Which party is sydney sampson a member of? | SELECT Party FROM table WHERE Member = sydney sampson |
Translate the following into a SQL query | What position for doug gibson with 2 wins? | SELECT Position FROM table WHERE Win # = 2 AND Winner = doug gibson |
Translate the following into a SQL query | How many receptions does Chris Watton with yards of less than 1? | SELECT COUNT Rec. FROM table WHERE Player = chris watton AND Yards < 1 |
Translate the following into a SQL query | What is the score for plays with more than 19,227 attendees with ny islanders visiting? | SELECT Score FROM table WHERE Attendance > 19,227 AND Visitor = ny islanders |
Translate the following into a SQL query | What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games? | SELECT The American FROM table WHERE Years < 114 AND Tied > 1 AND Total Games > 1022 |
Translate the following into a SQL query | What was the largest crowd for a game where the away team scored 14.20 (104)? | SELECT MAX Crowd FROM table WHERE Away team score = 14.20 (104) |
Translate the following into a SQL query | Who was the away team when Melbourne was the home team? | SELECT Away team FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | What is the Away team score for Away team North Melbourne? | SELECT Away team score FROM table WHERE Away team = north melbourne |
Translate the following into a SQL query | Which Away team is associated with the Richmond Home team? | SELECT Away team FROM table WHERE Home team = richmond |
Translate the following into a SQL query | What is the birth date of the member with the Defining characteristic of pink hair? | SELECT Birthdate FROM table WHERE Defining characteristics = pink hair |
Translate the following into a SQL query | What is the defining characteristic of Takeshi Kuroiwa? | SELECT Defining characteristics FROM table WHERE Real Name = takeshi kuroiwa |
Translate the following into a SQL query | Who is the person with the defining characteristic of the shortest band member? | SELECT Real Name FROM table WHERE Defining characteristics = shortest band member |
Translate the following into a SQL query | What is the name of the member with a costume Role of monster? | SELECT Name FROM table WHERE Costume Role = monster |
Translate the following into a SQL query | What is the name of the member with the costume Role of "the girl"? | SELECT Real Name FROM table WHERE Costume Role = "the girl" |
Translate the following into a SQL query | What was the final score for the match played in Venue H and the opponent was Newcastle United? | SELECT Result FROM table WHERE Venue = h AND Opponent = newcastle united |
Translate the following into a SQL query | What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5? | SELECT MIN Bronze FROM table WHERE Silver < 1 AND Rank < 5 |
Translate the following into a SQL query | How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3? | SELECT COUNT Bronze FROM table WHERE Gold < 3 AND Silver = 1 AND Total < 3 AND Rank = 3 |
Translate the following into a SQL query | What is the largest total for a nation with 1 bronze and more than 1 silver? | SELECT MAX Total FROM table WHERE Bronze = 1 AND Silver > 1 |
Translate the following into a SQL query | What is the smallest total for a nation with more than 1 silver? | SELECT MIN Total FROM table WHERE Silver > 1 |
Translate the following into a SQL query | What was the aggregate for a team #2 of Okk Beograd? | SELECT Agg. FROM table WHERE Team #2 = okk beograd |
Translate the following into a SQL query | What was the 2nd leg score for Chemie Halle? | SELECT 2nd leg FROM table WHERE Team #1 = chemie halle |
Translate the following into a SQL query | What was South Melbourne's score as the away team? | SELECT Away team score FROM table WHERE Away team = south melbourne |
Translate the following into a SQL query | What was the attendance when Geelong played as the away team? | SELECT COUNT Crowd FROM table WHERE Away team = geelong |
Translate the following into a SQL query | Where did Footscray play as the away team? | SELECT Venue FROM table WHERE Away team = footscray |
Translate the following into a SQL query | What was the attendance when the Arden Street Oval? | SELECT Crowd FROM table WHERE Venue = arden street oval |
Translate the following into a SQL query | What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20? | SELECT AVG Pick FROM table WHERE Player = marc lewis (lhp) AND Round < 20 |
Translate the following into a SQL query | Which pick's player was Marc Lewis (lhp)? | SELECT Pick FROM table WHERE Player = marc lewis (lhp) |
Translate the following into a SQL query | Which is the biggest pick for Naperville Central High School? | SELECT MAX Pick FROM table WHERE School = naperville central high school |
Translate the following into a SQL query | What is the media market ranking for new york, new york? | SELECT Media Market Ranking FROM table WHERE Metropolitan Area = new york, new york |
Translate the following into a SQL query | Is it home or away when opponent is Pride with a W 11-10 result? | SELECT Home/Away FROM table WHERE Opponent = pride AND Result = w 11-10 |
Translate the following into a SQL query | Who is the opponent at Bishop Kearney Field? | SELECT Opponent FROM table WHERE Field = bishop kearney field |
Translate the following into a SQL query | On what date were the opponents the Bayhawks at a home game? | SELECT Date FROM table WHERE Home/Away = home AND Opponent = bayhawks |
Translate the following into a SQL query | What city or Raion (district) has 8,600 Bessarabian Bulgarians? | SELECT Raion (district) or City FROM table WHERE Bessarabian Bulgarians = 8,600 |
Translate the following into a SQL query | what is the Moldovans number when there are 14,200 Ukrainians? | SELECT Moldovans FROM table WHERE Ukrainians = 14,200 |
Translate the following into a SQL query | Name the lowest reported isn for russia | SELECT MIN reported isn FROM table WHERE Citizenship = russia |
Translate the following into a SQL query | Name the average reported isn for july 2007 for kuwait release of no | SELECT AVG reported isn FROM table WHERE On July 2007 Press Release = no AND Citizenship = kuwait |
Translate the following into a SQL query | What is the highest region number with a 499 population? | SELECT MAX Region FROM table WHERE Population = 499 |
Translate the following into a SQL query | What was the series score on april 17 with minnesota at home? | SELECT Series FROM table WHERE Home = minnesota AND Date = april 17 |
Translate the following into a SQL query | How many attended the game on april 14? | SELECT COUNT Attendance FROM table WHERE Date = april 14 |
Translate the following into a SQL query | Who was at home on april 14? | SELECT Home FROM table WHERE Date = april 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.