instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | How many points did the car with the brm v8 engine have? | SELECT COUNT Points FROM table WHERE Engine = brm v8 |
Translate the following into a SQL query | Which chassis has more than 0 points and was before 1966? | SELECT Chassis FROM table WHERE Year < 1966 AND Points > 0 |
Translate the following into a SQL query | How many points did he average in 1964? | SELECT AVG Points FROM table WHERE Year = 1964 |
Translate the following into a SQL query | Before the year 1963 what was the fewest points the climax v8 engine had? | SELECT MIN Points FROM table WHERE Engine = climax v8 AND Year < 1963 |
Translate the following into a SQL query | What was the earliest year that had less than 1 point? | SELECT MIN Year FROM table WHERE Points < 1 |
Translate the following into a SQL query | What is the 8:00 feature with je at 7:00? | SELECT 8:00 FROM table WHERE 7:00 = je |
Translate the following into a SQL query | What is the 10:00 feature with 1 vs. 100 at 8:30? | SELECT 10:00 FROM table WHERE 8:30 = 1 vs. 100 |
Translate the following into a SQL query | What is the 7:00 feature with entertainment tonight at 7:30? | SELECT 7:00 FROM table WHERE 7:30 = entertainment tonight |
Translate the following into a SQL query | What is the 7:30 feature with le tva 22 heures at 10:00? | SELECT 7:30 FROM table WHERE 10:00 = le tva 22 heures |
Translate the following into a SQL query | What is the 9:30 feature with la porte des étoiles at 8:30? | SELECT 9:30 FROM table WHERE 8:30 = la porte des étoiles |
Translate the following into a SQL query | How many were in attendance on October 27, 1963? | SELECT MAX Attendance FROM table WHERE Date = october 27, 1963 |
Translate the following into a SQL query | which # / county is correct for year less than 1981 and chalmers as location? | SELECT # / County FROM table WHERE Year Joined < 1981 AND Location = chalmers |
Translate the following into a SQL query | what is the correct year for # / county of 09 cass? | SELECT Year Joined FROM table WHERE # / County = 09 cass |
Translate the following into a SQL query | what's the mascot for 66 pulaski 2? | SELECT Mascot FROM table WHERE # / County = 66 pulaski 2 |
Translate the following into a SQL query | What is the total bronze with a Silver of 2, and a Gold smaller than 0? | SELECT SUM Bronze FROM table WHERE Silver = 2 AND Gold < 0 |
Translate the following into a SQL query | What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0? | SELECT AVG Total FROM table WHERE Rank > 11 AND Nation = switzerland AND Silver < 0 |
Translate the following into a SQL query | What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0? | SELECT SUM Gold FROM table WHERE Bronze < 7 AND Total = 1 AND Nation = cape verde AND Silver < 0 |
Translate the following into a SQL query | How powerful is the model before 1999? | SELECT Power FROM table WHERE Year < 1999 |
Translate the following into a SQL query | What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750? | SELECT Displacement FROM table WHERE Year = 1999 AND Torque = 280n·m (207lb·ft) @ 1750 |
Translate the following into a SQL query | When is the earliest year with a Power of 90kw (121hp) @ 4000? | SELECT MIN Year FROM table WHERE Power = 90kw (121hp) @ 4000 |
Translate the following into a SQL query | When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500? | SELECT MIN Year FROM table WHERE Torque = 330n·m (243lb·ft) @ 2000-2500 |
Translate the following into a SQL query | What week 14 has the lowest attendance? | SELECT MIN Attendance FROM table WHERE Week = 14 |
Translate the following into a SQL query | Which sum of week that had an attendance larger than 55,767 on September 28, 1986? | SELECT SUM Week FROM table WHERE Attendance > 55,767 AND Date = september 28, 1986 |
Translate the following into a SQL query | What is the highest attendance on September 14, 1986? | SELECT MAX Attendance FROM table WHERE Date = september 14, 1986 |
Translate the following into a SQL query | What type is the race with the vicenza to marostica course? | SELECT Type FROM table WHERE Course = vicenza to marostica |
Translate the following into a SQL query | Name the 2005 for 2003 of a and 2011 of 3r | SELECT 2005 FROM table WHERE 2003 = a AND 2011 = 3r |
Translate the following into a SQL query | Name the 2006 with 2003 of a and 2012 of a | SELECT 2006 FROM table WHERE 2003 = a AND 2012 = a |
Translate the following into a SQL query | Name the 2010 for 2006 of 2r | SELECT 2010 FROM table WHERE 2006 = 2r |
Translate the following into a SQL query | Name the 2007 for 2005 of a and 003 of a with 2009 of sf | SELECT 2007 FROM table WHERE 2005 = a AND 2003 = a AND 2009 = sf |
Translate the following into a SQL query | Name the 2011 with 2006 of 2r | SELECT 2011 FROM table WHERE 2006 = 2r |
Translate the following into a SQL query | what was the venue on 7 october 2011? | SELECT Venue FROM table WHERE Date = 7 october 2011 |
Translate the following into a SQL query | What is the highest number of the match with julio césar vásquez as the opponent? | SELECT MAX Number FROM table WHERE Opponent = julio césar vásquez |
Translate the following into a SQL query | Who was the opponent of the match on 2006-04-08? | SELECT Opponent FROM table WHERE Date = 2006-04-08 |
Translate the following into a SQL query | What is the result of the match with Zab Judah as the opponent? | SELECT Result FROM table WHERE Opponent = zab judah |
Translate the following into a SQL query | What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt? | SELECT Date FROM table WHERE Result = ud 12/12 AND Name = pernell whitaker AND Opponent = james mcgirt |
Translate the following into a SQL query | What score was on 13 June 2004? | SELECT Score FROM table WHERE Date = 13 june 2004 |
Translate the following into a SQL query | Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008? | SELECT Rider FROM table WHERE Final Position - Tour < 50 AND Final Position - Vuelta < 11 AND Year < 2008 |
Translate the following into a SQL query | What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57? | SELECT MIN Year FROM table WHERE Final Position - Tour > 72 AND Final Position - Vuelta < 77 AND Final Position - Giro < 57 AND Rider = valdimir poelnikov |
Translate the following into a SQL query | What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? | SELECT COUNT Final Position - Tour FROM table WHERE Final Position - Giro > 20 AND Rider = mariano piccoli AND Year < 1999 |
Translate the following into a SQL query | What year was the rider with a final position-tour of 88 and less than 11 final position-giros? | SELECT SUM Year FROM table WHERE Final Position - Tour = 88 AND Final Position - Giro < 11 |
Translate the following into a SQL query | How much did they lose by on April 26? | SELECT Loss FROM table WHERE Date = april 26 |
Translate the following into a SQL query | What was the highest attendance when the opponent was the Indians and the record was 13-4? | SELECT MAX Attendance FROM table WHERE Opponent = indians AND Record = 13-4 |
Translate the following into a SQL query | What day did the record reach 15-4? | SELECT Date FROM table WHERE Record = 15-4 |
Translate the following into a SQL query | What is the number of ranking when the nationalits is England with more than 53 goals? | SELECT SUM Ranking FROM table WHERE Nationality = england AND Goals > 53 |
Translate the following into a SQL query | What is the lowest ranking for Paul Mctiernan? | SELECT MIN Ranking FROM table WHERE Name = paul mctiernan |
Translate the following into a SQL query | What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee? | SELECT Years FROM table WHERE Ranking < 8 AND Goals < 66 AND Name = paul mcgee |
Translate the following into a SQL query | Which entrant has a year after 1999? | SELECT Entrant FROM table WHERE Year > 1999 |
Translate the following into a SQL query | Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place? | SELECT COUNT Place FROM table WHERE Round 1 = beat lee janzen 3&2 AND Year < 1998 |
Translate the following into a SQL query | Round 1 of 71 has how many highest money? | SELECT MAX Money ($) FROM table WHERE Round 1 = 71 |
Translate the following into a SQL query | Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year? | SELECT SUM Year FROM table WHERE Round 1 = 66 AND Money ($) > 400,000 |
Translate the following into a SQL query | Round 1 of 70, and a Money ($) larger than 500,000 has the highest year? | SELECT MAX Year FROM table WHERE Round 1 = 70 AND Money ($) > 500,000 |
Translate the following into a SQL query | When was the latest debut in Europe for Henrik Larsson, with less than 108 games? | SELECT MAX Debut in Europe FROM table WHERE Player = henrik larsson AND Games < 108 |
Translate the following into a SQL query | What were the lowest goals with a debut before 1961 in Europe? | SELECT MIN Goals FROM table WHERE Debut in Europe < 1961 |
Translate the following into a SQL query | What was Thierry Henry's average goal when his rank was higher than 7? | SELECT AVG Goals FROM table WHERE Player = thierry henry AND Rank > 7 |
Translate the following into a SQL query | Name the surface for february 25, 1996 | SELECT Surface FROM table WHERE Date = february 25, 1996 |
Translate the following into a SQL query | Name the tournament for may 18, 1997 | SELECT Tournament FROM table WHERE Date = may 18, 1997 |
Translate the following into a SQL query | Name the partner for may 2, 1993 | SELECT Partner FROM table WHERE Date = may 2, 1993 |
Translate the following into a SQL query | Name the opponents for may 18, 1997 | SELECT Opponents FROM table WHERE Date = may 18, 1997 |
Translate the following into a SQL query | When the call sign is wpib, what is lowest ERP W? | SELECT MIN ERP W FROM table WHERE Call sign = wpib |
Translate the following into a SQL query | Which class's call sign is wokg? | SELECT Class FROM table WHERE Call sign = wokg |
Translate the following into a SQL query | The frequency 89.3 belongs to what class? | SELECT Class FROM table WHERE Frequency MHz = 89.3 |
Translate the following into a SQL query | With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number? | SELECT SUM High Estimate FROM table WHERE Type = mass suicide AND Location = france AND Low Estimate > 16 |
Translate the following into a SQL query | What is the sum of low estimate(s) that is listed for the date of 1978? | SELECT SUM Low Estimate FROM table WHERE Date = 1978 |
Translate the following into a SQL query | What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to? | SELECT MAX Total finals FROM table WHERE Runners-up > 2 AND Winners < 1 |
Translate the following into a SQL query | How many receptions were smaller than 161 receiving yards but also had less than 14 rushing TDs? | SELECT COUNT Receptions FROM table WHERE Receiving Yards < 161 AND Rushing TDs < 14 |
Translate the following into a SQL query | What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs? | SELECT MAX Rushing Yards FROM table WHERE Rushes = 283 AND Rushing TDs < 10 |
Translate the following into a SQL query | What was the Agg., when Team 1 was VSADC? | SELECT Agg. FROM table WHERE Team 1 = vsadc |
Translate the following into a SQL query | How many goals were scored by the team that played less than 38 games, and had points of 47+9? | SELECT MAX Goals for FROM table WHERE Points = 47+9 AND Played < 38 |
Translate the following into a SQL query | What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14? | SELECT AVG Wins FROM table WHERE Draws > 13 AND Goal Difference = -14 AND Losses < 14 |
Translate the following into a SQL query | In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins? | SELECT Points FROM table WHERE Goal Difference < 38 AND Wins = 12 AND Club = real oviedo |
Translate the following into a SQL query | Name the visitor with attendance more than 14,646 and home of los angeles | SELECT Visitor FROM table WHERE Attendance > 14,646 AND Home = los angeles |
Translate the following into a SQL query | Name the record for february 25 | SELECT Record FROM table WHERE Date = february 25 |
Translate the following into a SQL query | What nationality has 116 appearances? | SELECT Nationality FROM table WHERE Appearances = 116 |
Translate the following into a SQL query | What is the captaincy for Defender that has less than 212 appearances and 12 goals? | SELECT Captaincy FROM table WHERE Appearances < 212 AND Goals = 12 AND Position [A ] = defender |
Translate the following into a SQL query | Attendance larger than 55,189 is which average game? | SELECT AVG Game FROM table WHERE Attendance > 55,189 |
Translate the following into a SQL query | Game larger than 4, and a Time of 2:26 resulted in what score? | SELECT Score FROM table WHERE Game > 4 AND Time = 2:26 |
Translate the following into a SQL query | What record does the event of dream 9 with a round of 2 hold? | SELECT Record FROM table WHERE Round = 2 AND Event = dream 9 |
Translate the following into a SQL query | What time was Opponent Fredson Paixão beaten in? | SELECT Time FROM table WHERE Opponent = fredson paixão |
Translate the following into a SQL query | What league is entering this round with 24 clubs remaining? | SELECT Leagues entering at this round FROM table WHERE Clubs remaining = 24 |
Translate the following into a SQL query | How many new entries are there for a second phase that has 4 winners from previous rounds? | SELECT New entries this round FROM table WHERE Phase = second phase AND Winners from previous round = 4 |
Translate the following into a SQL query | What is the highest number of laps with a 21 start? | SELECT MAX Laps FROM table WHERE Start = 21 |
Translate the following into a SQL query | What is the qual for rank 20? | SELECT Qual FROM table WHERE Rank = 20 |
Translate the following into a SQL query | What is the average number of laps in 1949? | SELECT AVG Laps FROM table WHERE Year = 1949 |
Translate the following into a SQL query | What is the total number of laps with a 128.260 qual? | SELECT COUNT Laps FROM table WHERE Qual = 128.260 |
Translate the following into a SQL query | What is the start number for a rank 11 race with less than 200 laps? | SELECT Start FROM table WHERE Laps < 200 AND Rank = 11 |
Translate the following into a SQL query | Name the staes on the ballot for jack herer | SELECT State(s) on the Ballot FROM table WHERE Candidate = jack herer |
Translate the following into a SQL query | Name the loss with record of 45-59 | SELECT Loss FROM table WHERE Record = 45-59 |
Translate the following into a SQL query | Name the loss with record of 38-53 | SELECT Loss FROM table WHERE Record = 38-53 |
Translate the following into a SQL query | Name the score for record 33-47 | SELECT Score FROM table WHERE Record = 33-47 |
Translate the following into a SQL query | Name the attendance with record of 34-51 | SELECT Attendance FROM table WHERE Record = 34-51 |
Translate the following into a SQL query | Name the opponent with attendance of 31,777 | SELECT Opponent FROM table WHERE Attendance = 31,777 |
Translate the following into a SQL query | How many points drew 2 with a losing bonus of 5? | SELECT Points for FROM table WHERE Drawn = 2 AND Losing bonus = 5 |
Translate the following into a SQL query | What is the number of tries for that has 30 tries against? | SELECT Tries for FROM table WHERE Tries against = 30 |
Translate the following into a SQL query | How many points did the Bridgend Athletic RFC have? | SELECT Points FROM table WHERE Club = bridgend athletic rfc |
Translate the following into a SQL query | How many points were scored against the club that drew 3 and scored 50 points? | SELECT Points against FROM table WHERE Drawn = 3 AND Points = 50 |
Translate the following into a SQL query | What try bonus drew 0 and scored 427 points for? | SELECT Try bonus FROM table WHERE Drawn = 0 AND Points for = 427 |
Translate the following into a SQL query | What was the qualifying time of Jim Rathmann in 1959? | SELECT Qual FROM table WHERE Year = 1959 |
Translate the following into a SQL query | What is the most recent championship for FISA? | SELECT MAX Year FROM table WHERE Entrant = fisa |
Translate the following into a SQL query | What is the average points earned for entrants with ATS V8 engines? | SELECT AVG Points FROM table WHERE Engine = ats v8 |
Translate the following into a SQL query | What was the outcome from the 2009 match in the final against Chong Wei Feng? | SELECT Outcome FROM table WHERE Year = 2009 AND Opponent in final = chong wei feng |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.