instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How many games were played by the Scottish Wanderers where less than 5 Points were scored? | SELECT SUM Played FROM table WHERE Team = scottish wanderers AND Points < 5 |
Translate the following into a SQL query | How many games were played where exactly 15 points were scored? | SELECT SUM Played FROM table WHERE Points = 15 |
Translate the following into a SQL query | What LINER class has a W.A. of 0-6-0st with a 2 No. Built? | SELECT LNER Class FROM table WHERE W.A. = 0-6-0st AND No. Built = 2 |
Translate the following into a SQL query | What is the pick number for Peter Moore of the Montreal Alouettes? | SELECT Pick # FROM table WHERE CFL Team = montreal alouettes AND Player = peter moore |
Translate the following into a SQL query | What CFL team did Kelly Bates play for? | SELECT CFL Team FROM table WHERE Player = kelly bates |
Translate the following into a SQL query | How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0? | SELECT AVG Total Matches FROM table WHERE Swansea Win < 3 AND Competition = fa cup AND Draw < 0 |
Translate the following into a SQL query | How many cardiff wins have a draw greater than 27? | SELECT COUNT Cardiff Win FROM table WHERE Draw > 27 |
Translate the following into a SQL query | How many average total matches have league cup as the competition, with a draw greater than 0? | SELECT AVG Total Matches FROM table WHERE Competition = league cup AND Draw > 0 |
Translate the following into a SQL query | What is the number of tries for when the try bonus is 0? | SELECT Tries For FROM table WHERE Try Bonus = 0 |
Translate the following into a SQL query | How many points is there when the lost is 6 and the try bonus is 9? | SELECT Points for FROM table WHERE Lost = 6 AND Try Bonus = 9 |
Translate the following into a SQL query | How many pints does the Cambrian Welfare RFC have? | SELECT Points for FROM table WHERE Club = cambrian welfare rfc |
Translate the following into a SQL query | When the try bonus is 9 and the lost 4, what is the drawn? | SELECT Drawn FROM table WHERE Try Bonus = 9 AND Lost = 4 |
Translate the following into a SQL query | Club Clwb Rygbi Cymru Caerdydd RFC has how many points? | SELECT Points FROM table WHERE Club = clwb rygbi cymru caerdydd rfc |
Translate the following into a SQL query | What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823? | SELECT MAX Rank FROM table WHERE Density < 376.37 AND Province = valverde AND Area > 823 |
Translate the following into a SQL query | What is the average Density when the area is more than 1,185.8 with a population of 63,029? | SELECT AVG Density FROM table WHERE Area > 1,185.8 AND Population = 63,029 |
Translate the following into a SQL query | What is the highest Density for the independencia province, with an area smaller than 2,007.4? | SELECT MAX Density FROM table WHERE Province = independencia AND Area < 2,007.4 |
Translate the following into a SQL query | Which 2nd leg has pamesa valencia for team #2? | SELECT 2nd leg FROM table WHERE Team #2 = pamesa valencia |
Translate the following into a SQL query | What is the team #1 that has unics kazan for team #2? | SELECT Team #1 FROM table WHERE Team #2 = unics kazan |
Translate the following into a SQL query | What is the 1st leg that has akasvayu girona as team #2? | SELECT 1st leg FROM table WHERE Team #2 = akasvayu girona |
Translate the following into a SQL query | Which Wins has a Tournament of totals, and a Cuts made larger than 42? | SELECT AVG Wins FROM table WHERE Tournament = totals AND Cuts made > 42 |
Translate the following into a SQL query | Which Top-10 has a Cuts made larger than 42? | SELECT MIN Top-10 FROM table WHERE Cuts made > 42 |
Translate the following into a SQL query | Which Wins has a Top-5 of 6? | SELECT AVG Wins FROM table WHERE Top-5 = 6 |
Translate the following into a SQL query | Which Cuts made has a Top-25 smaller than 3? | SELECT MAX Cuts made FROM table WHERE Top-25 < 3 |
Translate the following into a SQL query | Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1? | SELECT MIN Top-10 FROM table WHERE Cuts made = 10 AND Top-5 > 1 |
Translate the following into a SQL query | Concerning protestantism by country, the ranking is out of how many total? | SELECT Out of FROM table WHERE Source = protestantism by country |
Translate the following into a SQL query | What is the lowest rank that the protestants population holds? | SELECT MIN Rank FROM table WHERE Name = protestants population |
Translate the following into a SQL query | The album titled I had what chart positions? | SELECT Chart positions FROM table WHERE Album title = i |
Translate the following into a SQL query | What is the title of the album that has Popup has the original label? | SELECT Album title FROM table WHERE Original label = popup |
Translate the following into a SQL query | What is the format of the album with a year less than 1992? | SELECT Format FROM table WHERE Year < 1992 |
Translate the following into a SQL query | What chart positions did the album reach when ep was the format? | SELECT Chart positions FROM table WHERE Format = ep |
Translate the following into a SQL query | What was the average pick with Ed O'Bannon and a round smaller than 1? | SELECT AVG Pick FROM table WHERE Player = ed o'bannon AND Round < 1 |
Translate the following into a SQL query | What player was drafted for the Detroit Pistons? | SELECT Player FROM table WHERE NBA Team = detroit pistons |
Translate the following into a SQL query | Which Team 2 had a Team 1 of montreal impact? | SELECT Team 2 FROM table WHERE Team 1 = montreal impact |
Translate the following into a SQL query | Which Team 2 had a Team 1of joe public? | SELECT Team 2 FROM table WHERE Team 1 = joe public |
Translate the following into a SQL query | Which team 1 had a Team 2 of hankook verdes? | SELECT Team 1 FROM table WHERE Team 2 = hankook verdes |
Translate the following into a SQL query | What is the first leg score when team 2 is Wagad Mogadishu? | SELECT 1st leg FROM table WHERE Team 2 = wagad mogadishu |
Translate the following into a SQL query | What is the first leg score when the second leg score is 0-4? | SELECT 1st leg FROM table WHERE 2nd leg = 0-4 |
Translate the following into a SQL query | What is the first leg score when the second leg score is 0-4? | SELECT 1st leg FROM table WHERE 2nd leg = 0-4 |
Translate the following into a SQL query | What is the Status with a Name that is anas cheuen? | SELECT Status FROM table WHERE Name = anas cheuen |
Translate the following into a SQL query | What is the Unit with a Name that is anas cheuen? | SELECT Unit FROM table WHERE Name = anas cheuen |
Translate the following into a SQL query | What team was the Opponent when the Score was 31-6? | SELECT Opponent FROM table WHERE Score = 31-6 |
Translate the following into a SQL query | What is the Score when the record was 9-3-0? | SELECT Score FROM table WHERE Record = 9-3-0 |
Translate the following into a SQL query | What is the Record with an attendance of more than 54,761, and a Result of loss? | SELECT Record FROM table WHERE attendance > 54,761 AND Result = loss |
Translate the following into a SQL query | What is the away team where the home team is Coventry City? | SELECT Away team FROM table WHERE Home team = coventry city |
Translate the following into a SQL query | What is the score where the away team is Exeter City? | SELECT Score FROM table WHERE Away team = exeter city |
Translate the following into a SQL query | How many ties does Walsall have? | SELECT Tie no FROM table WHERE Away team = walsall |
Translate the following into a SQL query | Where Bolton Wanderers is the home team, who is the away team? | SELECT Away team FROM table WHERE Home team = bolton wanderers |
Translate the following into a SQL query | How many ties are there where attendance is 11,997? | SELECT Tie no FROM table WHERE Attendance = 11,997 |
Translate the following into a SQL query | Where the away team is Bradford City, who is the home team? | SELECT Home team FROM table WHERE Away team = bradford city |
Translate the following into a SQL query | For which school/club team did the player in the position of Guard/Forward play? | SELECT School/Club Team FROM table WHERE Position = guard/forward |
Translate the following into a SQL query | How was the player in the position of Center acquired? | SELECT Acquisition via FROM table WHERE Position = center |
Translate the following into a SQL query | In what season did Omar Thomas play, with a jersey number larger than 15? | SELECT Season FROM table WHERE Number > 15 AND Name = omar thomas |
Translate the following into a SQL query | How many total players came from the school/club team of De La Salle? | SELECT COUNT Number FROM table WHERE School/Club Team = de la salle |
Translate the following into a SQL query | Which player is in the position of Guard/Forward? | SELECT Name FROM table WHERE Position = guard/forward |
Translate the following into a SQL query | What is the most wins associated with under 4 events with 0 top-5s? | SELECT MAX Wins FROM table WHERE Top-5 > 0 AND Events < 4 |
Translate the following into a SQL query | What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins? | SELECT AVG Events FROM table WHERE Top-10 = 1 AND Wins > 0 AND Cuts made < 4 |
Translate the following into a SQL query | What is the average number of wins for events larger than 28? | SELECT AVG Wins FROM table WHERE Events > 28 |
Translate the following into a SQL query | What is the sum of top-25s for events with more than 1 top-5? | SELECT SUM Top-25 FROM table WHERE Top-5 > 1 |
Translate the following into a SQL query | Who is the producer of city sharks? | SELECT Producer FROM table WHERE Title = city sharks |
Translate the following into a SQL query | What is the title of the film when the producer was 2003? | SELECT Title FROM table WHERE Producer = 2003 |
Translate the following into a SQL query | Who is the director when the title is 2003? | SELECT Director FROM table WHERE Title = 2003 |
Translate the following into a SQL query | What is the production cost when the producer is raintree pictures? | SELECT Production Cost FROM table WHERE Producer = raintree pictures |
Translate the following into a SQL query | What was the lowest attendance at a week 15 game? | SELECT MIN Attendance FROM table WHERE Week = 15 |
Translate the following into a SQL query | What is the Score for the game with a record of 38-18? | SELECT Score FROM table WHERE Record = 38-18 |
Translate the following into a SQL query | What team was the opponent when the score was 8-2? | SELECT Opponent FROM table WHERE Score = 8-2 |
Translate the following into a SQL query | What is the Location when the opponent shows vs. ole miss, and a Loss of mckean (4-1)? | SELECT Location FROM table WHERE Opponent = vs. ole miss AND Loss = mckean (4-1) |
Translate the following into a SQL query | What is the name of the Opponent when there is a Record of 39-19? | SELECT Opponent FROM table WHERE Record = 39-19 |
Translate the following into a SQL query | What is the Record on may 24, with a Loss of hayes (2-1)? | SELECT Record FROM table WHERE Date = may 24 AND Loss = hayes (2-1) |
Translate the following into a SQL query | What is the Location when the Opponent shows vs. #23 south carolina? | SELECT Location FROM table WHERE Opponent = vs. #23 south carolina |
Translate the following into a SQL query | What is that if the weight for the play born on June 2, 1983? | SELECT SUM Weight (kg) FROM table WHERE Birthdate = june 2, 1983 |
Translate the following into a SQL query | What was the highest weight in kg for F Position, Jersey #12? | SELECT MAX Weight (kg) FROM table WHERE Position = f AND Jersey # = 12 |
Translate the following into a SQL query | Which player is the NHL right, who was born in Downers Grove, Illinois? | SELECT NHL rights, if any FROM table WHERE Birthplace = downers grove, illinois |
Translate the following into a SQL query | Which coding's variant id is abd'1a 3? | SELECT Coding FROM table WHERE Variant id = abd'1a 3 |
Translate the following into a SQL query | Which 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2? | SELECT 5’UTR splice FROM table WHERE Coding = 1a 2 AND Variant id = abd'1a 2 |
Translate the following into a SQL query | Which variant id's coding is 1a 5 when the 5'utr splice is abd'? | SELECT Variant id FROM table WHERE Coding = 1a 5 AND 5’UTR splice = abd' |
Translate the following into a SQL query | Which genbank id's variant is abd1a? | SELECT GenBank id FROM table WHERE Variant id = abd1a |
Translate the following into a SQL query | Which coding entry has a 3'utr sequence of 1a 0 and a 5'utr splice that is abd? | SELECT Coding FROM table WHERE 3’UTR sequence = 1a 0 AND 5’UTR splice = abd |
Translate the following into a SQL query | Which genbank id has a 5'utr splice of abd and a variant id that is abd1a 3? | SELECT GenBank id FROM table WHERE 5’UTR splice = abd AND Variant id = abd1a 3 |
Translate the following into a SQL query | What year did Orlando have a School/Club team in Clemson? | SELECT Years in Orlando FROM table WHERE School/Club Team = clemson |
Translate the following into a SQL query | What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson? | SELECT Years in Orlando FROM table WHERE Nationality = united states AND School/Club Team = clemson |
Translate the following into a SQL query | Who is the player for the School/Club team in Georgia? | SELECT Player FROM table WHERE School/Club Team = georgia |
Translate the following into a SQL query | What was the nationality of the player Pat Garrity? | SELECT Nationality FROM table WHERE Player = pat garrity |
Translate the following into a SQL query | What is the nationality of the School/Club team of Louisville? | SELECT Nationality FROM table WHERE School/Club Team = louisville |
Translate the following into a SQL query | How many features did Adam Carroll win 6 times when the start was larger than 32? | SELECT COUNT Feature FROM table WHERE Wins = 6 AND Driver = adam carroll AND Starts > 32 |
Translate the following into a SQL query | What is the lowest feature with 2 wins and 2 sprints? | SELECT MIN Feature FROM table WHERE Wins = 2 AND Sprint = 2 |
Translate the following into a SQL query | How many sprints on average had 10 wins and less than 5 features? | SELECT AVG Sprint FROM table WHERE Wins = 10 AND Feature < 5 |
Translate the following into a SQL query | Which country has a lane greater than 6 and a mark of 6.63? | SELECT Country FROM table WHERE Lane > 6 AND Mark = 6.63 |
Translate the following into a SQL query | What is the lowest lane for Nigeria, with a react less than 0.133? | SELECT MIN Lane FROM table WHERE Country = nigeria AND React < 0.133 |
Translate the following into a SQL query | What is the mark for Kim Collins? | SELECT Mark FROM table WHERE Name = kim collins |
Translate the following into a SQL query | Which country had 1 Bronze, 1 Silver, with a total of 3 medals? | SELECT Nation FROM table WHERE Bronze = 1 AND Total = 3 AND Silver = 1 |
Translate the following into a SQL query | Which country had more than 2 silvers and less than 4 golds? | SELECT Nation FROM table WHERE Silver > 2 AND Gold < 4 |
Translate the following into a SQL query | What's the average bronze with a total number of medals being 1, with more than 0 silvers? | SELECT AVG Bronze FROM table WHERE Total = 1 AND Silver > 0 |
Translate the following into a SQL query | In the 2005 season, how many races did the 15th place team complete? | SELECT AVG Races FROM table WHERE Final Placing = 15th AND Season = 2005 |
Translate the following into a SQL query | Which team completed 10 races? | SELECT Team Name FROM table WHERE Races = 10 |
Translate the following into a SQL query | What is the PBA team with a Pick that is 4? | SELECT PBA team FROM table WHERE Pick = 4 |
Translate the following into a SQL query | What is the Player with a Pick that is 6? | SELECT Player FROM table WHERE Pick = 6 |
Translate the following into a SQL query | How many totals have 1 gold and a rank smaller than 2? | SELECT COUNT Total FROM table WHERE Gold = 1 AND Rank < 2 |
Translate the following into a SQL query | How much gold did South Korea get? | SELECT SUM Gold FROM table WHERE Nation = south korea |
Translate the following into a SQL query | What locomotive built after 1895 has the highest SLM number? | SELECT MAX SLM Number FROM table WHERE Built > 1895 |
Translate the following into a SQL query | Which type of locomotive was built in 1923? | SELECT Type FROM table WHERE Built = 1923 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.