instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was the lowest Position for the Song, "If I Can't Find My Love"?
SELECT MIN Position FROM table WHERE Song = "if i can't find my love"
Translate the following into a SQL query
What is the Rank of the Nation with 0 Silver and more than 1 Bronze?
SELECT MAX Rank FROM table WHERE Silver < 1 AND Bronze > 1
Translate the following into a SQL query
What is the Total medals for the Nation with 1 Silver and 0 Golds?
SELECT COUNT Total FROM table WHERE Silver = 1 AND Gold < 0
Translate the following into a SQL query
Which potential's period 5 is 4 and has an element of antimony?
SELECT potential FROM table WHERE period = 5 AND element = antimony
Translate the following into a SQL query
Which lowest period's element is ruthenium?
SELECT MIN period FROM table WHERE element = ruthenium
Translate the following into a SQL query
Which highest period's element is platinum?
SELECT MAX period FROM table WHERE element = platinum
Translate the following into a SQL query
What is the Venue with a Result that is lost?
SELECT Venue FROM table WHERE Result = lost
Translate the following into a SQL query
What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?
SELECT MAX Administrative Panel FROM table WHERE Cultural and Educational Panel = 2 AND Industrial and Commercial Panel > 4
Translate the following into a SQL query
What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?
SELECT COUNT National University of Ireland FROM table WHERE Industrial and Commercial Panel < 1 AND Cultural and Educational Panel > 0
Translate the following into a SQL query
What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?
SELECT AVG Administrative Panel FROM table WHERE Cultural and Educational Panel > 1 AND Industrial and Commercial Panel < 4
Translate the following into a SQL query
What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?
SELECT MAX Administrative Panel FROM table WHERE Nominated by the Taoiseach > 3 AND Agricultural Panel = 5 AND Cultural and Educational Panel > 2
Translate the following into a SQL query
What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?
SELECT MIN Cultural and Educational Panel FROM table WHERE Nominated by the Taoiseach < 5 AND Total > 19
Translate the following into a SQL query
With the cultural and educational panel less than 0 what is the average industrial and commercial panel?
SELECT AVG Industrial and Commercial Panel FROM table WHERE Cultural and Educational Panel < 0
Translate the following into a SQL query
What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?
SELECT COUNT Silver FROM table WHERE Total = 5 AND Gold > 3
Translate the following into a SQL query
What was the label in 1969?
SELECT Label FROM table WHERE Date = 1969
Translate the following into a SQL query
What is the Commissioned date of the ship in NVR Page MCM02?
SELECT Commissioned FROM table WHERE NVR Page = mcm02
Translate the following into a SQL query
What is the NVR Page of the ship with a Home Port of Sasebo, Japan?
SELECT NVR Page FROM table WHERE Home Port = sasebo, japan
Translate the following into a SQL query
Which week's game was attended by 54,015 people?
SELECT COUNT Week FROM table WHERE Attendance = 54,015
Translate the following into a SQL query
What date was the game that was before week 4 and was attended by over 54,015 people ?
SELECT Date FROM table WHERE Week < 4 AND Attendance > 54,015
Translate the following into a SQL query
In what venues was the match with a final result of Eng by 4 wkts?
SELECT Venue FROM table WHERE Result = eng by 4 wkts
Translate the following into a SQL query
What is the running time of the transmission on bbc four channels on 23 March 2008?
SELECT Running Time FROM table WHERE Channel = bbc four AND Date = 23 march 2008
Translate the following into a SQL query
What is the notes of the transmission on channel bbc four and a time of 22:30?
SELECT Notes FROM table WHERE Channel = bbc four AND Time = 22:30
Translate the following into a SQL query
What is the time of the transmission on 28 December 2008 with a running time of 66 min 21 sec?
SELECT Time FROM table WHERE Running Time = 66 min 21 sec AND Date = 28 december 2008
Translate the following into a SQL query
Which channel was on 28 December 2008?
SELECT Channel FROM table WHERE Date = 28 december 2008
Translate the following into a SQL query
What is the channel with a 03:40 time?
SELECT Channel FROM table WHERE Time = 03:40
Translate the following into a SQL query
What is the Other b when the FA Cup shows 3 (17)?
SELECT Other b FROM table WHERE FA Cup = 3 (17)
Translate the following into a SQL query
What is the Total when the league shows 79 (221)?
SELECT Total FROM table WHERE League a = 79 (221)
Translate the following into a SQL query
What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?
SELECT Name FROM table WHERE League Cup = 0 (0) AND FA Cup = 12 (14)
Translate the following into a SQL query
What is the League for 1952–1960?
SELECT League a FROM table WHERE Years = 1952–1960
Translate the following into a SQL query
What shows for the League when the FA Cup is 6 (20)?
SELECT League a FROM table WHERE FA Cup = 6 (20)
Translate the following into a SQL query
What club wast he player hristo stoitchkov from?
SELECT CLUB FROM table WHERE PLAYER = hristo stoitchkov
Translate the following into a SQL query
What is the content for la sorgente sat 3?
SELECT Content FROM table WHERE Television service = la sorgente sat 3
Translate the following into a SQL query
What language is telemarket for you?
SELECT Language FROM table WHERE Television service = telemarket for you
Translate the following into a SQL query
What language is telemarket for you with a content of televendita?
SELECT Language FROM table WHERE Content = televendita AND Television service = telemarket for you
Translate the following into a SQL query
Which team has points less than 6 in a year after 1969?
SELECT Team FROM table WHERE Points < 6 AND Year > 1969
Translate the following into a SQL query
How many wins for the team with points less than 6 and a 350cc class?
SELECT Wins FROM table WHERE Points < 6 AND Class = 350cc
Translate the following into a SQL query
What is the lowest points for 36th rank?
SELECT MIN Points FROM table WHERE Rank = 36th
Translate the following into a SQL query
What is team Yamaha with 3 points ranked?
SELECT Rank FROM table WHERE Team = yamaha AND Points = 3
Translate the following into a SQL query
What years did the player ranked less than 8 and had 447 matches play?
SELECT Years FROM table WHERE Rank < 8 AND Matches = 447
Translate the following into a SQL query
What is the Time with a Record that is 15-7?
SELECT Time FROM table WHERE Record = 15-7
Translate the following into a SQL query
What is the Event with a Time that is 3:06?
SELECT Event FROM table WHERE Time = 3:06
Translate the following into a SQL query
How many silvers did Turkey get?
SELECT Silver FROM table WHERE Nation = turkey
Translate the following into a SQL query
What position does Denard Walker play?
SELECT Position FROM table WHERE Player = denard walker
Translate the following into a SQL query
What was the pick number for the wide receiver drafted from Michigan State?
SELECT Pick # FROM table WHERE Position = wide receiver AND College = michigan state
Translate the following into a SQL query
Which player came from Kent State?
SELECT Player FROM table WHERE College = kent state
Translate the following into a SQL query
What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?
SELECT COUNT Bronze FROM table WHERE Silver = 4 AND Gold > 2
Translate the following into a SQL query
Which Tournament has a score of 2–6 6–4 [10–8]?
SELECT Tournament FROM table WHERE Score = 2–6 6–4 [10–8]
Translate the following into a SQL query
Which Tournament has a Score of 6(4)–7 2–6?
SELECT Tournament FROM table WHERE Score = 6(4)–7 2–6
Translate the following into a SQL query
What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic?
SELECT Score FROM table WHERE Opponents in the final = vitalia diatchenko irena pavlovic
Translate the following into a SQL query
What is the High rebounds with a Game that is 62?
SELECT High rebounds FROM table WHERE Game = 62
Translate the following into a SQL query
What is the Team with a Score that is l 79–92 (ot)?
SELECT Team FROM table WHERE Score = l 79–92 (ot)
Translate the following into a SQL query
Who is the coach of the 2012 Gold Coast Titans season?
SELECT Coach FROM table WHERE Details = 2012 gold coast titans season
Translate the following into a SQL query
Who is the coach of the 2010 Gold Coast Titans season?
SELECT Coach FROM table WHERE Details = 2010 gold coast titans season
Translate the following into a SQL query
Who is the captain of the 2012 NRL season competition?
SELECT Captain(s) FROM table WHERE Competition = 2012 nrl season
Translate the following into a SQL query
How many wins were in the PGA Championship when there were more than 10 events?
SELECT COUNT Wins FROM table WHERE Tournament = pga championship AND Events > 10
Translate the following into a SQL query
What is the smallest number of cuts when there were more than 0 wins?
SELECT MIN Cuts made FROM table WHERE Wins > 0
Translate the following into a SQL query
What is the total number of Rank for 1996–2007, when there are more than 108 goals?
SELECT COUNT Rank FROM table WHERE Years = 1996–2007 AND Goals > 108
Translate the following into a SQL query
What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?
SELECT MIN Rank FROM table WHERE Goals > 124 AND Name = jeff cunningham
Translate the following into a SQL query
What is the total number of Rank with 100 goals, and less than 300 matches?
SELECT COUNT Rank FROM table WHERE Goals = 100 AND Matches < 300
Translate the following into a SQL query
What is the highest Rank for Jason Kreis, with less than 305 matches?
SELECT MAX Rank FROM table WHERE Name = jason kreis AND Matches < 305
Translate the following into a SQL query
What is the least number of wins when the top 10 is more than 8?
SELECT MIN Wins FROM table WHERE Top-10 > 8
Translate the following into a SQL query
What is the sum of cuts made when the top-5 is 2, and there are 12 events?
SELECT COUNT Cuts made FROM table WHERE Top-5 = 2 AND Events = 12
Translate the following into a SQL query
What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?
SELECT AVG Top-5 FROM table WHERE Top-25 = 1 AND Wins < 0
Translate the following into a SQL query
What is the mean number of events when top-5 is 1?
SELECT AVG Events FROM table WHERE Top-5 = 1
Translate the following into a SQL query
How many top-25s are associated with more than 91 events?
SELECT SUM Top-25 FROM table WHERE Events > 91
Translate the following into a SQL query
What is the lowest Wins with a Top-10 that is larger than 9?
SELECT MIN Wins FROM table WHERE Top-10 > 9
Translate the following into a SQL query
What is the average Cuts that were made with a Top-10 that is larger than 9?
SELECT AVG Cuts made FROM table WHERE Top-10 > 9
Translate the following into a SQL query
Which record has 64,053 as the attendance?
SELECT Record FROM table WHERE Attendance = 64,053
Translate the following into a SQL query
Which date has rich stadium as the game site for week 1?
SELECT Date FROM table WHERE Game Site = rich stadium AND Week = 1
Translate the following into a SQL query
Which date has 1 as the week?
SELECT Date FROM table WHERE Week = 1
Translate the following into a SQL query
Which Title was awarded the gold RIAA Sales Certification?
SELECT Title FROM table WHERE RIAA Sales Certification = gold
Translate the following into a SQL query
For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?
SELECT SUM Year FROM table WHERE RIAA Sales Certification = gold AND Title = lost without your love AND Billboard 200 Peak > 26
Translate the following into a SQL query
Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?
SELECT RIAA Sales Certification FROM table WHERE Billboard 200 Peak < 18 AND Year < 1972
Translate the following into a SQL query
What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?
SELECT RIAA Sales Certification FROM table WHERE Billboard 200 Peak = 21
Translate the following into a SQL query
What is the sum of the Billboard 200 Peak scores after the Year 1971?
SELECT SUM Billboard 200 Peak FROM table WHERE Year > 1971
Translate the following into a SQL query
What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?
SELECT SUM Billboard 200 Peak FROM table WHERE Title = bread
Translate the following into a SQL query
What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?
SELECT COUNT Gold FROM table WHERE Silver = 1 AND Bronze = 1 AND Nation = austria
Translate the following into a SQL query
What nation has 2 bronze and a rank of 9?
SELECT Nation FROM table WHERE Bronze = 2 AND Rank = 9
Translate the following into a SQL query
What is the highest gold when bronze is 1, and rank is 5?
SELECT MAX Gold FROM table WHERE Bronze = 1 AND Rank = 5
Translate the following into a SQL query
What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?
SELECT MIN Gold FROM table WHERE Bronze = 0 AND Total < 2 AND Silver < 0
Translate the following into a SQL query
What is the sum of rank when total is 3 and the nation is Australia?
SELECT SUM Rank FROM table WHERE Total = 3 AND Nation = australia
Translate the following into a SQL query
What is the Rank with a Goal number smaller than 66?
SELECT Rank FROM table WHERE Goals < 66
Translate the following into a SQL query
What is the spoofed title for Parks and Recreation with an issue larger than 509?
SELECT Spoofed Title FROM table WHERE Issue > 509 AND Actual Title = parks and recreation
Translate the following into a SQL query
What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?
SELECT Actual Title FROM table WHERE Artist = tom richmond AND Issue < 508 AND Writer = desmond devlin
Translate the following into a SQL query
What issue was the spoofed title Ho-Hum land?
SELECT SUM Issue FROM table WHERE Spoofed Title = ho-hum land
Translate the following into a SQL query
Game of Thrones was done by which artist?
SELECT Artist FROM table WHERE Actual Title = game of thrones
Translate the following into a SQL query
What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?
SELECT Surface FROM table WHERE Outcome = runner-up AND Date = 24 february 1997
Translate the following into a SQL query
What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?
SELECT Opponent FROM table WHERE Outcome = runner-up AND Date = 26 august 1996
Translate the following into a SQL query
What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?
SELECT Surface FROM table WHERE Score = 4–6, 6–3, 6–7 (5–7)
Translate the following into a SQL query
What is the Score when there was a hard surface and the Championship is new haven , usa?
SELECT Score FROM table WHERE Surface = hard AND Championship = new haven , usa
Translate the following into a SQL query
Which Position player was born June 30, 1981?
SELECT Position FROM table WHERE Birthdate = june 30, 1981
Translate the following into a SQL query
What is the 2005-2006 team for player Phil Kessel?
SELECT 2005–2006 Team FROM table WHERE Name = phil kessel
Translate the following into a SQL query
What is the total sum of the goals at competitions with more than 10 draws?
SELECT SUM Goals for FROM table WHERE Drawn > 10
Translate the following into a SQL query
For the teams that had more than 2 Byes, what was the highest number of Wins?
SELECT MAX Wins FROM table WHERE Byes > 2
Translate the following into a SQL query
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
SELECT COUNT Draws FROM table WHERE Losses < 4 AND Wins < 16
Translate the following into a SQL query
For the teams that had less than 1 loss, what was the average number of Wins?
SELECT AVG Wins FROM table WHERE Losses < 1
Translate the following into a SQL query
For the teams that had fewer than 1 Byes, what was the lowest number of Draws?
SELECT MIN Draws FROM table WHERE Byes < 1
Translate the following into a SQL query
What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?
SELECT MAX Draws FROM table WHERE Ballarat FL = sebastapol AND Against < 1802
Translate the following into a SQL query
What is the Season when the Opponent was zenit st. petersburg?
SELECT Season FROM table WHERE Opponent = zenit st. petersburg
Translate the following into a SQL query
What is the Opponent with a Round of q2, in the 2005–06 season?
SELECT Opponent FROM table WHERE Round = q2 AND Season = 2005–06