instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the Hanja for McCune-Reischauer of chŏn? | SELECT Hanja FROM table WHERE McCune-Reischauer = chŏn |
Translate the following into a SQL query | What is the Hangul when the Hanja is 西, 徐? | SELECT Hangul FROM table WHERE Hanja = 西, 徐 |
Translate the following into a SQL query | What is the Venue with a Result that is win, and a Score that is 5-0? | SELECT Venue FROM table WHERE Result = win AND Score = 5-0 |
Translate the following into a SQL query | What is the Competition with a Result of win with a Score that is 1-0? | SELECT Competition FROM table WHERE Result = win AND Score = 1-0 |
Translate the following into a SQL query | How many total Gold medals did the nation ranked #3 receive? | SELECT SUM Gold FROM table WHERE Rank = 3 |
Translate the following into a SQL query | What ship size had a cargo value of $46,000 in 2006? | SELECT Ship size FROM table WHERE 2006 = $46,000 |
Translate the following into a SQL query | What ship size had a cargo value of $31,750 in 2006? | SELECT Ship size FROM table WHERE 2006 = $31,750 |
Translate the following into a SQL query | What was the cargo value in 2005 with a ship size of all product carriers? | SELECT 2005 FROM table WHERE Ship size = all product carriers |
Translate the following into a SQL query | What was the cargo value in 2004 for ship size? | SELECT 2004 FROM table WHERE Ship size = ship size |
Translate the following into a SQL query | What cargo was contained in a ship size of aframax? | SELECT Cargo FROM table WHERE Ship size = aframax |
Translate the following into a SQL query | What was the cargo value in 2005 for all product carriers? | SELECT 2005 FROM table WHERE Cargo = all product carriers |
Translate the following into a SQL query | How many Crude death rate (per 1,000) has a Migration (per 1,000) larger than -5.06, and a Natural change (per 1,000) larger than 7.06? Question 1 | SELECT AVG Crude death rate (per 1,000) FROM table WHERE Migration (per 1,000) > -5.06 AND Natural change (per 1,000) > 7.06 |
Translate the following into a SQL query | Which Natural change (per 1,000) has Deaths of 17 413, and a Migration (per 1,000) larger than -7.35? | SELECT MIN Natural change (per 1,000) FROM table WHERE Deaths = 17 413 AND Migration (per 1,000) > -7.35 |
Translate the following into a SQL query | How many Migration (per 1,000) has a Crude birth rate (per 1,000) of 17.54 and a Natural change (per 1,000) larger than 10.95? | SELECT SUM Migration (per 1,000) FROM table WHERE Crude birth rate (per 1,000) = 17.54 AND Natural change (per 1,000) > 10.95 |
Translate the following into a SQL query | What kind of Live births has a Migration of -14 873? | SELECT Live births FROM table WHERE Migration = -14 873 |
Translate the following into a SQL query | What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162? | SELECT AVG Goals/Games FROM table WHERE Name = rummenigge, karl-heinz AND Goals < 162 |
Translate the following into a SQL query | What is the sum of Games for Allofs, Klaus, with Goals less than 177? | SELECT SUM Games FROM table WHERE Name = allofs, klaus AND Goals < 177 |
Translate the following into a SQL query | What is the highest Rank for more than 220 goals in 1965–1978-78? | SELECT MAX Rank FROM table WHERE Goals > 220 AND Years = 1965–1978-78 |
Translate the following into a SQL query | Who is the composer of El Hanone? | SELECT Composer FROM table WHERE Title = el hanone |
Translate the following into a SQL query | Which arranger worked with composer Imad Shams Eldeen at 4:03? | SELECT Arranger FROM table WHERE Composer = imad shams eldeen AND Length = 4:03 |
Translate the following into a SQL query | What is the title track that is 3:50 and arranged by Tarek Akef? | SELECT Title FROM table WHERE Arranger = tarek akef AND Length = 3:50 |
Translate the following into a SQL query | Who is the arranger for Ana Rouh? | SELECT Arranger FROM table WHERE Title = ana rouh |
Translate the following into a SQL query | Who was the writer that worked with arranger Tarek Akef on a 4:58 song? | SELECT Writer FROM table WHERE Arranger = tarek akef AND Length = 4:58 |
Translate the following into a SQL query | What is the year of the ceremony with a not nominated result and ničiji sin as the original title? | SELECT Year (Ceremony) FROM table WHERE Result = not nominated AND Original title = ničiji sin |
Translate the following into a SQL query | What is the year of the ceremony with the original title ničiji sin? | SELECT Year (Ceremony) FROM table WHERE Original title = ničiji sin |
Translate the following into a SQL query | What is the result of the ceremony in 2006 (79th)? | SELECT Result FROM table WHERE Year (Ceremony) = 2006 (79th) |
Translate the following into a SQL query | What is the film title used for nomination with the original title sedamdeset i dva dana? | SELECT Film title used in nomination FROM table WHERE Original title = sedamdeset i dva dana |
Translate the following into a SQL query | Who is the director of Cannibal vegetarian, which is the film title used in nomination? | SELECT Director(s) FROM table WHERE Film title used in nomination = cannibal vegetarian |
Translate the following into a SQL query | What is the average First Downs for december 4? | SELECT AVG First Downs FROM table WHERE Date = december 4 |
Translate the following into a SQL query | What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7? | SELECT MIN Attendance FROM table WHERE Opponent = tampa bay buccaneers AND Points Against < 7 |
Translate the following into a SQL query | What is the highest Points when the record was 12–2, and the Points Against are larger than 6? | SELECT MAX Points For FROM table WHERE Record = 12–2 AND Points Against > 6 |
Translate the following into a SQL query | Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? | SELECT Partial thromboplastin time FROM table WHERE Prothrombin time = prolonged AND Condition = factor v deficiency |
Translate the following into a SQL query | Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged? | SELECT Condition FROM table WHERE Bleeding time = prolonged AND Platelet count = decreased AND Prothrombin time = prolonged |
Translate the following into a SQL query | Which Platelet count has a Partial thromboplastin time of prolonged or unaffected? | SELECT Platelet count FROM table WHERE Partial thromboplastin time = prolonged or unaffected |
Translate the following into a SQL query | Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia? | SELECT Prothrombin time FROM table WHERE Partial thromboplastin time = unaffected AND Condition = thrombocytopenia |
Translate the following into a SQL query | Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged? | SELECT Condition FROM table WHERE Bleeding time = unaffected AND Prothrombin time = prolonged |
Translate the following into a SQL query | Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6 | SELECT Partial thromboplastin time FROM table WHERE Prothrombin time = prolonged AND Bleeding time = unaffected AND Condition = vitamin k deficiency or warfarin |
Translate the following into a SQL query | What are the notes where the authors are Zhou & Zhang? | SELECT Notes FROM table WHERE Authors = zhou & zhang |
Translate the following into a SQL query | What is the status where the notes are possible jr synonym of sapeornis? | SELECT Status FROM table WHERE Notes = possible jr synonym of sapeornis |
Translate the following into a SQL query | What is the average Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25? | SELECT AVG Top-5 FROM table WHERE Top-10 = 2 AND Top-25 > 4 |
Translate the following into a SQL query | What are the least Top-5 finish when the events are greater than 18? | SELECT MIN Top-5 FROM table WHERE Events > 18 |
Translate the following into a SQL query | What is the total of wins when the evens is less than 3? | SELECT SUM Wins FROM table WHERE Events < 3 |
Translate the following into a SQL query | How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18? | SELECT COUNT Cuts made FROM table WHERE Top-10 > 1 AND Wins > 0 AND Top-5 > 2 AND Events > 18 |
Translate the following into a SQL query | What years did Omar Sneed play? | SELECT Season FROM table WHERE Name = omar sneed |
Translate the following into a SQL query | Which season did Jovy Sese play? | SELECT Season FROM table WHERE Name = jovy sese |
Translate the following into a SQL query | How did the School/Club Team of Manuel Luis Quezon acquire their Forward? | SELECT Acquisition via FROM table WHERE Position = forward AND School/Club Team = manuel luis quezon |
Translate the following into a SQL query | Which School/ Club Team acquired Jondan Salvador via trade? | SELECT School/Club Team FROM table WHERE Acquisition via = trade AND Name = jondan salvador |
Translate the following into a SQL query | What is the Points with a Played larger than 14? | SELECT COUNT Points FROM table WHERE Played > 14 |
Translate the following into a SQL query | What is the Points with an Against smaller than 16? | SELECT AVG Points FROM table WHERE Against < 16 |
Translate the following into a SQL query | Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22? | SELECT Team FROM table WHERE Lost > 2 AND Position < 7 AND Drawn < 2 AND Points = 22 |
Translate the following into a SQL query | Which Points has a Position of 3, and a Drawn smaller than 2? | SELECT MAX Points FROM table WHERE Position = 3 AND Drawn < 2 |
Translate the following into a SQL query | Which Played has a Points of 2, and a Position smaller than 8? | SELECT AVG Played FROM table WHERE Points = 2 AND Position < 8 |
Translate the following into a SQL query | How many average plays have points greater than 14, with an against greater than 17? | SELECT AVG Played FROM table WHERE Points > 14 AND Against > 17 |
Translate the following into a SQL query | Which average against has a lost less than 1? | SELECT AVG Against FROM table WHERE Lost < 1 |
Translate the following into a SQL query | Which of the highest drawn has a played less than 10? | SELECT MAX Drawn FROM table WHERE Played < 10 |
Translate the following into a SQL query | How many played have 3 as the drawn, and a position greater than 4? | SELECT COUNT Played FROM table WHERE Drawn = 3 AND Position > 4 |
Translate the following into a SQL query | Who sang the song composed by Mariah Carey and Walter Afanasieff? | SELECT Performer(s) FROM table WHERE Composer(s) = mariah carey and walter afanasieff |
Translate the following into a SQL query | How many years was Louis Armstrong performing? | SELECT COUNT Year FROM table WHERE Performer(s) = louis armstrong |
Translate the following into a SQL query | Who were the Runner(s)-up with the winning score of −16 (66-68-70-68=272)? | SELECT Runner(s)-up FROM table WHERE Winning score = −16 (66-68-70-68=272) |
Translate the following into a SQL query | What tournament had a winning score of −27 (64-64-61=189)? | SELECT Tournament FROM table WHERE Winning score = −27 (64-64-61=189) |
Translate the following into a SQL query | What tournament had a runner(s)-up of Scott Hoch & Kenny Perry? | SELECT Tournament FROM table WHERE Runner(s)-up = scott hoch & kenny perry |
Translate the following into a SQL query | What tournament had a Runner(s)-up of Tom Kite? | SELECT Tournament FROM table WHERE Runner(s)-up = tom kite |
Translate the following into a SQL query | What is the date of the Outback Steakhouse Pro-Am Tournament? | SELECT Date FROM table WHERE Tournament = outback steakhouse pro-am |
Translate the following into a SQL query | Which tournament has a Runner(s)-up of Gary McCord? | SELECT Tournament FROM table WHERE Runner(s)-up = gary mccord |
Translate the following into a SQL query | What was the location of the game with a score of 2:3? | SELECT Location FROM table WHERE Score = 2:3 |
Translate the following into a SQL query | What was the location of the home game for Slovakia? | SELECT Location FROM table WHERE Home team = slovakia |
Translate the following into a SQL query | What was the tournament where Japan was the home team and Mexico was the away team? | SELECT Tournament FROM table WHERE Away team = mexico AND Home team = japan |
Translate the following into a SQL query | What was the location of the home game for Japan? | SELECT Location FROM table WHERE Home team = japan |
Translate the following into a SQL query | Who was the Runner-up in Hossegor? | SELECT Runner-up FROM table WHERE Location = hossegor |
Translate the following into a SQL query | On what Date was the Tournament in Gold Coast? | SELECT Date FROM table WHERE Location = gold coast |
Translate the following into a SQL query | Who was the Winner of the French Polynesia Billabong Pro Event? | SELECT Winner FROM table WHERE Event = billabong pro AND Country = french polynesia |
Translate the following into a SQL query | What shows for 2010 when 2007 is a and 2004 is 2r? | SELECT 2010 FROM table WHERE 2007 = a AND 2004 = 2r |
Translate the following into a SQL query | What is the 2005 when the 2008 shows grand slam tournaments? | SELECT 2005 FROM table WHERE 2008 = grand slam tournaments |
Translate the following into a SQL query | What shows for 2002 when 2010 shows 69? | SELECT 2002 FROM table WHERE 2010 = 69 |
Translate the following into a SQL query | What shows for 2010 when 2005 shows 1r? | SELECT 2010 FROM table WHERE 2005 = 1r |
Translate the following into a SQL query | What is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses? | SELECT MAX Drawn FROM table WHERE Points > 15 AND Against = 19 AND Lost < 3 |
Translate the following into a SQL query | What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification? | SELECT Stage (Winner) FROM table WHERE General Classification = thor hushovd AND Young Rider Classification = trent lowe |
Translate the following into a SQL query | What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification? | SELECT Stage (Winner) FROM table WHERE Team Classification = quick step AND Young Rider Classification = trent lowe |
Translate the following into a SQL query | What is the 2000-2001 Team with a Jersey # that is 19? | SELECT 2000–2001 Team FROM table WHERE Jersey # = 19 |
Translate the following into a SQL query | What is the average number of ties for years with more than 19 wins? | SELECT AVG Tied FROM table WHERE Wins > 19 |
Translate the following into a SQL query | What is the total number of losses for years with fewer than 9 wins? | SELECT COUNT Losses FROM table WHERE Wins < 9 |
Translate the following into a SQL query | What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9? | SELECT COUNT Division FROM table WHERE Team = chongqing lifan AND Apps > 9 |
Translate the following into a SQL query | What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2? | SELECT Season FROM table WHERE Country = china AND Team = dalian shide AND Apps > 8 AND Goals = 2 |
Translate the following into a SQL query | What is the highest Apps, when Goals are greater than 5? | SELECT MAX Apps FROM table WHERE Goals > 5 |
Translate the following into a SQL query | What Season, when Country is China, when Team is Dalian Shide, and when Goals are 0? | SELECT Season FROM table WHERE Country = china AND Team = dalian shide AND Goals = 0 |
Translate the following into a SQL query | What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008? | SELECT COUNT Division FROM table WHERE Country = china AND Apps > 9 AND Season = 2008 |
Translate the following into a SQL query | What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007? | SELECT MIN Division FROM table WHERE Goals < 10 AND Team = dalian shide AND Apps < 17 AND Season = 2007 |
Translate the following into a SQL query | What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32? | SELECT MIN Area FROM table WHERE Density > 234.77 AND Rank = 32 AND Population < 965,040 |
Translate the following into a SQL query | What is the lowest rank when the population is greater than 59,544 and the area is 1,395.5? | SELECT MIN Rank FROM table WHERE Population > 59,544 AND Area = 1,395.5 |
Translate the following into a SQL query | What is the lowest population total in La Romana when the area is less than 1,788.4, the density is greater than 234.77, and a rank greater than 30 | SELECT MIN Population FROM table WHERE Area < 1,788.4 AND Density > 234.77 AND Province = la romana AND Rank > 30 |
Translate the following into a SQL query | What is the Home with a Time that is 14:00? | SELECT Home FROM table WHERE Time = 14:00 |
Translate the following into a SQL query | What is the Score with an Away that is high park demons? | SELECT Score FROM table WHERE Away = high park demons |
Translate the following into a SQL query | What is the Score with a Hoe that is etobicoke kangaroos? | SELECT Score FROM table WHERE Home = etobicoke kangaroos |
Translate the following into a SQL query | What is the Date with a Score that is 46-77? | SELECT Date FROM table WHERE Score = 46-77 |
Translate the following into a SQL query | Which Pavilion depth has a Crown angle of 34.0–34.7°? | SELECT Pavilion depth FROM table WHERE Crown angle = 34.0–34.7° |
Translate the following into a SQL query | Which Brilliance Grade has a Benchmark of practical fine cut? | SELECT Brilliance Grade FROM table WHERE Benchmark = practical fine cut |
Translate the following into a SQL query | Which Table diameter has a Crown height of 14.45%? | SELECT Table diameter FROM table WHERE Crown height = 14.45% |
Translate the following into a SQL query | Which Brilliance Grade has a Crown angle of 41.1°? | SELECT Brilliance Grade FROM table WHERE Crown angle = 41.1° |
Translate the following into a SQL query | Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a? | SELECT Pavilion depth FROM table WHERE Brilliance Grade = 100% AND Pavilion angle = n/a |
Translate the following into a SQL query | What is the number of lost with 2 points? | SELECT COUNT Lost FROM table WHERE Points = 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.