instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
SELECT AVG Year FROM table WHERE Power = bhp (kw) AND Trim = ls/2lt
Translate the following into a SQL query
Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?
SELECT Engine FROM table WHERE Year > 2006 AND Power = bhp (kw)
Translate the following into a SQL query
What Torque has a Power of HP (KW)?
SELECT Torque FROM table WHERE Power = hp (kw)
Translate the following into a SQL query
What's the Year average that's got Trim of LS/LT and Power of HP (KW)?
SELECT AVG Year FROM table WHERE Trim = ls/lt AND Power = hp (kw)
Translate the following into a SQL query
Name the college with overall of 17
SELECT College FROM table WHERE Overall = 17
Translate the following into a SQL query
Name the least overall for tony baker
SELECT MIN Overall FROM table WHERE Name = tony baker
Translate the following into a SQL query
Who was the visiting team when Winnipeg was the home team?
SELECT Visitor FROM table WHERE Home = winnipeg
Translate the following into a SQL query
What was the score of the game with a decision of Peeters and a record of 29–3–11?
SELECT Score FROM table WHERE Decision = peeters AND Record = 29–3–11
Translate the following into a SQL query
What is the Label of Catalogue # HVNLP26CD from United Kingdom?
SELECT Label FROM table WHERE Country = united kingdom AND Catalogue # = hvnlp26cd
Translate the following into a SQL query
What Country is Catalogue # ASW 50248 (724385024825) from?
SELECT Country FROM table WHERE Catalogue # = asw 50248 (724385024825)
Translate the following into a SQL query
Who is the winning team of the South Pacific Trophy?
SELECT Winning team FROM table WHERE Name = south pacific trophy
Translate the following into a SQL query
Loss of gonzΓ‘lez (0–3) had what attendance?
SELECT Attendance FROM table WHERE Loss = gonzΓ‘lez (0–3)
Translate the following into a SQL query
Record of 92–70 had what date?
SELECT Date FROM table WHERE Record = 92–70
Translate the following into a SQL query
Loss of kendrick (11–8) had what record?
SELECT Record FROM table WHERE Loss = kendrick (11–8)
Translate the following into a SQL query
Date of september 28 had what record?
SELECT Record FROM table WHERE Date = september 28
Translate the following into a SQL query
Attendance of 23,150 had what opponent?
SELECT Opponent FROM table WHERE Attendance = 23,150
Translate the following into a SQL query
Attendance of 36,796 had what score?
SELECT Score FROM table WHERE Attendance = 36,796
Translate the following into a SQL query
What is the sum of Long for derrick locke?
SELECT SUM Long FROM table WHERE Name = derrick locke
Translate the following into a SQL query
What is the lowest Loss with Gain larger than 319 for derrick locke?
SELECT MIN Loss FROM table WHERE Name = derrick locke AND Gain > 319
Translate the following into a SQL query
Head Coach of wojciech kamiΕ„ski is what club?
SELECT Club FROM table WHERE Head Coach = wojciech kamiΕ„ski
Translate the following into a SQL query
Sport of football, and a Venue of stadion polonii is what league?
SELECT League FROM table WHERE Sport = football AND Venue = stadion polonii
Translate the following into a SQL query
Sport of gaelic football and hurling is what league?
SELECT League FROM table WHERE Sport = gaelic football and hurling
Translate the following into a SQL query
Venue of Pepsi arena involved what club?
SELECT Club FROM table WHERE Venue = pepsi arena
Translate the following into a SQL query
What is the highest earnings for Tom watson who had a ranking larger than 2?
SELECT MAX Earnings ( $ ) FROM table WHERE Player = tom watson AND Rank > 2
Translate the following into a SQL query
What is the highest rank for the player who earns $4,263,133?
SELECT MAX Rank FROM table WHERE Earnings ( $ ) = 4,263,133
Translate the following into a SQL query
What is the average number of wins for the player with a rank larger than 3 and earnings of $3,707,586?
SELECT AVG Wins FROM table WHERE Rank > 3 AND Earnings ( $ ) = 3,707,586
Translate the following into a SQL query
What is the highest number of wins for Tom Watson who earns less than $4,974,845?
SELECT MAX Wins FROM table WHERE Player = tom watson AND Earnings ( $ ) < 4,974,845
Translate the following into a SQL query
What is the highest earnings for curtis strange?
SELECT MAX Earnings ( $ ) FROM table WHERE Player = curtis strange
Translate the following into a SQL query
What is the average year with an average start smaller than 6.3 and fewer than 0 wins?
SELECT AVG Year FROM table WHERE Avg. Start < 6.3 AND Wins < 0
Translate the following into a SQL query
Which Second has a Skip of barbora vojtusova?
SELECT Second FROM table WHERE Skip = barbora vojtusova
Translate the following into a SQL query
Which Skip did marju velga lead?
SELECT Skip FROM table WHERE Lead = marju velga
Translate the following into a SQL query
Which Lead has a Second of katrin kuusk?
SELECT Lead FROM table WHERE Second = katrin kuusk
Translate the following into a SQL query
Which Third has a Skip of ellen vogt?
SELECT Third FROM table WHERE Skip = ellen vogt
Translate the following into a SQL query
Which Third has a Second of agnieszka ogrodniczek?
SELECT Third FROM table WHERE Second = agnieszka ogrodniczek
Translate the following into a SQL query
What is Spain's skip?
SELECT Skip FROM table WHERE Nation = spain
Translate the following into a SQL query
What is the Per capita income associated with over 116,716,292 households and a Median household income of $42,706?
SELECT Per capita income FROM table WHERE Number of households > 116,716,292 AND Median household income = $42,706
Translate the following into a SQL query
What is the Per capita income associated with a Median household income of $55,800?
SELECT Per capita income FROM table WHERE Median household income = $55,800
Translate the following into a SQL query
What was the margin of victory at the Texas International Open?
SELECT Margin of victory FROM table WHERE Tournament = texas international open
Translate the following into a SQL query
What was the margin of victory in the tournament with a winning score of βˆ’3 (74-68-72-71=285)?
SELECT Margin of victory FROM table WHERE Winning score = βˆ’3 (74-68-72-71=285)
Translate the following into a SQL query
Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?
SELECT SUM Avg/G FROM table WHERE Effic > 129.73 AND Cmp-Att-Int = 333-500-13
Translate the following into a SQL query
Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?
SELECT MAX Effic FROM table WHERE Avg/G < 305.6 AND GP-GS = 13-13
Translate the following into a SQL query
Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?
SELECT SUM Avg/G FROM table WHERE Name = opponents AND Effic < 129.73
Translate the following into a SQL query
Which Cmp-Att-Int has a GP-GS of 3-0?
SELECT Cmp-Att-Int FROM table WHERE GP-GS = 3-0
Translate the following into a SQL query
Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15?
SELECT AVG Effic FROM table WHERE Avg/G > 3.7 AND GP-GS = 13 AND Cmp-Att-Int = 318-521-15
Translate the following into a SQL query
Which home team was playing on January 13?
SELECT Home FROM table WHERE Date = january 13
Translate the following into a SQL query
How many runs were there when the high score was 55 and there were more than 12 innings?
SELECT SUM Runs FROM table WHERE High Score = 55 AND Innings > 12
Translate the following into a SQL query
How many runs were there when there was 1 match and les than 86 average?
SELECT SUM Runs FROM table WHERE Matches = 1 AND Average < 86
Translate the following into a SQL query
Which station has programming of Me-TV?
SELECT Station FROM table WHERE Programming = me-tv
Translate the following into a SQL query
Which station has programming of Me-TV?
SELECT Station FROM table WHERE Programming = me-tv
Translate the following into a SQL query
What is the short name having video of 720p and programming of Main KSTC-TV programming?
SELECT PSIP Short Name FROM table WHERE Video = 720p AND Programming = main kstc-tv programming
Translate the following into a SQL query
What is the video associated with a short name of KSTCDT2?
SELECT Video FROM table WHERE PSIP Short Name = kstcdt2
Translate the following into a SQL query
What is the short name of channel 5.5, KSTC-TV?
SELECT PSIP Short Name FROM table WHERE Station = kstc-tv AND Channel = 5.5
Translate the following into a SQL query
What is the short name of the channel under 5.2?
SELECT PSIP Short Name FROM table WHERE Channel < 5.2
Translate the following into a SQL query
Which Men's doubles has a Women's doubles of pam brady rosine lemon?
SELECT Men's doubles FROM table WHERE Women's doubles = pam brady rosine lemon
Translate the following into a SQL query
Which province has a prefecture of Xiangxi with 0.81% of China's Tujia population?
SELECT Province FROM table WHERE Prefecture = xiangxi AND % of China's Tujia Population = 0.81%
Translate the following into a SQL query
Which prefecture is in Hubei province and Enshi county?
SELECT Prefecture FROM table WHERE Province = hubei AND County = enshi
Translate the following into a SQL query
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
SELECT SUM Tujia Population FROM table WHERE Prefecture = zhangjiajie AND County = sangzhi
Translate the following into a SQL query
What is the total number of attendence has points greater than 40, and detroit as the home?
SELECT COUNT Attendance FROM table WHERE Points > 40 AND Home = detroit
Translate the following into a SQL query
What is the total number of Tropical Lows for more than 11 tropical cyclones in 1998–99, and a Severe Tropical Cyclones larger than 9?
SELECT COUNT Tropical Lows FROM table WHERE Tropical Cyclones > 11 AND Season = 1998–99 AND Severe Tropical Cyclones > 9
Translate the following into a SQL query
What is the largest number for tropical Lows for the 1990–91 season with more than 10 tropical cyclones?
SELECT MAX Tropical Lows FROM table WHERE Season = 1990–91 AND Tropical Cyclones > 10
Translate the following into a SQL query
What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
SELECT MIN Severe Tropical Cyclones FROM table WHERE Strongest storm = tiffany AND Tropical Lows > 10
Translate the following into a SQL query
What is the least amount of severe tropical cyclones for the 1992–93 season and the tropical Lows smaller than 6?
SELECT MIN Severe Tropical Cyclones FROM table WHERE Season = 1992–93 AND Tropical Lows < 6
Translate the following into a SQL query
What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones
SELECT MIN Tropical Lows FROM table WHERE Season = 1993–94 AND Tropical Cyclones < 11
Translate the following into a SQL query
How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4
SELECT COUNT Week FROM table WHERE Date = september 8, 1980 AND Attendance > 55,045
Translate the following into a SQL query
Which Round has a College of stanford?
SELECT Round FROM table WHERE College = stanford
Translate the following into a SQL query
Which Round has a Pick of 174?
SELECT Round FROM table WHERE Pick = 174
Translate the following into a SQL query
Which Position has a Pick of 174?
SELECT Position FROM table WHERE Pick = 174
Translate the following into a SQL query
that was held in 1964?
SELECT Event FROM table WHERE Year = 1964
Translate the following into a SQL query
What is the name of the Event with a venue that was in toronto, canada?
SELECT Event FROM table WHERE Venue = toronto, canada
Translate the following into a SQL query
What is the Year the competition the british empire and commonwealth games were held?
SELECT SUM Year FROM table WHERE Competition = british empire and commonwealth games
Translate the following into a SQL query
What is the position of the commonwealth games?
SELECT Position FROM table WHERE Competition = commonwealth games
Translate the following into a SQL query
What is the venue with a competition in 1964?
SELECT Venue FROM table WHERE Year = 1964
Translate the following into a SQL query
Name the date for clay surface and location of santos, brazil
SELECT Date FROM table WHERE Surface = clay AND Location = santos, brazil
Translate the following into a SQL query
Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4)
SELECT Date FROM table WHERE Outcome = winner AND Score = 4–6 6–2 7–6 (7–4)
Translate the following into a SQL query
What's the highest capacity for a position of 5 in 2004?
SELECT MAX Capacity FROM table WHERE Position in 2004 = 5
Translate the following into a SQL query
Which venue has a capacity over 41,040 for Darida?
SELECT Venue FROM table WHERE Capacity > 41,040 AND Team = darida
Translate the following into a SQL query
Which venue was number 9 for 2004?
SELECT Venue FROM table WHERE Position in 2004 = 9
Translate the following into a SQL query
What city was founded in 1857?
SELECT City FROM table WHERE Founded = 1857
Translate the following into a SQL query
Which Opponent has a Time of 2:31?
SELECT Opponent FROM table WHERE Time = 2:31
Translate the following into a SQL query
Which Method has a Round of 1, and a Time of 0:28?
SELECT Method FROM table WHERE Round = 1 AND Time = 0:28
Translate the following into a SQL query
Which Time has an Event of call to arms i?
SELECT Time FROM table WHERE Event = call to arms i
Translate the following into a SQL query
what team played on april 9
SELECT Opponent FROM table WHERE Date = april 9
Translate the following into a SQL query
What is the smallest frequency (kHz) that is in the location of Longview?
SELECT MIN Frequency (kHz) FROM table WHERE Licensed location = longview
Translate the following into a SQL query
What is the location with a frequency (kHz) greater than 1370?
SELECT Licensed location FROM table WHERE Frequency (kHz) > 1370
Translate the following into a SQL query
What is the capacity number for Yunost?
SELECT COUNT Capacity FROM table WHERE Venue = yunost
Translate the following into a SQL query
What is the total number of first prizes in USD for the Canadian Open?
SELECT SUM 1st prize ( $ ) FROM table WHERE Tournament = canadian open
Translate the following into a SQL query
Which Drawn has a Lost of 19?
SELECT Drawn FROM table WHERE Lost = 19
Translate the following into a SQL query
Which Played has a Club of club?
SELECT Played FROM table WHERE Club = club
Translate the following into a SQL query
Which Club has 1 Losing bonus?
SELECT Club FROM table WHERE Losing bonus = 1
Translate the following into a SQL query
What is the Losing bonus of 571 Points ?
SELECT Losing bonus FROM table WHERE Points for = 571
Translate the following into a SQL query
Which Lost has a Tries for of 75?
SELECT Lost FROM table WHERE Tries for = 75
Translate the following into a SQL query
Who is the opponent in the final of the match on 19 February 2006?
SELECT Opponent in the final FROM table WHERE Date = 19 february 2006
Translate the following into a SQL query
Who is the opponent in the final of the match on 26 March 2006?
SELECT Opponent in the final FROM table WHERE Date = 26 march 2006
Translate the following into a SQL query
What is the overall number of the player from Utah with a pick # higher than 7?
SELECT SUM Overall FROM table WHERE College = utah AND Pick # < 7
Translate the following into a SQL query
What is the highest round of the player with a pick number lower than 34?
SELECT MAX Round FROM table WHERE Pick # > 34
Translate the following into a SQL query
What round did Mitch Davis, with an overall higher than 118, have?
SELECT SUM Round FROM table WHERE Name = mitch davis AND Overall < 118
Translate the following into a SQL query
What is the highest overall of the player from Georgia?
SELECT MAX Overall FROM table WHERE College = georgia
Translate the following into a SQL query
What is the position of the player with an overall of 45?
SELECT Position FROM table WHERE Overall = 45
Translate the following into a SQL query
How many wins for team nsu and over 2 points?
SELECT AVG Wins FROM table WHERE Team = nsu AND Points > 2
Translate the following into a SQL query
What is the earliest year associated with under 0 wins?
SELECT MIN Year FROM table WHERE Wins < 0