instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
Can you tell me the Position that has the Entrant of j ampt?
|
SELECT Position FROM table WHERE Entrant = j ampt
|
Translate the following into a SQL query
|
Can you tell me the Entrant that has the Laps of 17?
|
SELECT Entrant FROM table WHERE Laps = 17
|
Translate the following into a SQL query
|
Can you tell me the Position that has the Driver of bib stillwell?
|
SELECT Position FROM table WHERE Driver = bib stillwell
|
Translate the following into a SQL query
|
What are the results for a game with an attendance of 41,429?
|
SELECT Result FROM table WHERE Attendance = 41,429
|
Translate the following into a SQL query
|
Who were the opponents when there was an attendance of 48,165?
|
SELECT Opponent# FROM table WHERE Attendance = 48,165
|
Translate the following into a SQL query
|
What are the results for the game with 82,113 attending?
|
SELECT Result FROM table WHERE Attendance = 82,113
|
Translate the following into a SQL query
|
Who was the girl on week 4 after week 3's Mikaela James?
|
SELECT Week 4 FROM table WHERE Week 3 = mikaela james
|
Translate the following into a SQL query
|
Who was the girl on week 1 that was previous to week 3's Ava Hart?
|
SELECT Week 1 FROM table WHERE Week 3 = ava hart
|
Translate the following into a SQL query
|
Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?
|
SELECT Week 2 FROM table WHERE Week 4 = chelsie loraine
|
Translate the following into a SQL query
|
Who was the girl on week 5 that came after week 3's Mikaela James?
|
SELECT Week 5 FROM table WHERE Week 3 = mikaela james
|
Translate the following into a SQL query
|
Who was the girl on week 1 that preceded week 2's Kamila Sulewska?
|
SELECT Week 1 FROM table WHERE Week 2 = kamila sulewska
|
Translate the following into a SQL query
|
Who was the girl on week 5 that came after week 3's Shelly Louise?
|
SELECT Week 5 FROM table WHERE Week 3 = shelly louise
|
Translate the following into a SQL query
|
What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?
|
SELECT MIN 1988-89 FROM table WHERE Average > 0.965 AND 1987-88 = 40 AND 1986-87 = 49 AND Points > 123
|
Translate the following into a SQL query
|
What is Played, when Points is less than 107, and when 1987-88 is "31"?
|
SELECT Played FROM table WHERE Points < 107 AND 1987-88 = 31
|
Translate the following into a SQL query
|
What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?
|
SELECT MIN 1988-89 FROM table WHERE Points > 130 AND 1987-88 = 37 AND Played < 114
|
Translate the following into a SQL query
|
What is 1987-88, when Points is "136"?
|
SELECT 1987-88 FROM table WHERE Points = 136
|
Translate the following into a SQL query
|
Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?
|
SELECT MAX Draw FROM table WHERE Points = 22 AND Goals Conceded < 26
|
Translate the following into a SQL query
|
Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?
|
SELECT MAX Played FROM table WHERE Goals Scored < 18 AND Lost > 10
|
Translate the following into a SQL query
|
Name the average Played with a Points of 0*?
|
SELECT AVG Played FROM table WHERE Points = 0*
|
Translate the following into a SQL query
|
Count the Draw which has Lost of 0, and a Goals Scored larger than 0?
|
SELECT SUM Draw FROM table WHERE Lost = 0 AND Goals Scored > 0
|
Translate the following into a SQL query
|
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?
|
SELECT AVG Goals Conceded FROM table WHERE Draw = 0 AND Played > 0
|
Translate the following into a SQL query
|
What is the rank for the Mixed Team nation with a total of less than 13?
|
SELECT Rank FROM table WHERE Total < 13 AND Nation = mixed team
|
Translate the following into a SQL query
|
What is the total number of bronze medals for teams with less than 0 silver?
|
SELECT COUNT Bronze FROM table WHERE Silver < 0
|
Translate the following into a SQL query
|
What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?
|
SELECT AVG Bronze FROM table WHERE Silver > 1 AND Total < 9
|
Translate the following into a SQL query
|
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?
|
SELECT Military and/or Civilian wounded FROM table WHERE Civilian deaths = unknown AND Total deaths (not including foreigners) = unknown
|
Translate the following into a SQL query
|
How many civilians died in the conflict that left 231 members of the military dead?
|
SELECT Civilian deaths FROM table WHERE Military deaths = 231
|
Translate the following into a SQL query
|
How many civilians died in the conflict that left 178, excluding foreigners, dead?
|
SELECT Civilian deaths FROM table WHERE Total deaths (not including foreigners) = 178
|
Translate the following into a SQL query
|
How many members of the military died in the conflict that had a total of 531 casualties?
|
SELECT Military deaths FROM table WHERE Total casualties = 531
|
Translate the following into a SQL query
|
How many civilians died in the conflict that had a total of 1,130 casualties?
|
SELECT Civilian deaths FROM table WHERE Total casualties = 1,130
|
Translate the following into a SQL query
|
Which team was the opponent on week 15?
|
SELECT Opponent FROM table WHERE Week = 15
|
Translate the following into a SQL query
|
What is the average Total, when Finish is "T47"?
|
SELECT AVG Total FROM table WHERE Finish = t47
|
Translate the following into a SQL query
|
What is To par, when Total is less than 297, and when Finish is "1"?
|
SELECT To par FROM table WHERE Total < 297 AND Finish = 1
|
Translate the following into a SQL query
|
What is the Official ITV1 rating for auditions 4?
|
SELECT Official ITV1 rating FROM table WHERE Episode = auditions 4
|
Translate the following into a SQL query
|
What is the lowest official ITV1 rating with 45.4% share?
|
SELECT MIN Official ITV1 rating FROM table WHERE Share = 45.4%
|
Translate the following into a SQL query
|
How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?
|
SELECT COUNT Goals against FROM table WHERE Wins > 12 AND Club = ud las palmas AND Position > 5
|
Translate the following into a SQL query
|
Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?
|
SELECT MAX Goals against FROM table WHERE Points < 26 AND Goals for < 38 AND Position > 14 AND Goal Difference < -32
|
Translate the following into a SQL query
|
Which Goals against have a Club of cd castellón, and Points smaller than 24?
|
SELECT AVG Goals against FROM table WHERE Club = cd castellón AND Points < 24
|
Translate the following into a SQL query
|
How much Played has Goals against smaller than 34, and Wins smaller than 13?
|
SELECT SUM Played FROM table WHERE Goals against < 34 AND Wins < 13
|
Translate the following into a SQL query
|
Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?
|
SELECT AVG Played FROM table WHERE Position < 4 AND Wins > 16 AND Points = 38 AND Goals against > 35
|
Translate the following into a SQL query
|
What is the To Par score for the player from France?
|
SELECT To par FROM table WHERE Country = france
|
Translate the following into a SQL query
|
What is the name of the player with an overall score of 70-69-69=208?
|
SELECT Player FROM table WHERE Score = 70-69-69=208
|
Translate the following into a SQL query
|
What is the To Par score for the player with an overall score of 71-68-69=208?
|
SELECT To par FROM table WHERE Score = 71-68-69=208
|
Translate the following into a SQL query
|
What location did Anke Huber win the championship?
|
SELECT Location FROM table WHERE Champion = anke huber
|
Translate the following into a SQL query
|
Who won the runner-up in 1999?
|
SELECT Runner-up FROM table WHERE Year = 1999
|
Translate the following into a SQL query
|
What was the score when Flavia Pennetta won the championship?
|
SELECT Score FROM table WHERE Champion = flavia pennetta
|
Translate the following into a SQL query
|
How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?
|
SELECT COUNT Matches FROM table WHERE S/Rate < 133.72 AND Team = yorkshire carnegie
|
Translate the following into a SQL query
|
Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12?
|
SELECT Team FROM table WHERE Balls < 258 AND Inns = 10 AND Matches < 12
|
Translate the following into a SQL query
|
How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?
|
SELECT SUM Matches FROM table WHERE Balls < 224 AND Average > 38.25 AND S/Rate > 139.09
|
Translate the following into a SQL query
|
How many Matches have an Average larger than 26.53, and an S/Rate of 165.4, and a 100s smaller than 1?
|
SELECT COUNT Matches FROM table WHERE Average > 26.53 AND S/Rate = 165.4 AND 100s < 1
|
Translate the following into a SQL query
|
What was the fastest lap for Grand Prix dutch tt?
|
SELECT Fastest Lap FROM table WHERE Grand Prix = dutch tt
|
Translate the following into a SQL query
|
Who won the race circuit of sachsenring?
|
SELECT Race Winner FROM table WHERE Circuit = sachsenring
|
Translate the following into a SQL query
|
Who won with the fastest lap of daijiro hiura on March 29?
|
SELECT Race Winner FROM table WHERE Fastest Lap = daijiro hiura AND Date = march 29
|
Translate the following into a SQL query
|
What year had a total of 2 and LA matches of 0?
|
SELECT Year FROM table WHERE Total = 2 AND LA matches = 0
|
Translate the following into a SQL query
|
What year was the total 9?
|
SELECT Year FROM table WHERE Total = 9
|
Translate the following into a SQL query
|
Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland?
|
SELECT Week 4 FROM table WHERE Week 5 = [month ended] AND Week 2 = april ireland
|
Translate the following into a SQL query
|
Who is week 3 if week 2 is Nikki Fiction?
|
SELECT Week 3 FROM table WHERE Week 2 = nikki fiction
|
Translate the following into a SQL query
|
Who is week 1 if week 3 is Natasha Budhi?
|
SELECT Week 1 FROM table WHERE Week 3 = natasha budhi
|
Translate the following into a SQL query
|
Who is week 5 if week 2 is Jenna Jordan?
|
SELECT Week 5 FROM table WHERE Week 2 = jenna jordan
|
Translate the following into a SQL query
|
Who is week 2 if week 3 is Sara Stokes?
|
SELECT Week 2 FROM table WHERE Week 3 = sara stokes
|
Translate the following into a SQL query
|
Who is week 3 if week 1 is Amanda Batt?
|
SELECT Week 3 FROM table WHERE Week 1 = amanda batt
|
Translate the following into a SQL query
|
How many enrollments have a location of Guelph and a 1-year ranking of 727 larger than 717?
|
SELECT COUNT Enrollment FROM table WHERE Location = guelph AND 1-year ranking of 727 > 717
|
Translate the following into a SQL query
|
What average bronze has a total less than 1?
|
SELECT AVG Bronze FROM table WHERE Total < 1
|
Translate the following into a SQL query
|
What average gold has China (chn) as the nation with a bronze greater than 1?
|
SELECT AVG Gold FROM table WHERE Nation = china (chn) AND Bronze > 1
|
Translate the following into a SQL query
|
Which is the highest gold that has a bronze greater than 4?
|
SELECT MAX Gold FROM table WHERE Bronze > 4
|
Translate the following into a SQL query
|
What date has fewer than 32 against and the opposing team of Australia?
|
SELECT Date FROM table WHERE Against < 32 AND Opposing Teams = australia
|
Translate the following into a SQL query
|
What is the average against for a test match?
|
SELECT AVG Against FROM table WHERE Status = test match
|
Translate the following into a SQL query
|
Which venue has more than 9 against and a status of second test?
|
SELECT Venue FROM table WHERE Against > 9 AND Status = second test
|
Translate the following into a SQL query
|
Which status has an against of 35?
|
SELECT Status FROM table WHERE Against = 35
|
Translate the following into a SQL query
|
Which Total Pld has a Total Pts smaller than 153, and a 2004–05 Pts of 43, and a 2005–06 Pts smaller than 49?
|
SELECT MIN Total Pld FROM table WHERE Total Pts < 153 AND 2004–05 Pts = 43 AND 2005–06 Pts < 49
|
Translate the following into a SQL query
|
Which Total Pld has a 2004–05 Pts of 43, and a Team of olimpo, and a 2005–06 Pts larger than 49?
|
SELECT MAX Total Pld FROM table WHERE 2004–05 Pts = 43 AND Team = olimpo AND 2005–06 Pts > 49
|
Translate the following into a SQL query
|
Which Total Pld has a 2005–06 Pts of 27?
|
SELECT MAX Total Pld FROM table WHERE 2005–06 Pts = 27
|
Translate the following into a SQL query
|
Which 2005–06 Pts has a 2004–05 Pts of 48?
|
SELECT MIN 2005–06 Pts FROM table WHERE 2004–05 Pts = 48
|
Translate the following into a SQL query
|
What was the music for the modern dance?
|
SELECT Music FROM table WHERE Dance = modern
|
Translate the following into a SQL query
|
What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?
|
SELECT Place FROM table WHERE Dance = tango AND Points jury = 24 (7,5,6,6)
|
Translate the following into a SQL query
|
What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0?
|
SELECT AVG Qualifying Goals FROM table WHERE Player = jack froggatt AND Finals Goals > 0
|
Translate the following into a SQL query
|
Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3?
|
SELECT Player FROM table WHERE Total Goals > 1 AND Qualifying Goals < 3
|
Translate the following into a SQL query
|
What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?
|
SELECT COUNT Total Goals FROM table WHERE Player = stan mortensen AND Qualifying Goals > 3
|
Translate the following into a SQL query
|
What is the Average Finals Goals if the Total Goals is less than 1?
|
SELECT AVG Finals Goals FROM table WHERE Total Goals < 1
|
Translate the following into a SQL query
|
What was Adam Scott's total score when playing in Australia with a to par of e?
|
SELECT SUM Score FROM table WHERE Country = australia AND To par = e AND Player = adam scott
|
Translate the following into a SQL query
|
What was Fredrik Jacobson's score?
|
SELECT Score FROM table WHERE Player = fredrik jacobson
|
Translate the following into a SQL query
|
WHAT IS THE HOME TEAM WITH AN AWAY OF LEYTON ORIENT?
|
SELECT Home team FROM table WHERE Away team = leyton orient
|
Translate the following into a SQL query
|
WHAT IS NO TIE FROM brighton & hove albion?
|
SELECT Tie no FROM table WHERE Home team = brighton & hove albion
|
Translate the following into a SQL query
|
What was the result for the game on October 5?
|
SELECT Result FROM table WHERE Date = october 5
|
Translate the following into a SQL query
|
What is the FA Cup Apps when total goals is smaller than 4, League Cup Goals is 0, and League Apps is 8 (10)?
|
SELECT FA Cup Apps FROM table WHERE Total Goals < 4 AND League Cup Goals = 0 AND League Apps = 8 (10)
|
Translate the following into a SQL query
|
What is the lowest total goals when position is df, and FA Cup Goals is smaller than 0?
|
SELECT MIN Total Goals FROM table WHERE Position = df AND FA Cup Goals < 0
|
Translate the following into a SQL query
|
What Viewers (m) has an Episode of school council?
|
SELECT AVG Viewers (m) FROM table WHERE Episode = school council
|
Translate the following into a SQL query
|
What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?
|
SELECT MAX Viewers (m) FROM table WHERE Rating = 1.7 AND Episode = the game of life
|
Translate the following into a SQL query
|
What Viewers (m) has an Episode of 40 days?
|
SELECT Viewers (m) FROM table WHERE Episode = 40 days
|
Translate the following into a SQL query
|
What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?
|
SELECT Episode FROM table WHERE Rating = 1.8 AND Viewers (m) < 2.73
|
Translate the following into a SQL query
|
What Rating has Viewers (m) of 2.73?
|
SELECT Rating FROM table WHERE Viewers (m) = 2.73
|
Translate the following into a SQL query
|
What Episode has a Share of tba?
|
SELECT Episode FROM table WHERE Share = tba
|
Translate the following into a SQL query
|
Name the Partner which is in 1979, and Opponents in the final of heinz günthardt bob hewitt?
|
SELECT Partner FROM table WHERE Date = 1979 AND Opponents in the final = heinz günthardt bob hewitt
|
Translate the following into a SQL query
|
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?
|
SELECT Surface FROM table WHERE Opponents in the final = mark edmondson sherwood stewart AND Tournament = dallas , u.s.
|
Translate the following into a SQL query
|
Name the date of Tournament of paris indoor , france?
|
SELECT SUM Date FROM table WHERE Tournament = paris indoor , france
|
Translate the following into a SQL query
|
Name the Outcome has a Surface of hard, and a Score in the final of 6–2, 6–4?
|
SELECT Outcome FROM table WHERE Surface = hard AND Score in the final = 6–2, 6–4
|
Translate the following into a SQL query
|
Name the Surface which has a Score in the final of 6–3, 6–2 and Opponents in the final of mansour bahrami diego pérez?
|
SELECT Surface FROM table WHERE Score in the final = 6–3, 6–2 AND Opponents in the final = mansour bahrami diego pérez
|
Translate the following into a SQL query
|
Which Res has a Time of 11:58?
|
SELECT Res. FROM table WHERE Time = 11:58
|
Translate the following into a SQL query
|
What was jerry bohlander's time?
|
SELECT Time FROM table WHERE Opponent = jerry bohlander
|
Translate the following into a SQL query
|
What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A?
|
SELECT Total FROM table WHERE Coppa Italia = 0 AND Champions League = 1 AND Serie A < 2 AND Name = mauro camoranesi
|
Translate the following into a SQL query
|
What's the Serie A when the coppa italia was 5?
|
SELECT AVG Serie A FROM table WHERE Coppa Italia = 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.