instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What status does the boat Ajax have? | SELECT Status FROM table WHERE Name = ajax |
Translate the following into a SQL query | What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376? | SELECT AVG Upper index MJ/ Nm 3 FROM table WHERE Upper index Kcal/ Nm 3 = 19,376 |
Translate the following into a SQL query | What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71? | SELECT COUNT Upper index Kcal/ Nm 3 FROM table WHERE Fuel gas = iso-butane AND Lower index MJ/ Nm 3 < 84.71 |
Translate the following into a SQL query | What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54? | SELECT AVG Lower index Kcal/ Nm 3 FROM table WHERE Lower index MJ/ Nm 3 = 74.54 AND Upper index Kcal/ Nm 3 < 19,376 |
Translate the following into a SQL query | What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28? | SELECT SUM Upper index Kcal/ Nm 3 FROM table WHERE Lower index MJ/ Nm 3 = 47.91 AND Upper index MJ/ Nm 3 > 53.28 |
Translate the following into a SQL query | What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04? | SELECT SUM Upper index Kcal/ Nm 3 FROM table WHERE Lower index MJ/ Nm 3 > 47.91 AND Fuel gas = propylene AND Upper index MJ/ Nm 3 > 77.04 |
Translate the following into a SQL query | What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84? | SELECT AVG Lower index MJ/ Nm 3 FROM table WHERE Upper index Kcal/ Nm 3 > 19,376 AND Fuel gas = lpg AND Upper index MJ/ Nm 3 < 86.84 |
Translate the following into a SQL query | What match number has a ground of H and the opponent Chelsea under 18s? | SELECT AVG Match FROM table WHERE Ground = h AND Opponent = chelsea under 18s |
Translate the following into a SQL query | On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s? | SELECT Date FROM table WHERE Match < 14 AND Ground = h AND Opponent = aston villa under 18s |
Translate the following into a SQL query | On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s? | SELECT Date FROM table WHERE Score1 = 2 - 4 AND Opponent = chelsea under 18s |
Translate the following into a SQL query | What is the ticket price at Canadian National Exhibition Stadium? | SELECT Ticket price(s) FROM table WHERE Venue = canadian national exhibition stadium |
Translate the following into a SQL query | What was the ticket price at Red Rocks Amphitheatre? | SELECT Ticket price(s) FROM table WHERE Venue = red rocks amphitheatre |
Translate the following into a SQL query | What was the ticket price on September 16, 1986? | SELECT Ticket price(s) FROM table WHERE Date(s) = september 16, 1986 |
Translate the following into a SQL query | Who was the opposition for the player who has a total of 10 points? | SELECT Opposition FROM table WHERE Total = 10 |
Translate the following into a SQL query | Which player is from County Dublin? | SELECT Player FROM table WHERE County = dublin |
Translate the following into a SQL query | What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100? | SELECT AVG Metropolitan population (2006) Millions FROM table WHERE Metropolitan area = lima AND GDP (PPP) US$ per capita > 13,100 |
Translate the following into a SQL query | What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300? | SELECT MIN Metropolitan population (2006) Millions FROM table WHERE Country = mexico AND Metropolitan area = mexico city AND GDP (PPP) US$ per capita < 20,300 |
Translate the following into a SQL query | Who placed highest with a time of 1:47.70? | SELECT MIN Rank FROM table WHERE Time = 1:47.70 |
Translate the following into a SQL query | How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570? | SELECT COUNT Col (m) FROM table WHERE Elevation (m) < 3,187 AND Prominence (m) < 1,570 |
Translate the following into a SQL query | Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195? | SELECT MIN Elevation (m) FROM table WHERE Prominence (m) > 2,120 AND Peak = mount karisimbi AND Col (m) > 1195 |
Translate the following into a SQL query | Which Prominence (m) has an Elevation (m) of 3,095? | SELECT MIN Prominence (m) FROM table WHERE Elevation (m) = 3,095 |
Translate the following into a SQL query | How long did Witold Latoszek character lasted? | SELECT Duration FROM table WHERE Character = witold latoszek |
Translate the following into a SQL query | Which episode was the last written by chris hawkshaw this season? | SELECT MAX No. in season FROM table WHERE Written by = chris hawkshaw |
Translate the following into a SQL query | What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters? | SELECT MAX Col (m) FROM table WHERE Prominence (m) = 1,834 AND Elevation (m) > 1,834 |
Translate the following into a SQL query | What is the greatest 2007 when the change 06-07 was 14.7%? | SELECT MAX 2007 FROM table WHERE Change 06-07 = 14.7% |
Translate the following into a SQL query | when was the ship completed when laid down is 21 august 1925? | SELECT Completed FROM table WHERE Laid down = 21 august 1925 |
Translate the following into a SQL query | When was satsuki dd-27 completed? | SELECT Completed FROM table WHERE Name = satsuki dd-27 |
Translate the following into a SQL query | when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan? | SELECT Launched FROM table WHERE Builder = fujinagata shipyards, japan AND Laid down = 20 october 1924 |
Translate the following into a SQL query | when was the ship completed that was laid down on 23 march 1926? | SELECT Completed FROM table WHERE Laid down = 23 march 1926 |
Translate the following into a SQL query | when was the ship laid down when it was completed on 3 july 1926? | SELECT Laid down FROM table WHERE Completed = 3 july 1926 |
Translate the following into a SQL query | What was the score of the game at the Chicago Stadium? | SELECT Score FROM table WHERE Location/Attendance = chicago stadium |
Translate the following into a SQL query | What was the date of the game when the record was 46-31? | SELECT Date FROM table WHERE Record = 46-31 |
Translate the following into a SQL query | What was the score of the game at the Chicago Stadium? | SELECT Score FROM table WHERE Location/Attendance = chicago stadium |
Translate the following into a SQL query | What is the Rank of the Swimmer in Lane 5? | SELECT AVG Rank FROM table WHERE Lane = 5 |
Translate the following into a SQL query | What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger? | SELECT COUNT Rank FROM table WHERE Time = 49 AND Lane > 7 |
Translate the following into a SQL query | What is the Lane of the swimmer with a Rank of 8? | SELECT MAX Lane FROM table WHERE Rank = 8 |
Translate the following into a SQL query | What Level has a Season larger than 2010? | SELECT Level FROM table WHERE Season > 2010 |
Translate the following into a SQL query | What Adminstration has a Season of 2000? | SELECT Administration FROM table WHERE Season = 2000 |
Translate the following into a SQL query | What Position has a Season larger than 2000 with a Level of Tier 3? | SELECT Position FROM table WHERE Season > 2000 AND Level = tier 3 |
Translate the following into a SQL query | What Position has a Level of tier 4 with a Season smaller than 2003? | SELECT Position FROM table WHERE Level = tier 4 AND Season < 2003 |
Translate the following into a SQL query | Who had the most rebounds in the game against New York? | SELECT High rebounds FROM table WHERE Opponent = new york |
Translate the following into a SQL query | Who was the opponent for game 30? | SELECT Opponent FROM table WHERE Game = 30 |
Translate the following into a SQL query | Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record? | SELECT High rebounds FROM table WHERE Location = mohegan sun arena AND Record = 24-7 |
Translate the following into a SQL query | How many people attended the September 21, 1980 game? | SELECT AVG Attendance FROM table WHERE Date = september 21, 1980 |
Translate the following into a SQL query | Which Doubles have a Total larger than 176, and a Date smaller than 1907, and Doubles, I Class smaller than 21? | SELECT MAX Doubles FROM table WHERE Total > 176 AND Date < 1907 AND Doubles, I Class < 21 |
Translate the following into a SQL query | Which Total has a Date of 1602, and Greater Doubles smaller than 16? | SELECT MAX Total FROM table WHERE Date = 1602 AND Greater Doubles < 16 |
Translate the following into a SQL query | How much Total has Semidoubles smaller than 78, and Doubles, II Class smaller than 17? | SELECT COUNT Total FROM table WHERE Semidoubles < 78 AND Doubles, II Class < 17 |
Translate the following into a SQL query | Which Greater Doubles have Doubles, II Class smaller than 17? | SELECT AVG Greater Doubles FROM table WHERE Doubles, II Class < 17 |
Translate the following into a SQL query | How much Total has Doubles of 45, and Doubles, II Class larger than 18? | SELECT COUNT Total FROM table WHERE Doubles = 45 AND Doubles, II Class > 18 |
Translate the following into a SQL query | Which Rank has a 2nd run of 1:17.170 (8)? | SELECT MAX Rank FROM table WHERE 2nd run = 1:17.170 (8) |
Translate the following into a SQL query | Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)? | SELECT MAX Rank FROM table WHERE Total < 10 AND 3rd run = 36.457 (2) |
Translate the following into a SQL query | Which Name has a 3rd run of 36.200 (1)? | SELECT Name FROM table WHERE 3rd run = 36.200 (1) |
Translate the following into a SQL query | What is the value of the size (steps) that has just ratio 10:9 and a size (cents) more than 160 | SELECT COUNT size (steps) FROM table WHERE just ratio = 10:9 AND size (cents) > 160 |
Translate the following into a SQL query | what is the value of the audio with a just ratio 21:20 | SELECT audio FROM table WHERE just ratio = 21:20 |
Translate the following into a SQL query | What is the error that has a size (steps) more than 5 and a just (cents) value 536.95 | SELECT error FROM table WHERE size (steps) > 5 AND just (cents) = 536.95 |
Translate the following into a SQL query | What is the average size (cents) with an interval of major third and size (steps) more than 5 | SELECT AVG size (cents) FROM table WHERE interval name = major third AND size (steps) > 5 |
Translate the following into a SQL query | What is the average number of points for places over 7 and having a draw order of 4? | SELECT AVG Points FROM table WHERE Place > 7 AND Draw = 4 |
Translate the following into a SQL query | What is the sum of placings for the song "Tavo Spalvos"? | SELECT SUM Place FROM table WHERE Song = "tavo spalvos" |
Translate the following into a SQL query | How many league goals did the player with 10 league apps and 0 FA cup goals have? | SELECT COUNT League Goals FROM table WHERE FA Cup Goals = 0 AND League Apps = 10 |
Translate the following into a SQL query | What was the sum of league goals where the toal was 8 and league cup goals were larger than 0? | SELECT SUM League Goals FROM table WHERE Total Goals = 8 AND League Cup Goals > 0 |
Translate the following into a SQL query | For the Japanese title サプリ that had 11 episodes, what is the average ratings? | SELECT Average Ratings FROM table WHERE Episodes = 11 AND Japanese Title = サプリ |
Translate the following into a SQL query | When the average ratings is 10.3%, what is the average episodes? | SELECT AVG Episodes FROM table WHERE Average Ratings = 10.3% |
Translate the following into a SQL query | What is the fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~? | SELECT MIN Episodes FROM table WHERE Romaji Title = regatta~kimi to ita eien~ |
Translate the following into a SQL query | With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title? | SELECT Japanese Title FROM table WHERE Romaji Title = hanayome wa yakudoshi! |
Translate the following into a SQL query | For what Japanese title is there less than 11 episodes and the Romaji title is Regatta~Kimi to Ita Eien~? | SELECT Japanese Title FROM table WHERE Episodes < 11 AND Romaji Title = regatta~kimi to ita eien~ |
Translate the following into a SQL query | what is the most episodes when the average ratings is 18.8%? | SELECT MAX Episodes FROM table WHERE Average Ratings = 18.8% |
Translate the following into a SQL query | How many episodes when the tv station is ntv and the japanese title is たったひとつの恋? | SELECT Episodes FROM table WHERE TV Station = ntv AND Japanese Title = たったひとつの恋 |
Translate the following into a SQL query | what is the tv station when the romaji title is kazoku~tsuma no fuzai・otto no sonzai~? | SELECT TV Station FROM table WHERE Romaji Title = kazoku~tsuma no fuzai・otto no sonzai~ |
Translate the following into a SQL query | what is the tv station when the average ratings is 19.5%? | SELECT TV Station FROM table WHERE Average Ratings = 19.5% |
Translate the following into a SQL query | Of all the schools that left before 2003, what is the average year joined? | SELECT AVG Year Joined FROM table WHERE Year Left < 2003 |
Translate the following into a SQL query | What year did the Ingots, who left after 2007, join? | SELECT COUNT Year Joined FROM table WHERE Mascot = ingots AND Year Left > 2007 |
Translate the following into a SQL query | What is the original Release date of the Track written by Dallas Frazier? | SELECT Original Release FROM table WHERE Writer(s) = dallas frazier |
Translate the following into a SQL query | What is the Original Artis of the Track with a Length of 2:38? | SELECT Original Artist FROM table WHERE Length = 2:38 |
Translate the following into a SQL query | What Song has a Length of 2:50? | SELECT Song Title FROM table WHERE Length = 2:50 |
Translate the following into a SQL query | What's the title when the genre is drama and network of KBS2 happening before 2011? | SELECT Title FROM table WHERE Year < 2011 AND Network = kbs2 AND Genre = drama |
Translate the following into a SQL query | What's the title when the genre is drama with a network of KBS2 happening in 2011? | SELECT Title FROM table WHERE Genre = drama AND Network = kbs2 AND Year = 2011 |
Translate the following into a SQL query | What's the network in 2011? | SELECT Network FROM table WHERE Year = 2011 |
Translate the following into a SQL query | What's the Hangul/Japanese that happened before 2014 having a role of Baek Seung-Jo? | SELECT Hangul / Japanese FROM table WHERE Year < 2014 AND Role = baek seung-jo |
Translate the following into a SQL query | What's the Hangul/Japanese of Boys Over Flowers that's drama? | SELECT Hangul / Japanese FROM table WHERE Genre = drama AND Title = boys over flowers |
Translate the following into a SQL query | What is the IHSAA class in monon? | SELECT IHSAA Class FROM table WHERE Location = monon |
Translate the following into a SQL query | What is the IHSAA class with 395 in enrollment? | SELECT IHSAA Class FROM table WHERE Enrollment = 395 |
Translate the following into a SQL query | What school has rebels as their mascot? | SELECT School FROM table WHERE Mascot = rebels |
Translate the following into a SQL query | What is the total enrollment of the aa IHSAA class? | SELECT COUNT Enrollment FROM table WHERE IHSAA Class = aa |
Translate the following into a SQL query | What is the lowest enrollment at the pioneer school? | SELECT MIN Enrollment FROM table WHERE School = pioneer |
Translate the following into a SQL query | What is the average enrollment of the IHSAA A class in wolcott? | SELECT AVG Enrollment FROM table WHERE IHSAA Class = a AND Location = wolcott |
Translate the following into a SQL query | What is the Shirt No for Henry Bell Cisnero whose height is less than 190? | SELECT MAX Shirt No FROM table WHERE Height < 190 AND Player = henry bell cisnero |
Translate the following into a SQL query | What is the Shirt No for the person whose height is 188? | SELECT SUM Shirt No FROM table WHERE Height = 188 |
Translate the following into a SQL query | What is the height of the person whose position is Libero? | SELECT MAX Height FROM table WHERE Position = libero |
Translate the following into a SQL query | What is the total for the person with free of 47.667, and technical less than 47.417? | SELECT SUM Total FROM table WHERE Free = 47.667 AND Technical < 47.417 |
Translate the following into a SQL query | What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.334? | SELECT MAX Technical FROM table WHERE Athlete = jiang tingting & jiang wenwen AND Total > 96.334 |
Translate the following into a SQL query | What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333? | SELECT MIN Free FROM table WHERE Athlete = apolline dreyfuss & lila meesseman-bakir AND Total > 90.333 |
Translate the following into a SQL query | What is the average number of games drawn among teams that played over 14 games? | SELECT AVG Drawn FROM table WHERE Played > 14 |
Translate the following into a SQL query | What is the total number of points combined from the teams that played over 14 games? | SELECT COUNT Points FROM table WHERE Played > 14 |
Translate the following into a SQL query | How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score? | SELECT SUM Points FROM table WHERE Lost > 3 AND Name = esc riverrats geretsried |
Translate the following into a SQL query | What is the average number of games drawn among the teams that lost over 13 games? | SELECT AVG Drawn FROM table WHERE Lost > 13 |
Translate the following into a SQL query | What is the date of vacancy when the manner of departure is sacked and the team is nejapa? | SELECT Date of vacancy FROM table WHERE Manner of departure = sacked AND Team = nejapa |
Translate the following into a SQL query | what is the date of vacancy when the date of appointment is 1 january 2009? | SELECT Date of vacancy FROM table WHERE Date of appointment = 1 january 2009 |
Translate the following into a SQL query | what is the date of vacancy when the position in table is 10th and the team is balboa? | SELECT Date of vacancy FROM table WHERE Position in table = 10th AND Team = balboa |
Translate the following into a SQL query | Who replaced when the position in table is 5th? | SELECT Replaced by FROM table WHERE Position in table = 5th |
Translate the following into a SQL query | Who is the outgoing manager when they were replaced by pablo centrone? | SELECT Outgoing manager FROM table WHERE Replaced by = pablo centrone |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.