instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which result featured the Indianapolis Colts as opponents? | SELECT Result FROM table WHERE Opponent = indianapolis colts |
Translate the following into a SQL query | Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )? | SELECT Name FROM table WHERE Date of reclassification = 2003-04-01 (merge into shizuoka ) |
Translate the following into a SQL query | WHich Japanese has a Prefecture of iwate? | SELECT Japanese FROM table WHERE Prefecture = iwate |
Translate the following into a SQL query | Which Date of designation has a Name of kurume? | SELECT Date of designation FROM table WHERE Name = kurume |
Translate the following into a SQL query | What kind of Japanese has a Region of tōhoku? | SELECT Japanese FROM table WHERE Region = tōhoku |
Translate the following into a SQL query | WHose Name has a Region of kansai on 2012-04-01 ( core city )? | SELECT Name FROM table WHERE Region = kansai AND Date of reclassification = 2012-04-01 ( core city ) |
Translate the following into a SQL query | What is the Position with a Birthdate that is august 17, 1980? | SELECT Position FROM table WHERE Birthdate = august 17, 1980 |
Translate the following into a SQL query | Which capacity has a purple and white colors? | SELECT Capacity FROM table WHERE Colors = purple and white |
Translate the following into a SQL query | How many households have a median family income of $60,400? | SELECT Number of households FROM table WHERE Median family income = $60,400 |
Translate the following into a SQL query | What county of city has more than 9,505 households with a median household income greater than $94,880? | SELECT County or City FROM table WHERE Number of households > 9,505 AND Median household income = $94,880 |
Translate the following into a SQL query | What is the average weight of the player with a height of 180 cm and plays the d position? | SELECT AVG Weight (kg) FROM table WHERE Height (cm) = 180 AND Position = d |
Translate the following into a SQL query | What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm? | SELECT Birthplace FROM table WHERE Position = f AND Height (cm) > 175 AND NHL rights, if any = calgary flames |
Translate the following into a SQL query | What is the 2008-09 team of the player who plays the f position and has NHL rights with the New Jersey Devils? | SELECT 2008-09 team FROM table WHERE Position = f AND NHL rights, if any = new jersey devils |
Translate the following into a SQL query | What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type? | SELECT Resting potential (mV) FROM table WHERE AP duration (ms) = 1.0 AND Cell type = median giant fiber |
Translate the following into a SQL query | Which animal has a resting potential of −60? | SELECT Animal FROM table WHERE Resting potential (mV) = −60 |
Translate the following into a SQL query | Which animal has an AP duration of 1.0 and a conduction speed of 7–30? | SELECT Animal FROM table WHERE AP duration (ms) = 1.0 AND Conduction speed (m/s) = 7–30 |
Translate the following into a SQL query | What AP increase has an AP duration of 0.75? | SELECT AP increase (mV) FROM table WHERE AP duration (ms) = 0.75 |
Translate the following into a SQL query | Which cell type has a conduction speed of 35? | SELECT Cell type FROM table WHERE Conduction speed (m/s) = 35 |
Translate the following into a SQL query | What was the total matches that ranked above 10? | SELECT SUM Matches FROM table WHERE Rank > 10 |
Translate the following into a SQL query | What was the total amount of matches for Alan Shearer? | SELECT COUNT Matches FROM table WHERE Name = alan shearer |
Translate the following into a SQL query | What is the average goals for Jimmy Greaves, and matches more than 516? | SELECT AVG Goals FROM table WHERE Name = jimmy greaves AND Matches > 516 |
Translate the following into a SQL query | What was the total number of matches for Nat Lofthouse, ranking higher than 7? | SELECT COUNT Matches FROM table WHERE Name = nat lofthouse AND Rank > 7 |
Translate the following into a SQL query | What is the highest rank for Nat Lofthouse, and goals more than 255? | SELECT MAX Rank FROM table WHERE Name = nat lofthouse AND Goals > 255 |
Translate the following into a SQL query | What is the location/state that has adelaide international raceway as the circuit? | SELECT Location / State FROM table WHERE Circuit = adelaide international raceway |
Translate the following into a SQL query | What is the name of the director for the episode titled "homewrecker for the holidays"? | SELECT Directed by FROM table WHERE Title = "homewrecker for the holidays" |
Translate the following into a SQL query | What is the Original air date for the episode with a Production code of 07-00-107? | SELECT Original air date FROM table WHERE Production code = 07-00-107 |
Translate the following into a SQL query | What is the name of the director of the episode written by robin schwartz & robert tarlow? | SELECT Directed by FROM table WHERE Written by = robin schwartz & robert tarlow |
Translate the following into a SQL query | What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109? | SELECT Original air date FROM table WHERE Directed by = lev l. spiro AND Production code = 07-00-109 |
Translate the following into a SQL query | What is the name of the writer for the episode with an Original air date of october 9, 2000? | SELECT Written by FROM table WHERE Original air date = october 9, 2000 |
Translate the following into a SQL query | What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001? | SELECT Title FROM table WHERE Written by = terri hughes & ron milbauer AND Original air date = march 6, 2001 |
Translate the following into a SQL query | What time or retired does Scott Dixon have? | SELECT Time/Retired FROM table WHERE Driver = scott dixon |
Translate the following into a SQL query | Which driver has a grid bigger than 3 and a time of +62.6 secs? | SELECT Driver FROM table WHERE Grid > 3 AND Time/Retired = +62.6 secs |
Translate the following into a SQL query | Who drives for Newman-Haas Racing with a time of 1:51:47.260? | SELECT Driver FROM table WHERE Team = newman-haas racing AND Time/Retired = 1:51:47.260 |
Translate the following into a SQL query | Which driver had less than 65 laps for Sigma Autosport? | SELECT Driver FROM table WHERE Laps < 65 AND Team = sigma autosport |
Translate the following into a SQL query | Which game modes have Pinyin of chāojí mǎlìōu shìjiè? | SELECT Game Modes FROM table WHERE Pinyin = chāojí mǎlìōu shìjiè |
Translate the following into a SQL query | What is the sum of Population (1 July 2005 est.), when Area (km²) is less than 5,131, when Population density (per km²) is less than 180, when Subdivisions is Parishes, and when Capital is Roseau? | SELECT SUM Population (1 July 2005 est.) FROM table WHERE Area (km²) < 5,131 AND Population density (per km²) < 180 AND Subdivisions = parishes AND Capital = roseau |
Translate the following into a SQL query | What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0? | SELECT MIN Population (1 July 2005 est.) FROM table WHERE Population density (per km²) = 0 |
Translate the following into a SQL query | What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's? | SELECT Population density (per km²) FROM table WHERE Name = antigua and barbuda AND Capital = st. john's |
Translate the following into a SQL query | Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996? | SELECT Opponents FROM table WHERE Surface = grass AND Partner = mark woodforde AND Outcome = winner AND Year > 1996 |
Translate the following into a SQL query | Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6? | SELECT Partner FROM table WHERE Championship = australian open, melbourne AND Score = 2–6, 7–5, 6–2, 4–6, 3–6 |
Translate the following into a SQL query | When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman? | SELECT Opponents FROM table WHERE Surface = grass AND Year > 1993 AND Partner = jonas björkman |
Translate the following into a SQL query | Which league's playoffs was national semi-finals? | SELECT League FROM table WHERE Playoffs = national semi-finals |
Translate the following into a SQL query | Which country is Lemd the ICAO of? | SELECT Country FROM table WHERE ICAO = lemd |
Translate the following into a SQL query | Paris-Charles de Gaulle airport is in which country? | SELECT Country FROM table WHERE Airport = paris-charles de gaulle airport |
Translate the following into a SQL query | What is the ICAO for Riyadh, Saudi Arabia? | SELECT ICAO FROM table WHERE Country = saudi arabia AND City = riyadh |
Translate the following into a SQL query | What is the IATA for Benghazi, Libya? | SELECT IATA FROM table WHERE Country = libya AND City = benghazi |
Translate the following into a SQL query | What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884? | SELECT AVG Grid FROM table WHERE Bike = honda cbr1000rr AND Laps = 18 AND Time = +1:12.884 |
Translate the following into a SQL query | What is the Bike with 18 laps and +41.280 as the time? | SELECT Bike FROM table WHERE Laps = 18 AND Time = +41.280 |
Translate the following into a SQL query | What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland? | SELECT Time FROM table WHERE Laps = 18 AND Grid > 15 AND Rider = russell holland |
Translate the following into a SQL query | What is the Bike with a grid more than 4 and the rider is Michel Fabrizio? | SELECT Bike FROM table WHERE Grid > 4 AND Rider = michel fabrizio |
Translate the following into a SQL query | What was Lee Smith's highest number of goals when he made fewer than 364 appearances? | SELECT MAX Goals FROM table WHERE Name = lee smith AND Appearances < 364 |
Translate the following into a SQL query | What is the sum of Rob Coldray's goals when he made fewer than 348 appearances with goals/game ratio less than 0.313? | SELECT SUM Goals FROM table WHERE Goals/Game Ratio < 0.313 AND Name = rob coldray AND Appearances < 348 |
Translate the following into a SQL query | Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances? | SELECT Goals/Game Ratio FROM table WHERE Goals < 201 AND Appearances < 170 |
Translate the following into a SQL query | What is the average rank of the airport in São Paulo with passengers totaling less than 18,795,596? | SELECT AVG Rank FROM table WHERE Location = são paulo AND Total Passengers < 18,795,596 |
Translate the following into a SQL query | What is the average rank of the airport with a 9.3% annual change? | SELECT AVG Rank FROM table WHERE Annual change = 9.3% |
Translate the following into a SQL query | Where is the airport located that has a 98.9% in use capacity? | SELECT Location FROM table WHERE Capacity in use = 98.9% |
Translate the following into a SQL query | What rank is the airport in Fortaleza? | SELECT Rank FROM table WHERE Location = fortaleza |
Translate the following into a SQL query | What is the Award name with a Team name that is cougar robotics team? | SELECT Award name FROM table WHERE Team name = cougar robotics team |
Translate the following into a SQL query | What is the zan 1 that has 11 as the nor 1? | SELECT ZAN 1 FROM table WHERE NOR 1 = 11 |
Translate the following into a SQL query | What driver has 19 as the zan 1? | SELECT Driver FROM table WHERE ZAN 1 = 19 |
Translate the following into a SQL query | What driver has 5 as the zan 2? | SELECT Driver FROM table WHERE ZAN 2 = 5 |
Translate the following into a SQL query | What is the nor 2 that has nor 1 as nor 1? | SELECT NOR 2 FROM table WHERE NOR 1 = nor 1 |
Translate the following into a SQL query | What driver has 22 as nor 1? | SELECT Driver FROM table WHERE NOR 1 = 22 |
Translate the following into a SQL query | What Date had a Result of draw, and a Venue of lord's? | SELECT Date FROM table WHERE Result = draw AND Venue = lord's |
Translate the following into a SQL query | What Date that had a Result of draw, with Oval as a venue? | SELECT Date FROM table WHERE Result = draw AND Venue = oval |
Translate the following into a SQL query | What is the Away captain when the Result was draw, and a Venue of lord's? | SELECT Away captain FROM table WHERE Result = draw AND Venue = lord's |
Translate the following into a SQL query | What is the Date when the match Resulted in a draw? | SELECT Date FROM table WHERE Result = draw |
Translate the following into a SQL query | What was the margin of victory when the winning score was –10 (70-72-68-68=278)? | SELECT Margin of victory FROM table WHERE Winning score = –10 (70-72-68-68=278) |
Translate the following into a SQL query | When Gary Player was the runner-up, what was the margin of victory? | SELECT Margin of victory FROM table WHERE Runner(s)-up = gary player |
Translate the following into a SQL query | In what tournament was the winning score –10 (68-71-69-70=278)? | SELECT Tournament FROM table WHERE Winning score = –10 (68-71-69-70=278) |
Translate the following into a SQL query | What is the highest number of wins when earnings are larger than 150,643, more than 1 cut was made, there are more than 22 starts, and the money list rank is 32? | SELECT MAX Wins FROM table WHERE Earnings (€) > 150,643 AND Cuts Made > 1 AND Starts > 22 AND Money list rank = 32 |
Translate the following into a SQL query | What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8? | SELECT MAX Wins FROM table WHERE Cuts Made > 17 AND Starts > 25 AND Top 10 < 8 |
Translate the following into a SQL query | What is the average number of starts when the money list rank is 108 and the rank in the top 25 is greater than 4? | SELECT AVG Starts FROM table WHERE Money list rank = 108 AND Top 25 > 4 |
Translate the following into a SQL query | What is the money list rank when the starts are less than 30, earnings are larger than 8,689, and the ranking is 2 in the top 25? | SELECT Money list rank FROM table WHERE Starts < 30 AND Earnings (€) > 8,689 AND Top 25 = 2 |
Translate the following into a SQL query | What is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4? | SELECT AVG Starts FROM table WHERE Cuts Made = 11 AND Top 10 > 4 |
Translate the following into a SQL query | What is the Name when the position is g, and weight is 190 pounds? | SELECT Name FROM table WHERE Position = g AND Weight (lbs.) = 190 |
Translate the following into a SQL query | What is the Position with a weight of more than 195 pounds, height of 6'5", and named David Hoskins 3? | SELECT Position FROM table WHERE Weight (lbs.) > 195 AND Height = 6'5" AND Name = david hoskins 3 |
Translate the following into a SQL query | What is the sum of Weight for the person with a height of 6'6"? | SELECT SUM Weight (lbs.) FROM table WHERE Height = 6'6" |
Translate the following into a SQL query | Who was the home team of the game on 2 February 2006? | SELECT Home FROM table WHERE Date = 2 february 2006 |
Translate the following into a SQL query | What is the home team of the game with Warriors as the visitor team? | SELECT Home FROM table WHERE Visitor = warriors |
Translate the following into a SQL query | What date was the match on a hard surface with a score of 6–4, 2–6, 3–6? | SELECT Date FROM table WHERE Surface = hard AND Score = 6–4, 2–6, 3–6 |
Translate the following into a SQL query | What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún? | SELECT Score FROM table WHERE Surface = clay AND Outcome = winner AND Tournament = ciudad juárez AND Opponent in the final = estefania craciún |
Translate the following into a SQL query | What is the Outcome of the match with a Score of 6–3, 6–4? | SELECT Outcome FROM table WHERE Score = 6–3, 6–4 |
Translate the following into a SQL query | What is the Outcome of the match with a Score of 6–3, 6–4? | SELECT Outcome FROM table WHERE Score = 6–3, 6–4 |
Translate the following into a SQL query | What is the Outcome of the match on 12 september 2004? | SELECT Outcome FROM table WHERE Date = 12 september 2004 |
Translate the following into a SQL query | What was the Surface when the Score was 6–4, 2–6, 3–6? | SELECT Surface FROM table WHERE Score = 6–4, 2–6, 3–6 |
Translate the following into a SQL query | What is the 2000 kwh p y with a 2400 kwh/kw p y less than 12.5, a 3.8 1600 kwh/kw p y, and a 1800 kwh/kw p y less than 3.3? | SELECT MAX 2000 kWh/kW p y FROM table WHERE 2400 kWh/kW p y < 12.5 AND 1600 kWh/kW p y = 3.8 AND 1800 kWh/kW p y < 3.3 |
Translate the following into a SQL query | What is the total number of 1800 kwk/kw p y with an 8.8 1600 kwh/kw p y, and a 1200 kwh/kw p y greater than 11.7? | SELECT COUNT 1800 kWh/kW p y FROM table WHERE 1600 kWh/kW p y = 8.8 AND 1200 kWh/kW p y > 11.7 |
Translate the following into a SQL query | What is the average 800 kwh/kw p y with a 1600 kwh/kw p y less than 6.3 and a 2000 kwh/kw p y less than 1? | SELECT AVG 800 kWh/kW p y FROM table WHERE 1600 kWh/kW p y < 6.3 AND 2000 kWh/kW p y < 1 |
Translate the following into a SQL query | What is the average 2400 kwh/kw p y with a 1400 kwh/kw p y greater than 12.9, a 1200 kwh/kw p y greater than 21.7, and a 1600 kwh/kw p y greater than 18.8? | SELECT AVG 2400 kWh/kW p y FROM table WHERE 1400 kWh/kW p y > 12.9 AND 1200 kWh/kW p y > 21.7 AND 1600 kWh/kW p y > 18.8 |
Translate the following into a SQL query | What was the total attendance at a game against the Pittsburgh Steelers before week 4? | SELECT COUNT Attendance FROM table WHERE Opponent = pittsburgh steelers AND Week < 4 |
Translate the following into a SQL query | What was the date of the game held at the A venue with a result of 0-1 against the Rangers? | SELECT Date FROM table WHERE Venue = a AND Result = 0-1 AND Opponent = rangers |
Translate the following into a SQL query | Who was the opponent on November 11, 2001? | SELECT Opponent FROM table WHERE Date = november 11, 2001 |
Translate the following into a SQL query | Who was the opponent before week 5 that played on September 23, 2001? | SELECT Opponent FROM table WHERE Week < 5 AND Date = september 23, 2001 |
Translate the following into a SQL query | What is the frequency of the Turion 64 X2 TL-62? | SELECT Frequency FROM table WHERE Model Number = turion 64 x2 tl-62 |
Translate the following into a SQL query | What is the socket for Order Part Number TMDTL68HAX5DM? | SELECT Socket FROM table WHERE Order Part Number = tmdtl68hax5dm |
Translate the following into a SQL query | What is the multiplier 1 for chips with a frequency of 1800MHz? | SELECT Multiplier 1 FROM table WHERE Frequency = 1800mhz |
Translate the following into a SQL query | What is the socket type for the processor with a multiplier 1 of 11.5x? | SELECT Socket FROM table WHERE Multiplier 1 = 11.5x |
Translate the following into a SQL query | What is the highest sample size administered on October 18? | SELECT MAX Sample size FROM table WHERE Date(s) administered = october 18 |
Translate the following into a SQL query | What is the percentage for Mel Martinez when the sample size is 800? | SELECT Mel Martinez (R) FROM table WHERE Sample size = 800 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.