instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the nation of the person who was from the CSC team?
|
SELECT Nation FROM table WHERE Team = csc
|
Translate the following into a SQL query
|
Who is the cyclist from the GCE team and had UCI points under 20?
|
SELECT Cyclist FROM table WHERE Team = gce AND UCI Points < 20
|
Translate the following into a SQL query
|
Which nation is Danilo di Luca from?
|
SELECT Nation FROM table WHERE Cyclist = danilo di luca
|
Translate the following into a SQL query
|
Which nation is Robert Gesink from?
|
SELECT Nation FROM table WHERE Cyclist = robert gesink
|
Translate the following into a SQL query
|
What is the sum of UCI points for Kim Kirchen?
|
SELECT SUM UCI Points FROM table WHERE Cyclist = kim kirchen
|
Translate the following into a SQL query
|
How many games for the player that has an over 2.7 assist average and over 598 total assists?
|
SELECT COUNT Games FROM table WHERE Ast. Avg. > 2.7 AND Total Assists > 598
|
Translate the following into a SQL query
|
How many assists does cam long average in under 132 games?
|
SELECT MAX Ast. Avg. FROM table WHERE Player = cam long AND Games < 132
|
Translate the following into a SQL query
|
Where is the Stadium of Gortakeegan located?
|
SELECT Location FROM table WHERE Stadium = gortakeegan
|
Translate the following into a SQL query
|
What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park?
|
SELECT MIN Rank FROM table WHERE Seating Capacity < 7,485 AND Stadium = st. colman's park
|
Translate the following into a SQL query
|
In 1972, how many points did the entrant with the March 721G Chassis have?
|
SELECT Points FROM table WHERE Year > 1972 AND Chassis = march 721g
|
Translate the following into a SQL query
|
In 1971, how many total points did the entrant stp march have?
|
SELECT COUNT Points FROM table WHERE Entrant = stp march AND Year > 1971
|
Translate the following into a SQL query
|
Which Chassis was featured in the year 1971?
|
SELECT Chassis FROM table WHERE Year = 1971
|
Translate the following into a SQL query
|
Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?
|
SELECT Chassis FROM table WHERE Entrant = clarke-mordaunt-guthrie-durlacher
|
Translate the following into a SQL query
|
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?
|
SELECT AVG Total G FROM table WHERE L Apps = 29 AND Player = bartolo AND C Apps > 5
|
Translate the following into a SQL query
|
What is the lowest round for Southern College?
|
SELECT MIN Round FROM table WHERE College = southern
|
Translate the following into a SQL query
|
Who had the placekicker position with a round above 10?
|
SELECT Name FROM table WHERE Round > 10 AND Position = placekicker
|
Translate the following into a SQL query
|
What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?
|
SELECT Partner FROM table WHERE Surface = clay AND Opponents = guillermo garcía-lópez albert portas
|
Translate the following into a SQL query
|
What are the dates where the opponent was guillermo garcía-lópez albert portas?
|
SELECT Date FROM table WHERE Opponents = guillermo garcía-lópez albert portas
|
Translate the following into a SQL query
|
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?
|
SELECT MIN Year FROM table WHERE Class = 125cc AND Points > 102 AND Rank = 2nd
|
Translate the following into a SQL query
|
Which team had fewer than 167 points in the 250cc class?
|
SELECT Team FROM table WHERE Points < 167 AND Class = 250cc
|
Translate the following into a SQL query
|
For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?
|
SELECT SUM Points FROM table WHERE Class = 125cc AND Rank = 3rd AND Year < 1996
|
Translate the following into a SQL query
|
Who did the Raiders play in week 12?
|
SELECT Opponent FROM table WHERE Week = 12
|
Translate the following into a SQL query
|
How many people were at the game that took place at the Kingdome?
|
SELECT Attendance FROM table WHERE Game site = the kingdome
|
Translate the following into a SQL query
|
Which is the LMS SPR when the car number was 15?
|
SELECT LMS SPR FROM table WHERE Car No. = 15
|
Translate the following into a SQL query
|
When the CAT FEA is 3 how many points were scored?
|
SELECT Points FROM table WHERE CAT FEA = 3
|
Translate the following into a SQL query
|
What was the SPA FEA when the LMS FEA was 5?
|
SELECT SPA FEA FROM table WHERE LMS FEA = 5
|
Translate the following into a SQL query
|
What was the MNZ FEA when the SIL SPR was 18?
|
SELECT MNZ FEA FROM table WHERE SIL SPR = 18
|
Translate the following into a SQL query
|
Which years did the Tampa Bay Storm win the Championships?
|
SELECT Championships (Years) FROM table WHERE Club = tampa bay storm
|
Translate the following into a SQL query
|
What is the height of the person born before 1975?
|
SELECT Height FROM table WHERE Year born < 1975
|
Translate the following into a SQL query
|
How many times did Ken Wright expired in North Western?
|
SELECT COUNT Term expires FROM table WHERE Province = north western AND Name = ken wright
|
Translate the following into a SQL query
|
Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide?
|
SELECT SUM Species on Réunion FROM table WHERE Order = procellariiformes AND Family = hydrobatidae AND Species worldwide < 21
|
Translate the following into a SQL query
|
How many species does the sternidae family have worldwide with less than 9 species on Réunion?
|
SELECT COUNT Species worldwide FROM table WHERE Family = sternidae AND Species on Réunion < 9
|
Translate the following into a SQL query
|
How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1?
|
SELECT SUM Species on Réunion FROM table WHERE Family = dromadidae AND Species worldwide > 1
|
Translate the following into a SQL query
|
Name the 2010 with tournament of grand slam tournaments
|
SELECT 2010 FROM table WHERE Tournament = grand slam tournaments
|
Translate the following into a SQL query
|
Name the 2008 with 2010 of 2r and wimbledon tournament
|
SELECT 2008 FROM table WHERE 2010 = 2r AND Tournament = wimbledon
|
Translate the following into a SQL query
|
Name the 2013 for 2010 of 1r
|
SELECT 2013 FROM table WHERE 2010 = 1r
|
Translate the following into a SQL query
|
Name the 2010 for 2008 of 1r and tournament of us open
|
SELECT 2010 FROM table WHERE 2008 = 1r AND 2011 = 1r AND Tournament = us open
|
Translate the following into a SQL query
|
Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?
|
SELECT Years FROM table WHERE Decile = 4 AND Authority = state AND Name = mapiu school
|
Translate the following into a SQL query
|
Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?
|
SELECT Years FROM table WHERE Decile < 6 AND Area = te kuiti AND Authority = state integrated
|
Translate the following into a SQL query
|
What is the average Decile with a state authority and a Name of mapiu school?
|
SELECT AVG Decile FROM table WHERE Authority = state AND Name = mapiu school
|
Translate the following into a SQL query
|
Which years have an Area of rangitoto?
|
SELECT Years FROM table WHERE Area = rangitoto
|
Translate the following into a SQL query
|
Which gender has a Name of rangitoto school?
|
SELECT Gender FROM table WHERE Name = rangitoto school
|
Translate the following into a SQL query
|
What is the t o par for Ralph Guldahl?
|
SELECT To par FROM table WHERE Player = ralph guldahl
|
Translate the following into a SQL query
|
What is the score for Ky Laffoon?
|
SELECT Score FROM table WHERE Player = ky laffoon
|
Translate the following into a SQL query
|
What is the score of Ralph Guldahl, who has more than $100?
|
SELECT Score FROM table WHERE Money ( $ ) > 100 AND Player = ralph guldahl
|
Translate the following into a SQL query
|
What is the highest amount of money a play from Scotland United States has?
|
SELECT MAX Money ( $ ) FROM table WHERE Country = scotland united states
|
Translate the following into a SQL query
|
How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?
|
SELECT COUNT Goals for FROM table WHERE Pct % > 0.557 AND Points < 90 AND Games > 68
|
Translate the following into a SQL query
|
What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?
|
SELECT COUNT Record (%) [draw = 0.5 wins] FROM table WHERE Wins > 3 AND Matches = 10 AND Draws > 1
|
Translate the following into a SQL query
|
How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?
|
SELECT MAX Draws FROM table WHERE Matches > 6 AND Club = newcastle knights AND Record (%) [draw = 0.5 wins] > 25
|
Translate the following into a SQL query
|
Which club has the most losses with 10 matches played and more than 1 draw?
|
SELECT MAX Losses FROM table WHERE Matches = 10 AND Draws > 1
|
Translate the following into a SQL query
|
The year of 1985 which has a BB +HBP of 39 has what Number listed?
|
SELECT Number FROM table WHERE BB +HBP = 39 AND Year = 1985
|
Translate the following into a SQL query
|
The year that has a BB + HBP of 51 is listed as?
|
SELECT Year FROM table WHERE BB +HBP = 51
|
Translate the following into a SQL query
|
In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?
|
SELECT BA (Place) FROM table WHERE BB +HBP > 49 AND Team = seibu lions AND Year = 1992
|
Translate the following into a SQL query
|
What team lost on May 1?
|
SELECT Loss FROM table WHERE Date = may 1
|
Translate the following into a SQL query
|
What was the final score for the game on May 1?
|
SELECT Score FROM table WHERE Date = may 1
|
Translate the following into a SQL query
|
What was the final score for the game on May 4?
|
SELECT Score FROM table WHERE Date = may 4
|
Translate the following into a SQL query
|
In 1994 what tournament held a ATP masters series
|
SELECT 1994 FROM table WHERE Tournament = atp masters series
|
Translate the following into a SQL query
|
What is the Career SR of the year that held the masters series Sr tournament
|
SELECT Career SR FROM table WHERE Tournament = masters series sr
|
Translate the following into a SQL query
|
WHich competition was held on Alvor with a score 1-0?
|
SELECT Competition FROM table WHERE Score = 1-0 AND Location = alvor
|
Translate the following into a SQL query
|
Which name has a Lane of 7?
|
SELECT Name FROM table WHERE Lane = 7
|
Translate the following into a SQL query
|
How many lanes have a Nationality of iceland?
|
SELECT SUM Lane FROM table WHERE Nationality = iceland
|
Translate the following into a SQL query
|
What is the smallest rank with a Lane of 1?
|
SELECT MIN Rank FROM table WHERE Lane = 1
|
Translate the following into a SQL query
|
What was the final score of Game 1?
|
SELECT Score FROM table WHERE Game = 1
|
Translate the following into a SQL query
|
What date has 2:48 as the time?
|
SELECT Date FROM table WHERE Time = 2:48
|
Translate the following into a SQL query
|
Which record has 2:57 as the time?
|
SELECT Record FROM table WHERE Time = 2:57
|
Translate the following into a SQL query
|
Can you tell me the Losing BP that has Played of 22, and the Lost of 5?
|
SELECT Losing BP FROM table WHERE Played = 22 AND Lost = 5
|
Translate the following into a SQL query
|
Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?
|
SELECT Lost FROM table WHERE Try BP = 10 AND Club = uwic rfc
|
Translate the following into a SQL query
|
Can you tell me the Club that has the Lost of 19?
|
SELECT Club FROM table WHERE Lost = 19
|
Translate the following into a SQL query
|
Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0?
|
SELECT Lost FROM table WHERE Losing BP = 5 AND Try BP = 0
|
Translate the following into a SQL query
|
Can you tell me the Played that has the Club of club?
|
SELECT Played FROM table WHERE Club = club
|
Translate the following into a SQL query
|
Can you tell me the Club thay has the Try BP of 0?
|
SELECT Club FROM table WHERE Try BP = 0
|
Translate the following into a SQL query
|
What date did the Mountaineers score 27 points and their opponent scored more that 7?
|
SELECT Date FROM table WHERE Points Against > 7 AND Points For = 27
|
Translate the following into a SQL query
|
What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?
|
SELECT Result FROM table WHERE Points For < 13 AND Points Against = 26
|
Translate the following into a SQL query
|
With a Tally of 0-14, what is the Rank in Kilkenny County?
|
SELECT COUNT Rank FROM table WHERE County = kilkenny AND Tally = 0-14
|
Translate the following into a SQL query
|
What County has Dublin as the Opposition?
|
SELECT County FROM table WHERE Opposition = dublin
|
Translate the following into a SQL query
|
In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?
|
SELECT AVG Rank FROM table WHERE Opposition = tipperary AND County = limerick AND Total > 12
|
Translate the following into a SQL query
|
What Player in Opposition of Kilkenny has a Total of 10?
|
SELECT Player FROM table WHERE Total = 10 AND Opposition = kilkenny
|
Translate the following into a SQL query
|
What is the time in Romania that has a lane larger than 4?
|
SELECT Time FROM table WHERE Lane > 4 AND Nationality = romania
|
Translate the following into a SQL query
|
Jin Hao had what amount of heat?
|
SELECT Heat FROM table WHERE Name = jin hao
|
Translate the following into a SQL query
|
At time 15:29.69 what was the heat?
|
SELECT Heat FROM table WHERE Time = 15:29.69
|
Translate the following into a SQL query
|
What is the class of the team when less than 6 laps were completed?
|
SELECT Class FROM table WHERE Laps < 6
|
Translate the following into a SQL query
|
What is the year when Scuderia Lancia Corse competed?
|
SELECT COUNT Year FROM table WHERE Team = scuderia lancia corse
|
Translate the following into a SQL query
|
What was the position of the teams before 1973?
|
SELECT Pos. FROM table WHERE Year < 1973
|
Translate the following into a SQL query
|
What is the laid down date of Kaki?
|
SELECT Laid down FROM table WHERE Name = kaki
|
Translate the following into a SQL query
|
What is the launch date of 栗?
|
SELECT Launched FROM table WHERE Kanji = 栗
|
Translate the following into a SQL query
|
What is the completed date of 蓬?
|
SELECT Completed FROM table WHERE Kanji = 蓬
|
Translate the following into a SQL query
|
Which catalog was published on December 19, 2001?
|
SELECT Catalog FROM table WHERE Date = december 19, 2001
|
Translate the following into a SQL query
|
What is the label for October 21, 1981?
|
SELECT Label FROM table WHERE Date = october 21, 1981
|
Translate the following into a SQL query
|
What is the date for Catalog Alca-9201?
|
SELECT Date FROM table WHERE Catalog = alca-9201
|
Translate the following into a SQL query
|
What is the format for July 27, 1994?
|
SELECT Format FROM table WHERE Date = july 27, 1994
|
Translate the following into a SQL query
|
What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?
|
SELECT Date FROM table WHERE Label = alfa records AND Format = cd AND Catalog = alca-9201
|
Translate the following into a SQL query
|
What catalog has the CD format?
|
SELECT Catalog FROM table WHERE Format = cd
|
Translate the following into a SQL query
|
Which nationaly is ranked greater than 1, with a time of 59.75?
|
SELECT Nationality FROM table WHERE Rank > 1 AND Time = 59.75
|
Translate the following into a SQL query
|
Which france nationality has a lane larger than 3?
|
SELECT Name FROM table WHERE Lane > 3 AND Nationality = france
|
Translate the following into a SQL query
|
What's the total rank of the lane smaller than 8 with a time of 59.80?
|
SELECT SUM Rank FROM table WHERE Time = 59.80 AND Lane < 8
|
Translate the following into a SQL query
|
What's the top rank that's lane is smaller than 1?
|
SELECT MAX Rank FROM table WHERE Lane < 1
|
Translate the following into a SQL query
|
What year did deputy prime minister Mariano Rajoy Brey take office?
|
SELECT SUM Took office FROM table WHERE Deputy Prime Minister = mariano rajoy brey
|
Translate the following into a SQL query
|
Which deputy prime minister left office in 2004 and was in the 7th legislature?
|
SELECT Deputy Prime Minister FROM table WHERE Term = 7th legislature AND Left office = 2004
|
Translate the following into a SQL query
|
Which deputy prime minister left office in 1981?
|
SELECT Deputy Prime Minister FROM table WHERE Left office = 1981
|
Translate the following into a SQL query
|
How many points did Connaught Type A chassis earn on average before 1955?
|
SELECT AVG Points FROM table WHERE Year < 1955 AND Chassis = connaught type a
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.