instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Name the away captain with result of wi by 9 wkts | SELECT Away captain FROM table WHERE Result = wi by 9 wkts |
Translate the following into a SQL query | Name the venue for eng by 6 wkts | SELECT Venue FROM table WHERE Result = eng by 6 wkts |
Translate the following into a SQL query | What is the date of the last performance when the style is street dance and the name is George Maguire? | SELECT Last Performance FROM table WHERE Style = street dance AND Name = george maguire |
Translate the following into a SQL query | What is the date of the last performance for Liam Mower? | SELECT Last Performance FROM table WHERE Name = liam mower |
Translate the following into a SQL query | How many points did the Weslake v12 get in 1966? | SELECT MAX Points FROM table WHERE Engine = weslake v12 AND Year < 1966 |
Translate the following into a SQL query | What was the name of the team in 1965 driving the Ferrari 158? | SELECT Entrant FROM table WHERE Year = 1965 AND Chassis = ferrari 158 |
Translate the following into a SQL query | What Chassis had a Weslake v12 in it? | SELECT Chassis FROM table WHERE Engine = weslake v12 |
Translate the following into a SQL query | Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no | SELECT Copaxone FROM table WHERE Mitoxantrone = no AND Betaseron (beta-1b) = no |
Translate the following into a SQL query | Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147? | SELECT Test Career FROM table WHERE Tests > 41 AND Catches > 33 AND Total Dismissals = 147 |
Translate the following into a SQL query | What is the average dismissals of 83 test and catches less than 33? | SELECT AVG Total Dismissals FROM table WHERE Tests = 83 AND Catches < 33 |
Translate the following into a SQL query | Which winner has a points classification of Tony Rominger at stage 17? | SELECT Winner FROM table WHERE Points classification = tony rominger AND Stage = 17 |
Translate the following into a SQL query | Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino? | SELECT Stage FROM table WHERE Mountains classification = mariano piccoli AND Points classification = mario cipollini AND Winner = laudelino cubino |
Translate the following into a SQL query | Who won stage 16? | SELECT Winner FROM table WHERE Stage = 16 |
Translate the following into a SQL query | Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest? | SELECT Mountains classification FROM table WHERE General classification = tony rominger AND Winner = maurizio fondriest |
Translate the following into a SQL query | What is the general classification at stage 18 that has a points classification of Tony Rominger? | SELECT General classification FROM table WHERE Points classification = tony rominger AND Stage = 18 |
Translate the following into a SQL query | Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio? | SELECT Stage FROM table WHERE Mountains classification = mariano piccoli AND Winner = giuseppe citterio |
Translate the following into a SQL query | What is the year First elected when the Member is John Armitage? | SELECT First elected FROM table WHERE Member = john armitage |
Translate the following into a SQL query | Who is the Electorate, when the year for First elected is 1974, and when the Party is Country? | SELECT Electorate FROM table WHERE First elected = 1974 AND Party = country |
Translate the following into a SQL query | Who is the Member when the Party is Alp, and when the Electorate is Grey? | SELECT Member FROM table WHERE Party = alp AND Electorate = grey |
Translate the following into a SQL query | What is the State, when the year First elected is 1966, and when the Member is Alan Jarman? | SELECT State FROM table WHERE First elected = 1966 AND Member = alan jarman |
Translate the following into a SQL query | What is the year First Elected, when the Party is Alp, and when the State is qld? | SELECT First elected FROM table WHERE Party = alp AND State = qld |
Translate the following into a SQL query | What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp? | SELECT First elected FROM table WHERE State = vic AND Member = hon don chipp |
Translate the following into a SQL query | Which total number of starts has more than 2 wins and a money list rank greater than 1? | SELECT COUNT Starts FROM table WHERE Wins > 2 AND Money list rank > 1 |
Translate the following into a SQL query | What is the sum of number of wins that have earnings of more than (€)2,864,342 and money list rank of 3? | SELECT SUM Wins FROM table WHERE Earnings (€) > 2,864,342 AND Money list rank = 3 |
Translate the following into a SQL query | What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25? | SELECT SUM Top 10 FROM table WHERE Wins > 2 AND Top 25 < 16 |
Translate the following into a SQL query | What is the greatest money list ranking that has a Top 25 higher than 2? | SELECT MAX Money list rank FROM table WHERE Top 25 < 2 |
Translate the following into a SQL query | What Away team had an Attendance of 3,395? | SELECT Away team FROM table WHERE Attendance = 3,395 |
Translate the following into a SQL query | What Home team had an Attendance of 2,776? | SELECT Home team FROM table WHERE Attendance = 2,776 |
Translate the following into a SQL query | Which engine has more than 1 point after 1981? | SELECT Engine FROM table WHERE Points > 1 AND Year > 1981 |
Translate the following into a SQL query | Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179? | SELECT Engine FROM table WHERE Entrant = marlboro team alfa romeo AND Chassis = alfa romeo 179 |
Translate the following into a SQL query | When has a surface of road and an event of half marathon? | SELECT Date FROM table WHERE Surface = road AND Event = half marathon |
Translate the following into a SQL query | Which Surface has a Place of lappeenranta? | SELECT Surface FROM table WHERE Place = lappeenranta |
Translate the following into a SQL query | What is the Date that has 1:01:42? | SELECT Date FROM table WHERE Time ( h : m : s ) = 1:01:42 |
Translate the following into a SQL query | What is the Time ( h : m : s ) on 13 october 2010 | SELECT Time ( h : m : s ) FROM table WHERE Date = 13 october 2010 |
Translate the following into a SQL query | What is the Place with Time 7:44.15? | SELECT Place FROM table WHERE Time ( h : m : s ) = 7:44.15 |
Translate the following into a SQL query | Which Class Pos have Laps smaller than 304, and a Year after 2001? | SELECT Class Pos. FROM table WHERE Laps < 304 AND Year > 2001 |
Translate the following into a SQL query | What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson? | SELECT MIN Laps FROM table WHERE Year > 2002 AND Co-Drivers = alexander frei bruno besson |
Translate the following into a SQL query | How many people attended the score of w 7-6? | SELECT Crowd FROM table WHERE Score = w 7-6 |
Translate the following into a SQL query | Who lost that has a score of w 4-3? | SELECT Loss FROM table WHERE Score = w 4-3 |
Translate the following into a SQL query | Loss of schrom happened on what date? | SELECT Date FROM table WHERE Loss = schrom |
Translate the following into a SQL query | Opponent of @mil, and a Record of 45-16 happened on what date? | SELECT Date FROM table WHERE Opponent = @mil AND Record = 45-16 |
Translate the following into a SQL query | Loss of willis has what record? | SELECT Record FROM table WHERE Loss = willis |
Translate the following into a SQL query | Loss of wilcox, and a Date of jun 18 had what opponent? | SELECT Opponent FROM table WHERE Loss = wilcox AND Date = jun 18 |
Translate the following into a SQL query | Name the to par for score of 74-74-74-71=293 | SELECT To par FROM table WHERE Score = 74-74-74-71=293 |
Translate the following into a SQL query | Name the player for 68-68-75-74=285 | SELECT Player FROM table WHERE Score = 68-68-75-74=285 |
Translate the following into a SQL query | Name the to par for gene kunes | SELECT To par FROM table WHERE Player = gene kunes |
Translate the following into a SQL query | What is the average Points for a year before 1955? | SELECT AVG Points FROM table WHERE Year < 1955 |
Translate the following into a SQL query | What is the total year with a Team of scuderia ferrari, an Engine of ferrari 106 2.5 l4, and more than 12 points? | SELECT SUM Year FROM table WHERE Team = scuderia ferrari AND Engine = ferrari 106 2.5 l4 AND Points > 12 |
Translate the following into a SQL query | How many wins has a podiums greater than 1 and 9 as the races with a season after 1984? | SELECT COUNT Wins FROM table WHERE Podiums > 1 AND Races = 9 AND Season > 1984 |
Translate the following into a SQL query | What is the highest Podiums with 0 as wins, and a season later than 1985? | SELECT MAX Podiums FROM table WHERE Wins = 0 AND Season > 1985 |
Translate the following into a SQL query | What was the Top Gear budget in March 2013? | SELECT Budget FROM table WHERE Month & Year = march 2013 |
Translate the following into a SQL query | Which episode of Top Gear had a budget of £7,000? | SELECT Episode FROM table WHERE Budget = £7,000 |
Translate the following into a SQL query | Which month and year held the Bolivia Special title? | SELECT Month & Year FROM table WHERE Title = bolivia special |
Translate the following into a SQL query | When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle? | SELECT May's vehicle FROM table WHERE Hammond's vehicle = 1974 toyota land cruiser |
Translate the following into a SQL query | Which team has a right wing position listed? | SELECT College/junior/club team FROM table WHERE Position = right wing |
Translate the following into a SQL query | What position is the player that is from Canada and on the Boston Bruins | SELECT Position FROM table WHERE Nationality = canada AND NHL team = boston bruins |
Translate the following into a SQL query | What is the position of the player on the Los Angeles Kings? | SELECT Position FROM table WHERE NHL team = los angeles kings |
Translate the following into a SQL query | Which team has the # 64 pick? | SELECT College/junior/club team FROM table WHERE Pick # = 64 |
Translate the following into a SQL query | What nationality is the #63 pick? | SELECT Nationality FROM table WHERE Pick # = 63 |
Translate the following into a SQL query | What is the name of the player that is pick #69? | SELECT Player FROM table WHERE Pick # = 69 |
Translate the following into a SQL query | Which tyres received 8 points? | SELECT Tyres FROM table WHERE Points = 8 |
Translate the following into a SQL query | How many points were awarded to the Ford DFZ 3.5 V8? | SELECT SUM Points FROM table WHERE Engine(s) = ford dfz 3.5 v8 |
Translate the following into a SQL query | Which engine received 0 points in 1988? | SELECT Engine(s) FROM table WHERE Points = 0 AND Year = 1988 |
Translate the following into a SQL query | What's the Issue Date for an Eric Prydz song with a no available Download information? | SELECT Issue Date FROM table WHERE Download = no available AND Artist = eric prydz |
Translate the following into a SQL query | What's the Download information for the song from Week 44? | SELECT Download FROM table WHERE Week = 44 |
Translate the following into a SQL query | What is the title of the July 2 song that is downloaded as Crazy Frog? | SELECT Title FROM table WHERE Download = crazy frog AND Issue Date = july 2 |
Translate the following into a SQL query | What is the division record for Woodbridge? | SELECT Division Record FROM table WHERE School = woodbridge |
Translate the following into a SQL query | Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd? | SELECT Runner-up FROM table WHERE Winners = polonia bydgoszcz AND 3rd place = mega-lada togliatti |
Translate the following into a SQL query | Who was the runner-up in 2004? | SELECT Runner-up FROM table WHERE Year = 2004 |
Translate the following into a SQL query | Who was the 3rd place team at Pardubice? | SELECT 3rd place FROM table WHERE Venue = pardubice |
Translate the following into a SQL query | Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650? | SELECT Country FROM table WHERE 1 Euro = > 1.46611 AND 1 USD = = 1.76650 |
Translate the following into a SQL query | Which Chile central bank has a Euro larger than 297.547? | SELECT Central bank FROM table WHERE 1 Euro = > 297.547 AND Country = chile |
Translate the following into a SQL query | Name the To par for denmark | SELECT To par FROM table WHERE Country = denmark |
Translate the following into a SQL query | Nam ethe place for pat perez | SELECT Place FROM table WHERE Player = pat perez |
Translate the following into a SQL query | Name the country vijay singh is from | SELECT Country FROM table WHERE Player = vijay singh |
Translate the following into a SQL query | Which city has frequency under 106.5MHz and a callsign of w218ck? | SELECT City of license FROM table WHERE Frequency MHz < 106.5 AND Call sign = w218ck |
Translate the following into a SQL query | Which class has a city of Richmond, Virginia? | SELECT Class FROM table WHERE City of license = richmond, virginia |
Translate the following into a SQL query | What is the ERP W for the frequency of 91.3MHz? | SELECT ERP W FROM table WHERE Frequency MHz = 91.3 |
Translate the following into a SQL query | Which call sign has a frequency greater than 98.5MHz and ERP W under 155? | SELECT Call sign FROM table WHERE Frequency MHz > 98.5 AND ERP W < 155 |
Translate the following into a SQL query | Which tracks have a length of 18:36? | SELECT MIN Tracks FROM table WHERE Length = 18:36 |
Translate the following into a SQL query | What is the length of disc 67? | SELECT Length FROM table WHERE Disc = 67 |
Translate the following into a SQL query | What points larger than 1950 has a maserati straight-6 engine? | SELECT Points FROM table WHERE Year > 1950 AND Engine = maserati straight-6 |
Translate the following into a SQL query | What is the chassis for a 1952 officine alfieri maserati with an entrant? | SELECT Chassis FROM table WHERE Entrant = officine alfieri maserati AND Year = 1952 |
Translate the following into a SQL query | What type of engine does a 1951 alfa romeo 159m chasis have? | SELECT Engine FROM table WHERE Year = 1951 AND Chassis = alfa romeo 159m |
Translate the following into a SQL query | What Entrant has a 1952 maserati straight-6 engine? | SELECT Entrant FROM table WHERE Engine = maserati straight-6 AND Year = 1952 |
Translate the following into a SQL query | What Entrant older than 1950 has points smaller than 7? | SELECT Entrant FROM table WHERE Year > 1950 AND Points < 7 |
Translate the following into a SQL query | What is the total points that an 1951 Entrant alfa romeo spa have? | SELECT SUM Points FROM table WHERE Entrant = alfa romeo spa AND Year < 1951 |
Translate the following into a SQL query | Who is the co-driver in 1999 with more than 32 laps? | SELECT Co-driver FROM table WHERE Laps > 32 AND Year = 1999 |
Translate the following into a SQL query | Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix | SELECT Winning constructor FROM table WHERE Fastest lap = mark webber AND Grand Prix = malaysian grand prix |
Translate the following into a SQL query | Name the winning constructor for abu dhabi grand prix | SELECT Winning constructor FROM table WHERE Grand Prix = abu dhabi grand prix |
Translate the following into a SQL query | Name the pole position for belgian grand prix | SELECT Pole position FROM table WHERE Grand Prix = belgian grand prix |
Translate the following into a SQL query | Name the pole positon for korean grand prix | SELECT Pole position FROM table WHERE Grand Prix = korean grand prix |
Translate the following into a SQL query | Name the pole position at the german grand prix | SELECT Pole position FROM table WHERE Grand Prix = german grand prix |
Translate the following into a SQL query | What is the code for Latvian Lats? | SELECT Code FROM table WHERE Currency = latvian lats |
Translate the following into a SQL query | Which currency has a central rate of 3.45280? | SELECT Currency FROM table WHERE Central rate = 3.45280 |
Translate the following into a SQL query | Which currency has a central rate of 0.702804? | SELECT Currency FROM table WHERE Central rate = 0.702804 |
Translate the following into a SQL query | What is the entry ERM II for the Hungarian Forint? | SELECT Entry ERM II FROM table WHERE Currency = hungarian forint |
Translate the following into a SQL query | What is the official target date for the Swedish Krona? | SELECT Official target date FROM table WHERE Currency = swedish krona |
Translate the following into a SQL query | The EPT German open was won by which listed winner? | SELECT Winner FROM table WHERE Event = ept german open |
Translate the following into a SQL query | What event did Will Fry win? | SELECT Event FROM table WHERE Winner = will fry |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.