instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the lowest bronze total that has a silver total of 13 medals?
|
SELECT MIN Bronze FROM table WHERE Silver = 13
|
Translate the following into a SQL query
|
With Appearances larger than 1, what is the Wins for the Reno Aces Team?
|
SELECT MIN Wins FROM table WHERE Team = reno aces AND Appearances > 1
|
Translate the following into a SQL query
|
For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1?
|
SELECT SUM Losses FROM table WHERE Appearances = 1 AND Winning percentage = 1 AND Team = reno aces
|
Translate the following into a SQL query
|
In 2009, what Appearances had a Winning Percentage of less than 0?
|
SELECT AVG Appearances FROM table WHERE Season(s) = 2009 AND Winning percentage < 0
|
Translate the following into a SQL query
|
What is the chassis for the year of 1969?
|
SELECT Chassis FROM table WHERE Year = 1969
|
Translate the following into a SQL query
|
Which Occupation has a Rank of 5th, a Gender of M, with a Residence of orono?
|
SELECT Occupation FROM table WHERE Rank = 5th AND Gender = m AND Residence = orono
|
Translate the following into a SQL query
|
Which Gender has a Residence of Haliburton?
|
SELECT Gender FROM table WHERE Residence = haliburton
|
Translate the following into a SQL query
|
What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?
|
SELECT MIN Votes FROM table WHERE Rank = 5th AND Occupation = retired AND Riding = brant
|
Translate the following into a SQL query
|
What Occupation has the Rank of 5th and has a Candidate's Name of Henry Zekveld?
|
SELECT Occupation FROM table WHERE Rank = 5th AND Candidate's Name = henry zekveld
|
Translate the following into a SQL query
|
What is the sum of the people in attendance when there was a Loss of clement (5–7)?
|
SELECT SUM Attendance FROM table WHERE Loss = clement (5–7)
|
Translate the following into a SQL query
|
What place was Corey Pavin in?
|
SELECT Place FROM table WHERE Player = corey pavin
|
Translate the following into a SQL query
|
What was the two-round score for Bob Tway?
|
SELECT Score FROM table WHERE Player = bob tway
|
Translate the following into a SQL query
|
How many people went to the game that lasted 2:37 after game 2?
|
SELECT SUM Attendance FROM table WHERE Game > 2 AND Time = 2:37
|
Translate the following into a SQL query
|
What is the FCC info of the w214ba call sign with a frequency below 96.3?
|
SELECT FCC info FROM table WHERE Frequency MHz < 96.3 AND Call sign = w214ba
|
Translate the following into a SQL query
|
What is the total number of the ERP W with a call sign of w242ak?
|
SELECT COUNT ERP W FROM table WHERE Call sign = w242ak
|
Translate the following into a SQL query
|
What is the FCC info of the station with a frequency above 95.3 and an ERP W smaller than 27 in Ocala, Florida?
|
SELECT FCC info FROM table WHERE Frequency MHz > 95.3 AND ERP W < 27 AND City of license = ocala, florida
|
Translate the following into a SQL query
|
What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?
|
SELECT Date FROM table WHERE Outcome = runner-up AND Score = 6–4, 6–2 AND Opponents = gisela dulko flavia pennetta
|
Translate the following into a SQL query
|
In Round 10, what was the Overall for Ed Tomlin?
|
SELECT AVG Overall FROM table WHERE Round = 10 AND Name = ed tomlin
|
Translate the following into a SQL query
|
What was the Position of Pick #23 in a Round less than 5 with 23 Overall?
|
SELECT Position FROM table WHERE Round < 5 AND Pick # = 23 AND Overall = 23
|
Translate the following into a SQL query
|
What Average Pick # has an Overall of 296?
|
SELECT AVG Pick # FROM table WHERE Overall = 296
|
Translate the following into a SQL query
|
In Round 13, what was the Pick # of the Guard Position with an Overall greater than 23?
|
SELECT Pick # FROM table WHERE Overall > 23 AND Position = guard AND Round = 13
|
Translate the following into a SQL query
|
With an Overall larger than 107, in what Round was Jim Duncan picked?
|
SELECT SUM Round FROM table WHERE Name = jim duncan AND Overall > 107
|
Translate the following into a SQL query
|
What is the highest Pick # for the College of Maryland-Eastern Shore?
|
SELECT MAX Pick # FROM table WHERE College = maryland-eastern shore
|
Translate the following into a SQL query
|
What is Brown Motors best point total using the Offenhauser L4 engine since 1950?
|
SELECT MAX Points FROM table WHERE Year > 1950 AND Engine = offenhauser l4 AND Entrant = brown motors
|
Translate the following into a SQL query
|
Name the length for stage of ss6
|
SELECT Length FROM table WHERE Stage = ss6
|
Translate the following into a SQL query
|
Name the stage for m. grönholm and winner of s.loeb with time of 17:57
|
SELECT Stage FROM table WHERE Rally leader = m. grönholm AND Winner = s.loeb AND Time (EEST) = 17:57
|
Translate the following into a SQL query
|
Name the winner for schimatari 1
|
SELECT Winner FROM table WHERE Name = schimatari 1
|
Translate the following into a SQL query
|
Name the stage for 08:46
|
SELECT Stage FROM table WHERE Time (EEST) = 08:46
|
Translate the following into a SQL query
|
Name the winner with rally leader of c. atkinson and name of agia sotira 1
|
SELECT Winner FROM table WHERE Rally leader = c. atkinson AND Name = agia sotira 1
|
Translate the following into a SQL query
|
Name the winner for ss14
|
SELECT Winner FROM table WHERE Stage = ss14
|
Translate the following into a SQL query
|
Who won the mixed doubles the same year that Andrew Downes won the men's singles?
|
SELECT Mixed doubles FROM table WHERE Men's singles = andrew downes
|
Translate the following into a SQL query
|
Who won the mixed doubles in the years that the men's doubles has no competition?
|
SELECT Mixed doubles FROM table WHERE Men's doubles = no competition
|
Translate the following into a SQL query
|
Who lost when the mariners played on September 12?
|
SELECT Loss FROM table WHERE Opponent = mariners AND Date = september 12
|
Translate the following into a SQL query
|
On September 7 what was the record?
|
SELECT Record FROM table WHERE Date = september 7
|
Translate the following into a SQL query
|
Who plays on the date september 29?
|
SELECT Opponent FROM table WHERE Date = september 29
|
Translate the following into a SQL query
|
Which city of license has a wriq Call sign?
|
SELECT City of license FROM table WHERE Call sign = wriq
|
Translate the following into a SQL query
|
What is the total of Frequency MHz with a Class of b1?
|
SELECT SUM Frequency MHz FROM table WHERE Class = b1
|
Translate the following into a SQL query
|
Which ERP W has a Class of A, and a Call sign of wffc?
|
SELECT ERP W FROM table WHERE Class = a AND Call sign = wffc
|
Translate the following into a SQL query
|
Which class City of license of ferrum, virginia?
|
SELECT Class FROM table WHERE City of license = ferrum, virginia
|
Translate the following into a SQL query
|
Which call sign has a Class of A, and a Frequency MHz of 88.7?
|
SELECT Call sign FROM table WHERE Class = a AND Frequency MHz = 88.7
|
Translate the following into a SQL query
|
what heat number had a time of 58.44?
|
SELECT COUNT Heat FROM table WHERE Time = 58.44
|
Translate the following into a SQL query
|
what lane was new zealand in?
|
SELECT Lane FROM table WHERE Nationality = new zealand
|
Translate the following into a SQL query
|
What stage of the race was held on the course Reggio Calabria to Catanzaro?
|
SELECT Stage FROM table WHERE Course = reggio calabria to catanzaro
|
Translate the following into a SQL query
|
Who was the winner for the Rome to Teramo course?
|
SELECT Winner FROM table WHERE Course = rome to teramo
|
Translate the following into a SQL query
|
Who was the winner of stage 11?
|
SELECT Winner FROM table WHERE Stage = 11
|
Translate the following into a SQL query
|
What is the average Apps of indonesia with Goals smaller than 1000?
|
SELECT AVG Apps FROM table WHERE Country = indonesia AND Goals < 1000
|
Translate the following into a SQL query
|
What division is Traktor Tashkent in 2005?
|
SELECT Division FROM table WHERE Team = traktor tashkent AND Season = 2005
|
Translate the following into a SQL query
|
How many apps does Uzbekistan have in 2003?
|
SELECT Apps FROM table WHERE Country = uzbekistan AND Season = 2003
|
Translate the following into a SQL query
|
What was the attendance at the game when the record was 74-77?
|
SELECT Attendance FROM table WHERE Record = 74-77
|
Translate the following into a SQL query
|
What was score of the game when the record was 72-74?
|
SELECT Score FROM table WHERE Record = 72-74
|
Translate the following into a SQL query
|
What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
|
SELECT Airdate FROM table WHERE Episode No. < 4 AND BBC One Weekly Ranking = 6
|
Translate the following into a SQL query
|
What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?
|
SELECT Total Viewers FROM table WHERE BBC One Weekly Ranking > 7 AND Episode No. < 4
|
Translate the following into a SQL query
|
Name the most rank with bronze of 0 and silver more than 1 and gold more than 0
|
SELECT MAX Rank FROM table WHERE Bronze = 0 AND Silver > 1 AND Gold > 0
|
Translate the following into a SQL query
|
Name the average silver with total less than 1
|
SELECT AVG Silver FROM table WHERE Total < 1
|
Translate the following into a SQL query
|
Name the average year for result of nominated
|
SELECT AVG Year FROM table WHERE Result = nominated
|
Translate the following into a SQL query
|
Name the nominated work for 1996 and festival of black maria film and video festival
|
SELECT Nominated work FROM table WHERE Year = 1996 AND Festival = black maria film and video festival
|
Translate the following into a SQL query
|
What was the date of the away game that they lost to Accrington?
|
SELECT Date FROM table WHERE Venue = away AND Win/Draw/Lose = lost AND Team = accrington
|
Translate the following into a SQL query
|
What was the date of the home game against Accrington?
|
SELECT Date FROM table WHERE Team = accrington AND Venue = home
|
Translate the following into a SQL query
|
What was the result of the home game against Derby County?
|
SELECT Win/Draw/Lose FROM table WHERE Venue = home AND Team = derby county
|
Translate the following into a SQL query
|
What is the Standard cost (USD) by hans Oischinger Creator ?
|
SELECT Standard cost (USD) FROM table WHERE Creator = hans oischinger
|
Translate the following into a SQL query
|
What is the Standard cost (USD) of Kwin team creator?
|
SELECT Standard cost (USD) FROM table WHERE Creator = kwin team
|
Translate the following into a SQL query
|
Who is the Creator that has a version of 0.5.2 (part of compiz fusion release)?
|
SELECT Creator FROM table WHERE Latest stable version = 0.5.2 (part of compiz fusion release)
|
Translate the following into a SQL query
|
Who is a Creator of hyriand?
|
SELECT Name FROM table WHERE Creator = hyriand
|
Translate the following into a SQL query
|
What is the number of people who attended the game later than game 6?
|
SELECT COUNT Attendance FROM table WHERE Game > 6
|
Translate the following into a SQL query
|
Which title has a year later than 1986 with an album as the format?
|
SELECT Title FROM table WHERE Year > 1986 AND Format(s) = album
|
Translate the following into a SQL query
|
Which is the average year with the date of February 24?
|
SELECT AVG Year FROM table WHERE Date = february 24
|
Translate the following into a SQL query
|
Which award description has a year later than 1994 with a date of December 6?
|
SELECT Award Description(s) FROM table WHERE Year > 1994 AND Date = december 6
|
Translate the following into a SQL query
|
How many goals have a Date of december 4, 2010, and a Score of 1-0?
|
SELECT COUNT Goal FROM table WHERE Date = december 4, 2010 AND Score = 1-0
|
Translate the following into a SQL query
|
Which venue has a Competition of 2008 myanmar grand royal challenge cup?
|
SELECT Venue FROM table WHERE Competition = 2008 myanmar grand royal challenge cup
|
Translate the following into a SQL query
|
Which venue has a Goal of 4?
|
SELECT Venue FROM table WHERE Goal = 4
|
Translate the following into a SQL query
|
What is the largest goal with a Score of 3-0?
|
SELECT MAX Goal FROM table WHERE Score = 3-0
|
Translate the following into a SQL query
|
Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?
|
SELECT Opponents in the final FROM table WHERE Partnering = bruno soares AND Surface = clay AND Date = august 1, 2010
|
Translate the following into a SQL query
|
What surface was played on that resulted in a score of 4–6, 6–2, [10–7]?
|
SELECT Surface FROM table WHERE Score = 4–6, 6–2, [10–7]
|
Translate the following into a SQL query
|
What was the outcome on May 25, 2009?
|
SELECT Outcome FROM table WHERE Date = may 25, 2009
|
Translate the following into a SQL query
|
What was the outcome on May 18, 2008?
|
SELECT Outcome FROM table WHERE Date = may 18, 2008
|
Translate the following into a SQL query
|
what is the place for Heath Slocum?
|
SELECT Place FROM table WHERE Player = heath slocum
|
Translate the following into a SQL query
|
What is the attendance for august 29?
|
SELECT Attendance FROM table WHERE Date = august 29
|
Translate the following into a SQL query
|
Which loss has an Opponent of @ angels, and a Date of august 1?
|
SELECT Loss FROM table WHERE Opponent = @ angels AND Date = august 1
|
Translate the following into a SQL query
|
Which score has an Attendance of 31,178?
|
SELECT Score FROM table WHERE Attendance = 31,178
|
Translate the following into a SQL query
|
Which record has a Date of august 28?
|
SELECT Record FROM table WHERE Date = august 28
|
Translate the following into a SQL query
|
Which loss has an Attendance of 23,952?
|
SELECT Loss FROM table WHERE Attendance = 23,952
|
Translate the following into a SQL query
|
Which opponent has a Loss of corcoran (4-4)?
|
SELECT Opponent FROM table WHERE Loss = corcoran (4-4)
|
Translate the following into a SQL query
|
What is the location of the gold medal match?
|
SELECT Location FROM table WHERE Competition = gold medal match
|
Translate the following into a SQL query
|
What was the lineup that resulted in 1-0 AET W?
|
SELECT Lineup FROM table WHERE Result = 1-0 aet w
|
Translate the following into a SQL query
|
What was the result of match 25?
|
SELECT Result FROM table WHERE Match = 25
|
Translate the following into a SQL query
|
What is the result of the London 2012 Women's Olympic Football Tournament?
|
SELECT Result FROM table WHERE Location = london 2012 women's olympic football tournament
|
Translate the following into a SQL query
|
What was the score of the game that had a loss of Wegman (2-6)?
|
SELECT Score FROM table WHERE Loss = wegman (2-6)
|
Translate the following into a SQL query
|
What was the record at the game that had a loss of Blyleven (4-5)?
|
SELECT Record FROM table WHERE Loss = blyleven (4-5)
|
Translate the following into a SQL query
|
Name the city with july of 88 °f / 31.1 °c
|
SELECT City FROM table WHERE Jul. = 88 °f / 31.1 °c
|
Translate the following into a SQL query
|
Name the city with Feb of 66 °f / 18.9 °c
|
SELECT City FROM table WHERE Feb. = 66 °f / 18.9 °c
|
Translate the following into a SQL query
|
Name the city with september of 83 °f / 28.3 °c
|
SELECT City FROM table WHERE Sep. = 83 °f / 28.3 °c
|
Translate the following into a SQL query
|
Name the june when it has july of 84 °f / 28.9 °c
|
SELECT Jun. FROM table WHERE Jul. = 84 °f / 28.9 °c
|
Translate the following into a SQL query
|
What Time has Date of May 9?
|
SELECT Time FROM table WHERE Date = may 9
|
Translate the following into a SQL query
|
What is the lowest roll number of Katikati college?
|
SELECT MIN Roll FROM table WHERE Name = katikati college
|
Translate the following into a SQL query
|
What is the highest roll number of the school in Te puna with a decile larger than 2?
|
SELECT MAX Roll FROM table WHERE Decile > 2 AND Area = te puna
|
Translate the following into a SQL query
|
What is the roll number of Te Puke Intermediate, which has a decile of 4?
|
SELECT Roll FROM table WHERE Decile = 4 AND Name = te puke intermediate
|
Translate the following into a SQL query
|
What is the highest roll number of the school with a state authority and a decile smaller than 8?
|
SELECT MAX Roll FROM table WHERE Authority = state AND Decile < 8
|
Translate the following into a SQL query
|
What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?
|
SELECT SUM Lost FROM table WHERE Points > 21 AND Draw = 2
|
Translate the following into a SQL query
|
What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?
|
SELECT MAX Goals Scored FROM table WHERE Team = san salvador f.c. AND Points < 10
|
Translate the following into a SQL query
|
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?
|
SELECT SUM Goals Conceded FROM table WHERE Points < 26 AND Played < 18
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.