instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the average rank for antun salman? | SELECT AVG Rank FROM table WHERE Candidate name = antun salman |
Translate the following into a SQL query | Khalil chawka has a gender of ♂, a religion of ☪, and how many votes? | SELECT Votes FROM table WHERE Gender = ♂ AND Religion = ☪ AND Candidate name = khalil chawka |
Translate the following into a SQL query | Who has a religion of ☪ and more than 1853 votes? | SELECT Candidate name FROM table WHERE Votes > 1853 AND Religion = ☪ |
Translate the following into a SQL query | What is the recorder has a Track more than 11 with a time 3:06 | SELECT Recorded FROM table WHERE Track > 11 AND Time = 3:06 |
Translate the following into a SQL query | Which track has a title : Just a little bit | SELECT MIN Track FROM table WHERE Song Title = just a little bit |
Translate the following into a SQL query | What is the Trophy with a Season with 2008–2009? | SELECT Trophy FROM table WHERE Season = 2008–2009 |
Translate the following into a SQL query | What Wasatch time corresponds to a total time of 122:13:40? | SELECT Wasatch FROM table WHERE Total time = 122:13:40 |
Translate the following into a SQL query | Who were the opponents in the final on 9 January 1994? | SELECT Opponents in Final FROM table WHERE Date = 9 january 1994 |
Translate the following into a SQL query | Who was Melbourne's home team opponent? | SELECT Home team FROM table WHERE Away team = melbourne |
Translate the following into a SQL query | Who was Richmond's away team opponent? | SELECT Away team FROM table WHERE Home team = richmond |
Translate the following into a SQL query | What is the average FA Cup value with a total greater than 2, a League Cup of 1, a league less than 3, and Paul Ince scoring? | SELECT AVG FA Cup FROM table WHERE Total > 2 AND League Cup = 1 AND Name = paul ince AND League < 3 |
Translate the following into a SQL query | What is the average total value in a League less than 1 with more than 1 League Cup? | SELECT AVG Total FROM table WHERE League < 1 AND League Cup > 1 |
Translate the following into a SQL query | What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring? | SELECT MIN League Cup FROM table WHERE League > 1 AND Name = brian deane AND FA Cup < 1 |
Translate the following into a SQL query | Name the region before 2008 when name of best 1200 | SELECT Region FROM table WHERE Year < 2008 AND Name = best 1200 |
Translate the following into a SQL query | What method resulted in a win and a time of 4:36? | SELECT Method FROM table WHERE Res. = win AND Time = 4:36 |
Translate the following into a SQL query | At what venue did the Essendon team play as an away team? | SELECT Venue FROM table WHERE Away team = essendon |
Translate the following into a SQL query | Who was the home team for the game played at Junction Oval? | SELECT Home team FROM table WHERE Venue = junction oval |
Translate the following into a SQL query | What was the score of the home team when the away team was Geelong? | SELECT Home team score FROM table WHERE Away team = geelong |
Translate the following into a SQL query | What was the venue where the away team ended in a score of 6.8 (44)? | SELECT Venue FROM table WHERE Away team score = 6.8 (44) |
Translate the following into a SQL query | What was the away team when the home team was South Melbourne? | SELECT Away team FROM table WHERE Home team = south melbourne |
Translate the following into a SQL query | What was the name of the home team playing at the Junction Oval venue? | SELECT Home team FROM table WHERE Venue = junction oval |
Translate the following into a SQL query | What is the total number of the established club of Lehigh Valley Storm? | SELECT COUNT Established FROM table WHERE Club = lehigh valley storm |
Translate the following into a SQL query | What is the name of a league in the sport of baseball? | SELECT League FROM table WHERE Sport = baseball |
Translate the following into a SQL query | What venue does the soccer team Pennsylvania Stoners play in? | SELECT Venue FROM table WHERE Sport = soccer AND Club = pennsylvania stoners |
Translate the following into a SQL query | What game number was played on March 4? | SELECT AVG Game # FROM table WHERE Date = march 4 |
Translate the following into a SQL query | What is the record when the visitor is Buffalo? | SELECT Record FROM table WHERE Visitor = buffalo |
Translate the following into a SQL query | Tell me the number of attendance that has a result of l 35-17 | SELECT COUNT Attendance FROM table WHERE Result = l 35-17 |
Translate the following into a SQL query | I want the attendance for week larger than 10 and result of l 22-21 | SELECT Attendance FROM table WHERE Week > 10 AND Result = l 22-21 |
Translate the following into a SQL query | Name for me the total number in attendance for week before 2 and result of t 24-24 | SELECT COUNT Attendance FROM table WHERE Result = t 24-24 AND Week < 2 |
Translate the following into a SQL query | I want the greatest attendance when the opponent is the chicago bears | SELECT MAX Attendance FROM table WHERE Opponent = chicago bears |
Translate the following into a SQL query | What is the average attendance for a game against Phoenix? | SELECT AVG Attendance FROM table WHERE Visitor = phoenix |
Translate the following into a SQL query | What was the home team in the February 22 game that Legace played in for the St. Louis Blues? | SELECT Home FROM table WHERE Decision = legace AND Visitor = st. louis AND Date = february 22 |
Translate the following into a SQL query | Who was Carlton's home team opponent? | SELECT Home team FROM table WHERE Away team = carlton |
Translate the following into a SQL query | Who was the away team at Lake Oval? | SELECT Away team score FROM table WHERE Venue = lake oval |
Translate the following into a SQL query | Who was South Melbourne's away team opponent? | SELECT Away team FROM table WHERE Home team = south melbourne |
Translate the following into a SQL query | Who was the home team at Princes Park when the attendance was more than 30,848? | SELECT Home team FROM table WHERE Crowd > 30,848 AND Venue = princes park |
Translate the following into a SQL query | What is the high grid with 27 laps? | SELECT MAX Grid FROM table WHERE Laps = 27 |
Translate the following into a SQL query | What is the high grid that has a Time/Retired of +6 laps, and under 69 laps? | SELECT MAX Grid FROM table WHERE Time/Retired = +6 laps AND Laps < 69 |
Translate the following into a SQL query | What's the total number of copies sold for the single that sold 206,030 in the first week? | SELECT COUNT Copies sold FROM table WHERE First Week Sales = 206,030 |
Translate the following into a SQL query | What was the latest release date for Ariola in Spain? | SELECT MAX Release date FROM table WHERE Label = ariola AND Country = spain |
Translate the following into a SQL query | What type of format was released after 1979? | SELECT Release format FROM table WHERE Release date > 1979 |
Translate the following into a SQL query | On what date did Epic label start its release? | SELECT SUM Release date FROM table WHERE Label = epic |
Translate the following into a SQL query | Which game had less than 270 rebounds and a rank lower than 5? | SELECT Games FROM table WHERE Rebounds < 270 AND Rank < 5 |
Translate the following into a SQL query | Which game did Curtis Borchardt play with more than 274 rebounds? | SELECT SUM Games FROM table WHERE Name = curtis borchardt AND Rebounds > 274 |
Translate the following into a SQL query | In game 34 Curtis Borchardt played on which team with less than 275 rebounds? | SELECT Team FROM table WHERE Rebounds < 275 AND Games < 34 AND Name = curtis borchardt |
Translate the following into a SQL query | How many rebounds occurred in a rank 4 game? | SELECT Rebounds FROM table WHERE Rank = 4 |
Translate the following into a SQL query | Which game did was Bud Eley a player in? | SELECT Games FROM table WHERE Name = bud eley |
Translate the following into a SQL query | Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | SELECT SUM Games FROM table WHERE Rank < 4 AND Rebounds < 275 AND Team = bruesa gbc |
Translate the following into a SQL query | What is the grid for johnny herbert? | SELECT Grid FROM table WHERE Driver = johnny herbert |
Translate the following into a SQL query | Tell me the average rank for dharma productions before 2013 | SELECT AVG Rank FROM table WHERE Studio(s) = dharma productions AND Year < 2013 |
Translate the following into a SQL query | Name the average year for 4 rank | SELECT AVG Year FROM table WHERE Rank = 4 |
Translate the following into a SQL query | Name the lowest rank for red chillies entertainment for 2013 | SELECT MIN Rank FROM table WHERE Year = 2013 AND Studio(s) = red chillies entertainment |
Translate the following into a SQL query | Which date did richmond play as away? | SELECT Date FROM table WHERE Away team = richmond |
Translate the following into a SQL query | What is the rank for the player with 5 wins and under 32 events? | SELECT SUM Rank FROM table WHERE Wins = 5 AND Events < 32 |
Translate the following into a SQL query | What is the rank for the player with over $1,627,890? | SELECT COUNT Rank FROM table WHERE Earnings ( $ ) > 1,627,890 |
Translate the following into a SQL query | What is the rank for the player with over 2 wins and under $1,162,581 in earnings? | SELECT SUM Rank FROM table WHERE Earnings ( $ ) < 1,162,581 AND Wins > 2 |
Translate the following into a SQL query | What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage. | SELECT Issue Price FROM table WHERE Artist = john mardon AND Year = 2000 AND Mintage = included in steam buggy |
Translate the following into a SQL query | What is the theme of the Year 2002 which was created by Artist Dan Fell? | SELECT Theme FROM table WHERE Year = 2002 AND Artist = dan fell |
Translate the following into a SQL query | What artist had a mintage of 41,828 before year 2002? | SELECT Artist FROM table WHERE Year < 2002 AND Mintage = 41,828 |
Translate the following into a SQL query | A mintage of 31,997 has what issue price? | SELECT Issue Price FROM table WHERE Mintage = 31,997 |
Translate the following into a SQL query | Tell me the control trailers for 52 motors | SELECT Control Trailers FROM table WHERE Motors = 52 |
Translate the following into a SQL query | Name the year for mcwf and control trailers of 35 | SELECT Year FROM table WHERE Builder = mcwf AND Control Trailers = 35 |
Translate the following into a SQL query | I want the trailers for 1931 and builder of mccw | SELECT Trailers FROM table WHERE Year = 1931 AND Builder = mccw |
Translate the following into a SQL query | I want the control trailers for 1931 with builder of grcw | SELECT Control Trailers FROM table WHERE Year = 1931 AND Builder = grcw |
Translate the following into a SQL query | I want the trailers for motors of 145 | SELECT Trailers FROM table WHERE Motors = 145 |
Translate the following into a SQL query | What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio? | SELECT SUM 1930 FROM table WHERE 2006 est. < 44,726 AND County = frio |
Translate the following into a SQL query | What is the highest 1930 population when the 2000 population is 43,966 and the 1900 population is less than 8,401? | SELECT MAX 1930 FROM table WHERE 2000 = 43,966 AND 1900 < 8,401 |
Translate the following into a SQL query | Tell me the sum of wins for top 5 less than 1 | SELECT SUM Wins FROM table WHERE Top-5 < 1 |
Translate the following into a SQL query | I want the average events for top 10 less than 4 | SELECT AVG Events FROM table WHERE Top-10 < 4 |
Translate the following into a SQL query | Name the highest cuts made when top 5 is less than 3 and top ten is more than 4 | SELECT MAX Cuts made FROM table WHERE Top-5 < 3 AND Top-10 > 4 |
Translate the following into a SQL query | I want the most top 25 when events are more than 20 and top 10 is more than 21 | SELECT MAX Top-25 FROM table WHERE Events > 20 AND Top-10 > 21 |
Translate the following into a SQL query | What was the Attendance on April 28? | SELECT SUM Attendance FROM table WHERE Date = april 28 |
Translate the following into a SQL query | What was escape to river cottage released? | SELECT Released FROM table WHERE DVD Name = escape to river cottage |
Translate the following into a SQL query | What DVD has a time of 2 hours 22 minutes? | SELECT DVD Name FROM table WHERE Duration = 2 hours 22 minutes |
Translate the following into a SQL query | What was the date for the game in week 7? | SELECT Date FROM table WHERE Week = 7 |
Translate the following into a SQL query | On what date was the attendance of the crowd 78,431? | SELECT Date FROM table WHERE Attendance = 78,431 |
Translate the following into a SQL query | What was the date of the Capitals game when Columbus was the home team? | SELECT Date FROM table WHERE Home = columbus |
Translate the following into a SQL query | The 2002 African Cup of Nations was held on what date? | SELECT Date FROM table WHERE Competition = 2002 african cup of nations |
Translate the following into a SQL query | Which competition took place at Stade Fernand Fournier, Arles? | SELECT Competition FROM table WHERE Venue = stade fernand fournier, arles |
Translate the following into a SQL query | What was the attendance of the game where fitzroy was the away team? | SELECT COUNT Crowd FROM table WHERE Away team = fitzroy |
Translate the following into a SQL query | Which artist created the silver dollar for the 400th anniversary of Quebec? | SELECT Artist FROM table WHERE Theme = 400th anniversary of quebec |
Translate the following into a SQL query | Which year did the Royal Canadian Mint Staff create a silver dollar? | SELECT Year FROM table WHERE Artist = royal canadian mint staff |
Translate the following into a SQL query | How many coins by Suzanne Duranceau were minted? | SELECT Mintage FROM table WHERE Artist = suzanne duranceau |
Translate the following into a SQL query | What was the method for the resolution of nc where the fight lasted less than 3 rounds? | SELECT Method FROM table WHERE Round < 3 AND Res. = nc |
Translate the following into a SQL query | Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds? | SELECT Opponent FROM table WHERE Round < 4 AND Event = ufc 90 |
Translate the following into a SQL query | What was the method for the resolution of the fight at UFC 160? | SELECT Method FROM table WHERE Event = ufc 160 |
Translate the following into a SQL query | What is the league on 5 October 1997? | SELECT League FROM table WHERE Date = 5 october 1997 |
Translate the following into a SQL query | Which season was on 30 October 1977? | SELECT Season FROM table WHERE Date = 30 october 1977 |
Translate the following into a SQL query | What season had the Roma-Napoli match on 12 September 1993? | SELECT Season FROM table WHERE Match = roma-napoli AND Date = 12 september 1993 |
Translate the following into a SQL query | What club/province for the player with over 18 caps and plays the fly-half? | SELECT Club/province FROM table WHERE Caps > 18 AND Position = fly-half |
Translate the following into a SQL query | What driver has less than 18 laps and a grid number under 16? | SELECT Driver FROM table WHERE Laps < 18 AND Grid < 16 |
Translate the following into a SQL query | Who constructed the car with laps more than 70 and a time/retired of +12.535? | SELECT Constructor FROM table WHERE Laps > 70 AND Time/Retired = +12.535 |
Translate the following into a SQL query | What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap. | SELECT MAX Laps FROM table WHERE Time/Retired = +1 lap AND Driver = alexander wurz AND Grid < 14 |
Translate the following into a SQL query | Who was Footscray's opponent on June 15th of 1968? | SELECT Home team FROM table WHERE Away team = footscray |
Translate the following into a SQL query | Which team is located in Westland and was previously in the Western Lakes Activities Association? | SELECT Team FROM table WHERE Previous Conference = western lakes activities association AND Location = westland |
Translate the following into a SQL query | What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? | SELECT MAX Joined FROM table WHERE Division = west AND Location = highland township |
Translate the following into a SQL query | What was the race with nigel mansell winning in estoril? | SELECT Race FROM table WHERE Race Winner = nigel mansell AND Location = estoril |
Translate the following into a SQL query | What was the pole position for the belgian grand prix? | SELECT Pole Position FROM table WHERE Race = belgian grand prix |
Translate the following into a SQL query | Who won the australian grand prix? | SELECT Race Winner FROM table WHERE Race = australian grand prix |
Translate the following into a SQL query | What was the pole position for jerez? | SELECT Pole Position FROM table WHERE Location = jerez |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.