instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2? | SELECT COUNT Total FROM table WHERE Host city = mexico city AND Gold < 4 AND Bronze < 2 |
Translate the following into a SQL query | Which Host City has more than 6 Silver and a Total of 22? | SELECT Host city FROM table WHERE Silver > 6 AND Total = 22 |
Translate the following into a SQL query | What was the time for tracks before 19 on 8/26/69? | SELECT Time FROM table WHERE Release Date = 8/26/69 AND Track < 19 |
Translate the following into a SQL query | Which venue has a note of AM? | SELECT Venue FROM table WHERE Notes = am |
Translate the following into a SQL query | What is the time associated with August 16, 2008? | SELECT Time FROM table WHERE Date = august 16, 2008 |
Translate the following into a SQL query | Which event was held in Beijing? | SELECT Event FROM table WHERE Venue = beijing |
Translate the following into a SQL query | For a venue of Rome on July 30, 2009, what are the notes? | SELECT Notes FROM table WHERE Venue = rome AND Date = july 30, 2009 |
Translate the following into a SQL query | Name the score for october 9 | SELECT Score FROM table WHERE Date = october 9 |
Translate the following into a SQL query | Name the loss for series 2-2 | SELECT Loss FROM table WHERE Series = 2-2 |
Translate the following into a SQL query | Name the total number of attendance for october 8 | SELECT COUNT Attendance FROM table WHERE Date = october 8 |
Translate the following into a SQL query | Which engine did Élie Bayol use when they earned 0 points? | SELECT Engine FROM table WHERE Points = 0 AND Entrant = élie bayol |
Translate the following into a SQL query | What season had the highest attendance/g than 3,289? | SELECT MAX Season FROM table WHERE Attendance/G < 3,289 |
Translate the following into a SQL query | What year had 13 points? | SELECT Year FROM table WHERE Pts. = 13 |
Translate the following into a SQL query | Which chassis has a year later than 1964, a Ford engine, and 13 points? | SELECT Chassis FROM table WHERE Year > 1964 AND Engine = ford AND Pts. = 13 |
Translate the following into a SQL query | Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis? | SELECT Entrant FROM table WHERE Pts. < 12 AND Engine = climax AND Chassis = lotus 24 |
Translate the following into a SQL query | In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees? | SELECT MAX Pts. FROM table WHERE Engine = ford AND Entrant = brooke bond oxo team surtees AND Year = 1972 |
Translate the following into a SQL query | What year had a Ford engine and 13 points? | SELECT Year FROM table WHERE Engine = ford AND Pts. = 13 |
Translate the following into a SQL query | What is the ERP for the Rockhampton region? | SELECT ERP (Analog/ Digital) FROM table WHERE Region served = rockhampton |
Translate the following into a SQL query | What channels first aired on 31 December 1990 in the Southern Downs region? | SELECT Channels ( Analog / Digital ) FROM table WHERE First air date = 31 december 1990 AND Region served = southern downs |
Translate the following into a SQL query | What is the transmitter location for city of Maryborough? | SELECT Transmitter Location FROM table WHERE City = maryborough |
Translate the following into a SQL query | What is the ERP for the Mount Goonaneman transmitter? | SELECT ERP (Analog/ Digital) FROM table WHERE Transmitter Location = mount goonaneman |
Translate the following into a SQL query | Which number has 11 males? | SELECT Number FROM table WHERE males = 11 |
Translate the following into a SQL query | What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar? | SELECT Time FROM table WHERE Lane < 6 AND Heat < 4 AND Name = joanne malar |
Translate the following into a SQL query | What is the largest heat with a time of 4:57.90, and a Rank larger than 22? | SELECT MAX Heat FROM table WHERE Time = 4:57.90 AND Rank > 22 |
Translate the following into a SQL query | What is the time for Adi Bichman? | SELECT Time FROM table WHERE Name = adi bichman |
Translate the following into a SQL query | What is the total attendance at games against the New York Mets with a record of 18-18? | SELECT COUNT Attendance FROM table WHERE Opponent = new york mets AND Record = 18-18 |
Translate the following into a SQL query | What is the total attendance at games with a score of 4-2? | SELECT COUNT Attendance FROM table WHERE Score = 4-2 |
Translate the following into a SQL query | On what date did the New York Giants host a game? | SELECT Date FROM table WHERE Host Team = new york giants |
Translate the following into a SQL query | Who was the host team for the game on December 27? | SELECT Host Team FROM table WHERE Date = december 27 |
Translate the following into a SQL query | What was the final score of the game at Texas Stadium? | SELECT Final Score FROM table WHERE Stadium = texas stadium |
Translate the following into a SQL query | Who was the visiting team who played at the hubert h. humphrey metrodome stadium? | SELECT Visiting Team FROM table WHERE Stadium = hubert h. humphrey metrodome |
Translate the following into a SQL query | When did the New England Patriots play as the visiting team? | SELECT Date FROM table WHERE Visiting Team = new england patriots |
Translate the following into a SQL query | At which stadium did the Los Angeles Raiders play as the visiting team? | SELECT Stadium FROM table WHERE Visiting Team = los angeles raiders |
Translate the following into a SQL query | Who is 1.92 m tall and a current club member of Montepaschi Siena | SELECT Player FROM table WHERE Height = 1.92 AND Current Club = montepaschi siena |
Translate the following into a SQL query | Which date has a Tournament of la quinta? | SELECT Date FROM table WHERE Tournament = la quinta |
Translate the following into a SQL query | Which date has a Surface of carpet (i)? | SELECT Date FROM table WHERE Surface = carpet (i) |
Translate the following into a SQL query | Which tournament has a Date of april 20, 1987? | SELECT Tournament FROM table WHERE Date = april 20, 1987 |
Translate the following into a SQL query | Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu? | SELECT Opponent FROM table WHERE Surface = hardcourt AND Outcome = runner-up AND Tournament = honolulu |
Translate the following into a SQL query | Which Tournament has a Score of 6–4, 6–4? | SELECT Tournament FROM table WHERE Score = 6–4, 6–4 |
Translate the following into a SQL query | Which score has a Surface of hardcourt, and a Date of september 30, 1984? | SELECT Score FROM table WHERE Surface = hardcourt AND Date = september 30, 1984 |
Translate the following into a SQL query | What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001? | SELECT MIN Group FROM table WHERE Fraction < 0.000748 AND Half-Life (s) = 55.72 AND Decay Constant (s −1 ) > 0.012400000000000001 |
Translate the following into a SQL query | What is the lowest Half-Life with a Yield, Neutrons per Fission greater than 0.0054600000000000004 and a Fraction less than 0.002568? | SELECT MIN Half-Life (s) FROM table WHERE Yield, Neutrons per Fission > 0.0054600000000000004 AND Fraction < 0.002568 |
Translate the following into a SQL query | What was the date of the game with a loss of Wakefield (5-2)? | SELECT Date FROM table WHERE Loss = wakefield (5-2) |
Translate the following into a SQL query | What is the first year of the European Championships competition? | SELECT MIN Year FROM table WHERE Competition = european championships |
Translate the following into a SQL query | Which position has a venue of Helsinki, Finland? | SELECT Position FROM table WHERE Venue = helsinki, finland |
Translate the following into a SQL query | What is the date that a hell ship sunk in the East China Sea? | SELECT Date FROM table WHERE Where sunk = east china sea AND Ship type = hell ship |
Translate the following into a SQL query | Which nation had a battlecruiser with an estimate of 513? | SELECT Nat. FROM table WHERE Ship type = battlecruiser AND Estimate = 513 |
Translate the following into a SQL query | What is the date that a ship sank in the South Atlantic? | SELECT Date FROM table WHERE Where sunk = south atlantic |
Translate the following into a SQL query | What type of ship was the Shinano? | SELECT Ship type FROM table WHERE Name = shinano |
Translate the following into a SQL query | What nation had a ship named Roma? | SELECT Nat. FROM table WHERE Name = roma |
Translate the following into a SQL query | What was score of the Blue Jays' game versus the Indians when their record was 21-19? | SELECT Score FROM table WHERE Opponent = indians AND Record = 21-19 |
Translate the following into a SQL query | What city has a team in south division with a home arena with a greater capacity than 6,900 and named cloetta center? | SELECT City FROM table WHERE Capacity > 6,900 AND Division = south AND Home arena * = cloetta center |
Translate the following into a SQL query | During what years did the tallest building, located at 211 Union Street, have less than 31 floors? | SELECT Years as tallest FROM table WHERE Floors < 31 AND Street Address = 211 union street |
Translate the following into a SQL query | What is the average number of floors at 170 Fourth Avenue North? | SELECT AVG Floors FROM table WHERE Street Address = 170 fourth avenue north |
Translate the following into a SQL query | What is the address of the Life & Casualty Tower? | SELECT Street Address FROM table WHERE Name = life & casualty tower |
Translate the following into a SQL query | What is listed as the Tie no for Home team of Gillingham? | SELECT Tie no FROM table WHERE Home team = gillingham |
Translate the following into a SQL query | What is the Tie no listed for the Away team of Barnet? | SELECT Tie no FROM table WHERE Away team = barnet |
Translate the following into a SQL query | What is listed for the Attendance that has a Tie no of 5? | SELECT Attendance FROM table WHERE Tie no = 5 |
Translate the following into a SQL query | Which Away team has a Tie no of 4? | SELECT Away team FROM table WHERE Tie no = 4 |
Translate the following into a SQL query | Which Home Team has an Attendance of 1,859? | SELECT Home team FROM table WHERE Attendance = 1,859 |
Translate the following into a SQL query | What is listed as the Away team for the Home team of the Bristol Rovers? | SELECT Away team FROM table WHERE Home team = bristol rovers |
Translate the following into a SQL query | What is the total of the first season in Segunda División that has a City of cañete? | SELECT SUM First season of current spell in Segunda División FROM table WHERE City = cañete |
Translate the following into a SQL query | Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? | SELECT Team FROM table WHERE Top division titles > 0 AND Founded > 1927 AND Stadium = miguel grau |
Translate the following into a SQL query | Which city has a First season of current spell in Segunda División smaller than 2013? | SELECT City FROM table WHERE First season of current spell in Segunda División < 2013 |
Translate the following into a SQL query | What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? | SELECT MIN Capacity FROM table WHERE First season in Segunda División = 2013 AND Top division titles > 0 |
Translate the following into a SQL query | What's the total enrollment ofr Mcgill University that has a capacity less than 25,012? | SELECT COUNT Enrollment FROM table WHERE Institution = mcgill university AND Capacity < 25,012 |
Translate the following into a SQL query | What's the smallest season for Montreal that's greater than 5,100 for capacity? | SELECT MIN First season FROM table WHERE City = montreal AND Capacity > 5,100 |
Translate the following into a SQL query | What's the name of the city whose first season was in 1996? | SELECT City FROM table WHERE First season = 1996 |
Translate the following into a SQL query | What's the name of the school that had an enrollment greater than 37,591 with the concordia stadium? | SELECT Institution FROM table WHERE Enrollment > 37,591 AND Football stadium = concordia stadium |
Translate the following into a SQL query | What's the name of the carabins stadium? | SELECT Football stadium FROM table WHERE Team = carabins |
Translate the following into a SQL query | what team has the qual 2 of 1:44.050? | SELECT Best FROM table WHERE Qual 2 = 1:44.050 |
Translate the following into a SQL query | what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132? | SELECT Name FROM table WHERE Team = forsythe racing AND Qual 2 = 1:47.132 |
Translate the following into a SQL query | what team had the 1:44.027 qual 2? | SELECT Team FROM table WHERE Qual 2 = 1:44.027 |
Translate the following into a SQL query | what is the qual 1 for alex tagliani? | SELECT Qual 1 FROM table WHERE Name = alex tagliani |
Translate the following into a SQL query | what is the team with the best of 1:43.134? | SELECT Team FROM table WHERE Best = 1:43.134 |
Translate the following into a SQL query | What Women's Doubles team played after 2004 and where Line Isberg played Women's Singles? | SELECT Women's doubles FROM table WHERE Year > 2004 AND Women's singles = line isberg |
Translate the following into a SQL query | After 1999, who played Men's Doubles when Kasper Ipsen played Men's Singles? | SELECT Men's doubles FROM table WHERE Year > 1999 AND Men's singles = kasper ipsen |
Translate the following into a SQL query | In 2010, who was the Women's Singles player? | SELECT Women's singles FROM table WHERE Year = 2010 |
Translate the following into a SQL query | Who was the visiting team at the matchup at the RCA Dome? | SELECT Visiting Team FROM table WHERE Stadium = rca dome |
Translate the following into a SQL query | What was the final score in the game in which the Detroit Lions were the home team? | SELECT Final Score FROM table WHERE Host Team = detroit lions |
Translate the following into a SQL query | Which stadium hosted the November 20 game? | SELECT Stadium FROM table WHERE Date = november 20 |
Translate the following into a SQL query | Who was the visiting team against the Minnesota Vikings? | SELECT Visiting Team FROM table WHERE Host Team = minnesota vikings |
Translate the following into a SQL query | Who was the host team at Candlestick Park? | SELECT Host Team FROM table WHERE Stadium = candlestick park |
Translate the following into a SQL query | Which date had a final score of 20-27? | SELECT Date FROM table WHERE Final Score = 20-27 |
Translate the following into a SQL query | How many years have had the position of 2nd? | SELECT COUNT Year FROM table WHERE Position = 2nd |
Translate the following into a SQL query | What position had notes of 20km and a year earlier than 2002? | SELECT Position FROM table WHERE Notes = 20km AND Year < 2002 |
Translate the following into a SQL query | What was the venue before 2006, with the position of 10th? | SELECT Venue FROM table WHERE Year < 2006 AND Position = 10th |
Translate the following into a SQL query | What were the notes when the Venue was Turin, Italy? | SELECT Notes FROM table WHERE Venue = turin, italy |
Translate the following into a SQL query | What is Gareth Morgan's Secondary Military Specialty? | SELECT Secondary military speciality FROM table WHERE Real Name = gareth morgan |
Translate the following into a SQL query | What is the Code Name of the figure born in Hawaii? | SELECT Code Name FROM table WHERE Birthplace = hawaii |
Translate the following into a SQL query | Name the last title for greater buenos aires and first season of 1920 | SELECT Last Title FROM table WHERE Area/Province = greater buenos aires AND First Season = 1920 |
Translate the following into a SQL query | Name the area for District of córdoba | SELECT Area/Province FROM table WHERE District = córdoba |
Translate the following into a SQL query | Name the last title for club of quilmes | SELECT Last Title FROM table WHERE Club = quilmes |
Translate the following into a SQL query | Name the last time for club of newell's old boys | SELECT Last Title FROM table WHERE Club = newell's old boys |
Translate the following into a SQL query | Name the averag scored for 2011 long teng cup and 2 october 2011 | SELECT AVG Scored FROM table WHERE Competition = 2011 long teng cup AND Date = 2 october 2011 |
Translate the following into a SQL query | Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? | SELECT Barrel twist FROM table WHERE Barrel length = 11.5 in. |
Translate the following into a SQL query | What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwindi less than 3,576? | SELECT SUM Region total FROM table WHERE Year < 1986 AND Waggamba = 2,732 AND Goondiwindi < 3,576 |
Translate the following into a SQL query | What is the average year that had a value less than 2,575 in Inglewood? | SELECT AVG Year FROM table WHERE Inglewood < 2,575 |
Translate the following into a SQL query | What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwindi had less than 4,374? | SELECT MAX Waggamba FROM table WHERE Inglewood = 2,771 AND Goondiwindi < 4,374 |
Translate the following into a SQL query | What is the lost amount in Goondiwindi after 2001, and Inglewood had more than 2,586? | SELECT MIN Goondiwindi FROM table WHERE Inglewood > 2,586 AND Year > 2001 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.