instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | how many persons got the third position whan sanyo electric tokushima got the fourth position? | SELECT COUNT Third place FROM table WHERE Fourth place = Sanyo Electric Tokushima |
Translate the following into a SQL query | how many persons got the fourth position when the regional was shikoku? | SELECT COUNT Fourth place FROM table WHERE Regional = Shikoku |
Translate the following into a SQL query | who got the first place when the Japanese Regional Leagues was in hokushinetsu? | SELECT Champions FROM table WHERE Regional = Hokushinetsu |
Translate the following into a SQL query | who got the first position when fujieda city government got the fourth position? | SELECT Champions FROM table WHERE Fourth place = Fujieda City Government |
Translate the following into a SQL query | What are the civilian total when the security force total is 36? | SELECT Civilians FROM table WHERE Security forces = 36 |
Translate the following into a SQL query | What are the security forces when the civilians are 202? | SELECT Security forces FROM table WHERE Civilians = 202 |
Translate the following into a SQL query | How many figures are named for security forces in 1998? | SELECT COUNT Security forces FROM table WHERE Period = 1998 |
Translate the following into a SQL query | How many insurgents are there when the total per period is 156? | SELECT Insurgents FROM table WHERE Total per period = 156 |
Translate the following into a SQL query | How many U.S. viewers watched the episode directed by Frank Waldeck? | SELECT U.S. viewers (millions) FROM table WHERE Directed by = Frank Waldeck |
Translate the following into a SQL query | How many tournaments were at sime darby lpga malaysia? | SELECT COUNT No. FROM table WHERE Tournament = Sime Darby LPGA Malaysia |
Translate the following into a SQL query | Margin of victory on no. 4 was? | SELECT Margin of victory FROM table WHERE No. = 4 |
Translate the following into a SQL query | Who was the runner up when the won by 4 strokes? | SELECT Runner(s)-up FROM table WHERE Margin of victory = 4 strokes |
Translate the following into a SQL query | Which film title used in nomination has the year (ceremony) 1990 (63rd)? | SELECT Film title used in nomination FROM table WHERE Year (Ceremony) = 1990 (63rd) |
Translate the following into a SQL query | Who is the director of kon-tiki original title? | SELECT Director FROM table WHERE Original title = Kon-Tiki |
Translate the following into a SQL query | Which film title used in nomination has vinterkyss as the original title? | SELECT Film title used in nomination FROM table WHERE Original title = Vinterkyss |
Translate the following into a SQL query | What is the date for the tournament McDonald's wpga championship? | SELECT Date FROM table WHERE Tournament = McDonald's WPGA Championship |
Translate the following into a SQL query | What is the winning score when 5 strokes is the margin of victory? | SELECT Winning score FROM table WHERE Margin of victory = 5 strokes |
Translate the following into a SQL query | What is the to par with the winning score of 74-67-71-73=285? | SELECT To par FROM table WHERE Winning score = 74-67-71-73=285 |
Translate the following into a SQL query | What is the date of the winning score 74-67-71-73=285? | SELECT Date FROM table WHERE Winning score = 74-67-71-73=285 |
Translate the following into a SQL query | What number in series is "Diamonds"? | SELECT No. in series FROM table WHERE Title = "Diamonds" |
Translate the following into a SQL query | Who directed "A Tale of Two Hitmen"? | SELECT Directed by FROM table WHERE Title = "A Tale of Two Hitmen" |
Translate the following into a SQL query | How many number in series's are written by Greg Haddrick? | SELECT COUNT No. in series FROM table WHERE Written by = Greg Haddrick |
Translate the following into a SQL query | What number in series is "Judas Kiss"? | SELECT No. in series FROM table WHERE Title = "Judas Kiss" |
Translate the following into a SQL query | What was the original airdate of "A Nice Little Earner"? | SELECT Original air date FROM table WHERE Title = "A Nice Little Earner" |
Translate the following into a SQL query | whatis the year the first establishment had research grants in the amount of 4.027? | SELECT MAX First establishment FROM table WHERE Research grants (2009, in billion SEK ) = 4.027 |
Translate the following into a SQL query | what is the total number of established univeristy receiving research grants in the amount of 2.203? | SELECT COUNT Established as a university FROM table WHERE Research grants (2009, in billion SEK ) = 2.203 |
Translate the following into a SQL query | what are the student population where research grants is 1.812? | SELECT Student population ( FTE , 2009) FROM table WHERE Research grants (2009, in billion SEK ) = 1.812 |
Translate the following into a SQL query | what is the first establishement where research grants is 2.033? | SELECT First establishment FROM table WHERE Research grants (2009, in billion SEK ) = 2.033 |
Translate the following into a SQL query | what is the minimum student population where the research grants is 2.203? | SELECT MIN Student population ( FTE , 2009) FROM table WHERE Research grants (2009, in billion SEK ) = 2.203 |
Translate the following into a SQL query | When were the odds of winner 16.66? | SELECT Year FROM table WHERE Odds of winner = 16.66 |
Translate the following into a SQL query | What was the winning time in the year when the odds of the winner were 2.94? | SELECT Winning time (km rate) FROM table WHERE Odds of winner = 2.94 |
Translate the following into a SQL query | What were Gentleman's odds of winner? | SELECT Odds of winner FROM table WHERE Horse = Gentleman |
Translate the following into a SQL query | How many countries did Utah Bulwark's owner come from? | SELECT COUNT Country of owner FROM table WHERE Horse = Utah Bulwark |
Translate the following into a SQL query | How many horses are mentioned competing in 1985? | SELECT COUNT Horse FROM table WHERE Year = 1985 |
Translate the following into a SQL query | If the headquarters is Bharatpur, what is the maximum area? | SELECT MAX Area (km²) FROM table WHERE Headquarters = Bharatpur |
Translate the following into a SQL query | If the district is Chittorgarh, what is the area? | SELECT Area (km²) FROM table WHERE District = Chittorgarh |
Translate the following into a SQL query | If the 2011 population is 3685681, what is the name of the headquarters? | SELECT Headquarters FROM table WHERE Population (2011) = 3685681 |
Translate the following into a SQL query | What is the minimum area id the 2011 population is 3067549? | SELECT MIN Area (km²) FROM table WHERE Population (2011) = 3067549 |
Translate the following into a SQL query | What is the 2011 population if the headquarters is Chittorgarh? | SELECT Population (2011) FROM table WHERE Headquarters = Chittorgarh |
Translate the following into a SQL query | How many different municipal mayors were there in the municipality with an area of 42.66 km2? | SELECT COUNT Municipal Mayor FROM table WHERE Area (km²) = 42.66 |
Translate the following into a SQL query | What municipality had 26839 people living in it in 2010? | SELECT Municipality FROM table WHERE Population (2010) = 26839 |
Translate the following into a SQL query | In what municipality were there 757.5 people per km2? | SELECT Municipality FROM table WHERE Pop. Density (per km²) = 757.5 |
Translate the following into a SQL query | How many different counts of the population in Cavinti in 2010 are there? | SELECT COUNT Population (2010) FROM table WHERE Municipality = Cavinti |
Translate the following into a SQL query | How many people per km2 are there in the municipality whose mayor is Boy Quiat? | SELECT Pop. Density (per km²) FROM table WHERE Municipal Mayor = Boy Quiat |
Translate the following into a SQL query | What's the number of the episode seen by 2.24 million people in the US? | SELECT # FROM table WHERE U.S. viewers (million) = 2.24 |
Translate the following into a SQL query | How many millions of people in the US saw the episode titled "Rabid"? | SELECT U.S. viewers (million) FROM table WHERE Title = "Rabid" |
Translate the following into a SQL query | How many different episode numbers are there for episodes directed by Wayne Rose? | SELECT COUNT # FROM table WHERE Directed by = Wayne Rose |
Translate the following into a SQL query | How many millions of people in the US saw the episode titled "Kandor"? | SELECT U.S. viewers (million) FROM table WHERE Title = "Kandor" |
Translate the following into a SQL query | How many wins does he get when he starts at 10? | SELECT Wins FROM table WHERE Starts = 10 |
Translate the following into a SQL query | How many wins does he have? | SELECT MAX Wins FROM table |
Translate the following into a SQL query | What wast the percent cut for the nation with an 80% full gas storage? | SELECT % cut FROM table WHERE Gas storage = 80% full |
Translate the following into a SQL query | What was the gas storage status for the nation that had "yes" for alternative fuel? | SELECT Gas storage FROM table WHERE Alternative fuel = Yes |
Translate the following into a SQL query | What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative? | SELECT % cut FROM table WHERE Alternative fuel = Fuel oil stocks need only for industry |
Translate the following into a SQL query | What country had 20% imports from russia? | SELECT Country FROM table WHERE % of imports from Russia = 20% |
Translate the following into a SQL query | What country had a 100% cut? | SELECT Country FROM table WHERE % cut = 100% |
Translate the following into a SQL query | What network garnered 2.74 million viewers for Supernatural? | SELECT Network FROM table WHERE Viewers in millions = 2.74 |
Translate the following into a SQL query | What season had 2.52 million viewers? | SELECT TV season FROM table WHERE Viewers in millions = 2.52 |
Translate the following into a SQL query | What is the category for trains numbered 16609/16610? | SELECT Category FROM table WHERE Train No. = 16609/16610 |
Translate the following into a SQL query | What trains have a category of express and a weekly frequency? | SELECT Train Name FROM table WHERE Category = Express AND Frequency = Weekly |
Translate the following into a SQL query | What is the train name that has a destination of Tuticorin? | SELECT Train Name FROM table WHERE Destination = Tuticorin |
Translate the following into a SQL query | What is the frequency of trains numbered 12671/12672? | SELECT Frequency FROM table WHERE Train No. = 12671/12672 |
Translate the following into a SQL query | How many destinations have a weekly frequency and are named AC Express? | SELECT COUNT Destination FROM table WHERE Frequency = Weekly AND Train Name = AC Express |
Translate the following into a SQL query | What is the number of frequencies that have a destination of Jaipur? | SELECT COUNT Frequency FROM table WHERE Destination = Jaipur |
Translate the following into a SQL query | What is the pick # for player david grannis? | SELECT MAX Pick # FROM table WHERE Player = David Grannis |
Translate the following into a SQL query | Which player belongs to deerfield academy (Massachusetts) college/junior/club team? | SELECT Player FROM table WHERE College/junior/club team = Deerfield Academy (Massachusetts) |
Translate the following into a SQL query | Which nationality is kitchener rangers (ohl) college/junior/club team? | SELECT Nationality FROM table WHERE College/junior/club team = Kitchener Rangers (OHL) |
Translate the following into a SQL query | Which nationality is player Brian Wilks? | SELECT Nationality FROM table WHERE Player = Brian Wilks |
Translate the following into a SQL query | How many positions is player Tom Glavine? | SELECT COUNT Position FROM table WHERE Player = Tom Glavine |
Translate the following into a SQL query | who directed the production code 2t5710? | SELECT Directed by FROM table WHERE Production code = 2T5710 |
Translate the following into a SQL query | what is the total number o production code where us viewers is 2.76? | SELECT COUNT Production code FROM table WHERE U.S. viewers (million) = 2.76 |
Translate the following into a SQL query | who wrote the no 2? | SELECT Written by FROM table WHERE No. = 2 |
Translate the following into a SQL query | What is the maac in the macc tournament results is quarterfinals? | SELECT MAAC FROM table WHERE MAAC Tournament Result = Quarterfinals |
Translate the following into a SQL query | What is the maac when the overall is 26-8? | SELECT MAAC FROM table WHERE Overall = 26-8 |
Translate the following into a SQL query | How many maac are there that have 14th as the ncaa and the overall is 20-10? | SELECT COUNT MAAC FROM table WHERE NCAA Seed = 14th AND Overall = 20-10 |
Translate the following into a SQL query | How many overall in the year 2010-2011? | SELECT COUNT Overall FROM table WHERE Year = 2010-2011 |
Translate the following into a SQL query | In which year is the overall 29-4? | SELECT Year FROM table WHERE Overall = 29-4 |
Translate the following into a SQL query | What is the regular season results for the year 2011-2012? | SELECT Regular Season Results FROM table WHERE Year = 2011-2012 |
Translate the following into a SQL query | How many drivers had a time of 3:09:45? | SELECT COUNT Driver FROM table WHERE Race Time = 3:09:45 |
Translate the following into a SQL query | How many drivers drove 300 laps at average speed of 103.594? | SELECT COUNT Driver FROM table WHERE Laps = 300 AND Average Speed (mph) = 103.594 |
Translate the following into a SQL query | How many dates had an average speed of 102.003? | SELECT COUNT Date FROM table WHERE Average Speed (mph) = 102.003 |
Translate the following into a SQL query | How many laps were driven in 2009? | SELECT Laps FROM table WHERE Year = 2009 |
Translate the following into a SQL query | How many laps were completed in the race with time of 3:03:50? | SELECT Laps FROM table WHERE Race Time = 3:03:50 |
Translate the following into a SQL query | How many miles were driven with the average speed at 116.81? | SELECT Miles (km) FROM table WHERE Average Speed (mph) = 116.81 |
Translate the following into a SQL query | What was the season number for production code E2110? | SELECT Season no. FROM table WHERE Production code = E2110 |
Translate the following into a SQL query | What was the original air date for season number 2? | SELECT Original air date FROM table WHERE Season no. = 2 |
Translate the following into a SQL query | What was the season number episode directed by John David Coles? | SELECT Season no. FROM table WHERE Directed by = John David Coles |
Translate the following into a SQL query | What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102? | SELECT U.S. Viewers (millions) FROM table WHERE Directed by = Steve Shill AND Production code = E2102 |
Translate the following into a SQL query | What was the number of season number entries that had US Viewers of 12.30 million? | SELECT COUNT Season no. FROM table WHERE U.S. Viewers (millions) = 12.30 |
Translate the following into a SQL query | What was the date of the game in week 3? | SELECT Date FROM table WHERE Week = 3 |
Translate the following into a SQL query | What was the final score when the game was @ roughriders? | SELECT Final Score FROM table WHERE Opponent = @ Roughriders |
Translate the following into a SQL query | What was the total number of weeks where the game played Ivor Wynne Stadium? | SELECT COUNT Week FROM table WHERE Location = Ivor Wynne Stadium |
Translate the following into a SQL query | What was the location for when the opponent was @ roughriders? | SELECT Location FROM table WHERE Opponent = @ Roughriders |
Translate the following into a SQL query | What was the final score when the attendance was 25598? | SELECT Final Score FROM table WHERE Attendance = 25598 |
Translate the following into a SQL query | What location was the game on October 6? | SELECT Location FROM table WHERE Date = October 6 |
Translate the following into a SQL query | What's the lowest rating with 11.2 million viewers? | SELECT MIN Ranking FROM table WHERE Viewers (in millions of households) = 11.2 |
Translate the following into a SQL query | When did was the start of the season that ended May 19, 1997? | SELECT Season premiere FROM table WHERE Season finale = May 19, 1997 |
Translate the following into a SQL query | When did the season finale ranked at 73 first air? | SELECT Season finale FROM table WHERE Ranking = 73 |
Translate the following into a SQL query | Which season received 10.2 million viewers? | SELECT COUNT TV season FROM table WHERE Viewers (in millions of households) = 10.2 |
Translate the following into a SQL query | When 19/05/2002 is the date of withdrawn what is the name? | SELECT Name FROM table WHERE Withdrawn = 19/05/2002 |
Translate the following into a SQL query | When "virgen del perpetuo socorro" is the name what is the highest year? | SELECT MAX Year FROM table WHERE Name = "Virgen del Perpetuo Socorro" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.