instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the 4th day result for the year in which the 3rd day result was bumped Darwin? | SELECT 4th Day FROM table WHERE 3rd day = bumped darwin |
Translate the following into a SQL query | What is the sum of the heights for the Cornell Big Red? | SELECT SUM Height (cm) FROM table WHERE 2009–10 team = cornell big red |
Translate the following into a SQL query | For the vessel with a listed In service of 1, what is the origin given? | SELECT Origin FROM table WHERE In service = 1 |
Translate the following into a SQL query | What is the lowest listed In service for a vessel of xavery czernicki class? | SELECT MIN In service FROM table WHERE Vessel = xavery czernicki class |
Translate the following into a SQL query | Which vessel has a type of logistic support? | SELECT Vessel FROM table WHERE Type = logistic support |
Translate the following into a SQL query | What is the type for a vessel of lublin class? | SELECT Type FROM table WHERE Vessel = lublin class |
Translate the following into a SQL query | What is the highest In service for a vessel with a listed Unit of 12th minesweeper squadron? | SELECT MAX In service FROM table WHERE Unit = 12th minesweeper squadron |
Translate the following into a SQL query | What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadron)? | SELECT Type FROM table WHERE Unit = naval base swinoujscie (auxiliary squadron) |
Translate the following into a SQL query | Which rider was on the 600cc Yamaha team? | SELECT Rider FROM table WHERE Team = 600cc yamaha |
Translate the following into a SQL query | What was John Hildreth's speed? | SELECT Speed FROM table WHERE Rider = john hildreth |
Translate the following into a SQL query | What is the average draw number of an entrant with a time of 22:29? | SELECT AVG Draw FROM table WHERE Time = 22:29 |
Translate the following into a SQL query | What is Mark Henry's brand? | SELECT Brand FROM table WHERE Entrant = mark henry |
Translate the following into a SQL query | Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking? | SELECT Author / Editor / Source FROM table WHERE World Ranking (1) = 35 AND Countries sampled > 100 |
Translate the following into a SQL query | How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America? | SELECT SUM Countries sampled FROM table WHERE Year of publication = 2010 AND World Ranking (1) = 33 AND Ranking in Latin America (2) < 3 |
Translate the following into a SQL query | What's the world ranking in 2011 having more than 142 countries sampled, and more than a 3 for ranking in Latin America? | SELECT World Ranking (1) FROM table WHERE Year of publication = 2011 AND Ranking in Latin America (2) > 3 AND Countries sampled > 142 |
Translate the following into a SQL query | What home team has a tie no of 20? | SELECT Home team FROM table WHERE Tie no = 20 |
Translate the following into a SQL query | What date was the score 3–3, and away team was Barnet? | SELECT Date FROM table WHERE Score = 3–3 AND Away team = barnet |
Translate the following into a SQL query | What is the Tie no when Wimbledon is the home team? | SELECT Tie no FROM table WHERE Home team = wimbledon |
Translate the following into a SQL query | What is the score when the Tie no is replay, and the away team is York City? | SELECT Score FROM table WHERE Tie no = replay AND Away team = york city |
Translate the following into a SQL query | What is the Tie no when Chester is the away team? | SELECT Tie no FROM table WHERE Away team = chester |
Translate the following into a SQL query | What is the broadcast date of the episode with 9.65 million viewers? | SELECT Broadcast Date FROM table WHERE Viewership (Millions) = 9.65 |
Translate the following into a SQL query | What is the lowest viewership in millions of the episode broadcast on 7 September 2001? | SELECT MIN Viewership (Millions) FROM table WHERE Broadcast Date = 7 september 2001 |
Translate the following into a SQL query | What is the episode number of the episode broadcast on 21 September 2001? | SELECT Episode Number FROM table WHERE Broadcast Date = 21 september 2001 |
Translate the following into a SQL query | How many times is the points 8 and the place larger than 8? | SELECT COUNT Draw FROM table WHERE Points = 8 AND Place > 8 |
Translate the following into a SQL query | what is the average draw when the place is 5 and points more than 15? | SELECT AVG Draw FROM table WHERE Place = 5 AND Points > 15 |
Translate the following into a SQL query | what is the highest draw when points is less than 11 and language is norwegian? | SELECT MAX Draw FROM table WHERE Points < 11 AND Language = norwegian |
Translate the following into a SQL query | What is the total number of picks from the PBA team of purefoods tender juicy hotdogs? | SELECT COUNT Pick FROM table WHERE PBA team = purefoods tender juicy hotdogs |
Translate the following into a SQL query | What is the pba team for the player who went to santo tomas college? | SELECT PBA team FROM table WHERE College = santo tomas |
Translate the following into a SQL query | What is the PBA team for roberto jabar who was picked before number 11? | SELECT PBA team FROM table WHERE Pick < 11 AND Player = roberto jabar |
Translate the following into a SQL query | What is the brand of the slr magic hyperprime cine 35mm t0.95, which has a focal length of 35mm? | SELECT Brand FROM table WHERE Focal Length = 35mm AND Product Name = slr magic hyperprime cine 35mm t0.95 |
Translate the following into a SQL query | What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283? | SELECT Most spoken language FROM table WHERE Code > 70403 AND Area (km 2 ) > 3.79 AND Population > 73,283 |
Translate the following into a SQL query | What is the Population of the Place with an Area (km 2) larger than 498.77? | SELECT COUNT Population FROM table WHERE Area (km 2 ) > 498.77 |
Translate the following into a SQL query | What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97? | SELECT MIN Population FROM table WHERE Code < 70409 AND Area (km 2 ) < 5.97 AND Place = tshepiso |
Translate the following into a SQL query | What the time of Paul Hession with more than an 0.187 react? | SELECT Time FROM table WHERE React > 0.187 AND Athlete = paul hession |
Translate the following into a SQL query | What's the lane number when time was 20.45 and the react was less than 0.164? | SELECT MAX Lane FROM table WHERE React < 0.164 AND Time = 20.45 |
Translate the following into a SQL query | what is 1958 when 1957 is 2 and 1956 is 3? | SELECT 1958 FROM table WHERE 1957 = 2 AND 1956 = 3 |
Translate the following into a SQL query | what is 1955 when 1961 is n/a? | SELECT 1955 FROM table WHERE 1961 = n/a |
Translate the following into a SQL query | What date has 7 as the tie no.? | SELECT Date FROM table WHERE Tie no = 7 |
Translate the following into a SQL query | Which year was held in beijing? | SELECT Year FROM table WHERE Venue = beijing |
Translate the following into a SQL query | How many years had a Venue of eindhoven? | SELECT COUNT Year FROM table WHERE Venue = eindhoven |
Translate the following into a SQL query | Which Competition has a Venue of manchester in 2009? | SELECT Competition FROM table WHERE Venue = manchester AND Year = 2009 |
Translate the following into a SQL query | Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester? | SELECT Year FROM table WHERE Position = 2nd AND Notes = -63kg AND Venue = manchester |
Translate the following into a SQL query | Name the the Best of rodolfo lavín | SELECT Best FROM table WHERE Name = rodolfo lavín |
Translate the following into a SQL query | Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073? | SELECT Qual 2 FROM table WHERE Team = american spirit team johansson AND Best = 59.073 |
Translate the following into a SQL query | Name the Best which has a Qual 2 of 58.700? | SELECT Best FROM table WHERE Qual 2 = 58.700 |
Translate the following into a SQL query | Which Qual 1 has a Qual 2 of 58.861? | SELECT Qual 1 FROM table WHERE Qual 2 = 58.861 |
Translate the following into a SQL query | Which Qual 1 has a Qual 2 of 59.822? | SELECT Qual 1 FROM table WHERE Qual 2 = 59.822 |
Translate the following into a SQL query | Which Qual 1 has a Team of team player's, and a Best of 58.405? | SELECT Qual 1 FROM table WHERE Team = team player's AND Best = 58.405 |
Translate the following into a SQL query | what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102? | SELECT Height (m) FROM table WHERE Nation = sweden (swe) AND Weight (kg) = 102 |
Translate the following into a SQL query | what is the nation when the world rank is 2 and the birth date is 1976-12-20? | SELECT Nation FROM table WHERE World Rank = 2 AND Birth date = 1976-12-20 |
Translate the following into a SQL query | what is the nation when the world rank is 6 and the birth date is 1971-07-31? | SELECT Nation FROM table WHERE World Rank = 6 AND Birth date = 1971-07-31 |
Translate the following into a SQL query | what is the birth date when the weight (kg) is 100 and the world rank is 2? | SELECT Birth date FROM table WHERE Weight (kg) = 100 AND World Rank = 2 |
Translate the following into a SQL query | what is the nation when the height (m) is 1.91 and the weight (kg) is 99? | SELECT Nation FROM table WHERE Height (m) = 1.91 AND Weight (kg) = 99 |
Translate the following into a SQL query | what is the height (m) when the birth date is 1968-07-01? | SELECT Height (m) FROM table WHERE Birth date = 1968-07-01 |
Translate the following into a SQL query | How many Total Positions have a 2002 Position smaller than 3, and a Team of shandong luneng? | SELECT COUNT Total Position FROM table WHERE 2002 Position < 3 AND Team = shandong luneng |
Translate the following into a SQL query | Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5? | SELECT Team FROM table WHERE Qualification = entry to the 2004 chinese super league AND 2002 Position < 6 AND 2003 Position < 9 AND Total Position > 3.5 |
Translate the following into a SQL query | What is the nationality of the athlete with a time of 2:12.56? | SELECT Nationality FROM table WHERE Time = 2:12.56 |
Translate the following into a SQL query | What time did Sara Nordenstam get? | SELECT Time FROM table WHERE Name = sara nordenstam |
Translate the following into a SQL query | What nationality is Jessica Pengelly? | SELECT Nationality FROM table WHERE Name = jessica pengelly |
Translate the following into a SQL query | What league apps with 1 flt apps, 0 goals, and more than 1 league goals? | SELECT League Apps FROM table WHERE FLT Apps = 1 AND Total Goals > 0 AND League Goals > 1 |
Translate the following into a SQL query | What is the total number of league goals for Simon Charlton? | SELECT COUNT League Goals FROM table WHERE Name = simon charlton |
Translate the following into a SQL query | What was the place when the score was 65-70-72=207? | SELECT Place FROM table WHERE Score = 65-70-72=207 |
Translate the following into a SQL query | What was the score for place 4? | SELECT Score FROM table WHERE Place = 4 |
Translate the following into a SQL query | Who scored 67-73-70=210? | SELECT Player FROM table WHERE Score = 67-73-70=210 |
Translate the following into a SQL query | What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion? | SELECT MIN Poles FROM table WHERE Wins = 0 AND Top 5 = 0 AND Position = 66th |
Translate the following into a SQL query | Who was the music director in 1971 for the movie Kalyani? | SELECT Music Director FROM table WHERE Year = 1971 AND Movie (in Kannada ) = kalyani |
Translate the following into a SQL query | What movie had the music director G.K. Venkatesh and director B. Dorairaj? | SELECT Movie (in Kannada ) FROM table WHERE Music Director = g.k. venkatesh AND Director = b. dorairaj |
Translate the following into a SQL query | What movie had the music director G.K. Venkatesh and director Siddalingaiah? | SELECT Movie (in Kannada ) FROM table WHERE Music Director = g.k. venkatesh AND Director = siddalingaiah |
Translate the following into a SQL query | Which county has a median family income of $50,227? | SELECT County FROM table WHERE Median family income = $50,227 |
Translate the following into a SQL query | What is the tournament when 2010 is not held? | SELECT Tournament FROM table WHERE 2010 = not held |
Translate the following into a SQL query | What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r? | SELECT 2009 FROM table WHERE 2008 = a AND 2012 = 1r AND 2010 = q2 AND 2011 = 2r |
Translate the following into a SQL query | What is the tournament when 2010 is q2, and 2009 is 1r? | SELECT Tournament FROM table WHERE 2010 = q2 AND 2009 = 1r |
Translate the following into a SQL query | What is the tournament when 2007 is WTA Premier 5 tournaments? | SELECT Tournament FROM table WHERE 2007 = wta premier 5 tournaments |
Translate the following into a SQL query | What is the tournament when 2012 is q2? | SELECT Tournament FROM table WHERE 2012 = q2 |
Translate the following into a SQL query | What shows for 2008 when 2010 is 138? | SELECT 2008 FROM table WHERE 2010 = 138 |
Translate the following into a SQL query | Which country timed at 7:03.91? | SELECT Country FROM table WHERE Time = 7:03.91 |
Translate the following into a SQL query | What did Denmark time at? | SELECT Time FROM table WHERE Country = denmark |
Translate the following into a SQL query | What was the internet explorer % when firefox was 24.98%? | SELECT Internet Explorer FROM table WHERE Firefox = 24.98% |
Translate the following into a SQL query | What was the percentage of firefox was chrome was 23.90% | SELECT Firefox FROM table WHERE Chrome = 23.90% |
Translate the following into a SQL query | What was the percentage of safari when internet explorer was 20.27%? | SELECT Safari FROM table WHERE Internet Explorer = 20.27% |
Translate the following into a SQL query | What was the firefox % was chrome was 25.08%? | SELECT Firefox FROM table WHERE Chrome = 25.08% |
Translate the following into a SQL query | What was the percentage of safari when firefox was 24.66% | SELECT Safari FROM table WHERE Firefox = 24.66% |
Translate the following into a SQL query | Which label released on February 18, 2009? | SELECT Label FROM table WHERE Date = february 18, 2009 |
Translate the following into a SQL query | When did Avex Entertainment release a CD? | SELECT Date FROM table WHERE Format = cd AND Label = avex entertainment |
Translate the following into a SQL query | When did Hollywood Records release a digital download? | SELECT Date FROM table WHERE Label = hollywood records AND Format = digital download |
Translate the following into a SQL query | What kind of edition was released September 23, 2008 from the United States? | SELECT Edition FROM table WHERE Date = september 23, 2008 AND Region = united states |
Translate the following into a SQL query | What format was released April 16, 2009? | SELECT Format FROM table WHERE Date = april 16, 2009 |
Translate the following into a SQL query | What's the call sign if the branding is 1062 DXKI Koronadal? | SELECT Call-Sign FROM table WHERE Branding = 1062 dxki koronadal |
Translate the following into a SQL query | What's the branding for frequency 1233khz? | SELECT Branding FROM table WHERE Frequency = 1233khz |
Translate the following into a SQL query | What's the call sign that has 20kw of power? | SELECT Call-Sign FROM table WHERE Power (kw) = 20kw |
Translate the following into a SQL query | What's the location when the branding is 1116 DXAS Zamboanga? | SELECT Location FROM table WHERE Branding = 1116 dxas zamboanga |
Translate the following into a SQL query | What's the location of the 1197khz frequency? | SELECT Location FROM table WHERE Frequency = 1197khz |
Translate the following into a SQL query | What's the frequency of the call sign DYFR with 10KW of power? | SELECT Frequency FROM table WHERE Power (kw) = 10kw AND Call-Sign = dyfr |
Translate the following into a SQL query | What is Hungary's highest Rank? | SELECT MAX Rank FROM table WHERE Country = hungary |
Translate the following into a SQL query | What is the Notes of the Country with a Rank of 4? | SELECT Notes FROM table WHERE Rank = 4 |
Translate the following into a SQL query | What country had a Time of 6:14.84? | SELECT Country FROM table WHERE Time = 6:14.84 |
Translate the following into a SQL query | Which Nationality has a Lane of 5, and a Time of 7:08.04? | SELECT Nationality FROM table WHERE Lane = 5 AND Time = 7:08.04 |
Translate the following into a SQL query | Which Heat has a Rank of 8? | SELECT MAX Heat FROM table WHERE Rank = 8 |
Translate the following into a SQL query | WHICH 2nd round has a 3rd round of involuntary suspension of season.? | SELECT 2nd round FROM table WHERE 3rd round = involuntary suspension of season. |
Translate the following into a SQL query | NAME THE Finals which has a 1st round of w, 3–1, mis? | SELECT Finals FROM table WHERE 1st round = w, 3–1, mis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.