instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23? | SELECT Time FROM table WHERE Manufacturer = yamaha AND Grid < 8 AND Laps < 23 |
Translate the following into a SQL query | What is the fewest amount of laps when the grid was larger than 1 and 42:31.153? | SELECT MIN Laps FROM table WHERE Time = 42:31.153 AND Grid > 1 |
Translate the following into a SQL query | How long did it take to ride when the laps were 23 and the grid of 13? | SELECT Time FROM table WHERE Laps = 23 AND Grid = 13 |
Translate the following into a SQL query | What was the result for the 71,164 in attendance? | SELECT Result FROM table WHERE Attendance > 71,164 |
Translate the following into a SQL query | Which rank is above floor 47? | SELECT Rank FROM table WHERE Floors > 47 |
Translate the following into a SQL query | What class is the RML Team? | SELECT Class FROM table WHERE Team = rml |
Translate the following into a SQL query | Which Result has a Home team of portland, and a Date of may 31? | SELECT Result FROM table WHERE Home team = portland AND Date = may 31 |
Translate the following into a SQL query | Which Date has a Road team of portland, and a Game of game 5? | SELECT Date FROM table WHERE Road team = portland AND Game = game 5 |
Translate the following into a SQL query | Which Home team has a Road team of portland, and a Result of 104–110? | SELECT Home team FROM table WHERE Road team = portland AND Result = 104–110 |
Translate the following into a SQL query | Which Home team has a Game of game 5? | SELECT Home team FROM table WHERE Game = game 5 |
Translate the following into a SQL query | Which Date has a Home team of philadelphia, and a Result of 104–110? | SELECT Date FROM table WHERE Home team = philadelphia AND Result = 104–110 |
Translate the following into a SQL query | Which Road team has a Home team of portland, and a Date of may 31? | SELECT Road team FROM table WHERE Home team = portland AND Date = may 31 |
Translate the following into a SQL query | Which Tongan has a North Marquesan of /haʔe/? | SELECT Tongan FROM table WHERE North Marquesan = /haʔe/ |
Translate the following into a SQL query | What kind of North Marquesan has a Takuu of /ɾani/? | SELECT North Marquesan FROM table WHERE Takuu = /ɾani/ |
Translate the following into a SQL query | What kind of Takuu has a North Marquesan of /vehine/? | SELECT Takuu FROM table WHERE North Marquesan = /vehine/ |
Translate the following into a SQL query | What kind of Rarotongan has a Tahitian of /metua/? | SELECT Rarotongan FROM table WHERE Tahitian = /metua/ |
Translate the following into a SQL query | What kind of Tongan has a North Marquesan of /haʔe/? | SELECT Tongan FROM table WHERE North Marquesan = /haʔe/ |
Translate the following into a SQL query | What kind of South Marquesan has a Sāmoan of /matua/? | SELECT South Marquesan FROM table WHERE Sāmoan = /matua/ |
Translate the following into a SQL query | What is the maximum Col (m) when 3,046 is the Prominence (m)? | SELECT MAX Col (m) FROM table WHERE Prominence (m) = 3,046 |
Translate the following into a SQL query | What is the total Col (m) when the Prominence (m) is less than 4,884, and India / Burma is the location? | SELECT SUM Col (m) FROM table WHERE Prominence (m) < 4,884 AND Location = india / burma |
Translate the following into a SQL query | Where is the peak Pico Basilé located? | SELECT Location FROM table WHERE Peak = pico basilé |
Translate the following into a SQL query | what is the norwegian krag-Jørgensen M189 when the Japanese Type 38 Rifle is 5? | SELECT Norwegian Krag-Jørgensen M1894 FROM table WHERE Japanese Type 38 Rifle = 5 |
Translate the following into a SQL query | What is the German Gewehr 98 when the Danish Krag-Jørgensen 1889 is 4.28kg? | SELECT German Gewehr 98 FROM table WHERE Danish Krag-Jørgensen 1889 = 4.28kg |
Translate the following into a SQL query | What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5? | SELECT British Lee-Enfield (data for late model) FROM table WHERE Japanese Type 38 Rifle = 5 |
Translate the following into a SQL query | What is the Rifle when the German Gewehr 98 is 74cm? | SELECT Rifle FROM table WHERE German Gewehr 98 = 74cm |
Translate the following into a SQL query | What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm? | SELECT US Krag-Jørgensen M1892 FROM table WHERE Norwegian Krag-Jørgensen M1894 = 126.8cm |
Translate the following into a SQL query | What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5? | SELECT British Lee-Enfield (data for late model) FROM table WHERE Japanese Type 38 Rifle = 5 |
Translate the following into a SQL query | What team has a national league in 2001? | SELECT Team FROM table WHERE League = national AND Year = 2001 |
Translate the following into a SQL query | What is the league of the third baseman player before 1973? | SELECT League FROM table WHERE Year < 1973 AND Position = third baseman |
Translate the following into a SQL query | What is Original Title, when Film Title Used In Nomination is "Monga"? | SELECT Original title FROM table WHERE Film title used in nomination = monga |
Translate the following into a SQL query | What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"? | SELECT Result FROM table WHERE Original title = tiānmǎ cháfáng (天馬茶房) |
Translate the following into a SQL query | What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)" | SELECT Film title used in nomination FROM table WHERE Original title = báng-kah (艋舺) |
Translate the following into a SQL query | What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"? | SELECT Original title FROM table WHERE Director = ting shan-si AND Film title used in nomination = the 800 heroes |
Translate the following into a SQL query | What is Year (Ceremony), when Director is "Wang Siu-Di"? | SELECT Year (Ceremony) FROM table WHERE Director = wang siu-di |
Translate the following into a SQL query | What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"? | SELECT Result FROM table WHERE Film title used in nomination = kuei-mei, a woman |
Translate the following into a SQL query | What was the issued serial for yellow on blue design issued in 1955? | SELECT Serials issued FROM table WHERE Design = yellow on blue AND Issued = 1955 |
Translate the following into a SQL query | What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99? | SELECT Serial format FROM table WHERE Design = white on blue AND Serials issued = ss-00-00 to zz-99-99 |
Translate the following into a SQL query | What is the issued serial given in 1966? | SELECT Serials issued FROM table WHERE Issued = 1966 |
Translate the following into a SQL query | What serial format was issued in 1972? | SELECT Serial format FROM table WHERE Issued = 1972 |
Translate the following into a SQL query | What type was issued in 1964? | SELECT Type FROM table WHERE Issued = 1964 |
Translate the following into a SQL query | At which tournament does Milan play against Hungary's league selection? | SELECT Tournament FROM table WHERE Opponent team = hungary's league selection |
Translate the following into a SQL query | What was the final score on 1 August 2008? | SELECT Score FROM table WHERE Date = 1 august 2008 |
Translate the following into a SQL query | Where did Milan play against Napoli? | SELECT Location FROM table WHERE Opponent team = napoli |
Translate the following into a SQL query | WHAT WEEK HAS A TV TIME OF BYE? | SELECT Week FROM table WHERE TV Time = bye |
Translate the following into a SQL query | WHAT WAS THE ATTENDANCE FOR WEEK 15? | SELECT Attendance FROM table WHERE Week = 15 |
Translate the following into a SQL query | WHAT WAS THE RESULT FOR NOVEMBER 29, 2001? | SELECT Result FROM table WHERE Date = november 29, 2001 |
Translate the following into a SQL query | In what year was the bridge in Clarkdale built? | SELECT Built FROM table WHERE Location = clarkdale |
Translate the following into a SQL query | In what year was the Gila Bend Overpass built? | SELECT Built FROM table WHERE Name = gila bend overpass |
Translate the following into a SQL query | In what county is the Canyon Padre Bridge? | SELECT County FROM table WHERE Name = canyon padre bridge |
Translate the following into a SQL query | Who won the ABA Championship in 1971? | SELECT MIN Championships FROM table WHERE Years won = 1971 |
Translate the following into a SQL query | What was the average amount of losses for teams with played less than 14? | SELECT AVG Lost FROM table WHERE Played < 14 |
Translate the following into a SQL query | What was the total number of games played by se freising when their points were larger than 13? | SELECT COUNT Played FROM table WHERE Name = se freising AND Points > 13 |
Translate the following into a SQL query | What was the average losses for team with points larger than 3 and played larger thna 14? | SELECT AVG Lost FROM table WHERE Points > 3 AND Played > 14 |
Translate the following into a SQL query | How many losses did ev bruckberg have when the drawn was more than 1? | SELECT SUM Lost FROM table WHERE Name = ev bruckberg AND Drawn > 1 |
Translate the following into a SQL query | What is the poll source when Jeff Sessions is at 58% and the date administered is July 31, 2008? | SELECT Poll Source FROM table WHERE Republican: Jeff Sessions = 58% AND Dates administered = july 31, 2008 |
Translate the following into a SQL query | What was the date administered from a source of Rasmussen Reports and a lead margin over 32? | SELECT Dates administered FROM table WHERE Poll Source = rasmussen reports AND Lead Margin > 32 |
Translate the following into a SQL query | What is the date administered when Vivian Davis Figures was at 37%? | SELECT Dates administered FROM table WHERE Democrat: Vivian Davis Figures = 37% |
Translate the following into a SQL query | What is the date administered when Vivian Davis Figures was at 36%? | SELECT Dates administered FROM table WHERE Democrat: Vivian Davis Figures = 36% |
Translate the following into a SQL query | What is the poll source for Vivian Davis Figures at 29% and a lead margin greater than 27? | SELECT Poll Source FROM table WHERE Lead Margin > 27 AND Democrat: Vivian Davis Figures = 29% |
Translate the following into a SQL query | What is the Score of the Chicago Black Hawks Home game on March 28? | SELECT Score FROM table WHERE Home = chicago black hawks AND Date = march 28 |
Translate the following into a SQL query | What is the Visitor of the game on April 2? | SELECT Visitor FROM table WHERE Date = april 2 |
Translate the following into a SQL query | What is the Home team on April 4? | SELECT Home FROM table WHERE Date = april 4 |
Translate the following into a SQL query | What is the Visitor on March 31? | SELECT Visitor FROM table WHERE Date = march 31 |
Translate the following into a SQL query | What is the Home team on April 2? | SELECT Home FROM table WHERE Date = april 2 |
Translate the following into a SQL query | What is the Date of the game with a Record of 2-3? | SELECT Date FROM table WHERE Record = 2-3 |
Translate the following into a SQL query | What year did Freddie Frith win the 350cc and Enrico Lorenzetti win the 500cc? | SELECT Year FROM table WHERE 350 cc = freddie frith AND 500 cc = enrico lorenzetti |
Translate the following into a SQL query | What track was used in 1926? | SELECT Track FROM table WHERE Year = 1926 |
Translate the following into a SQL query | Who won the 250cc in 1927? | SELECT 250 cc FROM table WHERE Year = 1927 |
Translate the following into a SQL query | What grand prix was held at Granollers? | SELECT Designated Grand Prix FROM table WHERE Track = granollers |
Translate the following into a SQL query | Who won the 350cc at Sachsenring? | SELECT 350 cc FROM table WHERE Track = sachsenring |
Translate the following into a SQL query | Which fleet numbers has quanitity of 13? | SELECT Fleet number(s) FROM table WHERE Quantity made = 13 |
Translate the following into a SQL query | Which wheel arrangement made in year 1900? | SELECT Wheel arrangement FROM table WHERE Year made = 1900 |
Translate the following into a SQL query | Which fleet numbers has quantity of 1? | SELECT Fleet number(s) FROM table WHERE Quantity made = 1 |
Translate the following into a SQL query | what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman? | SELECT Score FROM table WHERE Partner = florencia labat AND Surface = clay AND Opponents = laura golarsa ann grossman |
Translate the following into a SQL query | who is the opponents when the surface is clay and the date is 12 july 1992? | SELECT Opponents FROM table WHERE Surface = clay AND Date = 12 july 1992 |
Translate the following into a SQL query | what is the tournament when the outcome is winner and the opponents is kerry-anne guse corina morariu? | SELECT Tournament FROM table WHERE Outcome = winner AND Opponents = kerry-anne guse corina morariu |
Translate the following into a SQL query | what is the score when the partner is alexandra fusai? | SELECT Score FROM table WHERE Partner = alexandra fusai |
Translate the following into a SQL query | what is the surface when the opponents are louise field nathalie herreman? | SELECT Surface FROM table WHERE Opponents = louise field nathalie herreman |
Translate the following into a SQL query | what is the score when the surface is clay and the tournament is san marino? | SELECT Score FROM table WHERE Surface = clay AND Tournament = san marino |
Translate the following into a SQL query | If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria? | SELECT AVG Grid FROM table WHERE Laps < 32 AND Manufacturer = yamaha |
Translate the following into a SQL query | What's the smallest amount of laps that suzuki ran with a grid value of 8? | SELECT MIN Laps FROM table WHERE Manufacturer = suzuki AND Grid = 8 |
Translate the following into a SQL query | Who were the opponents when the score of the game was 101-105 and the H/A/N was H? | SELECT Opponent FROM table WHERE H/A/N = h AND Score = 101-105 |
Translate the following into a SQL query | What was the date of the game against the Baltimore Bullets when the H/A/N was H? | SELECT Date FROM table WHERE Opponent = baltimore bullets AND H/A/N = h |
Translate the following into a SQL query | What is the score of the game against the baltimore bullets on March 14? | SELECT Score FROM table WHERE Opponent = baltimore bullets AND Date = march 14 |
Translate the following into a SQL query | Who were the opponents when the score was 122-135 and the H/A/N was H? | SELECT Opponent FROM table WHERE H/A/N = h AND Score = 122-135 |
Translate the following into a SQL query | What is the score of the game where the record was 22-55? | SELECT Score FROM table WHERE Record = 22-55 |
Translate the following into a SQL query | What is the average games that were drawn with ERSC Amberg as name and less than 14 points? | SELECT AVG Drawn FROM table WHERE Name = ersc amberg AND Points < 14 |
Translate the following into a SQL query | What is the total position with a drawn of 0 and greater than 22 points and a greater than 14 played? | SELECT COUNT Position FROM table WHERE Drawn = 0 AND Points > 22 AND Played > 14 |
Translate the following into a SQL query | Which Issue date(s) has a Weeks at number one of 5, and a Volume:Issue of 61:17-21? | SELECT Issue date(s) FROM table WHERE Weeks at number one = 5 AND Volume:Issue = 61:17-21 |
Translate the following into a SQL query | Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may? | SELECT Song FROM table WHERE Weeks at number one > 2 AND Issue date(s) = 17 april - 8 may |
Translate the following into a SQL query | Which Weeks at number one has a Volume:Issue of 61:22-23? | SELECT MAX Weeks at number one FROM table WHERE Volume:Issue = 61:22-23 |
Translate the following into a SQL query | Which Song has an Issue date(s) of 29 may - 26 june? | SELECT Song FROM table WHERE Issue date(s) = 29 may - 26 june |
Translate the following into a SQL query | what is the report when the home team is new zealand breakers? | SELECT Report FROM table WHERE Home team = new zealand breakers |
Translate the following into a SQL query | what is the score when the home team is cairns taipans? | SELECT Score FROM table WHERE Home team = cairns taipans |
Translate the following into a SQL query | Who is the away team when the venue is cairns convention centre? | SELECT Away team FROM table WHERE Venue = cairns convention centre |
Translate the following into a SQL query | who is the away team when the home team is sydney spirit? | SELECT Away team FROM table WHERE Home team = sydney spirit |
Translate the following into a SQL query | what is the box score when the home team is melbourne tigers? | SELECT Box Score FROM table WHERE Home team = melbourne tigers |
Translate the following into a SQL query | who is the away team on 21 september? | SELECT Away team FROM table WHERE Date = 21 september |
Translate the following into a SQL query | When Ernie Els placed t2, what was his To par? | SELECT To par FROM table WHERE Place = t2 AND Player = ernie els |
Translate the following into a SQL query | Where did Jay Haas place? | SELECT Place FROM table WHERE Player = jay haas |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.