instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Silver has a Total of 11, and a Gold smaller than 8?
SELECT MIN Silver FROM table WHERE Total = 11 AND Gold < 8
Translate the following into a SQL query
Which Silver has a Total of 1, and a Rank of 12?
SELECT MIN Silver FROM table WHERE Total = 1 AND Rank = 12
Translate the following into a SQL query
Which IHSAA Football Class has a School of wood memorial?
SELECT IHSAA Football Class FROM table WHERE School = wood memorial
Translate the following into a SQL query
Which IHSAA Football Class has a County of 77 sullivan, and a School of union dugger?
SELECT IHSAA Football Class FROM table WHERE County = 77 sullivan AND School = union dugger
Translate the following into a SQL query
Which IHSAA Football Class has an Enrollment of 406?
SELECT IHSAA Football Class FROM table WHERE Enrollment = 406
Translate the following into a SQL query
Which Size has a County of 62 perry?
SELECT MAX Size FROM table WHERE County = 62 perry
Translate the following into a SQL query
Which IHSAA Class has a Size larger than 511?
SELECT IHSAA Class FROM table WHERE Size > 511
Translate the following into a SQL query
Which IHSAA Class has a School of mitchell?
SELECT IHSAA Class FROM table WHERE School = mitchell
Translate the following into a SQL query
Which County has a Size larger than 258, and a Mascot of commodores?
SELECT County FROM table WHERE Size > 258 AND Mascot = commodores
Translate the following into a SQL query
What was her place in the lineup on match 2?
SELECT Lineup FROM table WHERE Match = 2
Translate the following into a SQL query
What is the record of the game played on 2/17/1974?
SELECT Record FROM table WHERE Date = 2/17/1974
Translate the following into a SQL query
Which stadium had the opposition of 79,122?
SELECT Stadium FROM table WHERE Opposition = 79,122
Translate the following into a SQL query
What are the notes of the number 1 rank?
SELECT Notes FROM table WHERE Rank = 1
Translate the following into a SQL query
What's the rank if the time was 5:54.57 and FB in notes?
SELECT Rank FROM table WHERE Notes = fb AND Time = 5:54.57
Translate the following into a SQL query
Who are the rowers with the time of 5:54.57?
SELECT Rowers FROM table WHERE Time = 5:54.57
Translate the following into a SQL query
What are the notes of the United States?
SELECT Notes FROM table WHERE Country = united states
Translate the following into a SQL query
What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3?
SELECT Gold FROM table WHERE Bronze > 1 AND Total < 10 AND Silver = 3
Translate the following into a SQL query
What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
SELECT AVG Total FROM table WHERE Silver > 2 AND Gold > 1 AND Nation = total
Translate the following into a SQL query
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
SELECT MIN Total FROM table WHERE Rank = 11 AND Bronze < 1
Translate the following into a SQL query
What was the A Score when the B Score was 9.05, and position was larger than 6?
SELECT AVG A Score FROM table WHERE B Score = 9.05 AND Position > 6
Translate the following into a SQL query
What is the total when the B Score was 9.15 for Cheng Fei ( chn )?
SELECT AVG Total FROM table WHERE B Score = 9.15 AND Gymnast = cheng fei ( chn )
Translate the following into a SQL query
What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4?
SELECT AVG Position FROM table WHERE B Score < 9.05 AND Total = 15.275 AND A Score > 6.4
Translate the following into a SQL query
What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?
SELECT Position FROM table WHERE B Score > 8.975 AND Gymnast = ekaterina kramarenko ( rus )
Translate the following into a SQL query
What year had Third-Person Shooter?
SELECT AVG Year FROM table WHERE Genre = third-person shooter
Translate the following into a SQL query
What year was Portal?
SELECT MAX Year FROM table WHERE Game = portal
Translate the following into a SQL query
Who was the developer(s) of the genre Adventure?
SELECT Developer(s) FROM table WHERE Genre = adventure
Translate the following into a SQL query
What's the platform of the genre RPG?
SELECT Platform(s) FROM table WHERE Genre = rpg
Translate the following into a SQL query
What's the genre of developer(s) Lionhead Studios?
SELECT Genre FROM table WHERE Developer(s) = lionhead studios
Translate the following into a SQL query
What's year was the genre Adventure?
SELECT Year FROM table WHERE Genre = adventure
Translate the following into a SQL query
When was Cardinal-Deacon of S. Giorgio in Velabro elevated?
SELECT Elevated FROM table WHERE Cardinalatial order and title = cardinal-deacon of s. giorgio in velabro
Translate the following into a SQL query
What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?
SELECT Cardinalatial order and title FROM table WHERE Elector = pedro martínez de luna y gotor
Translate the following into a SQL query
What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli?
SELECT Nationality FROM table WHERE Cardinalatial order and title = cardinal-priest of ss. xii apostoli
Translate the following into a SQL query
What Tournament had Jack Nicklaus as Runner(s)-up?
SELECT Tournament FROM table WHERE Runner(s)-up = jack nicklaus
Translate the following into a SQL query
What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)?
SELECT Date FROM table WHERE Winning score = −9 (65-71-68-67=271)
Translate the following into a SQL query
What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up?
SELECT Winning score FROM table WHERE Runner(s)-up = jack nicklaus
Translate the following into a SQL query
What is the Runner(s)-up of the Kemper Open Tournament?
SELECT Runner(s)-up FROM table WHERE Tournament = kemper open
Translate the following into a SQL query
What week has December 19, 2004 as the date?
SELECT Week FROM table WHERE Date = december 19, 2004
Translate the following into a SQL query
What is the highest week that has espn 8:30pm as the TV time?
SELECT MAX Week FROM table WHERE TV Time = espn 8:30pm
Translate the following into a SQL query
What result has miami dolphins as the opponent?
SELECT Result FROM table WHERE Opponent = miami dolphins
Translate the following into a SQL query
What is the Time of the swimmer from Chinese Taipei in Heat 3?
SELECT Time FROM table WHERE Heat = 3 AND Lane > 3 AND Nationality = chinese taipei
Translate the following into a SQL query
What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills?
SELECT AVG Dolphins points FROM table WHERE Opponent = buffalo bills AND Attendance < 69,313
Translate the following into a SQL query
What's the game with an attendance of 71,962?
SELECT MIN Game FROM table WHERE Attendance = 71,962
Translate the following into a SQL query
What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3?
SELECT Final Week 12 FROM table WHERE Week 1 = deepak p rahul AND Week 3 = amit carol
Translate the following into a SQL query
Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6?
SELECT Week 6 FROM table WHERE Week 3 = kashmera rakhi AND Week 1 = amit bobby
Translate the following into a SQL query
Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8?
SELECT Week 8 FROM table WHERE Week 1 = carol roopali
Translate the following into a SQL query
What is the IHSAA class of Centerville, which plays IHSAA class AA football?
SELECT IHSAA Class FROM table WHERE IHSAA Football Class = aa AND School = centerville
Translate the following into a SQL query
Winchester Community school, which plays IHSAA class AA football, is located where?
SELECT Location FROM table WHERE IHSAA Football Class = aa AND School = winchester community
Translate the following into a SQL query
What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?
SELECT IHSAA Class FROM table WHERE Size < 400 AND Mascot = tigers
Translate the following into a SQL query
What county has a school with less than 301 students and plays IHSAA class A football?
SELECT County FROM table WHERE IHSAA Football Class = a AND Size < 301
Translate the following into a SQL query
What is the lowest game when the score is 102-104?
SELECT MIN Game FROM table WHERE Score = 102-104
Translate the following into a SQL query
what is the score for game 4?
SELECT Score FROM table WHERE Game = 4
Translate the following into a SQL query
what is the series for game 4?
SELECT Series FROM table WHERE Game = 4
Translate the following into a SQL query
Which Pendle has a Burnley smaller than 0?
SELECT SUM Pendle FROM table WHERE Burnley < 0
Translate the following into a SQL query
How much Rossendale has a Fylde smaller than 0?
SELECT COUNT Rossendale FROM table WHERE Fylde < 0
Translate the following into a SQL query
How much Hyndburn has a Fylde larger than 3?
SELECT SUM Hyndburn FROM table WHERE Fylde > 3
Translate the following into a SQL query
How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?
SELECT SUM Burnley FROM table WHERE Fylde < 1 AND Rossendale > 0
Translate the following into a SQL query
What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?
SELECT Years FROM table WHERE Soap Opera = un posto al sole AND Actor = riccardo polizzy carbonelli
Translate the following into a SQL query
What years have a duration of 18 years, and patrizio rispo as the actor?
SELECT Years FROM table WHERE Duration = 18 years AND Actor = patrizio rispo
Translate the following into a SQL query
What are the years that have a duration of 15 years and giulia poggi as the character?
SELECT Years FROM table WHERE Duration = 15 years AND Character = giulia poggi
Translate the following into a SQL query
What years have claudia ruffo as the actor?
SELECT Years FROM table WHERE Actor = claudia ruffo
Translate the following into a SQL query
What is the duration that has pietro genuardi as the actor?
SELECT Duration FROM table WHERE Actor = pietro genuardi
Translate the following into a SQL query
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
SELECT Soap Opera FROM table WHERE Duration = 13 years AND Actor = marina giulia cavalli
Translate the following into a SQL query
What is the lowest attendance for December 14, 1958 after week 12?
SELECT MIN Attendance FROM table WHERE Date = december 14, 1958 AND Week > 12
Translate the following into a SQL query
What is the total for the week in the game against the Chicago Bears
SELECT COUNT Week FROM table WHERE Opponent = chicago bears
Translate the following into a SQL query
What is the highest attendance for December 14, 1958 for after week 12
SELECT MAX Attendance FROM table WHERE Date = december 14, 1958 AND Week > 12
Translate the following into a SQL query
What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3?
SELECT Outcome FROM table WHERE Year > 2003 AND Score = 6–0, 6–3
Translate the following into a SQL query
What is the Outcome of the match with a Score of 6–1, 6–1?
SELECT Outcome FROM table WHERE Score = 6–1, 6–1
Translate the following into a SQL query
Who has rank 5?
SELECT Name FROM table WHERE Rank = 5
Translate the following into a SQL query
Which nationality has rank 4?
SELECT Nationality FROM table WHERE Rank = 4
Translate the following into a SQL query
What title was used in the nomination of Matrimonio All'Italiana?
SELECT Film title used in nomination FROM table WHERE Original title = matrimonio all'italiana
Translate the following into a SQL query
What language was the film Pelle Erobreren, which received the best actor nomination, in?
SELECT Language FROM table WHERE Category = best actor AND Original title = pelle erobreren
Translate the following into a SQL query
What title was used in the nomination of the Spanish language film Traffic?
SELECT Film title used in nomination FROM table WHERE Language = spanish AND Original title = traffic
Translate the following into a SQL query
What title was used in the nomination of Una Giornata Particolare?
SELECT Film title used in nomination FROM table WHERE Original title = una giornata particolare
Translate the following into a SQL query
What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?
SELECT Date FROM table WHERE Position = back AND Year > 1964 AND Test debut = 1st rl test v new zealand
Translate the following into a SQL query
What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?
SELECT Position FROM table WHERE Year < 1907 AND Cross-code debut = inaugural rl test v new zealand AND Test debut = inaugural ru test v new zealand
Translate the following into a SQL query
What is the cross-code debut later than 1958 for Dick Thornett?
SELECT Cross-code debut FROM table WHERE Year > 1958 AND Player = dick thornett
Translate the following into a SQL query
What position has a Cross-code debut of 1st ru test v ireland?
SELECT Position FROM table WHERE Cross-code debut = 1st ru test v ireland
Translate the following into a SQL query
What was the time for the match with away team Shatin?
SELECT Time FROM table WHERE Away team = shatin
Translate the following into a SQL query
What was the time for the match with away team Convoy Sun Hei Team A?
SELECT Time FROM table WHERE Away team = convoy sun hei team a
Translate the following into a SQL query
What was the away team for the match that had a time of 18:30?
SELECT Away team FROM table WHERE Time = 18:30
Translate the following into a SQL query
What was the time for the match with away team Mutual Team B?
SELECT Time FROM table WHERE Away team = mutual team b
Translate the following into a SQL query
What was the time for the match that had a a home team of HKSSF?
SELECT Time FROM table WHERE Home team = hkssf
Translate the following into a SQL query
How many people attended on december 26, 1982?
SELECT Attendance FROM table WHERE Date = december 26, 1982
Translate the following into a SQL query
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
SELECT COUNT Byes FROM table WHERE Wins < 11 AND Wimmera FL = minyip murtoa AND Losses < 6
Translate the following into a SQL query
Which Losses have an Against smaller than 1018, and Wins smaller than 14?
SELECT AVG Losses FROM table WHERE Against < 1018 AND Wins < 14
Translate the following into a SQL query
Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?
SELECT MIN Byes FROM table WHERE Against > 1018 AND Wimmera FL = horsham diggers
Translate the following into a SQL query
Which Losses have a Wimmera FL of minyip murtoa?
SELECT AVG Losses FROM table WHERE Wimmera FL = minyip murtoa
Translate the following into a SQL query
Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
SELECT AVG Against FROM table WHERE Losses < 5 AND Wimmera FL = warrack eagles AND Draws < 0
Translate the following into a SQL query
Which country has Spence in the name section?
SELECT Country FROM table WHERE Name = spence
Translate the following into a SQL query
Which country has the status of transferred, moving to of released, and Solano as the listed name?
SELECT Country FROM table WHERE Status = transferred AND Moving to = released AND Name = solano
Translate the following into a SQL query
What is the transfer fee for the country that has the name McCartney listed?
SELECT Transfer fee FROM table WHERE Name = mccartney
Translate the following into a SQL query
What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?
SELECT Name FROM table WHERE Status = loaned AND Moving to = leyton orient
Translate the following into a SQL query
What is the transfer fee for the country of Nir?
SELECT Transfer fee FROM table WHERE Country = nir
Translate the following into a SQL query
Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?
SELECT Fastest Lap FROM table WHERE Winning driver = adam christodoulou AND Pole Position = adam christodoulou
Translate the following into a SQL query
What date was the circuit, snetterton, when riki christodoulou had the fastest lap?
SELECT Date FROM table WHERE Circuit = snetterton AND Fastest Lap = riki christodoulou
Translate the following into a SQL query
who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?
SELECT Pole Position FROM table WHERE Fastest Lap = adam christodoulou AND Circuit = rockingham
Translate the following into a SQL query
What bonus points have 448 as the points against?
SELECT Bonus points FROM table WHERE Points against = 448
Translate the following into a SQL query
What points for have 30 as the game, and 73 as the total points?
SELECT Points for FROM table WHERE Games = 30 AND Total points = 73
Translate the following into a SQL query
What drawn has 416 as the points for and 533 as the points against?
SELECT Drawn FROM table WHERE Points for = 416 AND Points against = 533
Translate the following into a SQL query
What match points have 755 as the points against?
SELECT Match points FROM table WHERE Points against = 755