instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Who was the back player with a pick less than 183 from the round greater than 12? | SELECT Player FROM table WHERE Pick < 183 AND Position = back AND Round > 12 |
Translate the following into a SQL query | What is the total number of rounds of the end player with a pick number greater than 303? | SELECT COUNT Round FROM table WHERE Pick > 303 AND Position = end |
Translate the following into a SQL query | What is the highest pick of the back player from round 28? | SELECT MAX Pick FROM table WHERE Position = back AND Round = 28 |
Translate the following into a SQL query | What is position of the player with a pick number greater than 315 and a round of 30? | SELECT Position FROM table WHERE Pick > 315 AND Round = 30 |
Translate the following into a SQL query | On what Week was the Result W 17-14? | SELECT AVG Week FROM table WHERE Result = w 17-14 |
Translate the following into a SQL query | What was the Result after the Week 4 on November 3, 1968? | SELECT Result FROM table WHERE Week > 4 AND Date = november 3, 1968 |
Translate the following into a SQL query | What is the attendance in week 4? | SELECT AVG Attendance FROM table WHERE Week = 4 |
Translate the following into a SQL query | What was the date of the game with a record of 17β25? | SELECT Date FROM table WHERE Record = 17β25 |
Translate the following into a SQL query | Who was the opponent at the game with a score of 6β5 (10)? | SELECT Opponent FROM table WHERE Score = 6β5 (10) |
Translate the following into a SQL query | What was the result of the bout that led to a 4-4 record? | SELECT Res. FROM table WHERE Record = 4-4 |
Translate the following into a SQL query | Which location held the bout that led to a 4-3 record? | SELECT Location FROM table WHERE Record = 4-3 |
Translate the following into a SQL query | What discs has a region 1 release date of January 22, 2008? | SELECT Discs FROM table WHERE Region 1 release = january 22, 2008 |
Translate the following into a SQL query | What is the lowest rank of Citigroup? | SELECT MIN Rank FROM table WHERE Name = citigroup |
Translate the following into a SQL query | What is the market value of the automotive industry? | SELECT COUNT Market value ( USD million) FROM table WHERE Industry = automotive |
Translate the following into a SQL query | Name the attendance with result of t 14-14 | SELECT Attendance FROM table WHERE Result = t 14-14 |
Translate the following into a SQL query | Name the total number of attendance for october 20, 1946 with week less than 4 | SELECT COUNT Attendance FROM table WHERE Date = october 20, 1946 AND Week < 4 |
Translate the following into a SQL query | Name the most attendance for november 17, 1946 and week more than 8 | SELECT MAX Attendance FROM table WHERE Date = november 17, 1946 AND Week > 8 |
Translate the following into a SQL query | What is the sum of the points for the player who was a rank of 61t? | SELECT SUM Points FROM table WHERE Rank = 61t |
Translate the following into a SQL query | Who is the player who had more than 1,052 points? | SELECT Player FROM table WHERE Points > 1,052 |
Translate the following into a SQL query | What are the highest points that Emmitt Smith had? | SELECT MAX Points FROM table WHERE Player = emmitt smith |
Translate the following into a SQL query | Record of 6β8 had what attendance? | SELECT Attendance FROM table WHERE Record = 6β8 |
Translate the following into a SQL query | Result of l 17β20 had what attendance? | SELECT Attendance FROM table WHERE Result = l 17β20 |
Translate the following into a SQL query | Game Site of hoosier dome, and a Result of l 7β31 involved what attendance? | SELECT Attendance FROM table WHERE Game Site = hoosier dome AND Result = l 7β31 |
Translate the following into a SQL query | Which Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281? | SELECT MAX Year FROM table WHERE Venue = blackwolf run, composite course AND Score = 281 |
Translate the following into a SQL query | Which Champion has a Venue of old waverly golf club? | SELECT Champion FROM table WHERE Venue = old waverly golf club |
Translate the following into a SQL query | How many world rankings are after Aug 5, 1980 ? | SELECT SUM World Ranking FROM table WHERE Date = aug 5 AND Year > 1980 |
Translate the following into a SQL query | On which date is there a performance of more than 8.22.72? | SELECT Date FROM table WHERE Performance = 8.22.72 |
Translate the following into a SQL query | The venue of Rome has which date? | SELECT Date FROM table WHERE Venue = rome |
Translate the following into a SQL query | What was the 1st leg of the match that had an aggregate of 4-3? | SELECT 1st leg FROM table WHERE Agg. = 4-3 |
Translate the following into a SQL query | What was the 2nd leg fo the match that had a 1st leg of 1-3 and aggregate of 1-6? | SELECT 2nd leg FROM table WHERE 1st leg = 1-3 AND Agg. = 1-6 |
Translate the following into a SQL query | When was the last final lost of the club with 7 wins? | SELECT Last final lost FROM table WHERE Wins = 7 |
Translate the following into a SQL query | How many runners-up did the club with the last final lost in 1985 have? | SELECT Runners-up FROM table WHERE Last final lost = 1985 |
Translate the following into a SQL query | When was the last final lost of the club with a last win in 1959? | SELECT Last final lost FROM table WHERE Last win = 1959 |
Translate the following into a SQL query | When was the last win of Celtic? | SELECT Last win FROM table WHERE Club = celtic |
Translate the following into a SQL query | Which club had 13 runners-up? | SELECT Club FROM table WHERE Runners-up = 13 |
Translate the following into a SQL query | Who is the visitor in Philadelphia on March 6? | SELECT Visitor FROM table WHERE Home = philadelphia AND Date = march 6 |
Translate the following into a SQL query | what date were they playing in hawthorn | SELECT Date FROM table WHERE Away team = hawthorn |
Translate the following into a SQL query | what report was in geelong | SELECT Report FROM table WHERE Home team = geelong |
Translate the following into a SQL query | What is the date for the game played on week 8, with an attendance of more than 35,000? | SELECT Date FROM table WHERE Attendance > 35,000 AND Week = 8 |
Translate the following into a SQL query | In what Town/City is Nana Museum of The Arctic located? | SELECT Town/City FROM table WHERE Name = nana museum of the arctic |
Translate the following into a SQL query | What is the Name of the Multiple Type museum in Anchorage? | SELECT Name FROM table WHERE Town/City = anchorage AND Type = multiple |
Translate the following into a SQL query | In what Borough is the Anchorage museum of Natural History? | SELECT Name FROM table WHERE Borough = anchorage AND Type = natural history |
Translate the following into a SQL query | In what Region is the Native American museum in Anchorage? | SELECT Region FROM table WHERE Type = native american AND Town/City = anchorage |
Translate the following into a SQL query | What Type of museum is the Valdez museum? | SELECT Type FROM table WHERE Name = valdez museum |
Translate the following into a SQL query | In what Borough is the History Type Fairbanks Community Museum? | SELECT Borough FROM table WHERE Type = history AND Name = fairbanks community museum |
Translate the following into a SQL query | what is the zip code of boonville | SELECT ZIP code Prefix(es) FROM table WHERE County Seat = boonville |
Translate the following into a SQL query | Which tournament was held on 9 Jun 2002? | SELECT Tournament FROM table WHERE Date = 9 jun 2002 |
Translate the following into a SQL query | What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament? | SELECT Winning score FROM table WHERE Margin of victory = 4 strokes AND Tournament = nec invitational |
Translate the following into a SQL query | Who is the runner-up where the winning score is β8 (71-69-67-73=280)? | SELECT Runner(s)-up FROM table WHERE Winning score = β8 (71-69-67-73=280) |
Translate the following into a SQL query | What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke? | SELECT Winning score FROM table WHERE Margin of victory = 1 stroke AND Tournament = linde german masters |
Translate the following into a SQL query | Who is runner-up where the winning score is β6 (65-70-70-69=274) and the margin of victory is 3 strokes? | SELECT Runner(s)-up FROM table WHERE Margin of victory = 3 strokes AND Winning score = β6 (65-70-70-69=274) |
Translate the following into a SQL query | What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke? | SELECT Winning score FROM table WHERE Margin of victory = 1 stroke AND Runner(s)-up = robert-jan derksen |
Translate the following into a SQL query | What are the high rebounds of team @ Charlotte? | SELECT High rebounds FROM table WHERE Team = @ charlotte |
Translate the following into a SQL query | What is the high rebounds of game 68? | SELECT High rebounds FROM table WHERE Game = 68 |
Translate the following into a SQL query | What is the score of New York team before game 61? | SELECT Score FROM table WHERE Game < 61 AND Team = new york |
Translate the following into a SQL query | When David McNamara was the opponent in the final, what was the tier? | SELECT Tier FROM table WHERE Opponent in the final = david mcnamara |
Translate the following into a SQL query | In 2011, how many tourists visited the country that had 23.4 million tourists in 2012? | SELECT International tourist arrivals (2011) FROM table WHERE International tourist arrivals (2012) = 23.4 million |
Translate the following into a SQL query | How many tourists visited the country that had 2.5 million tourists in 2011? | SELECT International tourist arrivals (2012) FROM table WHERE International tourist arrivals (2011) = 2.5 million |
Translate the following into a SQL query | How far Venue of seoul, south korea is? | SELECT Distance FROM table WHERE Venue = seoul, south korea |
Translate the following into a SQL query | Which Venue has a Tournament of olympic games with a Result of 4th? | SELECT Venue FROM table WHERE Tournament = olympic games AND Result = 4th |
Translate the following into a SQL query | What is the Result of Venue of edmonton, canada? | SELECT Result FROM table WHERE Venue = edmonton, canada |
Translate the following into a SQL query | What is the 1st leg of Team 2 PSV Eindhoven? | SELECT 1st leg FROM table WHERE Team 2 = psv eindhoven |
Translate the following into a SQL query | Which opponent was played at Forbes Field after week 4? | SELECT Opponent FROM table WHERE Game Site = forbes field AND Week > 4 |
Translate the following into a SQL query | Which opponent was played on week 9? | SELECT Opponent FROM table WHERE Week = 9 |
Translate the following into a SQL query | What was the date of the game played at Fenway Park? | SELECT Date FROM table WHERE Game Site = fenway park |
Translate the following into a SQL query | Which Opponents have a Year of 1998β99, and a Team of aston villa? | SELECT Opponents FROM table WHERE Year = 1998β99 AND Team = aston villa |
Translate the following into a SQL query | Which Score has Opponents of valencia, and a Year of 2011β12? | SELECT Score FROM table WHERE Opponents = valencia AND Year = 2011β12 |
Translate the following into a SQL query | Which Opponents have a Team of arsenal, and a Year of 1963β64? | SELECT Opponents FROM table WHERE Team = arsenal AND Year = 1963β64 |
Translate the following into a SQL query | Which Opponents have a Year of 1999β2000, and a Team of leeds united? | SELECT Opponents FROM table WHERE Year = 1999β2000 AND Team = leeds united |
Translate the following into a SQL query | Which Opponents have a Score of 1β2, and a Team of arsenal, and Progress of first round? | SELECT Opponents FROM table WHERE Score = 1β2 AND Team = arsenal AND Progress = first round |
Translate the following into a SQL query | How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139? | SELECT COUNT Rank FROM table WHERE Name = simon ammann AND 2nd (m) > 139 |
Translate the following into a SQL query | How much Rank has Points larger than 282.5? | SELECT COUNT Rank FROM table WHERE Points > 282.5 |
Translate the following into a SQL query | Which Rank is the highest one that has Points smaller than 256.6? | SELECT MAX Rank FROM table WHERE Points < 256.6 |
Translate the following into a SQL query | Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3? | SELECT MAX 2nd (m) FROM table WHERE Nationality = sui AND Rank < 3 |
Translate the following into a SQL query | What is the UK broadcast date of the episode where Chris Bonington was the presenter? | SELECT UK Broadcast Date FROM table WHERE Presenter = chris bonington |
Translate the following into a SQL query | What is the episode title of the episode with Ben Okri as the presenter? | SELECT Episode Title FROM table WHERE Presenter = ben okri |
Translate the following into a SQL query | Who is the presenter of the episode broadcast in the UK on 1996-09-25? | SELECT Presenter FROM table WHERE UK Broadcast Date = 1996-09-25 |
Translate the following into a SQL query | What is the UK broadcast date of the episode with Ben Okri as the presenter? | SELECT UK Broadcast Date FROM table WHERE Presenter = ben okri |
Translate the following into a SQL query | What was the score when the team played at the bobcats? | SELECT Score FROM table WHERE Home = bobcats |
Translate the following into a SQL query | What was the score when the Spurs' record was 43-13? | SELECT Score FROM table WHERE Record = 43-13 |
Translate the following into a SQL query | What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv? | SELECT Country name FROM table WHERE Numeric code < 246 AND Latin 3-letter code = slv |
Translate the following into a SQL query | What is the Russian name with lbr as the Latin 3-letter code? | SELECT Russian name FROM table WHERE Latin 3-letter code = lbr |
Translate the following into a SQL query | What is the country name with a numeric code less than 580 and a dk Latin 2-letter code? | SELECT Country name FROM table WHERE Numeric code < 580 AND Latin 2-letter code = dk |
Translate the following into a SQL query | What is the Cyrillic code with a cu Latin 2-letter code? | SELECT Cyrillic code FROM table WHERE Latin 2-letter code = cu |
Translate the following into a SQL query | Name the least place for draw more than 3 and points of 8 | SELECT MIN Place FROM table WHERE Draw > 3 AND Points = 8 |
Translate the following into a SQL query | Name the song for points less than 16 and draw less than 3 | SELECT Song FROM table WHERE Points < 16 AND Draw < 3 |
Translate the following into a SQL query | what is the single of the queen | SELECT Single FROM table WHERE Artist = queen |
Translate the following into a SQL query | what artist won in 1953 | SELECT Artist FROM table WHERE Year = 1953 |
Translate the following into a SQL query | what year did david whitfield win | SELECT Year FROM table WHERE Artist = david whitfield |
Translate the following into a SQL query | What is the average rank of Roman Koudelka, who has less than 274.4 points? | SELECT AVG Rank FROM table WHERE Points < 274.4 AND Name = roman koudelka |
Translate the following into a SQL query | What is the lowest rank of the player from Aut with a 1st greater than 132? | SELECT MIN Rank FROM table WHERE Nationality = aut AND 1st (m) > 132 |
Translate the following into a SQL query | What is the overall WC points of the player from Pol? | SELECT Overall WC points (Rank) FROM table WHERE Nationality = pol |
Translate the following into a SQL query | What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132? | SELECT AVG Rank FROM table WHERE Name = gregor schlierenzauer AND 1st (m) > 132 |
Translate the following into a SQL query | What is the winners share ($) that has atlanta classic as the tournament? | SELECT Winner's share ( $ ) FROM table WHERE Tournament = atlanta classic |
Translate the following into a SQL query | What is the winners share ($) that has u.s. open as the tournament? | SELECT Winner's share ( $ ) FROM table WHERE Tournament = u.s. open |
Translate the following into a SQL query | How many points was before game 14? | SELECT SUM Points FROM table WHERE Game < 14 |
Translate the following into a SQL query | What is the average points on November 6? | SELECT AVG Points FROM table WHERE November = 6 |
Translate the following into a SQL query | Which average's against score has 2 as a difference and a lost of 5? | SELECT AVG Against FROM table WHERE Difference = 2 AND Lost = 5 |
Translate the following into a SQL query | How many positions had a difference of - 4 and an against of less than 24? | SELECT COUNT Position FROM table WHERE Difference = - 4 AND Against < 24 |
Translate the following into a SQL query | What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15? | SELECT MIN Lost FROM table WHERE Position > 6 AND Drawn = 7 AND Points < 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.