instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the total number of goals from 24 tries and 96 or greater points? | SELECT SUM Goals FROM table WHERE Tries = 24 AND Points > 96 |
Translate the following into a SQL query | What year has tries less than 24 and 0 points? | SELECT Year FROM table WHERE Tries < 24 AND Points = 0 |
Translate the following into a SQL query | What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks? | SELECT Game FROM table WHERE Location = philadelphia spectrum AND Opponent = new york knicks |
Translate the following into a SQL query | What Game has a Location of Philadelphia Spectrum and a Date of April 1? | SELECT Game FROM table WHERE Location = philadelphia spectrum AND Date = april 1 |
Translate the following into a SQL query | What is the segment for Netflix episode S08E04? | SELECT Segment A FROM table WHERE Netflix = s08e04 |
Translate the following into a SQL query | What is the Netflix episode for series episode 15-01? | SELECT Netflix FROM table WHERE Series Ep. = 15-01 |
Translate the following into a SQL query | What is the segment A for the episode with Children's Ride-on Cars for segment D? | SELECT Segment A FROM table WHERE Segment D = children's ride-on cars |
Translate the following into a SQL query | What is the earliest year with fewer than 5 wins and 89 points? | SELECT MIN Year FROM table WHERE Wins < 5 AND Points = 89 |
Translate the following into a SQL query | When is the most recent year with more than 27 points and more than 5 wins? | SELECT MAX Year FROM table WHERE Points > 27 AND Wins > 5 |
Translate the following into a SQL query | What are the sum of points in 1989 with 0 wins? | SELECT SUM Points FROM table WHERE Wins = 0 AND Year = 1989 |
Translate the following into a SQL query | Which class has fewer than 89 points and the Honda team later than 1987? | SELECT Class FROM table WHERE Points < 89 AND Team = honda AND Year > 1987 |
Translate the following into a SQL query | How many points are there later than 1992? | SELECT COUNT Points FROM table WHERE Year > 1992 |
Translate the following into a SQL query | Where was the event on June 10? | SELECT Location FROM table WHERE Date = june 10 |
Translate the following into a SQL query | What event was in New Orleans, Louisiana, USA? | SELECT Event FROM table WHERE Location = new orleans, louisiana, usa |
Translate the following into a SQL query | On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate? | SELECT PPV Buyrate FROM table WHERE Date = september 10 AND Event = strikeforce: heavyweight grand prix semifinals |
Translate the following into a SQL query | How many points are there on november 7? | SELECT MAX Points FROM table WHERE November = 7 |
Translate the following into a SQL query | What was the score in the game where the Blazers were the home team? | SELECT Score FROM table WHERE Home = blazers |
Translate the following into a SQL query | How many people attended the game that had the Clippers as visiting team? | SELECT Attendance FROM table WHERE Visitor = clippers |
Translate the following into a SQL query | Which team has a car # before 99, a Toyota, and is driven by Mike Skinner? | SELECT Team FROM table WHERE Car # < 99 AND Make = toyota AND Driver = mike skinner |
Translate the following into a SQL query | What is the lowest position for driver Kyle Busch? | SELECT MIN Pos. FROM table WHERE Driver = kyle busch |
Translate the following into a SQL query | Who is the team of the Chevrolet, and has a position less than 7, for car # 88? | SELECT Team FROM table WHERE Make = chevrolet AND Pos. < 7 AND Car # = 88 |
Translate the following into a SQL query | Which Film has a Result of nominated, and a Year of 2001? | SELECT Film FROM table WHERE Result = nominated AND Year = 2001 |
Translate the following into a SQL query | Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)? | SELECT Award FROM table WHERE Group = césar awards AND Result = nominated AND Year > 2001 AND Film = 8 women (8 femmes) |
Translate the following into a SQL query | Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)? | SELECT AVG Year FROM table WHERE Group = césar awards AND Result = nominated AND Award = best actress AND Film = 8 women (8 femmes) |
Translate the following into a SQL query | Which Award has a Result of nominated, and a Year of 2003? | SELECT Award FROM table WHERE Result = nominated AND Year = 2003 |
Translate the following into a SQL query | Which Result has a Year larger than 2003, and an Award of best supporting actress? | SELECT Result FROM table WHERE Year > 2003 AND Award = best supporting actress |
Translate the following into a SQL query | Name the total number of valid poll with seats more than 4 and candidates more than 9 | SELECT COUNT Valid Poll FROM table WHERE Seats > 4 AND Candidates > 9 |
Translate the following into a SQL query | Name the least valid poll for munster | SELECT MIN Valid Poll FROM table WHERE Constituency = munster |
Translate the following into a SQL query | Name the average valid poll for seats less than 3 | SELECT AVG Valid Poll FROM table WHERE Seats < 3 |
Translate the following into a SQL query | Which Catalog has a Format of 12" maxi, and a Region of france? | SELECT Catalog FROM table WHERE Format = 12" maxi AND Region = france |
Translate the following into a SQL query | Which Label has a Format of 7" single, and a Date of 1988? | SELECT Label FROM table WHERE Format = 7" single AND Date = 1988 |
Translate the following into a SQL query | Which Label has a Region of germany, and a Format of 12" maxi? | SELECT Label FROM table WHERE Region = germany AND Format = 12" maxi |
Translate the following into a SQL query | Which Label has a Region of canada? | SELECT Label FROM table WHERE Region = canada |
Translate the following into a SQL query | Which Date has a Catalog of 887 195-2, and a Format of cd maxi? | SELECT Date FROM table WHERE Catalog = 887 195-2 AND Format = cd maxi |
Translate the following into a SQL query | Which Date has a Region of france? | SELECT Date FROM table WHERE Region = france |
Translate the following into a SQL query | Which Time has an Opponent of shamil abdurahimov? | SELECT Time FROM table WHERE Opponent = shamil abdurahimov |
Translate the following into a SQL query | Which Record has an Event of cage rage 23? | SELECT Record FROM table WHERE Event = cage rage 23 |
Translate the following into a SQL query | What was the average date with a record of 30-31-9 in a game over 70? | SELECT AVG Date FROM table WHERE Record = 30-31-9 AND Game > 70 |
Translate the following into a SQL query | What is the latest date at Los Angeles with a game less than 62? | SELECT MAX Date FROM table WHERE Location/attendance = los angeles AND Game < 62 |
Translate the following into a SQL query | What is the latest date for a game over 69 with a St. Louis Blues opponent? | SELECT MAX Date FROM table WHERE Game > 69 AND Opponent = st. louis blues |
Translate the following into a SQL query | What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7? | SELECT MAX Game FROM table WHERE Opponent = oakland seals AND Record = 27-30-6 AND Date > 7 |
Translate the following into a SQL query | What is the total attendance for the date of october 5? | SELECT SUM Attendance FROM table WHERE Date = october 5 |
Translate the following into a SQL query | What record has September 21 as the date? | SELECT Record FROM table WHERE Date = september 21 |
Translate the following into a SQL query | What was the score of the match on December 19, 2009? | SELECT Score FROM table WHERE Date = december 19, 2009 |
Translate the following into a SQL query | What's the highest game against the New York Rangers with more than 55 points? | SELECT MAX Game FROM table WHERE Opponent = new york rangers AND Points > 55 |
Translate the following into a SQL query | What's the record for a game past 44 against the Dallas Stars with more than 54 points? | SELECT Record FROM table WHERE Points > 54 AND Game > 44 AND Opponent = dallas stars |
Translate the following into a SQL query | What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees? | SELECT MAX Fiscal Year FROM table WHERE Revenues = $4.3 billion AND Employees > 85,335 |
Translate the following into a SQL query | What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees? | SELECT AVG Fiscal Year FROM table WHERE Headquarters = noida AND Employees < 85,335 |
Translate the following into a SQL query | What are the Points after 1991? | SELECT COUNT Points FROM table WHERE Year > 1991 |
Translate the following into a SQL query | What Class has 36 Points? | SELECT Class FROM table WHERE Points = 36 |
Translate the following into a SQL query | What is the Class after 1986? | SELECT Class FROM table WHERE Year > 1986 |
Translate the following into a SQL query | How many attendances had the Detroit Lions as opponents? | SELECT SUM Attendance FROM table WHERE Opponent = detroit lions |
Translate the following into a SQL query | Who was on the men's doubles in 2010? | SELECT Men's doubles FROM table WHERE Year = 2010 |
Translate the following into a SQL query | Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011? | SELECT Women's singles FROM table WHERE Mixed doubles = tontowi ahmad lilyana natsir AND Year = 2011 |
Translate the following into a SQL query | Which nationality's distance was 500m before 2012, when the record was 1:37.071s? | SELECT Nationality FROM table WHERE Distance = 500m AND Year < 2012 AND Record = 1:37.071s |
Translate the following into a SQL query | Which location's year was 2001 when the record was 3:52.983s? | SELECT Location FROM table WHERE Year = 2001 AND Record = 3:52.983s |
Translate the following into a SQL query | Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s? | SELECT Nationality FROM table WHERE Distance = 200m AND Year > 1994 AND Record = 33.778s |
Translate the following into a SQL query | How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver? | SELECT MIN Total FROM table WHERE Bronze = 1 AND Rank = 8 AND Silver > 1 |
Translate the following into a SQL query | How many Gold does the Nation in Rank 12 with less than 2 Total medals have? | SELECT MAX Gold FROM table WHERE Rank = 12 AND Total < 2 |
Translate the following into a SQL query | Which NHL team got pick 89? | SELECT NHL team FROM table WHERE Pick # = 89 |
Translate the following into a SQL query | Who plays goaltender for the Vancouver Canucks? | SELECT Player FROM table WHERE Position = goaltender AND NHL team = vancouver canucks |
Translate the following into a SQL query | What is the % Change at London Heathrow airport? | SELECT % Change FROM table WHERE Airport = london heathrow airport |
Translate the following into a SQL query | What 2003 rank does the airport IATA code SIN have? | SELECT 2003 Rank FROM table WHERE Code (IATA) = sin |
Translate the following into a SQL query | Which airport has an IATA code of AMS? | SELECT Airport FROM table WHERE Code (IATA) = ams |
Translate the following into a SQL query | What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes? | SELECT Code (IATA) FROM table WHERE Total Cargo (Metric Tonnes) = 1,838,894 |
Translate the following into a SQL query | What is the 2003 rank for Los Angeles International airport? | SELECT 2003 Rank FROM table WHERE Airport = los angeles international airport |
Translate the following into a SQL query | What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6? | SELECT % Change FROM table WHERE Rank < 8 AND 2003 Rank = 6 |
Translate the following into a SQL query | What district is Wyatt Aiken in? | SELECT District FROM table WHERE Incumbent = wyatt aiken |
Translate the following into a SQL query | Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold? | SELECT SUM Gold FROM table WHERE Silver > 0 AND Total < 3 AND Nation = bulgaria AND Bronze < 0 |
Translate the following into a SQL query | Nation of total has what sum of gold? | SELECT SUM Gold FROM table WHERE Nation = total |
Translate the following into a SQL query | Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze? | SELECT SUM Bronze FROM table WHERE Total = 3 AND Gold > 0 AND Nation = belarus AND Silver > 2 |
Translate the following into a SQL query | Bronze of 22 has what average silver? | SELECT AVG Silver FROM table WHERE Bronze = 22 |
Translate the following into a SQL query | Which position had 5 games played and a record of 1-2-2? | SELECT Position FROM table WHERE Games Played = 5 AND W-L-D = 1-2-2 |
Translate the following into a SQL query | What was the name of the leader whose term ended in 2013? | SELECT Name FROM table WHERE Term end = 2013 |
Translate the following into a SQL query | When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919? | SELECT Term start FROM table WHERE Term end = 1919 AND Date of Birth = january 8, 1859 |
Translate the following into a SQL query | Which leader born on December 17, 1874 started their term before 1984? | SELECT Name FROM table WHERE Term start < 1984 AND Date of Birth = december 17, 1874 |
Translate the following into a SQL query | What date shows the Outcome of winner against nikola fraňková carmen klaschka? | SELECT Date FROM table WHERE Outcome = winner AND Opponents in the final = nikola fraňková carmen klaschka |
Translate the following into a SQL query | What is the Outcome of the jounieh tournament? | SELECT Outcome FROM table WHERE Tournament = jounieh |
Translate the following into a SQL query | What date was the score of 6–3 6–4? | SELECT Date FROM table WHERE Score = 6–3 6–4 |
Translate the following into a SQL query | What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00? | SELECT 9:00 FROM table WHERE 10:00 = 20/20 |
Translate the following into a SQL query | What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00? | SELECT 9:00 FROM table WHERE 8:00 = dawson's creek |
Translate the following into a SQL query | What is the 9:30 program airing on the station that airs The Red Green Show at 8:30? | SELECT 9:30 FROM table WHERE 8:30 = the red green show |
Translate the following into a SQL query | What is the 8:30 program that airs on the station that airs various programs at 7:30? | SELECT 8:30 FROM table WHERE 7:30 = various programs |
Translate the following into a SQL query | What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30? | SELECT 9:30 FROM table WHERE 8:30 = dawson's creek |
Translate the following into a SQL query | when indiana pacers were the opponent what was the date? | SELECT Date FROM table WHERE Opponent = indiana pacers |
Translate the following into a SQL query | tries against is 55, what is the try bonus? | SELECT Try bonus FROM table WHERE Tries against = 55 |
Translate the following into a SQL query | tries against is 29, what is the points against? | SELECT Points against FROM table WHERE Tries against = 29 |
Translate the following into a SQL query | tries against correct as of 2007-10-15 has what tries for? | SELECT Tries for FROM table WHERE Tries against = correct as of 2007-10-15 |
Translate the following into a SQL query | tries against correct as of 2007-10-15 has what tries for? | SELECT Tries for FROM table WHERE Tries against = correct as of 2007-10-15 |
Translate the following into a SQL query | tries against is 88, played is 22, what is the lost? | SELECT Lost FROM table WHERE Played = 22 AND Tries against = 88 |
Translate the following into a SQL query | Who won silver in the year before 2010, the year Chan Ming Shu won gold? | SELECT Silver FROM table WHERE Year < 2010 AND Gold = chan ming shu |
Translate the following into a SQL query | What is the location for the year under 2010 and the year Hei Zhi Hong won silver? | SELECT Location FROM table WHERE Year < 2010 AND Silver = hei zhi hong |
Translate the following into a SQL query | Which location had a year over 2006? | SELECT Location FROM table WHERE Year > 2006 |
Translate the following into a SQL query | Score F–A of 2–0, and a Opponents of walsall has what date? | SELECT Date FROM table WHERE Score F–A = 2–0 AND Opponents = walsall |
Translate the following into a SQL query | Score F–A of 3–0, and a Date of 31 july 2007 had what opponents? | SELECT Opponents FROM table WHERE Score F–A = 3–0 AND Date = 31 july 2007 |
Translate the following into a SQL query | Opponents of sheffield wednesday had what date? | SELECT Date FROM table WHERE Opponents = sheffield wednesday |
Translate the following into a SQL query | Opponents of sheffield wednesday had what date? | SELECT Date FROM table WHERE Opponents = sheffield wednesday |
Translate the following into a SQL query | Date of 4 august 2007 had what opponents? | SELECT Opponents FROM table WHERE Date = 4 august 2007 |
Translate the following into a SQL query | WHich Position has a Player of david laliberte? | SELECT Position FROM table WHERE Player = david laliberte |
Translate the following into a SQL query | Which Position has a Player of gino pisellini? | SELECT Position FROM table WHERE Player = gino pisellini |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.