instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Outcome has a Score of 6β4, 2β6, 6β3? | SELECT Outcome FROM table WHERE Score = 6β4, 2β6, 6β3 |
Translate the following into a SQL query | Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8? | SELECT Nation FROM table WHERE Total < 63 AND Silver < 2 AND Bronze > 2 AND Rank = 8 |
Translate the following into a SQL query | How many golds have bronze values of 4 and silver values over 2? | SELECT COUNT Gold FROM table WHERE Bronze = 4 AND Silver > 2 |
Translate the following into a SQL query | What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3? | SELECT SUM Silver FROM table WHERE Bronze < 4 AND Rank = 3 AND Gold > 2 |
Translate the following into a SQL query | What is the sum of gold values that have bronze values over 0 and totals under 2? | SELECT SUM Gold FROM table WHERE Bronze > 0 AND Total < 2 |
Translate the following into a SQL query | What is the smallest gold value that has a total over 15 and bronze values under 31? | SELECT MIN Gold FROM table WHERE Total > 15 AND Bronze < 31 |
Translate the following into a SQL query | What is the Equatorial diameter of the Body: Mars? | SELECT Equatorial diameter FROM table WHERE Body = mars |
Translate the following into a SQL query | What is the Equatorial diameter of the Body: ceres? | SELECT Equatorial diameter FROM table WHERE Body = ceres |
Translate the following into a SQL query | What is the Flattening ratio associated with the Equatorial diameter of 49,528km? | SELECT Flattening ratio FROM table WHERE Equatorial diameter = 49,528km |
Translate the following into a SQL query | What is the Equatorial bulge of the Body: Earth? | SELECT Equatorial bulge FROM table WHERE Body = earth |
Translate the following into a SQL query | What is the Flattening ratio associated with the Equatorial diameter of 120,536km? | SELECT Flattening ratio FROM table WHERE Equatorial diameter = 120,536km |
Translate the following into a SQL query | What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km? | SELECT Flattening ratio FROM table WHERE Equatorial diameter = 12,756.28km |
Translate the following into a SQL query | What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts? | SELECT AVG Yards FROM table WHERE Average < 4 AND Long = 12 AND Attempts < 29 |
Translate the following into a SQL query | What is the least amount of yards when the average is less than 2.6? | SELECT MIN Yards FROM table WHERE Average < 2.6 |
Translate the following into a SQL query | What is the lease amount of touchdowns with 1318 yards? | SELECT MIN Touchdowns FROM table WHERE Yards = 1318 |
Translate the following into a SQL query | What is the number of touchdowns with the average is less than 2.6? | SELECT COUNT Touchdowns FROM table WHERE Average < 2.6 |
Translate the following into a SQL query | What is the total number for long when there are 19 attempts? | SELECT COUNT Long FROM table WHERE Attempts = 19 |
Translate the following into a SQL query | What was the margin of victory for Olazabal in the German Masters? | SELECT Margin of victory FROM table WHERE Tournament = german masters |
Translate the following into a SQL query | What was Olazabal's winning score in the event in which Phillip Price finished 2nd? | SELECT Winning score FROM table WHERE Runner(s)-up = phillip price |
Translate the following into a SQL query | What was Olazabal's winning score in the German Masters? | SELECT Winning score FROM table WHERE Tournament = german masters |
Translate the following into a SQL query | What was Olazabal's margin of victory int he Ebel European Masters Swiss Open? | SELECT Margin of victory FROM table WHERE Tournament = ebel european masters swiss open |
Translate the following into a SQL query | Which Series Ep has a Netflix of s08e18? | SELECT Series Ep. FROM table WHERE Netflix = s08e18 |
Translate the following into a SQL query | Which Segment B has a Segment D of stone wool insulation? | SELECT Segment B FROM table WHERE Segment D = stone wool insulation |
Translate the following into a SQL query | Which Segment A has a Segment C of poster restoration? | SELECT Segment A FROM table WHERE Segment C = poster restoration |
Translate the following into a SQL query | Which Segment C has a Segment B of fish food? | SELECT Segment C FROM table WHERE Segment B = fish food |
Translate the following into a SQL query | Which Segment C has a Netflix of s08e16? | SELECT Segment C FROM table WHERE Netflix = s08e16 |
Translate the following into a SQL query | What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2? | SELECT Competition FROM table WHERE Opponent = peterborough phantoms AND Date = 2 |
Translate the following into a SQL query | What is the Tally in Kerry County? | SELECT Tally FROM table WHERE County = kerry |
Translate the following into a SQL query | With a Total of less than 29, what is Ian Ryan's most Matches? | SELECT MAX Matches FROM table WHERE Player = ian ryan AND Total < 29 |
Translate the following into a SQL query | Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0? | SELECT LEMA/SUBLEMA FROM table WHERE Votes < 218656 AND Ch. of Deputies = 0 |
Translate the following into a SQL query | Which LEMA/SUBLEMA has a Ch of Senators of 2? | SELECT LEMA/SUBLEMA FROM table WHERE Ch. of Senators = 2 |
Translate the following into a SQL query | Which Ch of Senators has a LEMA/SUBLEMA of lema? | SELECT Ch. of Senators FROM table WHERE LEMA/SUBLEMA = lema |
Translate the following into a SQL query | what tornament had the scores 6β7, 6β2, 6β4? | SELECT Tournament FROM table WHERE Score in the final = 6β7, 6β2, 6β4 |
Translate the following into a SQL query | what partner made the scores 6β4, 6β1? | SELECT Partner FROM table WHERE Score in the final = 6β4, 6β1 |
Translate the following into a SQL query | What year had 6.62 m in the notes? | SELECT Year FROM table WHERE Notes = 6.62 m |
Translate the following into a SQL query | Which competition in Budapest, Hungary gave a result of 8th? | SELECT Competition FROM table WHERE Position = 8th AND Venue = budapest, hungary |
Translate the following into a SQL query | Which year did the World indoor championships gave a position of 3rd? | SELECT SUM Year FROM table WHERE Competition = world indoor championships AND Position = 3rd |
Translate the following into a SQL query | What were the notes in Toronto, Canada? | SELECT Notes FROM table WHERE Venue = toronto, canada |
Translate the following into a SQL query | Name the most points for class of 125cc and team of mv agusta with year more than 1957 | SELECT MAX Points FROM table WHERE Class = 125cc AND Team = mv agusta AND Year > 1957 |
Translate the following into a SQL query | Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy? | SELECT ZX Spectrum FROM table WHERE Year > 1984 AND Genre = arcade/strategy |
Translate the following into a SQL query | How many years have a Title of kriegspiel? | SELECT COUNT Year FROM table WHERE Title = kriegspiel |
Translate the following into a SQL query | Which ZX Spectrum has a C=64 of c64, and a Title of ankh? | SELECT ZX Spectrum FROM table WHERE C=64 = c64 AND Title = ankh |
Translate the following into a SQL query | Which Title has Others of amstrad cpc, and a Genre of arcade? | SELECT Title FROM table WHERE Others = amstrad cpc AND Genre = arcade |
Translate the following into a SQL query | What was the result when the attendance was 12,000? | SELECT Result FROM table WHERE Attendance = 12,000 |
Translate the following into a SQL query | What was the attendance for weeks prior to 5 when there was no game scheduled? | SELECT Attendance FROM table WHERE Week < 5 AND Date = no game scheduled |
Translate the following into a SQL query | What was the attendance number for the venue of Lakeside Park? | SELECT Attendance FROM table WHERE Venue = lakeside park |
Translate the following into a SQL query | What is the largest week number for the venue of League Park for the date of November 25, 1920? | SELECT MAX Week FROM table WHERE Venue = league park AND Date = november 25, 1920 |
Translate the following into a SQL query | What is Michael's surname? | SELECT Surname FROM table WHERE First = michael |
Translate the following into a SQL query | Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977? | SELECT First FROM table WHERE Bats = r AND Throws = l AND D.O.B. = 12 october 1977 |
Translate the following into a SQL query | When was Maat born? | SELECT D.O.B. FROM table WHERE Surname = maat |
Translate the following into a SQL query | How many bats does Todd have? | SELECT Bats FROM table WHERE First = todd |
Translate the following into a SQL query | Which Position has a DOB of 13 may 1987? | SELECT Position FROM table WHERE D.O.B. = 13 may 1987 |
Translate the following into a SQL query | Which Bats have Throws of r, and a DOB of 22 may 1973? | SELECT Bats FROM table WHERE Throws = r AND D.O.B. = 22 may 1973 |
Translate the following into a SQL query | Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152? | SELECT Croatia FROM table WHERE Friendly = world cup 2006 qualifier AND 149. = 152 |
Translate the following into a SQL query | For which production company did Sam Mccarthy produce? | SELECT Production Company FROM table WHERE Producer(s) = sam mccarthy |
Translate the following into a SQL query | Who was the director that worked with Dana Dorian as the writer? | SELECT Director(s) FROM table WHERE Writer(s) = dana dorian |
Translate the following into a SQL query | Which film, directed by Dana Dorian, was nominated? | SELECT Film FROM table WHERE Rank = nominated AND Director(s) = dana dorian |
Translate the following into a SQL query | What is the sum for December against the vancouver canucks earlier than game 33? | SELECT SUM December FROM table WHERE Opponent = vancouver canucks AND Game < 33 |
Translate the following into a SQL query | What is the sum for December when the record was 22-12-5? | SELECT SUM December FROM table WHERE Record = 22-12-5 |
Translate the following into a SQL query | When is the earliest year associated with team norton and 0 wins? | SELECT MIN Year FROM table WHERE Team = norton AND Wins < 0 |
Translate the following into a SQL query | What is the year that there were 0 wins, team AJS, and under 12 points? | SELECT COUNT Year FROM table WHERE Wins = 0 AND Team = ajs AND Points < 12 |
Translate the following into a SQL query | What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical? | SELECT AVG Year FROM table WHERE Award Ceremony = drama desk award AND Category = outstanding featured actress in a musical |
Translate the following into a SQL query | What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751? | SELECT AVG Loss FROM table WHERE Long > 12 AND Name = opponents AND Gain > 1751 |
Translate the following into a SQL query | Who was the winner/2nd place finisher in the Caulfield Guineas? | SELECT Winner/2nd FROM table WHERE Race = caulfield guineas |
Translate the following into a SQL query | Which jockey had a group of G3? | SELECT Jockey FROM table WHERE Group = g3 |
Translate the following into a SQL query | What was the time for the G2 group at the Hobartville Stakes? | SELECT Time FROM table WHERE Group = g2 AND Race = hobartville stakes |
Translate the following into a SQL query | Which airport has perth as the city? | SELECT Airport FROM table WHERE City = perth |
Translate the following into a SQL query | Which city has tasmania as the state/territory and a ICAO of ymhb? | SELECT City FROM table WHERE State/Territory = tasmania AND ICAO = ymhb |
Translate the following into a SQL query | Which airport has an ICAO of ybcg? | SELECT Airport FROM table WHERE ICAO = ybcg |
Translate the following into a SQL query | What is the IATA that has new south wales as the state/territory beginning on july 2009? | SELECT IATA FROM table WHERE State/Territory = new south wales AND Begin = july 2009 |
Translate the following into a SQL query | What IATA has queensland as the state/territory and an ICAO of ybrk? | SELECT IATA FROM table WHERE State/Territory = queensland AND ICAO = ybrk |
Translate the following into a SQL query | What begin has victoria as the state/territory and a ICA0 of ymml? | SELECT Begin FROM table WHERE State/Territory = victoria AND ICAO = ymml |
Translate the following into a SQL query | Who was the visitor on March 27? | SELECT Visitor FROM table WHERE Date = march 27 |
Translate the following into a SQL query | What was the record on March 14? | SELECT Record FROM table WHERE Date = march 14 |
Translate the following into a SQL query | What format is at frequency 99.5 FM? | SELECT Format FROM table WHERE Frequency = 99.5 fm |
Translate the following into a SQL query | What format has the call sign DZFE? | SELECT Format FROM table WHERE Call Sign = dzfe |
Translate the following into a SQL query | What covered location has a frequency of 90.7 FM | SELECT Covered Location FROM table WHERE Frequency = 90.7 fm |
Translate the following into a SQL query | What is the frequency of 104.3 business radio? | SELECT Frequency FROM table WHERE Name = 104.3 business radio |
Translate the following into a SQL query | What name has the call sign DWYS? | SELECT Name FROM table WHERE Call Sign = dwys |
Translate the following into a SQL query | Who has a DCSF number of 3373? | SELECT Name FROM table WHERE DCSF number = 3373 |
Translate the following into a SQL query | What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335? | SELECT AVG Intake FROM table WHERE Type = primary AND Ofsted number = 117433 AND DCSF number > 3335 |
Translate the following into a SQL query | What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349? | SELECT MIN Ofsted number FROM table WHERE Type = primary AND Faith = ce AND Intake = 30 AND DCSF number < 3349 |
Translate the following into a SQL query | Can you tell me the Opponent that has the Result of w 37-14? | SELECT Opponent FROM table WHERE Result = w 37-14 |
Translate the following into a SQL query | Can you tell me the Opponent that has the Date of october 11, 1953? | SELECT Opponent FROM table WHERE Date = october 11, 1953 |
Translate the following into a SQL query | What year was the West Coast League established than the championships are greater than 0? | SELECT Established FROM table WHERE Championships > 0 AND League = west coast league |
Translate the following into a SQL query | During the Apple Bowl having 0 championships, what was the established year? | SELECT MAX Established FROM table WHERE Championships = 0 AND Venue = apple bowl |
Translate the following into a SQL query | What sport happened at Wildcat Stadium? | SELECT Sport FROM table WHERE Venue = wildcat stadium |
Translate the following into a SQL query | How many championships does Evergreen Premier League have? | SELECT MAX Championships FROM table WHERE League = evergreen premier league |
Translate the following into a SQL query | Which Position has a Round larger than 10, and a Name of shawn mccarthy? | SELECT Position FROM table WHERE Round > 10 AND Name = shawn mccarthy |
Translate the following into a SQL query | How many Pick #s have a Name of tory epps, and a Round larger than 8? | SELECT COUNT Pick # FROM table WHERE Name = tory epps AND Round > 8 |
Translate the following into a SQL query | Which team was the visitor with a record of 5-2-0? | SELECT Visitor FROM table WHERE Record = 5-2-0 |
Translate the following into a SQL query | What is the score for the November 3 game? | SELECT Score FROM table WHERE Date = november 3 |
Translate the following into a SQL query | What percent of others did ogm/news count when MARTIN had 9%? | SELECT Others FROM table WHERE MARTIN = 9% AND Source = ogm/news |
Translate the following into a SQL query | What is the Undecided the others was 4%? | SELECT Undecided FROM table WHERE Others = 4% |
Translate the following into a SQL query | What is the Undecided on 2009-05-24? | SELECT Undecided FROM table WHERE Date = 2009-05-24 |
Translate the following into a SQL query | What is the Date that has MARTIN of 7β9% and no Undecided? | SELECT Date FROM table WHERE Undecided = β AND MARTIN = 7β9% |
Translate the following into a SQL query | What is the Date when MARTIN had 8%? | SELECT Date FROM table WHERE MARTIN = 8% |
Translate the following into a SQL query | Which Attendance has a Game smaller than 3, and a Date of october 31? | SELECT COUNT Attendance FROM table WHERE Game < 3 AND Date = october 31 |
Translate the following into a SQL query | What is rank of player Charles Eady and a Bowling of 12/63? | SELECT Rank FROM table WHERE Player = charles eady AND Bowling = 12/63 |
Translate the following into a SQL query | Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner? | SELECT Opponent FROM table WHERE Surface = hard AND Outcome = winner AND Partnering = jordan kerr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.