instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Count the average Wins which has a Class of 250cc, and a Year of 1972? | SELECT AVG Wins FROM table WHERE Class = 250cc AND Year = 1972 |
Translate the following into a SQL query | Name the lowest Wins which has Points of 28, and a Year smaller than 1972? | SELECT MIN Wins FROM table WHERE Points = 28 AND Year < 1972 |
Translate the following into a SQL query | Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc? | SELECT Team FROM table WHERE Points > 9 AND Year > 1971 AND Class = 250cc |
Translate the following into a SQL query | Name the Wins which has a Class of 350cc, and a Year smaller than 1973? | SELECT SUM Wins FROM table WHERE Class = 350cc AND Year < 1973 |
Translate the following into a SQL query | How many Points has Wins larger than 0? | SELECT COUNT Points FROM table WHERE Wins > 0 |
Translate the following into a SQL query | SHOW THE Name who has a 2013 club of voléro zürich? | SELECT Name FROM table WHERE 2013 club = voléro zürich |
Translate the following into a SQL query | Name the Height which has a 2013 club of wvc dynamo moscow? | SELECT Height FROM table WHERE 2013 club = wvc dynamo moscow |
Translate the following into a SQL query | What kind of Spike has a Name of mia jerkov category:articles with hcards? | SELECT Spike FROM table WHERE Name = mia jerkov category:articles with hcards |
Translate the following into a SQL query | Name the 2013 club which has a Name of ana grbac category:articles with hcards? | SELECT 2013 club FROM table WHERE Name = ana grbac category:articles with hcards |
Translate the following into a SQL query | Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards? | SELECT Spike FROM table WHERE Name = senna ušić-jogunica category:articles with hcards |
Translate the following into a SQL query | What was the Overall number for the player with a position of C and a round greater than 7? | SELECT SUM Overall FROM table WHERE Round > 7 AND Position = c |
Translate the following into a SQL query | What was the Overall number that is the lowest, and has a pick greater than 9? | SELECT MIN Overall FROM table WHERE Pick > 9 |
Translate the following into a SQL query | Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races? | SELECT MIN Races FROM table WHERE Podiums < 2 AND FLaps > 0 AND Season > 2008 |
Translate the following into a SQL query | what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7? | SELECT Points FROM table WHERE Entrant = brabham racing organisation AND Year = 1964 AND Chassis = brabham bt7 |
Translate the following into a SQL query | who is the entrant when the points is 42 (45) and the chassis is brabham bt20? | SELECT Entrant FROM table WHERE Points = 42 (45) AND Chassis = brabham bt20 |
Translate the following into a SQL query | how many times is the chassis brabham bt33? | SELECT COUNT Year FROM table WHERE Chassis = brabham bt33 |
Translate the following into a SQL query | Who was the winner in 2013? | SELECT Stage winner FROM table WHERE Year = 2013 |
Translate the following into a SQL query | Who was the opponent at Ullevi? | SELECT Opponents FROM table WHERE Venue = ullevi |
Translate the following into a SQL query | When was Göteborg the opponent with a score of 3-1? | SELECT Date FROM table WHERE Opponents = göteborg AND Score = 3-1 |
Translate the following into a SQL query | Which Finish had a To par of +10? | SELECT Finish FROM table WHERE To par = +10 |
Translate the following into a SQL query | Which years was there a To par of +1? | SELECT Year(s) won FROM table WHERE To par = +1 |
Translate the following into a SQL query | What were Sébastien Bourdais' lowest points when there were less than 63 laps? | SELECT MIN Points FROM table WHERE Driver = sébastien bourdais AND Laps < 63 |
Translate the following into a SQL query | What is Position, when Event is 60 m, and when Venue is Budapest , Hungary? | SELECT Position FROM table WHERE Event = 60 m AND Venue = budapest , hungary |
Translate the following into a SQL query | What is Event, when Position is 6th, and when Year is after 2006? | SELECT Event FROM table WHERE Position = 6th AND Year > 2006 |
Translate the following into a SQL query | What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is Munich, Germany? | SELECT AVG Year FROM table WHERE Position = 9th AND Event = 100 m AND Venue = munich, germany |
Translate the following into a SQL query | What is the Event, when Year is 2002, and when Competition is European Indoor Championships? | SELECT Event FROM table WHERE Year = 2002 AND Competition = european indoor championships |
Translate the following into a SQL query | What is Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is 2? | SELECT Nation FROM table WHERE Bronze = 1 AND Gold > 0 AND Rank = 2 |
Translate the following into a SQL query | What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union? | SELECT AVG Total FROM table WHERE Bronze > 0 AND Silver > 0 AND Gold > 2 AND Nation = soviet union |
Translate the following into a SQL query | What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0? | SELECT AVG Gold FROM table WHERE Nation = yugoslavia AND Silver > 0 |
Translate the following into a SQL query | What is the average Bronze, when Total is 4, and when Silver is less than 2? | SELECT AVG Bronze FROM table WHERE Total = 4 AND Silver < 2 |
Translate the following into a SQL query | What is the aggregate for the tie with a team 2 of Irtysh? | SELECT Agg. FROM table WHERE Team 2 = irtysh |
Translate the following into a SQL query | What was the aggregate in the match with a team 1 of Dinamo Minsk? | SELECT Agg. FROM table WHERE Team 1 = dinamo minsk |
Translate the following into a SQL query | What is the Java EE compatibility of the 5.2.4 edition? | SELECT Java EE compatibility FROM table WHERE Edition = 5.2.4 |
Translate the following into a SQL query | What is the release date for Eclipse Foundation? | SELECT Release date FROM table WHERE Vendor = eclipse foundation |
Translate the following into a SQL query | Which Oracle Corporation product has a Java EE compatibility of 1.4? | SELECT Product FROM table WHERE Java EE compatibility = 1.4 AND Vendor = oracle corporation |
Translate the following into a SQL query | Which edition released on 2007-06-07 has a Java EE compatibility of 5? | SELECT Edition FROM table WHERE Java EE compatibility = 5 AND Release date = 2007-06-07 |
Translate the following into a SQL query | When was Glassfish released? | SELECT Release date FROM table WHERE Product = glassfish |
Translate the following into a SQL query | Which licence has a release date of 2009-08? | SELECT License FROM table WHERE Release date = 2009-08 |
Translate the following into a SQL query | WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS? | SELECT Semifinalists FROM table WHERE Tournament = paris |
Translate the following into a SQL query | WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT? | SELECT Semifinalists FROM table WHERE Tournament = hamburg |
Translate the following into a SQL query | Which opponent had a round of SF? | SELECT Opponent FROM table WHERE Round = sf |
Translate the following into a SQL query | What was the result when the opponent was Celtic? | SELECT Result FROM table WHERE Opponent = celtic |
Translate the following into a SQL query | What was the result for round r3? | SELECT Result FROM table WHERE Round = r3 |
Translate the following into a SQL query | How many times have Central Crossing won the OCC Championship? | SELECT SUM OCC Championships FROM table WHERE School = central crossing |
Translate the following into a SQL query | How many rounds is the fight against Michael Chavez? | SELECT AVG Round FROM table WHERE Opponent = michael chavez |
Translate the following into a SQL query | What date was the match where Daniel Gimeno-Traver's partner was pere riba? | SELECT Date FROM table WHERE Partner = pere riba |
Translate the following into a SQL query | Ashley Grimes had what to club? | SELECT To club FROM table WHERE Player = ashley grimes |
Translate the following into a SQL query | Who had a transfer fee of released and played the position of DF? | SELECT Player FROM table WHERE Transfer fee = released AND Pos. = df |
Translate the following into a SQL query | When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released? | SELECT Exit Date FROM table WHERE Transfer fee = released AND Player = kiatprawut saiwaeo |
Translate the following into a SQL query | What was the date that a player went to the club Doncaster Rovers? | SELECT Exit Date FROM table WHERE To club = doncaster rovers |
Translate the following into a SQL query | Teerasil Dangda who had a to club of released plays what position? | SELECT Pos. FROM table WHERE To club = released AND Player = teerasil dangda |
Translate the following into a SQL query | What was the average points for someone who has played more than 10? | SELECT AVG Points FROM table WHERE Played > 10 |
Translate the following into a SQL query | What is L2 Cache, when Model Number is Pentium II 350? | SELECT L2 cache FROM table WHERE Model number = pentium ii 350 |
Translate the following into a SQL query | What is Mult, when Model Number is Pentium II 450? | SELECT Mult. FROM table WHERE Model number = pentium ii 450 |
Translate the following into a SQL query | What is Frequency, when Model Number is Pentium II 400? | SELECT Frequency FROM table WHERE Model number = pentium ii 400 |
Translate the following into a SQL query | What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333? | SELECT Socket FROM table WHERE Voltage = 2.0v AND Model number = pentium ii 333 |
Translate the following into a SQL query | What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz? | SELECT Model number FROM table WHERE Voltage = 2.0v AND Frequency = 350 mhz |
Translate the following into a SQL query | How many attended during the game with a score of 80-94? | SELECT SUM Attendance FROM table WHERE Score = 80-94 |
Translate the following into a SQL query | What is the U.S. rap ranking in 2000 of the U.S. 105 single? | SELECT U.S. Rap FROM table WHERE Year = 2000 AND U.S. = 105 |
Translate the following into a SQL query | What is the U.S. rap rank for the song with a U.S. R&B 23 rank? | SELECT U.S. Rap FROM table WHERE U.S. R&B = 23 |
Translate the following into a SQL query | What is the U.S. R&B rank in 2003? | SELECT U.S. R&B FROM table WHERE Year = 2003 |
Translate the following into a SQL query | For the game ending with a score of 28-43, what is the listed as the final record? | SELECT Record FROM table WHERE Score = 28-43 |
Translate the following into a SQL query | For the game showing a final record of 0-5, what was the attendance level? | SELECT Attendance FROM table WHERE Record = 0-5 |
Translate the following into a SQL query | For the game where the opponent is listed as At Los Angeles Rams, what was the final score? | SELECT Score FROM table WHERE Opponent = at los angeles rams |
Translate the following into a SQL query | For the game played on August 25, with attendance at more than 20,837 people, what was the final score? | SELECT Score FROM table WHERE Attendance > 20,837 AND Date = august 25 |
Translate the following into a SQL query | What was the result for the game with final record listed as 0-1? | SELECT Result FROM table WHERE Record = 0-1 |
Translate the following into a SQL query | What is the 60mH that has a Country of russia, and a 800m of 883? | SELECT 60mH FROM table WHERE Country = russia AND 800m = 883 |
Translate the following into a SQL query | What is the Total that has a 60mH of 1073? | SELECT Total FROM table WHERE 60mH = 1073 |
Translate the following into a SQL query | What is the Name that has a 60mH littler than 1002, and a 800m littler than 985, and a Country of lithuania? | SELECT Name FROM table WHERE 60mH < 1002 AND 800m < 985 AND Country = lithuania |
Translate the following into a SQL query | What is the Sets- for Team ushuaïa ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41? | SELECT Sets– FROM table WHERE Points– < 1418 AND Sets+ < 41 AND Team = ushuaïa ibiza voley |
Translate the following into a SQL query | What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the Points+ were less than 1497? | SELECT SUM Sets+ FROM table WHERE Sets– < 21 AND Team = unicaja almería AND Points+ < 1497 |
Translate the following into a SQL query | What is the total number of Sets+ where the Points- are 1435 and the Points+ are less than 1228? | SELECT COUNT Sets+ FROM table WHERE Points– = 1435 AND Points+ < 1228 |
Translate the following into a SQL query | Which player has fewer than 3 rounds and the position of (g)? | SELECT Player FROM table WHERE Round < 3 AND Position = (g) |
Translate the following into a SQL query | How many rounds does Colby Robak have with a position of (d)? | SELECT Round FROM table WHERE Position = (d) AND Player = colby robak |
Translate the following into a SQL query | Which College/Junior/Club Team (league) does Matthew Bartkowski play for? | SELECT College/Junior/Club Team (League) FROM table WHERE Player = matthew bartkowski |
Translate the following into a SQL query | What date was the game when the liberty had a record of 12-9? | SELECT Date FROM table WHERE Record = 12-9 |
Translate the following into a SQL query | What was the record for the game that had a score of 105-72? | SELECT Record FROM table WHERE Score = 105-72 |
Translate the following into a SQL query | What was the date of the game where the record was 4-4? | SELECT Date FROM table WHERE Record = 4-4 |
Translate the following into a SQL query | Who was the away team when Manchester United played at home on 10 February 1951? | SELECT Away team FROM table WHERE Date = 10 february 1951 AND Home team = manchester united |
Translate the following into a SQL query | Which tie did Huddersfield Town play as an away team? | SELECT Tie no FROM table WHERE Away team = huddersfield town |
Translate the following into a SQL query | What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money? | SELECT Player FROM table WHERE Money ( $ ) > 19,009 AND Score = 75-73-68-65=281 |
Translate the following into a SQL query | What is the Country of T6 Place Player Ben Crenshaw? | SELECT Country FROM table WHERE Place = t6 AND Player = ben crenshaw |
Translate the following into a SQL query | What is the Money of the Player with a To par of +3 and Score of 76-69-69-69=283? | SELECT MAX Money ( $ ) FROM table WHERE To par = +3 AND Score = 76-69-69-69=283 |
Translate the following into a SQL query | What is the score of the game before January 22 with a 30-7-7 record? | SELECT Score FROM table WHERE January < 22 AND Record = 30-7-7 |
Translate the following into a SQL query | What is the sum of the games before January 19 with a 27-6-6 record? | SELECT SUM Game FROM table WHERE January < 19 AND Record = 27-6-6 |
Translate the following into a SQL query | What is the Frequency, when the Voltage is 3.3 V? | SELECT Frequency FROM table WHERE Voltage = 3.3 v |
Translate the following into a SQL query | What is the L1 Cache, when the Model Number is X5-133 ADY? | SELECT L1 Cache FROM table WHERE Model number = x5-133 ady |
Translate the following into a SQL query | What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ? | SELECT Model number FROM table WHERE Voltage = 3.45 v AND Frequency = 133 mhz |
Translate the following into a SQL query | What is the Nationality of the Aracataca Ship? | SELECT Nationality FROM table WHERE Ship = aracataca |
Translate the following into a SQL query | WHAT IS THE SAKA ERA WITH MONTHS IN MEDAM? | SELECT Saka era FROM table WHERE Months in Malayalam Era = medam |
Translate the following into a SQL query | WHAT IS THE SIGN OF ZODIAC OF മീനം? | SELECT Sign of Zodiac FROM table WHERE In Malayalam = മീനം |
Translate the following into a SQL query | WHAT IS THE SAKA ERA OF VIRGO? | SELECT Saka era FROM table WHERE Sign of Zodiac = virgo |
Translate the following into a SQL query | WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS? | SELECT Gregorian Calendar FROM table WHERE Sign of Zodiac = aquarius |
Translate the following into a SQL query | WHAT IS THE IN MALAYALAM WITH kartika–agrahayana? | SELECT In Malayalam FROM table WHERE Saka era = kartika–agrahayana |
Translate the following into a SQL query | What is the airport when the iata is tbj? | SELECT Airport FROM table WHERE IATA = tbj |
Translate the following into a SQL query | what is the iata for malta international airport? | SELECT IATA FROM table WHERE Airport = malta international airport |
Translate the following into a SQL query | what is the airport for the country tunisia with the icao dtaa? | SELECT Airport FROM table WHERE Country = tunisia AND ICAO = dtaa |
Translate the following into a SQL query | what is the city when the country is libya and the iata is ben? | SELECT City FROM table WHERE Country = libya AND IATA = ben |
Translate the following into a SQL query | what is the country when the city is gafsa? | SELECT Country FROM table WHERE City = gafsa |
Translate the following into a SQL query | what is the iata when the city is tripoli? | SELECT IATA FROM table WHERE City = tripoli |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.