instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has? | SELECT MIN Evening gown FROM table WHERE Average < 8.23 AND Interview = 8.11 AND Swimsuit > 7.84 |
Translate the following into a SQL query | What is the total interview score a contestant from Indiana with an average smaller than 8.3 has? | SELECT COUNT Interview FROM table WHERE State = indiana AND Average < 8.3 |
Translate the following into a SQL query | What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has? | SELECT MAX Swimsuit FROM table WHERE Average > 8.48 AND Interview > 8.58 AND Evening gown > 8.82 AND State = kansas |
Translate the following into a SQL query | What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82? | SELECT AVG Interview FROM table WHERE Evening gown < 8.82 AND State = louisiana |
Translate the following into a SQL query | What prefix has Haloalkane as the chemical class? | SELECT Prefix FROM table WHERE Chemical class = haloalkane |
Translate the following into a SQL query | Which example has rx as the formula? | SELECT Example FROM table WHERE Formula = rx |
Translate the following into a SQL query | Which chemical class uses the example Chloroethane (ethyl chloride)? | SELECT Chemical class FROM table WHERE Example = chloroethane (ethyl chloride) |
Translate the following into a SQL query | What prefix has Bromo as the group? | SELECT Prefix FROM table WHERE Group = bromo |
Translate the following into a SQL query | What is the chemical class for ri? | SELECT Chemical class FROM table WHERE Formula = ri |
Translate the following into a SQL query | What prefix has chemical class Iodoalkane? | SELECT Prefix FROM table WHERE Chemical class = iodoalkane |
Translate the following into a SQL query | What is the highest rank of the player with earnings of $6,715,649? | SELECT MAX Rank FROM table WHERE Earnings( $ ) = 6,715,649 |
Translate the following into a SQL query | What is the rank of Lee Trevino, who had less than 27 wins? | SELECT SUM Rank FROM table WHERE Player = lee trevino AND Wins < 27 |
Translate the following into a SQL query | Who is the player with more than $6,570,797 in earnings and less than 27 wins? | SELECT Player FROM table WHERE Earnings( $ ) > 6,570,797 AND Wins < 27 |
Translate the following into a SQL query | What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air? | SELECT Original air date FROM table WHERE Series no. > 40 AND Production Code < 213 AND Season no. > 11 |
Translate the following into a SQL query | Who wrote the series number 49 with a season larger than 4? | SELECT Written by FROM table WHERE Season no. > 4 AND Series no. = 49 |
Translate the following into a SQL query | What was the latest gross 75,50,00,000? | SELECT MAX Year FROM table WHERE Nett Gross = 75,50,00,000 |
Translate the following into a SQL query | What is the total count of net gross in 1957? | SELECT COUNT Nett Gross FROM table WHERE Year = 1957 |
Translate the following into a SQL query | What is the total End term with a Title of prince regent of bavaria? | SELECT SUM End term FROM table WHERE Title = prince regent of bavaria |
Translate the following into a SQL query | What is the smallest End term with a Start term of 1913, and a Name of ludwig iii? | SELECT MIN End term FROM table WHERE Start term = 1913 AND Name = ludwig iii |
Translate the following into a SQL query | Which Title has an 1825 end term? | SELECT Title FROM table WHERE End term = 1825 |
Translate the following into a SQL query | What is the average Start term with a 1912 end term? | SELECT AVG Start term FROM table WHERE End term = 1912 |
Translate the following into a SQL query | What date were the high rebounds Evans (14)? | SELECT Date FROM table WHERE High rebounds = evans (14) |
Translate the following into a SQL query | Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)? | SELECT MAX Game FROM table WHERE High rebounds = evans (7) AND High assists = evans, ollie (3) |
Translate the following into a SQL query | What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52? | SELECT MAX FA Cup Goals FROM table WHERE Total Apps (Sub) = 52 AND Total Goals < 5 |
Translate the following into a SQL query | What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0? | SELECT AVG FL Cup Apps (Sub) FROM table WHERE FL Cup Goals > 0 AND Other Apps < 0 |
Translate the following into a SQL query | What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0? | SELECT COUNT FL Cup Goals FROM table WHERE Division = one AND Other Apps > 3 AND FA Cup Goals > 0 |
Translate the following into a SQL query | What is Division One's average Other Apps, with a League Goal less than 1? | SELECT AVG Other Apps FROM table WHERE Division = one AND League Goals < 1 |
Translate the following into a SQL query | Who plays at Victoria Park? | SELECT Away team FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What is the score against the indians after game 2? | SELECT Score FROM table WHERE Game > 2 AND Opponent = indians |
Translate the following into a SQL query | What is the average grid for piers courage? | SELECT AVG Grid FROM table WHERE Driver = piers courage |
Translate the following into a SQL query | Who drove 53 laps? | SELECT Driver FROM table WHERE Laps = 53 |
Translate the following into a SQL query | What is the lap total for george eaton, with a grid under 17 retiring due to gearbox? | SELECT SUM Laps FROM table WHERE Time/Retired = gearbox AND Driver = george eaton AND Grid < 17 |
Translate the following into a SQL query | How many laps for denny hulme with under 4 on the grid? | SELECT SUM Laps FROM table WHERE Driver = denny hulme AND Grid < 4 |
Translate the following into a SQL query | How many people were in the crowd when the home team scored 13.10 (88)? | SELECT Crowd FROM table WHERE Home team score = 13.10 (88) |
Translate the following into a SQL query | What is the sum of the crowd when the away team score was 12.11 (83)? | SELECT SUM Crowd FROM table WHERE Away team score = 12.11 (83) |
Translate the following into a SQL query | What was the score of the home team when there were more than 5,500 people in the crowd? | SELECT Home team score FROM table WHERE Crowd > 5,500 |
Translate the following into a SQL query | What is the sum of Crowd when Essendon was the home team? | SELECT SUM Crowd FROM table WHERE Home team = essendon |
Translate the following into a SQL query | What was the home team score when North Melbourne was the away team? | SELECT Home team score FROM table WHERE Away team = north melbourne |
Translate the following into a SQL query | What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars? | SELECT U.S. Hot 100 FROM table WHERE Year = 2002 AND Album = west coast bad boyz, vol. 3: poppin' collars |
Translate the following into a SQL query | What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars? | SELECT U.S. Rap FROM table WHERE Album = west coast bad boyz, vol. 3: poppin' collars |
Translate the following into a SQL query | What is the top round for the baltimore bullets with a Pick larger than 6? | SELECT MAX Round FROM table WHERE Team = baltimore bullets AND Pick > 6 |
Translate the following into a SQL query | What team was the away team when the home team scored 12.8 (80)? | SELECT Away team FROM table WHERE Home team score = 12.8 (80) |
Translate the following into a SQL query | What team was the away team when the home team scored 9.10 (64)? | SELECT Away team FROM table WHERE Home team score = 9.10 (64) |
Translate the following into a SQL query | What team was the away team when they played at lake oval? | SELECT Away team score FROM table WHERE Venue = lake oval |
Translate the following into a SQL query | How many people were in the crowd when North Melbourne was the home team? | SELECT Crowd FROM table WHERE Home team = north melbourne |
Translate the following into a SQL query | What is Mark Grieb's average when his TDs are smaller than 2? | SELECT SUM Avg. FROM table WHERE Player = mark grieb AND TD's < 2 |
Translate the following into a SQL query | What is Craig Whelihan's average when his yards are smaller than 0? | SELECT SUM Avg. FROM table WHERE Player = craig whelihan AND Yards < 0 |
Translate the following into a SQL query | Which largest average had 1229 yards? | SELECT MAX Avg. FROM table WHERE Yards = 1229 |
Translate the following into a SQL query | What is the constructor where the circuit is Silverstone? | SELECT Constructor FROM table WHERE Circuit = silverstone |
Translate the following into a SQL query | Who is the Winning Driver in the race viii gran premio di siracusa? | SELECT Winning driver FROM table WHERE Race Name = viii gran premio di siracusa |
Translate the following into a SQL query | What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen? | SELECT Date FROM table WHERE Winning driver = stirling moss AND Race Name = vi grand prix de caen |
Translate the following into a SQL query | Which state is the location of 39.1178°n 106.4454°w in? | SELECT State FROM table WHERE Location = 39.1178°n 106.4454°w |
Translate the following into a SQL query | What is the highest rank Mount Elbert has? | SELECT MAX Rank FROM table WHERE Mountain Peak = mount elbert |
Translate the following into a SQL query | What is the mountain range at 37.3934°n 104.9201°w? | SELECT Mountain Range FROM table WHERE Location = 37.3934°n 104.9201°w |
Translate the following into a SQL query | What is the location of Blanca Peak? | SELECT Location FROM table WHERE Mountain Peak = blanca peak |
Translate the following into a SQL query | Which state is West Spanish Peak in? | SELECT State FROM table WHERE Mountain Peak = west spanish peak |
Translate the following into a SQL query | What is the ranked 5 mountain range? | SELECT Mountain Range FROM table WHERE Rank = 5 |
Translate the following into a SQL query | Name of choice b. Randell is the name of which District Residence? | SELECT District Residence FROM table WHERE Name = choice b. randell |
Translate the following into a SQL query | Who has a Took Office of march 4, 1903? | SELECT Name FROM table WHERE Took Office = march 4, 1903 |
Translate the following into a SQL query | Which Took Office that has a Party of democrat, under the name of John Hancock | SELECT Took Office FROM table WHERE Party = democrat AND Name = john hancock |
Translate the following into a SQL query | Who has Took Office of march 4, 1875? | SELECT Name FROM table WHERE Took Office = march 4, 1875 |
Translate the following into a SQL query | Name the record on june 22 | SELECT Record FROM table WHERE Date = june 22 |
Translate the following into a SQL query | Name the total number in attendance for when the bulls visited | SELECT COUNT Attendance FROM table WHERE Visitor = bulls |
Translate the following into a SQL query | Name the most swimsuit for interview less than 8.46 | SELECT MAX Swimsuit FROM table WHERE Interview < 8.46 |
Translate the following into a SQL query | Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12 | SELECT MAX Evening Gown FROM table WHERE Average < 8.793 AND Swimsuit < 8.12 AND Interview = 8.51 |
Translate the following into a SQL query | On average, how many Starts have Wins that are smaller than 0? | SELECT AVG Starts FROM table WHERE Wins < 0 |
Translate the following into a SQL query | Which of the top-10s has a starts value of 14? | SELECT MAX Top-10s FROM table WHERE Starts = 14 |
Translate the following into a SQL query | In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0? | SELECT SUM Starts FROM table WHERE Tournament = hsbc champions AND Wins < 0 |
Translate the following into a SQL query | Who trained the horse on post 11 with over 36 odds? | SELECT Trainer FROM table WHERE Odds > 36 AND Post = 11 |
Translate the following into a SQL query | What is the lowest post number for calvin borel? | SELECT MIN Post FROM table WHERE Jockey = calvin borel |
Translate the following into a SQL query | What horse for jara? | SELECT Horse FROM table WHERE Jockey = jara |
Translate the following into a SQL query | What is the date when Lebron James (25) was the lead scorer? | SELECT Date FROM table WHERE Leading scorer = lebron james (25) |
Translate the following into a SQL query | Which Total has a Gold smaller than 0? | SELECT SUM Total FROM table WHERE Gold < 0 |
Translate the following into a SQL query | Which Bronze has a Gold smaller than 0? | SELECT AVG Bronze FROM table WHERE Gold < 0 |
Translate the following into a SQL query | Which T.C. has a Win of 1, and a Race of 21? | SELECT T.C. FROM table WHERE Wins = 1 AND Races = 21 |
Translate the following into a SQL query | How many years have Drivers of ben hanley, and Flaps smaller than 0? | SELECT COUNT Year FROM table WHERE Drivers = ben hanley AND FLaps < 0 |
Translate the following into a SQL query | How many Points have Drivers of adrián vallés, and a Year larger than 2006? | SELECT AVG Points FROM table WHERE Drivers = adrián vallés AND Year > 2006 |
Translate the following into a SQL query | How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0? | SELECT SUM Poles FROM table WHERE Drivers = juan cruz álvarez AND FLaps > 0 |
Translate the following into a SQL query | Who was the away team at Victoria Park? | SELECT Away team FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | What is the name of the train numbered less than 6 before 1993? | SELECT Name FROM table WHERE Number < 6 AND Date < 1993 |
Translate the following into a SQL query | What is the name of the bo-bodh train with a number less than 5? | SELECT Name FROM table WHERE Number < 5 AND Type = bo-bodh |
Translate the following into a SQL query | Name the record when the visitor is st. louis | SELECT Record FROM table WHERE Visitor = st. louis |
Translate the following into a SQL query | What was the scory when calgary was visiting? | SELECT Score FROM table WHERE Visitor = calgary |
Translate the following into a SQL query | Name the home when the visitor was dallas on february 2 | SELECT Home FROM table WHERE Visitor = dallas AND Date = february 2 |
Translate the following into a SQL query | Name the date for turco decision and home of st. louis | SELECT Date FROM table WHERE Decision = turco AND Home = st. louis |
Translate the following into a SQL query | Which rider had a speed of 104.630mph? | SELECT Rider FROM table WHERE Speed = 104.630mph |
Translate the following into a SQL query | What is the best rank with a time of 1:05.14.10? | SELECT MAX Rank FROM table WHERE Time = 1:05.14.10 |
Translate the following into a SQL query | Where was the game played when the final score was 35-62? | SELECT Stadium FROM table WHERE Final Score = 35-62 |
Translate the following into a SQL query | During the game at Candlestick Park, who was the visiting team? | SELECT Visiting Team FROM table WHERE Stadium = candlestick park |
Translate the following into a SQL query | Which visiting team had a final score of 14-34? | SELECT Visiting Team FROM table WHERE Final Score = 14-34 |
Translate the following into a SQL query | What was the final score in the game against the Cincinnati Bengals? | SELECT Final Score FROM table WHERE Visiting Team = cincinnati bengals |
Translate the following into a SQL query | Who was the visiting team in the game against the Dallas Cowboys? | SELECT Visiting Team FROM table WHERE Host Team = dallas cowboys |
Translate the following into a SQL query | Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič? | SELECT Tournament FROM table WHERE Outcome = runner-up AND Opponent = maša zec peškirič |
Translate the following into a SQL query | Which surface has a Score of 6–4, 6–2? | SELECT Surface FROM table WHERE Score = 6–4, 6–2 |
Translate the following into a SQL query | Which surface has a Date of 22 august 2006? | SELECT Surface FROM table WHERE Date = 22 august 2006 |
Translate the following into a SQL query | Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2? | SELECT Tournament FROM table WHERE Outcome = runner-up AND Surface = hard AND Score = 6–4, 6–2 |
Translate the following into a SQL query | What is the outcome with marina erakovic as opponent? | SELECT Outcome FROM table WHERE Opponent = marina erakovic |
Translate the following into a SQL query | Which tournament has an Outcome of winner, and a Opponent of dia evtimova? | SELECT Tournament FROM table WHERE Outcome = winner AND Opponent = dia evtimova |
Translate the following into a SQL query | What title runs for 3:22? | SELECT Title FROM table WHERE Time = 3:22 |
Translate the following into a SQL query | Who wrote the song that runs for 2:22? | SELECT Author(s) FROM table WHERE Time = 2:22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.