instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What round was the debut of defender Stephen Laybutt?
|
SELECT Debut FROM table WHERE Position = defender AND Name = stephen laybutt
|
Translate the following into a SQL query
|
What position had a debut in round 6?
|
SELECT Position FROM table WHERE Debut = round 6
|
Translate the following into a SQL query
|
What is the name of the player that had a debut in round 6?
|
SELECT Name FROM table WHERE Debut = round 6
|
Translate the following into a SQL query
|
What date did the player from Santo André debut?
|
SELECT Date Joined FROM table WHERE From (Club) = santo andré
|
Translate the following into a SQL query
|
what is the venue when the score is 20½–11½?
|
SELECT Venue FROM table WHERE Score = 20½–11½
|
Translate the following into a SQL query
|
Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?
|
SELECT Winning team FROM table WHERE Year > 2003 AND Score = 19½–14½ AND Venue = harding park golf club
|
Translate the following into a SQL query
|
what is the highest year that the U.S. captain is ken venturi?
|
SELECT MAX Year FROM table WHERE U.S. Captain = ken venturi
|
Translate the following into a SQL query
|
what is the location when the year is less than 1998 and the international captain is david graham?
|
SELECT Location FROM table WHERE Year < 1998 AND International Captain = david graham
|
Translate the following into a SQL query
|
How much did jim colbert earned ranked above 2?
|
SELECT COUNT Earnings( $ ) FROM table WHERE Player = jim colbert AND Rank < 2
|
Translate the following into a SQL query
|
What is the away team score where the crowd is greater than 25,000 and the Away team is south melbourne?
|
SELECT Away team score FROM table WHERE Crowd > 25,000 AND Away team = south melbourne
|
Translate the following into a SQL query
|
What is the largest crowd with a Home team score of 9.17 (71)?
|
SELECT MAX Crowd FROM table WHERE Home team score = 9.17 (71)
|
Translate the following into a SQL query
|
What day did the VFL play at Junction Oval?
|
SELECT Date FROM table WHERE Venue = junction oval
|
Translate the following into a SQL query
|
Where did Footscray play as the home team?
|
SELECT Venue FROM table WHERE Home team = footscray
|
Translate the following into a SQL query
|
Who was the opponent when Footscray played as the home team?
|
SELECT Away team score FROM table WHERE Home team = footscray
|
Translate the following into a SQL query
|
What was the attendance when the VFL played Arden Street Oval?
|
SELECT COUNT Crowd FROM table WHERE Venue = arden street oval
|
Translate the following into a SQL query
|
What was the score June 22?
|
SELECT Loss FROM table WHERE Date = june 22
|
Translate the following into a SQL query
|
Which school has a hometown of winter park, FL?
|
SELECT School FROM table WHERE Hometown = winter park, fl
|
Translate the following into a SQL query
|
What's the college of the player with a height of 6-4 and went to lake howell high school?
|
SELECT College FROM table WHERE Height = 6-4 AND School = lake howell high school
|
Translate the following into a SQL query
|
What's the hometown of the player with a college of lsu?
|
SELECT Hometown FROM table WHERE College = lsu
|
Translate the following into a SQL query
|
What's the heigh of the player who went to lake howell high school?
|
SELECT Height FROM table WHERE School = lake howell high school
|
Translate the following into a SQL query
|
What's the heigh of nolan smith?
|
SELECT Height FROM table WHERE Player = nolan smith
|
Translate the following into a SQL query
|
What's the height of the player who went to oak hill academy?
|
SELECT Height FROM table WHERE School = oak hill academy
|
Translate the following into a SQL query
|
What tyre did Paul Russo have on his fastest lap?
|
SELECT Tyre FROM table WHERE Fastest lap = paul russo
|
Translate the following into a SQL query
|
What is the date that Stirling Moss had his fastest lap in a Maserati?
|
SELECT Date FROM table WHERE Constructor = maserati AND Fastest lap = stirling moss
|
Translate the following into a SQL query
|
Who was the winning driver on 30 May?
|
SELECT Winning driver FROM table WHERE Date = 30 may
|
Translate the following into a SQL query
|
What was the fastest lap in the Belgian Grand Prix?
|
SELECT Fastest lap FROM table WHERE Race = belgian grand prix
|
Translate the following into a SQL query
|
Who was the home team when the away team was Hawthorn?
|
SELECT Home team FROM table WHERE Away team = hawthorn
|
Translate the following into a SQL query
|
On what date did the game at Windy Hill take place?
|
SELECT Date FROM table WHERE Venue = windy hill
|
Translate the following into a SQL query
|
What was the venue when the away team was Hawthorn?
|
SELECT Venue FROM table WHERE Away team = hawthorn
|
Translate the following into a SQL query
|
What was the home team when the game was at Windy Hill?
|
SELECT Home team FROM table WHERE Venue = windy hill
|
Translate the following into a SQL query
|
What position has less than 343 laps in 2010?
|
SELECT Pos. FROM table WHERE Laps < 343 AND Year = 2010
|
Translate the following into a SQL query
|
What are panoz motor sports' lowest number of laps before 2002?
|
SELECT MIN Laps FROM table WHERE Team = panoz motor sports AND Year < 2002
|
Translate the following into a SQL query
|
What's the sum of the games that had paul (9) for high assists?
|
SELECT SUM Game FROM table WHERE High assists = paul (9)
|
Translate the following into a SQL query
|
What team had a high points of west (20)?
|
SELECT Team FROM table WHERE High points = west (20)
|
Translate the following into a SQL query
|
What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance?
|
SELECT COUNT Week FROM table WHERE Game site = robert f. kennedy memorial stadium AND Attendance > 54,633
|
Translate the following into a SQL query
|
What was the result of the game played in texas stadium with more than 46,267 in the crowd and against the pittsburgh steelers?
|
SELECT Result FROM table WHERE Game site = texas stadium AND Attendance > 46,267 AND Opponent = pittsburgh steelers
|
Translate the following into a SQL query
|
What opponent had a game with more than 50,705 in attendace on September 13, 1982?
|
SELECT Opponent FROM table WHERE Attendance > 50,705 AND Date = september 13, 1982
|
Translate the following into a SQL query
|
What is the time/retired associated with a grid of 5 and under 73 laps?
|
SELECT Time/Retired FROM table WHERE Laps < 73 AND Grid = 5
|
Translate the following into a SQL query
|
What was the free score of the skater with a total of 156.67?
|
SELECT Free FROM table WHERE Total = 156.67
|
Translate the following into a SQL query
|
What was the average figure score of the skater with a free score under 56.35?
|
SELECT AVG Figures FROM table WHERE Free < 56.35
|
Translate the following into a SQL query
|
Which opponent had round 1?
|
SELECT Opponent FROM table WHERE Round = 1
|
Translate the following into a SQL query
|
Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a?
|
SELECT Date FROM table WHERE Opponent = dender AND Tournament = jupiler league AND Ground = a
|
Translate the following into a SQL query
|
Which ground's round was 33?
|
SELECT Ground FROM table WHERE Round = 33
|
Translate the following into a SQL query
|
Which competition had a final position/round of 2?
|
SELECT Competition FROM table WHERE Final position / round = 2
|
Translate the following into a SQL query
|
Which first match had a final position/round in the third qualifying round?
|
SELECT First match FROM table WHERE Final position / round = third qualifying round
|
Translate the following into a SQL query
|
What is the lowest number of bronze medals for nations with over 6 total and 2 golds?
|
SELECT MIN Bronze FROM table WHERE Gold = 2 AND Total > 6
|
Translate the following into a SQL query
|
What is the total number of silver medals for karate athletes with over 2 golds?
|
SELECT COUNT Silver FROM table WHERE Sport = karate AND Gold > 2
|
Translate the following into a SQL query
|
What is the 2009 value with a 1r in 2010 and A in 2011?
|
SELECT 2009 FROM table WHERE 2010 = 1r AND 2011 = a
|
Translate the following into a SQL query
|
What is the 2009 value with a 2010 A value?
|
SELECT 2009 FROM table WHERE 2010 = a
|
Translate the following into a SQL query
|
What is the 2010 value with A in 2008, A in 2011, and 2r in 2012?
|
SELECT 2010 FROM table WHERE 2008 = a AND 2011 = a AND 2012 = 2r
|
Translate the following into a SQL query
|
What is the average attendance on april 24?
|
SELECT AVG Attendance FROM table WHERE Date = april 24
|
Translate the following into a SQL query
|
What was the score of the away team when Richmond played?
|
SELECT Away team score FROM table WHERE Away team = richmond
|
Translate the following into a SQL query
|
What company was Constructor when there were 16 laps and grid was 9?
|
SELECT Constructor FROM table WHERE Laps = 16 AND Grid = 9
|
Translate the following into a SQL query
|
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
|
SELECT Time/Retired FROM table WHERE Constructor = lotus - ford AND Laps < 17
|
Translate the following into a SQL query
|
What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
|
SELECT SUM Grid FROM table WHERE Time/Retired = engine AND Laps < 9
|
Translate the following into a SQL query
|
what was the attendance for a home venue and a w 3-0 result?
|
SELECT AVG Attendance FROM table WHERE Venue = home AND Result = w 3-0
|
Translate the following into a SQL query
|
what was the attendance at the home venue with result w 3-1?
|
SELECT MAX Attendance FROM table WHERE Venue = home AND Result = w 3-1
|
Translate the following into a SQL query
|
where did rochdale play as opponent?
|
SELECT Venue FROM table WHERE Opponent = rochdale
|
Translate the following into a SQL query
|
Which home team played in front of 18,345 people in Adelaide Oval?
|
SELECT Home Team FROM table WHERE Crowd > 18,345 AND Stadium = adelaide oval
|
Translate the following into a SQL query
|
Which team was hosted at Adelaide Oval?
|
SELECT Away Team FROM table WHERE Stadium = adelaide oval
|
Translate the following into a SQL query
|
When was a report not held?
|
SELECT Year FROM table WHERE Report = not held
|
Translate the following into a SQL query
|
Who was the visitor when vancouver was at home?
|
SELECT Visitor FROM table WHERE Home = vancouver
|
Translate the following into a SQL query
|
What is the decision when new jersey was away?
|
SELECT Decision FROM table WHERE Visitor = new jersey
|
Translate the following into a SQL query
|
What is URA Index scale?
|
SELECT Scale FROM table WHERE Name = ura index
|
Translate the following into a SQL query
|
What is the scale of sv_health with a word number smaller than 4?
|
SELECT Scale FROM table WHERE Word # < 4 AND Name = sv_health
|
Translate the following into a SQL query
|
Which tennis team is from the United States?
|
SELECT Team FROM table WHERE Sport = tennis AND Nation of citizenship = united states
|
Translate the following into a SQL query
|
What is the nation of citizenship for athletes later than 2011 year of award?
|
SELECT Nation of citizenship FROM table WHERE Year of award > 2011
|
Translate the following into a SQL query
|
What Constructor did Michael Schumacher have with a Grid smaller than 5?
|
SELECT Constructor FROM table WHERE Grid < 5 AND Driver = michael schumacher
|
Translate the following into a SQL query
|
Which driver has a Time/Retired of +1 lap?
|
SELECT Driver FROM table WHERE Time/Retired = +1 lap
|
Translate the following into a SQL query
|
Which apparatus had a final score that was more than 17.75?
|
SELECT Apparatus FROM table WHERE Score-Final > 17.75
|
Translate the following into a SQL query
|
Which competition description's apparatus was ribbon?
|
SELECT Competition Description FROM table WHERE Apparatus = ribbon
|
Translate the following into a SQL query
|
Which Qualifying score had hoop as an apparatus?
|
SELECT Score-Qualifying FROM table WHERE Apparatus = hoop
|
Translate the following into a SQL query
|
What is the sum of qualifying scores when the final score is 16.625?
|
SELECT COUNT Score-Qualifying FROM table WHERE Score-Final = 16.625
|
Translate the following into a SQL query
|
When was the game played at Princes Park?
|
SELECT Date FROM table WHERE Venue = princes park
|
Translate the following into a SQL query
|
What did Melbourne score as the home team?
|
SELECT Home team score FROM table WHERE Home team = melbourne
|
Translate the following into a SQL query
|
What position does the player from malvern prep play?
|
SELECT Position FROM table WHERE High School = malvern prep
|
Translate the following into a SQL query
|
What team scored more than 572 points and had more than 29 games?
|
SELECT Team FROM table WHERE Points > 572 AND Games > 29
|
Translate the following into a SQL query
|
What is the least amount of games for Luis scola with a rank greater than 1?
|
SELECT MIN Games FROM table WHERE Rank > 1 AND Name = luis scola
|
Translate the following into a SQL query
|
What is the identity of the brighton works built train?
|
SELECT Identity FROM table WHERE Builder = brighton works
|
Translate the following into a SQL query
|
What was the attendance on May 13?
|
SELECT Attendance FROM table WHERE Date = may 13
|
Translate the following into a SQL query
|
What is the highest Quantity for PTRD Nos. 3, 15?
|
SELECT MAX Quantity FROM table WHERE PTRD Nos. = 3, 15
|
Translate the following into a SQL query
|
How many were hosted whene the average attendance was 27,638?
|
SELECT COUNT Hosted FROM table WHERE Average = 27,638
|
Translate the following into a SQL query
|
What is the lowest attendance last year when more than 176 were hosted?
|
SELECT MIN Last Year FROM table WHERE Hosted > 176
|
Translate the following into a SQL query
|
Of 2010 est. with less than 171,750 and 2000 less than 131,714, what is the 1970 population average?
|
SELECT AVG 1970 FROM table WHERE 2010 est. = 171,750 AND 2000 < 131,714
|
Translate the following into a SQL query
|
With 1990 growth greater than 19,988 and 1970 growth less than 10,522, what is the 1980 average?
|
SELECT AVG 1980 FROM table WHERE 1990 > 19,988 AND 1970 < 10,522
|
Translate the following into a SQL query
|
Of 2000 growth less than 32,093 and 1980 growth over 64,975, what is the 1970 total number?
|
SELECT COUNT 1970 FROM table WHERE 2000 < 32,093 AND 1980 > 64,975
|
Translate the following into a SQL query
|
How many 1990 growth numbers had less than 10,522 in 1970?
|
SELECT COUNT 1990 FROM table WHERE 1970 < 10,522
|
Translate the following into a SQL query
|
Which is the lowest 1980 growth that had 2,610 in 1970?
|
SELECT MIN 1980 FROM table WHERE 1970 = 2,610
|
Translate the following into a SQL query
|
What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
|
SELECT MAX Laps FROM table WHERE Grid < 4 AND Time/Retired = + 1 lap
|
Translate the following into a SQL query
|
How many laps associated with a Time/Retired of + 1:25.475?
|
SELECT COUNT Laps FROM table WHERE Time/Retired = + 1:25.475
|
Translate the following into a SQL query
|
Where was the game played where the away team scored 12.15 (87)?
|
SELECT Venue FROM table WHERE Away team score = 12.15 (87)
|
Translate the following into a SQL query
|
Which away team played a home team with the score of 13.12 (90)?
|
SELECT Away team FROM table WHERE Home team score = 13.12 (90)
|
Translate the following into a SQL query
|
What is the score for the away team when the home team scored 19.17 (131)?
|
SELECT Away team score FROM table WHERE Home team score = 19.17 (131)
|
Translate the following into a SQL query
|
What was the home teams score when the VFL played Princes Park?
|
SELECT Home team score FROM table WHERE Venue = princes park
|
Translate the following into a SQL query
|
What was the opponents score when Geelong played as home team?
|
SELECT Away team score FROM table WHERE Home team = geelong
|
Translate the following into a SQL query
|
What was the home teams score when the VFL played at Kardinia Park?
|
SELECT Home team score FROM table WHERE Venue = kardinia park
|
Translate the following into a SQL query
|
When did Fitzroy play as the away team?
|
SELECT Date FROM table WHERE Away team = fitzroy
|
Translate the following into a SQL query
|
What is the average number of goals of the player with 234 apps and a rank above 8?
|
SELECT AVG Goals FROM table WHERE Apps = 234 AND Rank < 8
|
Translate the following into a SQL query
|
What is the average avg/game of the player with 97 goals and a rank above 7?
|
SELECT AVG Avg/Game FROM table WHERE Goals = 97 AND Rank < 7
|
Translate the following into a SQL query
|
What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?
|
SELECT MAX Won (PG) FROM table WHERE Goals Conceded (GC) < 21 AND Played (PJ) < 18
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.