instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the barrel length for a cold model le6921sp? | SELECT Barrel length FROM table WHERE Colt model no. = LE6921SP |
Translate the following into a SQL query | Name the barrel length for rear sight a2 for factory compensator | SELECT Barrel length FROM table WHERE Rear sight = A2 AND Muzzle device = Factory compensator |
Translate the following into a SQL query | Name the barrel twist for colt model mt6400 | SELECT Barrel twist FROM table WHERE Colt model no. = MT6400 |
Translate the following into a SQL query | Name the forward assist for a2 barrel profile | SELECT Forward assist FROM table WHERE Barrel profile = A2 |
Translate the following into a SQL query | Name the stock for colt model mt6601 | SELECT Stock FROM table WHERE Colt model no. = MT6601 |
Translate the following into a SQL query | How many races is different distances does Rosehill Guineas compete in? | SELECT COUNT Distance FROM table WHERE Race = Rosehill Guineas |
Translate the following into a SQL query | How many games ended up with 16 points? | SELECT Played FROM table WHERE Points = 16 |
Translate the following into a SQL query | What was the tries against count for the club whose tries for count was 29? | SELECT Tries against FROM table WHERE Tries for = 29 |
Translate the following into a SQL query | How many points does Croesyceiliog RFC have? | SELECT Points FROM table WHERE Club = Croesyceiliog RFC |
Translate the following into a SQL query | What's the points for count for the club with 41 points and 8 won games? | SELECT Points for FROM table WHERE Points = 41 AND Won = 8 |
Translate the following into a SQL query | What's the points for count for the club with tries for count of 29? | SELECT Points for FROM table WHERE Tries for = 29 |
Translate the following into a SQL query | What's the try bonus count for the club whose tries against count is 83? | SELECT Try bonus FROM table WHERE Tries against = 83 |
Translate the following into a SQL query | Where is the real estate agent from? | SELECT Hometown FROM table WHERE Background = Real Estate Agent |
Translate the following into a SQL query | What background does the person from New york, New york, have? | SELECT Background FROM table WHERE Hometown = New York, New York |
Translate the following into a SQL query | How many backgrounds are there represented from Memphis, Tennessee? | SELECT COUNT Background FROM table WHERE Hometown = Memphis, Tennessee |
Translate the following into a SQL query | How many people had a prosecutor background? | SELECT COUNT Result FROM table WHERE Background = Prosecutor |
Translate the following into a SQL query | Where was Kristen Kirchner from? | SELECT Hometown FROM table WHERE Candidate = Kristen Kirchner |
Translate the following into a SQL query | How many clubs have a tries against count of 41? | SELECT COUNT Try bonus FROM table WHERE Tries against = 41 |
Translate the following into a SQL query | How many clubs have won 6 games? | SELECT COUNT Club FROM table WHERE Won = 6 |
Translate the following into a SQL query | How many clubs have a tries against count of 45 and a losing bonus of 4? | SELECT COUNT Tries for FROM table WHERE Tries against = 45 AND Losing bonus = 4 |
Translate the following into a SQL query | What club has a tries for count of 19? | SELECT Club FROM table WHERE Tries for = 19 |
Translate the following into a SQL query | How many clubs have tries for count of 50? | SELECT COUNT Played FROM table WHERE Tries for = 50 |
Translate the following into a SQL query | What's the number of drawn games for the club with a tries for count of 76? | SELECT Drawn FROM table WHERE Tries for = 76 |
Translate the following into a SQL query | What is the against percentage in the Vest-Agder constituency? | SELECT Against (%) FROM table WHERE Constituency = Vest-Agder |
Translate the following into a SQL query | How many electorates are there with Hedmark as a constituency? | SELECT COUNT Electorate FROM table WHERE Constituency = Hedmark |
Translate the following into a SQL query | How many for percentages are there when the against percentage is 35,782 (69)? | SELECT For (%) FROM table WHERE Against (%) = 35,782 (69) |
Translate the following into a SQL query | List the smallest possible spoilt vote with the sør-trøndelag constituency. | SELECT MIN s Spoilt vote FROM table WHERE Constituency = Sør-Trøndelag |
Translate the following into a SQL query | List all total poll percentages when the for percentage is 59,532 (54). | SELECT Total poll (%) FROM table WHERE For (%) = 59,532 (54) |
Translate the following into a SQL query | What's the writer of Episode 1? | SELECT Writer FROM table WHERE Episode = Episode 1 |
Translate the following into a SQL query | What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers? | SELECT COUNT # FROM table WHERE Director = Tom Hooper AND Viewers(millions) = 8.08 |
Translate the following into a SQL query | What's the original airdate of the episode directed by Pete Travis? | SELECT Original airdate FROM table WHERE Director = Pete Travis |
Translate the following into a SQL query | How many millions of viewers did watch Episode 5? | SELECT Viewers(millions) FROM table WHERE Episode = Episode 5 |
Translate the following into a SQL query | What's the total number of directors whose episodes have been seen by 9.14 million viewers? | SELECT COUNT Director FROM table WHERE Viewers(millions) = 9.14 |
Translate the following into a SQL query | Who directed Episode 5? | SELECT Director FROM table WHERE Episode = Episode 5 |
Translate the following into a SQL query | How many viewers did Episode 5 have? | SELECT Viewers(millions) FROM table WHERE Episode = Episode 5 |
Translate the following into a SQL query | what's the no with current club being panathinaikos and position being forward | SELECT COUNT No FROM table WHERE Current Club = Panathinaikos AND Position = Forward |
Translate the following into a SQL query | what's height with position being center and year born being bigger than 1980.0 | SELECT Height FROM table WHERE Position = Center AND Year born > 1980.0 |
Translate the following into a SQL query | what's player with position being forward and current club being real madrid | SELECT Player FROM table WHERE Position = Forward AND Current Club = Real Madrid |
Translate the following into a SQL query | what's current club with player being nikolaos chatzivrettas | SELECT Current Club FROM table WHERE Player = Nikolaos Chatzivrettas |
Translate the following into a SQL query | what's current club with height being 2.09 | SELECT Current Club FROM table WHERE Height = 2.09 |
Translate the following into a SQL query | what's current club with position being center and no being bigger than 12.0 | SELECT Current Club FROM table WHERE Position = Center AND No > 12.0 |
Translate the following into a SQL query | What is the opponent of the veterans stadium | SELECT Opponent FROM table WHERE Game Site = Veterans Stadium |
Translate the following into a SQL query | What year was the player born who is 2.02m tall? | SELECT MAX Year born FROM table WHERE Height = 2.02 |
Translate the following into a SQL query | What number does aleksandar ćapin wear? | SELECT MAX No FROM table WHERE Player = Aleksandar Ćapin |
Translate the following into a SQL query | Name the total number of grupo capitol valladolid | SELECT COUNT No FROM table WHERE Current Club = Grupo Capitol Valladolid |
Translate the following into a SQL query | Name the height for the player born in 1980 and center? | SELECT Height FROM table WHERE Year born = 1980 AND Position = Center |
Translate the following into a SQL query | What is the total number that has a height of 2.06? | SELECT COUNT No FROM table WHERE Height = 2.06 |
Translate the following into a SQL query | Name the current club for number 6 | SELECT Current Club FROM table WHERE No = 6 |
Translate the following into a SQL query | Name the current club for player sacha giffa | SELECT Current Club FROM table WHERE Player = Sacha Giffa |
Translate the following into a SQL query | What is the minimum year born for strasbourg? | SELECT MIN Year born FROM table WHERE Current Club = Strasbourg |
Translate the following into a SQL query | Which club had a player born in 1983? | SELECT Current Club FROM table WHERE Year born = 1983 |
Translate the following into a SQL query | How tall is Marco Belinelli? | SELECT Height FROM table WHERE Player = Marco Belinelli |
Translate the following into a SQL query | What number is Andrea Bargnani? | SELECT MAX No FROM table WHERE Player = Andrea Bargnani |
Translate the following into a SQL query | What player is number 6? | SELECT Player FROM table WHERE No = 6 |
Translate the following into a SQL query | How many clubs does number 6 play for? | SELECT COUNT Current Club FROM table WHERE No = 6 |
Translate the following into a SQL query | how many player with no being 12 | SELECT COUNT Player FROM table WHERE No = 12 |
Translate the following into a SQL query | what's the height with position being forward and current club being real madrid | SELECT Height FROM table WHERE Position = Forward AND Current Club = Real Madrid |
Translate the following into a SQL query | what's the height with current club being dkv joventut | SELECT Height FROM table WHERE Current Club = DKV Joventut |
Translate the following into a SQL query | what's the current club with player being felipe reyes | SELECT Current Club FROM table WHERE Player = Felipe Reyes |
Translate the following into a SQL query | Who directed the episode that had 6.04 million viewers? | SELECT Director FROM table WHERE Viewers (in millions) = 6.04 |
Translate the following into a SQL query | What number episode had 5.74 million viewers? | SELECT Episode # FROM table WHERE Viewers (in millions) = 5.74 |
Translate the following into a SQL query | When did the construction of the unit Chinon B1 with net power of 905 MW start? | SELECT Construction start FROM table WHERE Net power = 905 MW AND Unit = Chinon B1 |
Translate the following into a SQL query | What's the total power of the unit whose construction finished on 14.06.1963? | SELECT Total power FROM table WHERE Construction finish = 14.06.1963 |
Translate the following into a SQL query | How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984? | SELECT COUNT Total power FROM table WHERE Construction start = 01.03.1977 AND Commercial operation = 01.02.1984 |
Translate the following into a SQL query | What's the shut down state of the unit that's been in commercial operation since 01.02.1984? | SELECT Shut down FROM table WHERE Commercial operation = 01.02.1984 |
Translate the following into a SQL query | When was the start of the construction of the unit that's been in commercial operation since 04.03.1987? | SELECT Construction start FROM table WHERE Commercial operation = 04.03.1987 |
Translate the following into a SQL query | what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1? | SELECT MIN Total viewers FROM table WHERE Date of first broadcast = 28 January 2010 AND Episode number = 1 |
Translate the following into a SQL query | what is the episode number where the total viewers is 614000? | SELECT MIN Episode number FROM table WHERE Total viewers = 614000 |
Translate the following into a SQL query | what is the series number where the date of first broadcast is 16 october 2008? | SELECT Series number FROM table WHERE Date of first broadcast = 16 October 2008 |
Translate the following into a SQL query | In what year did Easton LL Easton play in Maryland? | SELECT COUNT Year FROM table WHERE Maryland = Easton LL Easton |
Translate the following into a SQL query | What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York? | SELECT Washington, D.C. FROM table WHERE New York = Ramapo LL Ramapo |
Translate the following into a SQL query | Which year did Maryland hold the title with Railroaders LL Brunswick? | SELECT Year FROM table WHERE Maryland = Railroaders LL Brunswick |
Translate the following into a SQL query | Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville? | SELECT Maryland FROM table WHERE New Jersey = Somerset Hills LL Bernardsville |
Translate the following into a SQL query | After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware? | SELECT Maryland FROM table WHERE Delaware = M.O.T. LL Middletown AND Year > 2008.0 |
Translate the following into a SQL query | Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania? | SELECT Maryland FROM table WHERE Pennsylvania = Deep Run Valley LL Hilltown |
Translate the following into a SQL query | Where is Bluetongue Stadium located? | SELECT Location FROM table WHERE Stadium = Bluetongue Stadium |
Translate the following into a SQL query | When was the team, whose captain is Matt Smith, founded? | SELECT Founded FROM table WHERE Captain = Matt Smith |
Translate the following into a SQL query | Who's the captain of the team whose head coach is Alistair Edwards? | SELECT Captain FROM table WHERE Head Coach = Alistair Edwards |
Translate the following into a SQL query | How many locations does the team Newcastle Jets come from? | SELECT COUNT Location FROM table WHERE Team = Newcastle Jets |
Translate the following into a SQL query | Where is Westpac Stadium located? | SELECT Location FROM table WHERE Stadium = Westpac Stadium |
Translate the following into a SQL query | What is the new hampshire in 2009? | SELECT New Hampshire FROM table WHERE Year = 2009 |
Translate the following into a SQL query | What is the most points when the won is 9? | SELECT MAX Pts For FROM table WHERE Won = 9 |
Translate the following into a SQL query | What is the number of played when points against 645? | SELECT COUNT Played FROM table WHERE Pts Agst = 645 |
Translate the following into a SQL query | Name the most points for | SELECT MIN Pts For FROM table |
Translate the following into a SQL query | Name the most points against when points for is 860 | SELECT MAX Pts Agst FROM table WHERE Pts For = 860 |
Translate the following into a SQL query | How many teams scored 616 points? | SELECT COUNT Won FROM table WHERE Pts For = 616 |
Translate the following into a SQL query | How many teams drew the widnes vikings? | SELECT COUNT Drawn FROM table WHERE Club = Widnes Vikings |
Translate the following into a SQL query | How many games did whitehaven win? | SELECT MIN Won FROM table WHERE Club = Whitehaven |
Translate the following into a SQL query | What position did the sheffield eagles finish in? | SELECT MAX Position FROM table WHERE Club = Sheffield Eagles |
Translate the following into a SQL query | What was the date of the game in week 14? | SELECT Date FROM table WHERE Week = 14 |
Translate the following into a SQL query | What is the total points for the tean with 8 losses? | SELECT COUNT Points FROM table WHERE Lost = 8 |
Translate the following into a SQL query | How many numbers are given for losses by the Keighley Cougars? | SELECT COUNT Lost FROM table WHERE Club = Keighley Cougars |
Translate the following into a SQL query | Name the captain for ben sigmund | SELECT Captain FROM table WHERE Vice-Captain = Ben Sigmund |
Translate the following into a SQL query | Name the international marquee for shane stefanutto | SELECT International Marquee FROM table WHERE Vice-Captain = Shane Stefanutto |
Translate the following into a SQL query | Name the australian marquee for alessandro del piero | SELECT Australian Marquee FROM table WHERE International Marquee = Alessandro Del Piero |
Translate the following into a SQL query | Name the vice captain for melbourne victory | SELECT Vice-Captain FROM table WHERE Club = Melbourne Victory |
Translate the following into a SQL query | Name the number of australian marquee for travis dodd | SELECT COUNT Australian Marquee FROM table WHERE Vice-Captain = Travis Dodd |
Translate the following into a SQL query | Name the captain for emile heskey | SELECT Captain FROM table WHERE International Marquee = Emile Heskey |
Translate the following into a SQL query | What championship had a margin of playoff 2? | SELECT Championship FROM table WHERE Margin = Playoff 2 |
Translate the following into a SQL query | What was the margin of the Masters Tournament? | SELECT Margin FROM table WHERE Championship = Masters Tournament |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.