instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Who had the fastest lap where Joan Lascorz was the winner? | SELECT Fastest Lap FROM table WHERE Race Winner = joan lascorz |
Translate the following into a SQL query | Who won the round in Europe? | SELECT Race Winner FROM table WHERE Round = europe |
Translate the following into a SQL query | How many games have a Score of 3–0, and a January larger than 12? | SELECT COUNT Game FROM table WHERE Score = 3–0 AND January > 12 |
Translate the following into a SQL query | Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3? | SELECT Opponent FROM table WHERE January > 8 AND Game < 48 AND Score = 5–3 |
Translate the following into a SQL query | Which Game is the highest that has a January of 28? | SELECT MAX Game FROM table WHERE January = 28 |
Translate the following into a SQL query | Which Score has a Game larger than 47, and a January smaller than 25? | SELECT Score FROM table WHERE Game > 47 AND January < 25 |
Translate the following into a SQL query | What stroke has a max power of 109 ps(80kw)@4000 rpm? | SELECT Stroke FROM table WHERE Max. Power = 109 ps(80kw)@4000 rpm |
Translate the following into a SQL query | The nissan primera p12 nissan almera n16 has what C.R.? | SELECT C.R. FROM table WHERE Vehicle = nissan primera p12 nissan almera n16 |
Translate the following into a SQL query | What displacement has the code yd22ddt? | SELECT Displacement FROM table WHERE Code = yd22ddt |
Translate the following into a SQL query | What code has a C.R of 16.7:1? | SELECT Code FROM table WHERE C.R. = 16.7:1 |
Translate the following into a SQL query | What Outcome happened on a Date that was 20 november 2011? | SELECT Outcome FROM table WHERE Date = 20 november 2011 |
Translate the following into a SQL query | Which Away team has a Score of 0–3? | SELECT Away team FROM table WHERE Score = 0–3 |
Translate the following into a SQL query | Which Attendance has a Tie number of 5? | SELECT Attendance FROM table WHERE Tie no = 5 |
Translate the following into a SQL query | Which Score has an Attendance of 23 january 1999, and a Tie # of 6? | SELECT Score FROM table WHERE Attendance = 23 january 1999 AND Tie no = 6 |
Translate the following into a SQL query | Which Tie #has an Attendance of 54,591? | SELECT Tie no FROM table WHERE Attendance = 54,591 |
Translate the following into a SQL query | Which Home team has a Score of 1–1, and an Away team of tottenham hotspur? | SELECT Home team FROM table WHERE Score = 1–1 AND Away team = tottenham hotspur |
Translate the following into a SQL query | Which Attendance has a Tie # of 15? | SELECT Attendance FROM table WHERE Tie no = 15 |
Translate the following into a SQL query | In what Year was the Position 11th? | SELECT COUNT Year FROM table WHERE Position = 11th |
Translate the following into a SQL query | What was the name of the Competition in Rome, Italy? | SELECT Competition FROM table WHERE Venue = rome, italy |
Translate the following into a SQL query | What Notes after 1983 have a Position of 18th? | SELECT Notes FROM table WHERE Year > 1983 AND Position = 18th |
Translate the following into a SQL query | After 1983, what was the Position in Seoul, South Korea? | SELECT Position FROM table WHERE Year > 1983 AND Venue = seoul, south korea |
Translate the following into a SQL query | How many Gold medals for the country with a Rank of 1 and less than 2 Total medals? | SELECT COUNT Gold FROM table WHERE Rank = 1 AND Total < 2 |
Translate the following into a SQL query | How many Gold medals does the country with 2 Silver and more than 2 Bronze have? | SELECT COUNT Gold FROM table WHERE Silver = 2 AND Bronze > 2 |
Translate the following into a SQL query | What is the Age of dorothy Peel as of 1 February 2014 ? | SELECT Age as of 1 February 2014 FROM table WHERE Name = dorothy peel |
Translate the following into a SQL query | Who is 111years, 358days Age as of 1 February 2014? | SELECT Name FROM table WHERE Age as of 1 February 2014 = 111years, 358days |
Translate the following into a SQL query | Which Capacity has a City of london, and a Stadium of queen's club? | SELECT AVG Capacity FROM table WHERE City = london AND Stadium = queen's club |
Translate the following into a SQL query | Which Rank has a Name of thomas morgenstern, and Points larger than 368.9? | SELECT AVG Rank FROM table WHERE Name = thomas morgenstern AND Points > 368.9 |
Translate the following into a SQL query | Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217? | SELECT AVG Rank FROM table WHERE Overall WC points (Rank) = 1561 (2) AND 1st (m) > 217 |
Translate the following into a SQL query | How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5? | SELECT COUNT Rank FROM table WHERE Name = janne happonen AND 1st (m) > 203.5 |
Translate the following into a SQL query | What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers? | SELECT MIN Total FROM table WHERE Bronze > 1 AND Gold > 8 AND Silver < 10 |
Translate the following into a SQL query | What is the highest number of silvers for ranks over 7? | SELECT MAX Silver FROM table WHERE Rank > 7 |
Translate the following into a SQL query | Which location held a game against the Maryland Terrapins? | SELECT Location: FROM table WHERE Opponent: = maryland terrapins |
Translate the following into a SQL query | Who was the opponent when the record recorded was 64-78? | SELECT Opponent FROM table WHERE Record = 64-78 |
Translate the following into a SQL query | When the record was 67-82, what was the final score recorded? | SELECT Score FROM table WHERE Record = 67-82 |
Translate the following into a SQL query | Who was the opponent for the game played with 54,136 people in attendance? | SELECT Opponent FROM table WHERE Attendance = 54,136 |
Translate the following into a SQL query | Which position does bert coan play? | SELECT Position FROM table WHERE Player = bert coan |
Translate the following into a SQL query | What is round 1's position? | SELECT Position FROM table WHERE Round = 1 |
Translate the following into a SQL query | Which Round is the highest one that has a Position of running back? | SELECT MAX Round FROM table WHERE Position = running back |
Translate the following into a SQL query | Which Position has a Pick smaller than 29, and a School/Club Team of arizona? | SELECT Position FROM table WHERE Pick < 29 AND School/Club Team = arizona |
Translate the following into a SQL query | Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43? | SELECT MIN Round FROM table WHERE School/Club Team = alabama AND Pick > 43 |
Translate the following into a SQL query | what is the venue of belshina | SELECT Venue FROM table WHERE Team = belshina |
Translate the following into a SQL query | what is the venue of neman | SELECT Venue FROM table WHERE Team = neman |
Translate the following into a SQL query | what is the venue of neman | SELECT Venue FROM table WHERE Team = neman |
Translate the following into a SQL query | Name the total number of pick with round less than 6 and overall of 102 | SELECT COUNT Pick # FROM table WHERE Round < 6 AND Overall = 102 |
Translate the following into a SQL query | Which Outcome has a Score of 4–6 3–6? | SELECT Outcome FROM table WHERE Score = 4–6 3–6 |
Translate the following into a SQL query | Which Tournament has a Score of 3–6 6–4 4–6? | SELECT Tournament FROM table WHERE Score = 3–6 6–4 4–6 |
Translate the following into a SQL query | Which Date has a Score of 6–1 7–6 (8–6)? | SELECT Date FROM table WHERE Score = 6–1 7–6 (8–6) |
Translate the following into a SQL query | Which Score has a Date of 26 september 2004? | SELECT Score FROM table WHERE Date = 26 september 2004 |
Translate the following into a SQL query | Which Outcome has a Score of 3–6 2–6? | SELECT Outcome FROM table WHERE Score = 3–6 2–6 |
Translate the following into a SQL query | Which Surface has an Opponent in the final of daniella dominikovic? | SELECT Surface FROM table WHERE Opponent in the final = daniella dominikovic |
Translate the following into a SQL query | What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft? | SELECT COUNT Time to ft (m) at 40° (seconds) FROM table WHERE Shell (lb) = 16 AND Max. height (ft) < 22,000 |
Translate the following into a SQL query | What is the average maximum height of a shell that travels for more than 16.3 seconds at 55° and has a maximum velocity of 2200 ft/s? | SELECT AVG Max. height (ft) FROM table WHERE Time to ft (m) at 55° (seconds) > 16.3 AND m/v ft/s = 2200 |
Translate the following into a SQL query | What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°? | SELECT MAX Time to ft (m) at 55° (seconds) FROM table WHERE Time to ft (m) at 40° (seconds) < 9.6 |
Translate the following into a SQL query | What is the weight of the shell that reached its maximum height at 40° in 12.6 seconds? | SELECT Shell (lb) FROM table WHERE Time to ft (m) at 40° (seconds) = 12.6 |
Translate the following into a SQL query | What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds? | SELECT AVG Max. height (ft) FROM table WHERE Time to ft (m) at 25° (seconds) = 10.1 AND Shell (lb) < 12.5 |
Translate the following into a SQL query | What is the highest attendance for the game that was before week 6 on October 22, 1967? | SELECT MAX Attendance FROM table WHERE Date = october 22, 1967 AND Week < 6 |
Translate the following into a SQL query | What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY? | SELECT State FROM table WHERE Talent = classical piano AND Hometown = lancaster, ny |
Translate the following into a SQL query | Whose talent was ballet en pointe? | SELECT Name FROM table WHERE Talent = ballet en pointe |
Translate the following into a SQL query | What is the state represented by the contestant from Mesa, AZ? | SELECT State FROM table WHERE Hometown = mesa, az |
Translate the following into a SQL query | What is the talent of the contestant from Lexington, SC? | SELECT Talent FROM table WHERE Hometown = lexington, sc |
Translate the following into a SQL query | What is the age of the contestant from Reno, NV? | SELECT Age 1 FROM table WHERE Hometown = reno, nv |
Translate the following into a SQL query | Which writer wrote episode 18-09 (652)? | SELECT Writer(s) FROM table WHERE Episode = 18-09 (652) |
Translate the following into a SQL query | What episode was written by jonathan lewis? | SELECT Episode FROM table WHERE Writer(s) = jonathan lewis |
Translate the following into a SQL query | What position does Maryland have a player for Round 3? | SELECT Position FROM table WHERE School/Club Team = maryland AND Round = 3 |
Translate the following into a SQL query | How many picks are there for defensive back for rounds larger than 11? | SELECT COUNT Pick FROM table WHERE Position = defensive back AND Round > 11 |
Translate the following into a SQL query | What is the highest game that has april 21 as the date? | SELECT MAX Game FROM table WHERE Date = april 21 |
Translate the following into a SQL query | What score has a game less than 4, and april 19 as the date? | SELECT Score FROM table WHERE Game < 4 AND Date = april 19 |
Translate the following into a SQL query | What opponent has a game less than 6, and april 17 as the date? | SELECT Opponent FROM table WHERE Game < 6 AND Date = april 17 |
Translate the following into a SQL query | What is the home team that played Derby County as the away team? | SELECT Home team FROM table WHERE Away team = derby county |
Translate the following into a SQL query | Which home team is ranked no. 7 by tie no.? | SELECT Home team FROM table WHERE Tie no = 7 |
Translate the following into a SQL query | What is the score for the game in which Manchester United was the home team? | SELECT Score FROM table WHERE Home team = manchester united |
Translate the following into a SQL query | How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have? | SELECT COUNT Gold FROM table WHERE Bronze < 5 AND Silver > 1 AND Rank > 8 |
Translate the following into a SQL query | What nation was the film from that was in english and had a Literary tradition of canadian literature? | SELECT Country FROM table WHERE Language(s) = english AND Literary tradition = canadian literature |
Translate the following into a SQL query | What is the literary traidtion for the film in english in 2011? | SELECT Literary tradition FROM table WHERE Language(s) = english AND Year = 2011 |
Translate the following into a SQL query | What country was the film made in that was made after 2011? | SELECT Country FROM table WHERE Year > 2011 |
Translate the following into a SQL query | Which team has 48 rebounds? | SELECT Team FROM table WHERE Rebounds = 48 |
Translate the following into a SQL query | What's the lowest amount of 12 games and less than 48 rebounds? | SELECT MIN Rank FROM table WHERE Games = 12 AND Rebounds < 48 |
Translate the following into a SQL query | How many rebounds does Fedor likholitov have with a rank greater than 8? | SELECT SUM Rebounds FROM table WHERE Name = fedor likholitov AND Rank > 8 |
Translate the following into a SQL query | Which game has more than 112 rebounds and a rank greater than 3? | SELECT MAX Games FROM table WHERE Rank > 3 AND Rebounds = 112 |
Translate the following into a SQL query | What was the score in a place of t5 in the United States? | SELECT Score FROM table WHERE Place = t5 AND Nation = united states |
Translate the following into a SQL query | What is the to par that has more than $122,591 in Sweden and had Annika Sörenstam play? | SELECT To par FROM table WHERE Money ( $ ) > 122,591 AND Nation = sweden AND Player = annika sörenstam |
Translate the following into a SQL query | What was the score for a match where Sophie Gustafson played? | SELECT Score FROM table WHERE Player = sophie gustafson |
Translate the following into a SQL query | with games more than 22 what is the rebound total? | SELECT SUM Rebounds FROM table WHERE Games > 22 |
Translate the following into a SQL query | What is the location of the b.c. open? | SELECT Location FROM table WHERE Tournament = b.c. open |
Translate the following into a SQL query | What is the location of the tallahassee open, with a Score of 269 (–19)? | SELECT Location FROM table WHERE Score = 269 (–19) AND Tournament = tallahassee open |
Translate the following into a SQL query | What date did Lanny Wadkins (6) win? | SELECT Date FROM table WHERE Winner = lanny wadkins (6) |
Translate the following into a SQL query | What is the Location for the buick-goodwrench open? | SELECT Location FROM table WHERE Tournament = buick-goodwrench open |
Translate the following into a SQL query | What is the Netflix episode that has a series episode of 6-02? | SELECT Netflix FROM table WHERE Series Ep. = 6-02 |
Translate the following into a SQL query | Which segment A item that has a Segment D of wigs? | SELECT Segment A FROM table WHERE Segment D = wigs |
Translate the following into a SQL query | Which series episode has a Netflix episode of S03E16? | SELECT Series Ep. FROM table WHERE Netflix = s03e16 |
Translate the following into a SQL query | Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone? | SELECT Netflix FROM table WHERE Episode < 69 AND Segment D = s trombone |
Translate the following into a SQL query | Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode? | SELECT Species Specific FROM table WHERE Comparative = no AND Intra-molecular structure = no AND Link = sourcecode |
Translate the following into a SQL query | Which Intra-molecular structure has a Comparative of no, and a Name of mitarget? | SELECT Intra-molecular structure FROM table WHERE Comparative = no AND Name = mitarget |
Translate the following into a SQL query | Which Comparative has a Name of pictar? | SELECT Comparative FROM table WHERE Name = pictar |
Translate the following into a SQL query | Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no? | SELECT Name FROM table WHERE Intra-molecular structure = no AND Link = webserver AND Comparative = no |
Translate the following into a SQL query | Which Comparative has a Link of sourcecode webserver? | SELECT Comparative FROM table WHERE Link = sourcecode webserver |
Translate the following into a SQL query | Which Species Specific has a Link of server/sourcecode? | SELECT Species Specific FROM table WHERE Link = server/sourcecode |
Translate the following into a SQL query | What is the 1st leg for Instituto? | SELECT 1st Leg FROM table WHERE Home (2nd leg) = instituto |
Translate the following into a SQL query | What Aggregate has a 2-1 1st leg, and is from Belgrano? | SELECT Aggregate FROM table WHERE 1st Leg = 2-1 AND Home (1st leg) = belgrano |
Translate the following into a SQL query | What Aggregate has a 0-0 1st leg, and a 0-1 second leg? | SELECT Aggregate FROM table WHERE 1st Leg = 0-0 AND 2nd leg = 0-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.