instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What's the total when the champions league was 0, the coppa italia was less than 0, and the Serie A was more than 1?
|
SELECT SUM Total FROM table WHERE Champions League = 0 AND Serie A > 1 AND Coppa Italia < 0
|
Translate the following into a SQL query
|
What is the championsleague when the total was greater than 1, the coppa italia was more than 2, and the Serie A was 1?
|
SELECT SUM Champions League FROM table WHERE Serie A = 1 AND Total > 1 AND Coppa Italia > 2
|
Translate the following into a SQL query
|
Can you tell me the Combined that has the Victories of 14?
|
SELECT Combined FROM table WHERE Victories = 14
|
Translate the following into a SQL query
|
Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?
|
SELECT Giant Slalom FROM table WHERE Combined = 1 AND Country = united states AND Victories > 11
|
Translate the following into a SQL query
|
What is Bob Charles' To par?
|
SELECT To par FROM table WHERE Player = bob charles
|
Translate the following into a SQL query
|
What is the Total for the Player with a To par of +11?
|
SELECT MAX Total FROM table WHERE To par = +11
|
Translate the following into a SQL query
|
What is the Total of the Player with a To par of –13?
|
SELECT SUM Total FROM table WHERE To par = –13
|
Translate the following into a SQL query
|
What is Guard Kerri Shields Hometown?
|
SELECT Hometown FROM table WHERE Position = guard AND Name = kerri shields
|
Translate the following into a SQL query
|
What is the Name of the Player from Albuquerque, New Mexico?
|
SELECT Name FROM table WHERE Hometown = albuquerque, new mexico
|
Translate the following into a SQL query
|
What was the score of the 2nd leg when Newell's Old Boys played at home?
|
SELECT 2nd leg FROM table WHERE Home (2nd leg) = newell's old boys
|
Translate the following into a SQL query
|
Who played at home for the second leg, with a score of 1-1 on the first leg and an aggregate score of 2-4?
|
SELECT Home (2nd leg) FROM table WHERE 1st Leg = 1-1 AND Aggregate = 2-4
|
Translate the following into a SQL query
|
Which team played at home for the second leg and has aggregate score of 2-0?
|
SELECT Home (2nd leg) FROM table WHERE Aggregate = 2-0
|
Translate the following into a SQL query
|
What was the score on the first leg when gimnasia de mendoza played at home for the second leg?
|
SELECT 1st Leg FROM table WHERE Home (2nd leg) = gimnasia de mendoza
|
Translate the following into a SQL query
|
Which team played at home for the second leg and has an aggregate score of 2-4?
|
SELECT Home (2nd leg) FROM table WHERE Aggregate = 2-4
|
Translate the following into a SQL query
|
What was the 2nd leg score when atlético tucumán played at home?
|
SELECT 2nd leg FROM table WHERE Home (2nd leg) = atlético tucumán
|
Translate the following into a SQL query
|
What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?
|
SELECT Record FROM table WHERE Res. = win AND Time = 5:00 AND Round > 3
|
Translate the following into a SQL query
|
What is the method of opponent georges st-pierre?
|
SELECT Method FROM table WHERE Opponent = georges st-pierre
|
Translate the following into a SQL query
|
What is the location of fightfest 2, which has 3 rounds?
|
SELECT Location FROM table WHERE Round = 3 AND Event = fightfest 2
|
Translate the following into a SQL query
|
Who is the opponent with a time of 1:19?
|
SELECT Opponent FROM table WHERE Time = 1:19
|
Translate the following into a SQL query
|
Who is the opponent with a 0-1 record?
|
SELECT Opponent FROM table WHERE Record = 0-1
|
Translate the following into a SQL query
|
What is the total rank with more than 392 total points and an 24.8 average?
|
SELECT COUNT Rank by average FROM table WHERE Total points > 392 AND Average = 24.8
|
Translate the following into a SQL query
|
What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2?
|
SELECT MAX Average FROM table WHERE Place < 3 AND Total points < 433 AND Rank by average < 2
|
Translate the following into a SQL query
|
What is the total average with 54 total points and a rank less than 10?
|
SELECT COUNT Average FROM table WHERE Total points = 54 AND Rank by average < 10
|
Translate the following into a SQL query
|
What is the total rank by average for 2 dances, which have more than 37 total points?
|
SELECT COUNT Rank by average FROM table WHERE Number of dances = 2 AND Total points > 37
|
Translate the following into a SQL query
|
What Championship has an Opponent in the final of aaron krickstein, and a Score in the final of 7–5, 6–2?
|
SELECT Championship FROM table WHERE Opponent in the final = aaron krickstein AND Score in the final = 7–5, 6–2
|
Translate the following into a SQL query
|
What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl?
|
SELECT Score in the final FROM table WHERE Surface = hard AND Championship = washington, d.c. , u.s. AND Opponent in the final = ivan lendl
|
Translate the following into a SQL query
|
What is the highest Number of seasons in Liga MX for Club cruz azul?
|
SELECT MAX Number of seasons in Liga MX FROM table WHERE Club = cruz azul
|
Translate the following into a SQL query
|
What is the highest Number of seasons in Liga MX for Club cruz azul, when their season in the top division is higher than 68?
|
SELECT MAX Number of seasons in Liga MX FROM table WHERE Club = cruz azul AND Number of seasons in top division > 68
|
Translate the following into a SQL query
|
What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?
|
SELECT COUNT Top division titles FROM table WHERE Number of seasons in top division > 40 AND First season of current spell in top division = 1943-44 AND Number of seasons in Liga MX > 89
|
Translate the following into a SQL query
|
How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX?
|
SELECT SUM Top division titles FROM table WHERE Number of seasons in Liga MX > 42 AND Club = guadalajara
|
Translate the following into a SQL query
|
Which club has fewer than 40 seasons in Liga MX and 65 seasons in the top division?
|
SELECT Club FROM table WHERE Number of seasons in Liga MX < 40 AND Number of seasons in top division = 65
|
Translate the following into a SQL query
|
What number is in Bois de Warville with a time less than 810?
|
SELECT SUM Number FROM table WHERE Location = bois de warville AND Time < 810
|
Translate the following into a SQL query
|
What is number 21's highest time?
|
SELECT MAX Time FROM table WHERE Number = 21
|
Translate the following into a SQL query
|
What number with the opponent Fokker D.vii have with a time of 1655?
|
SELECT SUM Number FROM table WHERE Opponent = fokker d.vii AND Time = 1655
|
Translate the following into a SQL query
|
Who is the opponent with a time higher than 1040, a Spad xiii aircraft in Dun-Sur-Meuse with a lower number than 22?
|
SELECT Opponent FROM table WHERE Time > 1040 AND Aircraft = spad xiii AND Number < 22 AND Location = dun-sur-meuse
|
Translate the following into a SQL query
|
What number has the opponent Fokker d.vii with a time of 600?
|
SELECT SUM Number FROM table WHERE Opponent = fokker d.vii AND Time = 600
|
Translate the following into a SQL query
|
What is the Name of the Building with 36 or more Floors with Years as tallest of 1986–1992?
|
SELECT Name FROM table WHERE Floors > 36 AND Years as tallest = 1986–1992
|
Translate the following into a SQL query
|
What is the Years as tallest of the Building with a Height ft (m) of 145 (44)?
|
SELECT Years as tallest FROM table WHERE Height ft (m) = 145 (44)
|
Translate the following into a SQL query
|
What is the Street Address of the Building with 17 Floors?
|
SELECT Street address FROM table WHERE Floors = 17
|
Translate the following into a SQL query
|
What is the Name of the Building at 100 North Tampa Street?
|
SELECT Name FROM table WHERE Street address = 100 north tampa street
|
Translate the following into a SQL query
|
What away is there for the q3 round?
|
SELECT Away FROM table WHERE Round = q3
|
Translate the following into a SQL query
|
What is the Aggregate of Bayer Leverkusen opponents?
|
SELECT Aggregate FROM table WHERE Opponents = bayer leverkusen
|
Translate the following into a SQL query
|
What is the competition that was at serravalle, san marino?
|
SELECT Competition FROM table WHERE Venue = serravalle, san marino
|
Translate the following into a SQL query
|
Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?
|
SELECT Venue FROM table WHERE Result = won AND Competition = friendly AND Date = 28 may 2012
|
Translate the following into a SQL query
|
What is the result of the game at kyiv, ukraine?
|
SELECT Result FROM table WHERE Venue = kyiv, ukraine
|
Translate the following into a SQL query
|
What is the Style of the dance by Choreographer Luda and Oliver?
|
SELECT Style FROM table WHERE Choreographer = luda and oliver
|
Translate the following into a SQL query
|
What is the Result of the dance Choreographed by Kelly Aykers?
|
SELECT Results FROM table WHERE Choreographer = kelly aykers
|
Translate the following into a SQL query
|
What is the Style of the dance Choreographed by Nacho Pop with result of safe?
|
SELECT Style FROM table WHERE Results = safe AND Choreographer = nacho pop
|
Translate the following into a SQL query
|
What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?
|
SELECT AVG Rank FROM table WHERE Total > 2 AND Gold = 21 AND Bronze > 12
|
Translate the following into a SQL query
|
How many golds does Germany have with more than 1 silver?
|
SELECT SUM Gold FROM table WHERE Silver > 1 AND Nation = germany
|
Translate the following into a SQL query
|
What is the total number of rounds of the player with a pick of 20?
|
SELECT COUNT Round FROM table WHERE Pick = 20
|
Translate the following into a SQL query
|
Who is the player from the 1971 draft with a pick greater than 7?
|
SELECT Player FROM table WHERE Draft = 1971 AND Pick > 7
|
Translate the following into a SQL query
|
What is the total number of Premier, when Second is "55"?
|
SELECT COUNT Premier FROM table WHERE Second = 55
|
Translate the following into a SQL query
|
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
|
SELECT COUNT Second FROM table WHERE First > 18 AND Season = 1992-93 AND Premier > 16
|
Translate the following into a SQL query
|
What is the lowest Total, when Second is "55"?
|
SELECT MIN Total FROM table WHERE Second = 55
|
Translate the following into a SQL query
|
What is the highest Total, when Season is "1996-97", and when Second is less than 33?
|
SELECT MAX Total FROM table WHERE Season = 1996-97 AND Second < 33
|
Translate the following into a SQL query
|
What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?
|
SELECT SUM Second FROM table WHERE Total < 70 AND Premier < 20 AND First > 18
|
Translate the following into a SQL query
|
In what season were there 27 goals and 58 points?
|
SELECT Season FROM table WHERE Goals = 27 AND Points = 58
|
Translate the following into a SQL query
|
What are the points in the season with 47 games and 28 goals?
|
SELECT Points FROM table WHERE Goals = 28 AND Games = 47
|
Translate the following into a SQL query
|
How many goals were there in game 47?
|
SELECT Goals FROM table WHERE Games = 47
|
Translate the following into a SQL query
|
How much Snatch has a Total (kg) smaller than 257?
|
SELECT SUM Snatch FROM table WHERE Total (kg) < 257
|
Translate the following into a SQL query
|
Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?
|
SELECT MIN Snatch FROM table WHERE Clean & Jerk = 180 AND Bodyweight < 69.83
|
Translate the following into a SQL query
|
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
|
SELECT COUNT Military deaths FROM table WHERE Military and/or Civilian wounded = 78 AND Total deaths > 27
|
Translate the following into a SQL query
|
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
|
SELECT AVG Military deaths FROM table WHERE Civilian deaths (including foreigners) < 38 AND Military and/or Civilian wounded = 33
|
Translate the following into a SQL query
|
What is the total number of casualties when there are 12 total deaths and more than 1 military death?
|
SELECT Total casualties FROM table WHERE Total deaths = 12 AND Military deaths > 1
|
Translate the following into a SQL query
|
which Total has a Score points of 11?
|
SELECT Total FROM table WHERE Score points = 11
|
Translate the following into a SQL query
|
Which Total has an olympic bronze medalist?
|
SELECT Total FROM table WHERE Rank points = olympic bronze medalist
|
Translate the following into a SQL query
|
Which Shooter has Score points of olympic silver medalist?
|
SELECT Shooter FROM table WHERE Score points = olympic silver medalist
|
Translate the following into a SQL query
|
Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?
|
SELECT Rank points FROM table WHERE Event = wc beijing AND Score points = 13 AND Total = 18
|
Translate the following into a SQL query
|
What is the Film title used in nomination of Cilvēka Bērns?
|
SELECT Film title used in nomination FROM table WHERE Original title = cilvēka bērns
|
Translate the following into a SQL query
|
What is the Original Title of the 1992 (65th) Film
|
SELECT Original title FROM table WHERE Year (Ceremony) = 1992 (65th)
|
Translate the following into a SQL query
|
What is the Director of Gulf Stream Under the Iceberg?
|
SELECT Director FROM table WHERE Film title used in nomination = gulf stream under the iceberg
|
Translate the following into a SQL query
|
What is the Original Title of the movie directed by Aigars Grauba?
|
SELECT Original title FROM table WHERE Director = aigars grauba
|
Translate the following into a SQL query
|
What is the British letter with o /oʊ/?
|
SELECT British FROM table WHERE Letter = o /oʊ/
|
Translate the following into a SQL query
|
Which letter has the British aɪ?
|
SELECT Letter FROM table WHERE British = aɪ
|
Translate the following into a SQL query
|
What does American have if Australia has əʉ?
|
SELECT American FROM table WHERE Australian = əʉ
|
Translate the following into a SQL query
|
What is the British letter if American is ə?
|
SELECT British FROM table WHERE American = ə
|
Translate the following into a SQL query
|
What is the Australian letter with a British of ɪ and a letter of æ /i/??
|
SELECT Australian FROM table WHERE British = ɪ AND Letter = æ /i/
|
Translate the following into a SQL query
|
Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?
|
SELECT Score FROM table WHERE Attendance > 16,851 AND Away team = sheffield united
|
Translate the following into a SQL query
|
What is sheffield united's away team?
|
SELECT Away team FROM table WHERE Home team = sheffield united
|
Translate the following into a SQL query
|
How many people attended the Away team of middlesbrough?
|
SELECT COUNT Attendance FROM table WHERE Away team = middlesbrough
|
Translate the following into a SQL query
|
Which Score has an Away team of middlesbrough?
|
SELECT Score FROM table WHERE Away team = middlesbrough
|
Translate the following into a SQL query
|
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
|
SELECT Years as tallest FROM table WHERE Street address = 01.0 10 light street
|
Translate the following into a SQL query
|
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?
|
SELECT SUM Floors FROM table WHERE Street address = 01.0 10 light street
|
Translate the following into a SQL query
|
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
|
SELECT Years as tallest FROM table WHERE Floors < 24 AND Street address = 05.0 210 north charles street
|
Translate the following into a SQL query
|
WHAT IS THE NAME WITH 01.0 10 light street?
|
SELECT Name FROM table WHERE Street address = 01.0 10 light street
|
Translate the following into a SQL query
|
What is the Name of the Player with a Height of m (ft 1in)?
|
SELECT Name FROM table WHERE Height = m (ft 1in)
|
Translate the following into a SQL query
|
What is Tatyana Gubina's Weight?
|
SELECT Weight FROM table WHERE Name = tatyana gubina
|
Translate the following into a SQL query
|
What is Alyona Klimenko's Pos.?
|
SELECT Pos. FROM table WHERE Name = alyona klimenko
|
Translate the following into a SQL query
|
How many third places has a total greater than 2 and a rank less than 2?
|
SELECT Third place FROM table WHERE Total > 2 AND Rank < 2
|
Translate the following into a SQL query
|
What is the number for R Bacon in Passaic County?
|
SELECT R. Bacon FROM table WHERE County = passaic
|
Translate the following into a SQL query
|
What is the number for D. Shulman if C. Abate has 728 (43%)
|
SELECT D. Shulman FROM table WHERE C. Abate = 728 (43%)
|
Translate the following into a SQL query
|
Which county has 728 (43%) listed under C. Abate?
|
SELECT County FROM table WHERE C. Abate = 728 (43%)
|
Translate the following into a SQL query
|
What are the numbers for D. Shulman in Warren County?
|
SELECT D. Shulman FROM table WHERE County = warren
|
Translate the following into a SQL query
|
Which County has Precincts of 90/90?
|
SELECT County FROM table WHERE Precincts = 90/90
|
Translate the following into a SQL query
|
Which county has 438 (4%) listed under R. Bacon?
|
SELECT County FROM table WHERE R. Bacon = 438 (4%)
|
Translate the following into a SQL query
|
What is the format of the album Pacific Ocean Blue in 1991?
|
SELECT Format FROM table WHERE Album = pacific ocean blue AND Year = 1991
|
Translate the following into a SQL query
|
Who is the artist with catalog number ZK 34354?
|
SELECT Artist FROM table WHERE Catalog # = zk 34354
|
Translate the following into a SQL query
|
How tall is player James Stanton?
|
SELECT Height FROM table WHERE Name = james stanton
|
Translate the following into a SQL query
|
Which player is on the roster for the Sydney University Lions?
|
SELECT Name FROM table WHERE Club = sydney university lions
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.