instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What year were the Hoak Packers, Fresno, CA the 4th Place Team? | SELECT MIN Year FROM table WHERE 4th Place Team = hoak packers, fresno, ca |
Translate the following into a SQL query | What location hosted when Wells Motors, Greeley, Co was the 4th place team? | SELECT Host Location FROM table WHERE 4th Place Team = wells motors, greeley, co |
Translate the following into a SQL query | What year was the 1st Place Team the Hoak Packers, Fresno, CA, and 4th Place was Wells Motors, Greeley, Co? | SELECT MAX Year FROM table WHERE 1st Place Team = hoak packers, fresno, ca AND 4th Place Team = wells motors, greeley, co |
Translate the following into a SQL query | What year was the 4th Place Team of the Wyoming Angus, Johnstown, Co? | SELECT COUNT Year FROM table WHERE 4th Place Team = wyoming angus, johnstown, co |
Translate the following into a SQL query | Which base has a company of Theatro Technis Karolos Koun? | SELECT base FROM table WHERE company = theatro technis karolos koun |
Translate the following into a SQL query | Which company has an author of Aristophanes and play of Plutus? | SELECT company FROM table WHERE author = aristophanes AND play = plutus |
Translate the following into a SQL query | Which author has a company of the Semeio Theatre? | SELECT author FROM table WHERE company = semeio theatre |
Translate the following into a SQL query | Which play was done by the Radu Stanca National Theatre company? | SELECT play FROM table WHERE company = radu stanca national theatre |
Translate the following into a SQL query | Which play had a base of Aosta? | SELECT play FROM table WHERE base = aosta |
Translate the following into a SQL query | What is the country of the play based in Athens at the Attis Theatre company? | SELECT country FROM table WHERE base = athens AND company = attis theatre |
Translate the following into a SQL query | Which Class has a Quantity larger than 96? | SELECT Class FROM table WHERE Quantity > 96 |
Translate the following into a SQL query | How much Quantity has a Type of 1′c1′ h2t? | SELECT COUNT Quantity FROM table WHERE Type = 1′c1′ h2t |
Translate the following into a SQL query | Which Class has a Type of 1′c n2t? | SELECT Class FROM table WHERE Type = 1′c n2t |
Translate the following into a SQL query | Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t? | SELECT Year(s) of manufacture FROM table WHERE Quantity > 39 AND Type = 1′c1′ h2t |
Translate the following into a SQL query | Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t? | SELECT Year(s) of manufacture FROM table WHERE Quantity = 2 AND Type = b n2t |
Translate the following into a SQL query | what is the highest place when lost is more than 4, points is less than 18 and team is Team of atlético veragüense? | SELECT MAX Place FROM table WHERE Lost > 4 AND Points < 18 AND Team = atlético veragüense |
Translate the following into a SQL query | what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4? | SELECT MIN Lost FROM table WHERE Place > 4 AND Goals Scored = 12 AND Points > 4 |
Translate the following into a SQL query | how many times is the team tauro and played less than 18? | SELECT COUNT Place FROM table WHERE Team = tauro AND Played < 18 |
Translate the following into a SQL query | what is the least played when points is 36 and place is more than 2? | SELECT MIN Played FROM table WHERE Points = 36 AND Place > 2 |
Translate the following into a SQL query | what is the average points when goals conceded is 14 and goals scored is less than 32? | SELECT AVG Points FROM table WHERE Goals Conceded = 14 AND Goals Scored < 32 |
Translate the following into a SQL query | Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game? | SELECT Result FROM table WHERE Week > 1 AND Attendance = 69,149 AND Opponent = seattle seahawks |
Translate the following into a SQL query | How many weeks in total has bye as the date? | SELECT COUNT Week FROM table WHERE Date = bye |
Translate the following into a SQL query | What country does Tiger Woods come from? | SELECT Country FROM table WHERE Player = tiger woods |
Translate the following into a SQL query | What's the Ri Song-Hui when the olympic record is the world record and snatch was snatch? | SELECT Ri Song-Hui ( PRK ) FROM table WHERE World record = olympic record AND Snatch = snatch |
Translate the following into a SQL query | What's the 102kg when the Ri Song-Hui was 226kg? | SELECT 102kg FROM table WHERE Ri Song-Hui ( PRK ) = 226kg |
Translate the following into a SQL query | What's the 102kg when the snatch was snatch and the olympic record was the world record? | SELECT 102kg FROM table WHERE World record = olympic record AND Snatch = snatch |
Translate the following into a SQL query | What was the average pick made by the Texas Rangers? | SELECT AVG Pick FROM table WHERE Team = texas rangers |
Translate the following into a SQL query | What was the home town of Bob Geren, picked by the San Diego Padres? | SELECT Hometown/School FROM table WHERE Team = san diego padres AND Player = bob geren |
Translate the following into a SQL query | What was the position of Jon Perlman? | SELECT Position FROM table WHERE Player = jon perlman |
Translate the following into a SQL query | What college has a pick smaller than 87 for the position of tackle? | SELECT College FROM table WHERE Position = tackle AND Pick < 87 |
Translate the following into a SQL query | What college had the pick of 85? | SELECT College FROM table WHERE Pick = 85 |
Translate the following into a SQL query | What are the least losses of Mortlake having less than 970 against? | SELECT MIN Losses FROM table WHERE Club = mortlake AND Against < 970 |
Translate the following into a SQL query | What's the total against when the draws are more than 0? | SELECT COUNT Against FROM table WHERE Draws > 0 |
Translate the following into a SQL query | What's the total wins when the draws are less than 0? | SELECT COUNT Wins FROM table WHERE Draws < 0 |
Translate the following into a SQL query | What's the least against number for Cobden with draws more than 0? | SELECT MIN Against FROM table WHERE Club = cobden AND Draws > 0 |
Translate the following into a SQL query | What's the most against when the draws are more than 0? | SELECT MAX Against FROM table WHERE Draws > 0 |
Translate the following into a SQL query | What are the total wins when there are 1261 against? | SELECT SUM Wins FROM table WHERE Against = 1261 |
Translate the following into a SQL query | What is the notes entry for the row with a Time of 1:42.309? | SELECT Notes FROM table WHERE Time = 1:42.309 |
Translate the following into a SQL query | What is the rank for China? | SELECT SUM Rank FROM table WHERE Country = china |
Translate the following into a SQL query | What is the time for Cuba, with a notes entry of QS? | SELECT Time FROM table WHERE Notes = qs AND Country = cuba |
Translate the following into a SQL query | What is the Week number on October 10, 1976? | SELECT COUNT Week FROM table WHERE Date = october 10, 1976 |
Translate the following into a SQL query | What is the Date of the game with a Result of L 33–14? | SELECT Date FROM table WHERE Result = l 33–14 |
Translate the following into a SQL query | The Major third of D has what for the Augmented fifth? | SELECT Augmented fifth FROM table WHERE Major third = d |
Translate the following into a SQL query | A major third of C has what listed for the Minor seventh? | SELECT Minor seventh FROM table WHERE Major third = c |
Translate the following into a SQL query | What is the listed chord for a Minor seventh of F? | SELECT Chord FROM table WHERE Minor seventh = f |
Translate the following into a SQL query | Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000? | SELECT MIN Rank FROM table WHERE Show = alcatraz AND Number of Viewers > 1,229,000 |
Translate the following into a SQL query | Which Episode has a Rank of 1? | SELECT Episode FROM table WHERE Rank = 1 |
Translate the following into a SQL query | Where was adac rally deutschland's rally HQ? | SELECT Rally HQ FROM table WHERE Rally Name = adac rally deutschland |
Translate the following into a SQL query | Where was the Rally HQ for Round 1? | SELECT Rally HQ FROM table WHERE Round = 1 |
Translate the following into a SQL query | Which Support Category had a Round score of 9? | SELECT Support Category FROM table WHERE Round = 9 |
Translate the following into a SQL query | What Surface had a Rally HQ of salou? | SELECT Surface FROM table WHERE Rally HQ = salou |
Translate the following into a SQL query | What is the lowest lane in the Czech Republic and a time larger than 21.05? | SELECT MIN Lane FROM table WHERE Nationality = czech republic AND Time > 21.05 |
Translate the following into a SQL query | What is the highest lane with a rank larger than 2 in Guyana? | SELECT MAX Lane FROM table WHERE Rank > 2 AND Nationality = guyana |
Translate the following into a SQL query | What is the sum rank of Solomon Bayoh when his time was smaller than 22.16? | SELECT SUM Rank FROM table WHERE Athlete = solomon bayoh AND Time < 22.16 |
Translate the following into a SQL query | Who is the artist of the album Soul? | SELECT Artist FROM table WHERE Album = soul |
Translate the following into a SQL query | who is the athlete when the time is less than 11.13 and the country is belgium? | SELECT Athlete FROM table WHERE Time < 11.13 AND Country = belgium |
Translate the following into a SQL query | who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2? | SELECT Athlete FROM table WHERE Rank < 13 AND Time > 11.13 AND Country = bahamas AND Heat > 2 |
Translate the following into a SQL query | what is the heat when the athlete is anita pistone? | SELECT SUM Heat FROM table WHERE Athlete = anita pistone |
Translate the following into a SQL query | how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5? | SELECT COUNT Time FROM table WHERE Rank > 29 AND Athlete = barbara pierre AND Heat < 5 |
Translate the following into a SQL query | Which IHSAA Class has a Location of linton? | SELECT IHSAA Class FROM table WHERE Location = linton |
Translate the following into a SQL query | What is the sum of matches played for teams with more than 10 losses and under 5 points? | SELECT SUM Played FROM table WHERE Lost > 10 AND Points < 5 |
Translate the following into a SQL query | What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses? | SELECT COUNT Position FROM table WHERE Points > 5 AND Drawn = 3 AND Lost < 2 |
Translate the following into a SQL query | What is the average number of losses for teams with under 4 losses and under 21 points? | SELECT AVG Drawn FROM table WHERE Lost < 4 AND Points < 21 |
Translate the following into a SQL query | What is the home team at the game with an Attendance of 2,029? | SELECT Home team FROM table WHERE Attendance = 2,029 |
Translate the following into a SQL query | What is the away team at the game with an Attendance of 1,730? | SELECT Away team FROM table WHERE Attendance = 1,730 |
Translate the following into a SQL query | What is the away team at the game with a Tie no of 2? | SELECT Away team FROM table WHERE Tie no = 2 |
Translate the following into a SQL query | What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins? | SELECT F/Laps FROM table WHERE Points = n/a AND Poles = 1 AND Wins = 0 |
Translate the following into a SQL query | What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a? | SELECT Series FROM table WHERE Season < 2003 AND Podiums = 1 AND Points = n/a |
Translate the following into a SQL query | What Podiums listing has a World Rally Championship series entry? | SELECT Podiums FROM table WHERE Series = world rally championship |
Translate the following into a SQL query | What races have n/a Points, 0 Wins, and 6th Position entries? | SELECT Races FROM table WHERE Points = n/a AND Wins = 0 AND Position = 6th |
Translate the following into a SQL query | What is the most recent season for the Prema Powerteam with a Masters of Formula Three series? | SELECT MAX Season FROM table WHERE Team = prema powerteam AND Series = masters of formula three |
Translate the following into a SQL query | What listing for Podiums has 0 F/laps and 39 points? | SELECT Podiums FROM table WHERE F/Laps = 0 AND Points = 39 |
Translate the following into a SQL query | Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21–16–9? | SELECT Date FROM table WHERE Attendance > 16,186 AND Points < 52 AND Record = 21–16–9 |
Translate the following into a SQL query | Which Loss has a Record of 20–16–9? | SELECT Loss FROM table WHERE Record = 20–16–9 |
Translate the following into a SQL query | Which Date has a Record of 19–16–8? | SELECT Date FROM table WHERE Record = 19–16–8 |
Translate the following into a SQL query | Can you tell me the Time that has the Lane of 8? | SELECT Time FROM table WHERE Lane = 8 |
Translate the following into a SQL query | Can you tell me the Total number of Rankthat has the Lane of 4? | SELECT COUNT Rank FROM table WHERE Lane = 4 |
Translate the following into a SQL query | Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4? | SELECT MIN Rank FROM table WHERE Nationality = australia AND Name = leisel jones AND Lane > 4 |
Translate the following into a SQL query | Can you tell me the Name that has the Rank of 4? | SELECT Name FROM table WHERE Rank = 4 |
Translate the following into a SQL query | What is the highest Against for a game against Bristol City? | SELECT MAX Against FROM table WHERE Opposing Team = bristol city |
Translate the following into a SQL query | What was the date of the game against Oxford United? | SELECT Date FROM table WHERE Opposing Team = oxford united |
Translate the following into a SQL query | What country is ranked number 4? | SELECT Country FROM table WHERE Rank = 4 |
Translate the following into a SQL query | What are the notes from the rank of 1? | SELECT Notes FROM table WHERE Rank = 1 |
Translate the following into a SQL query | What rowers have FA as the notes? | SELECT Rowers FROM table WHERE Notes = fa |
Translate the following into a SQL query | What is the lowest rank has 7:09.06 as the time? | SELECT MIN Rank FROM table WHERE Time = 7:09.06 |
Translate the following into a SQL query | What notes have 2 as the rank? | SELECT Notes FROM table WHERE Rank = 2 |
Translate the following into a SQL query | What was the match that happened in Bishop's Stortford? | SELECT Match FROM table WHERE Opponent = bishop's stortford |
Translate the following into a SQL query | What was the final score for the Thurrock? | SELECT Score1 FROM table WHERE Opponent = thurrock |
Translate the following into a SQL query | Which IHSAA class has a mascot of the Raiders? | SELECT IHSAA Class FROM table WHERE Mascot = raiders |
Translate the following into a SQL query | Which school has a mascot of the Panthers? | SELECT School FROM table WHERE Mascot = panthers |
Translate the following into a SQL query | What's Italy's time when the notes were SA/B? | SELECT Time FROM table WHERE Notes = sa/b AND Country = italy |
Translate the following into a SQL query | What is Italy's rank? | SELECT Rank FROM table WHERE Country = italy |
Translate the following into a SQL query | How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make? | SELECT COUNT Appearances FROM table WHERE Club = rayo vallecano AND Goals > 37 |
Translate the following into a SQL query | Who's the player that was eliminated on episode 4? | SELECT Player FROM table WHERE Eliminated = episode 4 |
Translate the following into a SQL query | Who is the player in 20th place? | SELECT Player FROM table WHERE Placing = 20th place |
Translate the following into a SQL query | What's the original season in 11th place? | SELECT Original Season FROM table WHERE Placing = 11th place |
Translate the following into a SQL query | Who's the player eliminated on episode 5? | SELECT Player FROM table WHERE Eliminated = episode 5 |
Translate the following into a SQL query | Who's the player that's male and on the original season of RW: Key West? | SELECT Player FROM table WHERE Gender = male AND Original Season = rw: key west |
Translate the following into a SQL query | Who's the player eliminated on episode 8 of Fresh Meat? | SELECT Player FROM table WHERE Original Season = fresh meat AND Eliminated = episode 8 |
Translate the following into a SQL query | The boat named Agamemnon has what status? | SELECT Status FROM table WHERE Name = agamemnon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.