instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?
|
SELECT SUM P desc FROM table WHERE P 2007 = 0,00 AND P Ap 2008 < 30,00 AND P Cl 2008 > 10,56
|
Translate the following into a SQL query
|
Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?
|
SELECT AVG Fighting Spirit FROM table WHERE Name = tsurugamine AND Technique < 10
|
Translate the following into a SQL query
|
How much Technique has the Highest rank of yokozuna, and a Total larger than 11?
|
SELECT COUNT Technique FROM table WHERE Highest rank = yokozuna AND Total > 11
|
Translate the following into a SQL query
|
How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?
|
SELECT SUM Fighting Spirit FROM table WHERE Total = 13 AND Technique < 1
|
Translate the following into a SQL query
|
What are asashio's years?
|
SELECT Years FROM table WHERE Name = asashio
|
Translate the following into a SQL query
|
Which County has a Precincts of 33/33?
|
SELECT County FROM table WHERE Precincts = 33/33
|
Translate the following into a SQL query
|
Name the T. Wyka has a Precincts of 51/55?
|
SELECT T. Wyka FROM table WHERE Precincts = 51/55
|
Translate the following into a SQL query
|
Which Precincts has a G. Hager of 2,260 (15%)?
|
SELECT Precincts FROM table WHERE G. Hager = 2,260 (15%)
|
Translate the following into a SQL query
|
Name the G. Hager of E. Greenberg of 266 (14%)?
|
SELECT G. Hager FROM table WHERE E. Greenberg = 266 (14%)
|
Translate the following into a SQL query
|
Which Precincts has a County of passaic?
|
SELECT Precincts FROM table WHERE County = passaic
|
Translate the following into a SQL query
|
Which E. Greenberg has a T. Wyka of 10,793 (70%)?
|
SELECT E. Greenberg FROM table WHERE T. Wyka = 10,793 (70%)
|
Translate the following into a SQL query
|
Which player from England finished in T41?
|
SELECT Player FROM table WHERE Finish = t41 AND Country = england
|
Translate the following into a SQL query
|
From which country is the player that won in 1998?
|
SELECT Country FROM table WHERE Year(s) won = 1998
|
Translate the following into a SQL query
|
In 1997, what was the final total?
|
SELECT Total FROM table WHERE Year(s) won = 1997
|
Translate the following into a SQL query
|
What was the To Par score for player Justin Leonard?
|
SELECT To par FROM table WHERE Player = justin leonard
|
Translate the following into a SQL query
|
How many points were scored by the player who played 348 games?
|
SELECT Points FROM table WHERE Games = 348
|
Translate the following into a SQL query
|
How many points were scored by the player who played 363 games?
|
SELECT Points FROM table WHERE Games = 363
|
Translate the following into a SQL query
|
What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?
|
SELECT Replaced by FROM table WHERE Manner of departure = end of contract AND Date of appointment = dec. 16, 2008
|
Translate the following into a SQL query
|
What kind of Replaced has a Outgoing manager of guillermo sanguinetti?
|
SELECT Replaced by FROM table WHERE Outgoing manager = guillermo sanguinetti
|
Translate the following into a SQL query
|
What kind of Replaced has a Team of gimnasia y esgrima (lp)?
|
SELECT Replaced by FROM table WHERE Team = gimnasia y esgrima (lp)
|
Translate the following into a SQL query
|
Which Team has a Position in table of 15th (c)?
|
SELECT Team FROM table WHERE Position in table = 15th (c)
|
Translate the following into a SQL query
|
Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?
|
SELECT Team FROM table WHERE Position in table = 15th (a) AND Outgoing manager = claudio borghi
|
Translate the following into a SQL query
|
Which Team has a Date of appointment on sep. 20, 2008?
|
SELECT Team FROM table WHERE Date of appointment = sep. 20, 2008
|
Translate the following into a SQL query
|
What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?
|
SELECT MAX Losses FROM table WHERE Position < 6 AND Wins > 11 AND Points = 36 AND Played > 30
|
Translate the following into a SQL query
|
What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?
|
SELECT COUNT Wins FROM table WHERE Goals against < 49 AND Draws = 9 AND Goals for = 39 AND Points < 31
|
Translate the following into a SQL query
|
What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?
|
SELECT AVG Goals for FROM table WHERE Losses > 12 AND Wins > 10 AND Points < 29 AND Draws > 3
|
Translate the following into a SQL query
|
What is the highest number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?
|
SELECT MAX Wins FROM table WHERE Draws > 4 AND Club = cd orense AND Points > 36
|
Translate the following into a SQL query
|
What is the total number of played for the entry with a position of less than 1?
|
SELECT SUM Played FROM table WHERE Position < 1
|
Translate the following into a SQL query
|
For the match that lasted 3:53 minutes, what was the final record?
|
SELECT Record FROM table WHERE Time = 3:53
|
Translate the following into a SQL query
|
Where was the UFC 154 match held?
|
SELECT Location FROM table WHERE Event = ufc 154
|
Translate the following into a SQL query
|
What is the 1st leg that has a Rc Cannes Team 1?
|
SELECT 1st leg FROM table WHERE Team 1 = rc cannes
|
Translate the following into a SQL query
|
What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?
|
SELECT MIN Position FROM table WHERE Points > 40 AND Wins = 16 AND Loses < 3
|
Translate the following into a SQL query
|
What is the lowest positioned team with 2 wins and losses greater than 13?
|
SELECT MIN Position FROM table WHERE Wins = 2 AND Loses > 13
|
Translate the following into a SQL query
|
What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?
|
SELECT MIN Wins FROM table WHERE Goals conceded < 26 AND Draws = 1 AND Goals scored < 74
|
Translate the following into a SQL query
|
For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39?
|
SELECT MIN Wins FROM table WHERE Points < 25 AND Goals scored = 22 AND Club = minija kretinga AND Goals conceded < 39
|
Translate the following into a SQL query
|
In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?
|
SELECT Place FROM table WHERE Silver = valeri postoianov ( urs ) AND Year > 1969 AND Bronze = alexander gazov ( urs )
|
Translate the following into a SQL query
|
Who won the Bronze at Melbourne?
|
SELECT Bronze FROM table WHERE Place = melbourne
|
Translate the following into a SQL query
|
In what Place was the Silver won by vladimir vesselov ( urs )?
|
SELECT Place FROM table WHERE Silver = vladimir vesselov ( urs )
|
Translate the following into a SQL query
|
WHAT IS THE 6:30PM WITH BEETLEBORGS METALLIX AT 3:30PM?
|
SELECT 6:30 pm FROM table WHERE 3:30 pm = beetleborgs metallix
|
Translate the following into a SQL query
|
WHAT IS THE 1:00PM WITH LOCAL PROGRAMS AT 3:00PM?
|
SELECT 1:00 pm FROM table WHERE 3:00 pm = local programs
|
Translate the following into a SQL query
|
WHAT IS THE 8:00AM WITH LOCAL PROGRAMS AT 3:00PM?
|
SELECT 8:00 am FROM table WHERE 3:00 pm = local programs
|
Translate the following into a SQL query
|
WHAT IS THE 11:00AM WITH LOCAL PROGRAMS AT 1:30PM?
|
SELECT 11:00 am FROM table WHERE 1:30 pm = local programs
|
Translate the following into a SQL query
|
WHAT IS THE 2:00PM WITH SUNSET BEACH AT NOON?
|
SELECT 2:00 pm FROM table WHERE noon = sunset beach
|
Translate the following into a SQL query
|
WHAT IS THE 3:30PM WITH ANOTHER WORLD AT 2:00PM?
|
SELECT 3:30 pm FROM table WHERE 2:00 pm = another world
|
Translate the following into a SQL query
|
What is Award, when Result is "Nominated", and when Film is "Sankranthi"?
|
SELECT Award FROM table WHERE Result = nominated AND Film = sankranthi
|
Translate the following into a SQL query
|
What is Award, when Category is "Best Actor", and when Year is less than 1988?
|
SELECT Award FROM table WHERE Category = best actor AND Year < 1988
|
Translate the following into a SQL query
|
What is the total number of Year, when Award is "Vamsi Berkley Award", and when Category is "Best Actor"?
|
SELECT COUNT Year FROM table WHERE Award = vamsi berkley award AND Category = best actor
|
Translate the following into a SQL query
|
What is Result, when Film is "Dharma Chakram", and when Award is "Nandi Award for Best Actor"?
|
SELECT Result FROM table WHERE Film = dharma chakram AND Award = nandi award for best actor
|
Translate the following into a SQL query
|
What is Opponent, when Date is "Dec 8"?
|
SELECT Opponent FROM table WHERE Date = dec 8
|
Translate the following into a SQL query
|
What is Score, when Date is "Nov 28"?
|
SELECT Score FROM table WHERE Date = nov 28
|
Translate the following into a SQL query
|
What is Date, when Score is "80-79"?
|
SELECT Date FROM table WHERE Score = 80-79
|
Translate the following into a SQL query
|
What is Record, when Opponent is "New York Knicks"?
|
SELECT Record FROM table WHERE Opponent = new york knicks
|
Translate the following into a SQL query
|
What is Score, when Opponent is "@ New York Knicks"?
|
SELECT Score FROM table WHERE Opponent = @ new york knicks
|
Translate the following into a SQL query
|
What is Result, when Opponent is "Rochester Royals"?
|
SELECT Result FROM table WHERE Opponent = rochester royals
|
Translate the following into a SQL query
|
What was the Result at Strathclyde Homes Stadium?
|
SELECT Result FROM table WHERE Venue = strathclyde homes stadium
|
Translate the following into a SQL query
|
Name the Score of spain?
|
SELECT Score FROM table WHERE Country = spain
|
Translate the following into a SQL query
|
Which Country has a To par of −2? Question 2
|
SELECT Country FROM table WHERE To par = −2
|
Translate the following into a SQL query
|
Which Place has a To par of −1 and don pooley?
|
SELECT Place FROM table WHERE To par = −1 AND Player = don pooley
|
Translate the following into a SQL query
|
What is week 15's result?
|
SELECT Result FROM table WHERE Week = 15
|
Translate the following into a SQL query
|
What week did Cleveland Browns played?
|
SELECT AVG Week FROM table WHERE Opponent = cleveland browns
|
Translate the following into a SQL query
|
What is the Highest Goals for Grella?
|
SELECT MAX Goals FROM table WHERE Name = grella
|
Translate the following into a SQL query
|
What is in the Notes for Player Name Grella?
|
SELECT Notes FROM table WHERE Name = grella
|
Translate the following into a SQL query
|
Who position did matthew tassone who was drafted after round 5 play?
|
SELECT Position FROM table WHERE Round > 5 AND Player = matthew tassone
|
Translate the following into a SQL query
|
what is the average % coal when the % natural gas is more than 11.6, electricity production (kw/h, billion) is less than 1,053 and % hydropower is 32?
|
SELECT AVG % Coal FROM table WHERE % Natural gas > 11.6 AND Electricity production (Kw/h, billion) < 1,053 AND % Hydropower = 32
|
Translate the following into a SQL query
|
what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0?
|
SELECT MAX % Hydropower FROM table WHERE % Oil < 24.5 AND Country = united arab emirates AND % Nuclear power < 0
|
Translate the following into a SQL query
|
what is the highest % hydropower when % coal is 4.9 and % nuclear power is more than 0?
|
SELECT MAX % Hydropower FROM table WHERE % Coal = 4.9 AND % Nuclear power > 0
|
Translate the following into a SQL query
|
what is the highest electricity production (kw/h, billion) when the % other renewable is 0.4, % coal is 0 and % hydropower is more than 99?
|
SELECT MAX Electricity production (Kw/h, billion) FROM table WHERE % Other renewable = 0.4 AND % Coal = 0 AND % Hydropower > 99
|
Translate the following into a SQL query
|
What is the lowest CDR that has 112 as the difference?
|
SELECT MIN CDR* FROM table WHERE Difference = 112
|
Translate the following into a SQL query
|
What TFR has births less than 131, with 125 as an IMR?
|
SELECT TFR* FROM table WHERE Births < 131 AND IMR* = 125
|
Translate the following into a SQL query
|
What average deaths have 15,0 as the IMR, with a CDR greater than 4,0?
|
SELECT AVG Deaths FROM table WHERE IMR* = 15,0 AND CDR* > 4,0
|
Translate the following into a SQL query
|
Who is the player in round 6?
|
SELECT Player FROM table WHERE Round = 6
|
Translate the following into a SQL query
|
What college did Louis LeBlanc attend?
|
SELECT College/junior/club team (league) FROM table WHERE Player = louis leblanc
|
Translate the following into a SQL query
|
How many goals against total did the team with more than 52 goals and fewer than 10 losses have?
|
SELECT SUM Goals against FROM table WHERE Goals for > 52 AND Losses < 10
|
Translate the following into a SQL query
|
What was the low number of draws for Levante Ud when their goal difference was smaller than 6?
|
SELECT MIN Draws FROM table WHERE Club = levante ud AND Goal Difference < 6
|
Translate the following into a SQL query
|
What is the average entry in the against column with draws smaller than 0?
|
SELECT AVG Against FROM table WHERE Draws < 0
|
Translate the following into a SQL query
|
What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?
|
SELECT SUM Losses FROM table WHERE Portland DFL = westerns AND Draws > 1
|
Translate the following into a SQL query
|
What is the sum of draws for all byes larger than 0?
|
SELECT SUM Draws FROM table WHERE Byes > 0
|
Translate the following into a SQL query
|
What is the sum of byes for losses larger than 14 for a Portland DFL of westerns?
|
SELECT SUM Byes FROM table WHERE Portland DFL = westerns AND Losses > 14
|
Translate the following into a SQL query
|
What was the result when the opponent was at 2 usc?
|
SELECT Result FROM table WHERE Opponent# = at 2 usc
|
Translate the following into a SQL query
|
What was the result on 10/08/1988?
|
SELECT Result FROM table WHERE Date = 10/08/1988
|
Translate the following into a SQL query
|
What was the rank# of the opponent when the result of the game was w42-14?
|
SELECT Rank # FROM table WHERE Result = w42-14
|
Translate the following into a SQL query
|
What was the result of the game that had 56,500 in attendance?
|
SELECT Result FROM table WHERE Attendance = 56,500
|
Translate the following into a SQL query
|
What was the rank# of the opponent when there was 93,829 in attendance?
|
SELECT Rank # FROM table WHERE Attendance = 93,829
|
Translate the following into a SQL query
|
On what date was the game played where the opponent was Stanford, ranked #5?
|
SELECT Date FROM table WHERE Rank # = 5 AND Opponent# = stanford
|
Translate the following into a SQL query
|
Which Number of electorates (2009) has a Reserved for (SC / ST /None) of total:?
|
SELECT Number of electorates (2009) FROM table WHERE Reserved for ( SC / ST /None) = total:
|
Translate the following into a SQL query
|
What tournament took place after 1973?
|
SELECT Tournament FROM table WHERE Year > 1973
|
Translate the following into a SQL query
|
What tournament took place before 1972 with an extra of 200 m?
|
SELECT Tournament FROM table WHERE Extra = 200 m AND Year < 1972
|
Translate the following into a SQL query
|
What is the current code for the club trophy, in 1867 only?
|
SELECT Current code FROM table WHERE Type = club trophy AND Years = 1867 only
|
Translate the following into a SQL query
|
What is the location of the original code for victorian rules?
|
SELECT Location FROM table WHERE Original code = victorian rules
|
Translate the following into a SQL query
|
What is the location for the club trophy?
|
SELECT Location FROM table WHERE Type = club trophy
|
Translate the following into a SQL query
|
What is the location for the club trophy from the year 1867 only?
|
SELECT Location FROM table WHERE Type = club trophy AND Years = 1867 only
|
Translate the following into a SQL query
|
What is Score, when Tournament is "Tampere , Finland"?
|
SELECT Score FROM table WHERE Tournament = tampere , finland
|
Translate the following into a SQL query
|
What is Surface, when Opponent is "Jiří Vaněk"?
|
SELECT Surface FROM table WHERE Opponent = jiří vaněk
|
Translate the following into a SQL query
|
What is Score, when Opponent is "Ivo Minář"?
|
SELECT Score FROM table WHERE Opponent = ivo minář
|
Translate the following into a SQL query
|
What is Score, when Opponent is "Daniel Gimeno-Traver"?
|
SELECT Score FROM table WHERE Opponent = daniel gimeno-traver
|
Translate the following into a SQL query
|
What is Tournament, when Moves is "37", and when Result is "½–½"?
|
SELECT Tournament FROM table WHERE Moves = 37 AND Result = ½–½
|
Translate the following into a SQL query
|
What is Result, when Year is greater than 1999, when White is "Kramnik", and when Tournament is "Mainz CC Champions Duel (5)"?
|
SELECT Result FROM table WHERE Year > 1999 AND White = kramnik AND Tournament = mainz cc champions duel (5)
|
Translate the following into a SQL query
|
What is Opening, when White is Kramnik, when Year is less than 2001, and when Tournament is "Siemens Giants"?
|
SELECT Opening FROM table WHERE White = kramnik AND Year < 2001 AND Tournament = siemens giants
|
Translate the following into a SQL query
|
What is Tournament, when Black is "Kramnik", when Result is "½–½", and when Moves is "40"?
|
SELECT Tournament FROM table WHERE Black = kramnik AND Result = ½–½ AND Moves = 40
|
Translate the following into a SQL query
|
What was the location where the opponent was Jae Young Kim?
|
SELECT Location FROM table WHERE Opponent = jae young kim
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.