messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (league INTEGER, total VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which league has total smaller than 284, with Sandro Mazzola league?", "role": "user" }, { "content": "SELECT MIN(league) FROM table_name_42 WHERE total < 284 AND name = \"sandro mazzola\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)", "role": "system" }, { "content": "Name the total number of draw for played more than 18", "role": "user" }, { "content": "SELECT COUNT(draw) FROM table_name_47 WHERE played > 18", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)", "role": "system" }, { "content": "Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?", "role": "user" }, { "content": "SELECT judges FROM table_27487310_5 WHERE country = \"Netherlands\" AND air_dates = \"28 November 2011 – 24 December 2011\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR)", "role": "system" }, { "content": "What is the Position of the Player from Temple Hills, MD?", "role": "user" }, { "content": "SELECT position FROM table_name_86 WHERE home_town = \"temple hills, md\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the game attended by 23,203?", "role": "user" }, { "content": "SELECT opponent FROM table_name_63 WHERE attendance = \"23,203\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "what is the game on june 29?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_75 WHERE date = \"june 29\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (gross VARCHAR, studio VARCHAR)", "role": "system" }, { "content": "Which Gross has a Studio of mgm?", "role": "user" }, { "content": "SELECT gross FROM table_name_25 WHERE studio = \"mgm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (round INTEGER, school_club_team VARCHAR)", "role": "system" }, { "content": "Where's the first round that southern mississippi shows up during the draft?", "role": "user" }, { "content": "SELECT MIN(round) FROM table_name_31 WHERE school_club_team = \"southern mississippi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (winning_score VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What was the winning score for the tournament where Garth Mulroy was the runner-up?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_94 WHERE runner_s__up = \"garth mulroy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What surface was used on July 17, 1983?", "role": "user" }, { "content": "SELECT surface FROM table_name_30 WHERE date = \"july 17, 1983\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE event (Event_Attendance INTEGER)", "role": "system" }, { "content": "what are the average and maximum attendances of all events?", "role": "user" }, { "content": "SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (bronze INTEGER, nation VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the number of bronze for Canada and silver is less than 0?", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_72 WHERE nation = \"canada\" AND silver < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11391448_2 (opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "How many teams did they play week 6", "role": "user" }, { "content": "SELECT COUNT(opponent) FROM table_11391448_2 WHERE week = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (matches VARCHAR, _percentage_won VARCHAR)", "role": "system" }, { "content": "Which Match has the percentage won 52.38?", "role": "user" }, { "content": "SELECT matches FROM table_name_77 WHERE _percentage_won = \"52.38\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)", "role": "system" }, { "content": "What's the average of the amount of laps for the driver patrick tambay?", "role": "user" }, { "content": "SELECT AVG(laps) FROM table_name_64 WHERE driver = \"patrick tambay\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23465864_5 (tues_25_aug VARCHAR, fri_28_aug VARCHAR)", "role": "system" }, { "content": "What is every value on Tuesday August 25 if August Friday 28 is 23' 54.54 94.684mph?", "role": "user" }, { "content": "SELECT tues_25_aug FROM table_23465864_5 WHERE fri_28_aug = \"23' 54.54 94.684mph\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (notes VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What are the notes for the athlete from South Africa?", "role": "user" }, { "content": "SELECT notes FROM table_name_15 WHERE country = \"south africa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?", "role": "user" }, { "content": "SELECT AVG(pick) FROM table_name_22 WHERE school_club_team = \"alabama\" AND round < 9", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (player VARCHAR, years_for_grizzlies VARCHAR)", "role": "system" }, { "content": "Who was the Player in the 1998-2000 Year of Grizzlies?", "role": "user" }, { "content": "SELECT player FROM table_name_14 WHERE years_for_grizzlies = \"1998-2000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (result VARCHAR, event VARCHAR, method VARCHAR)", "role": "system" }, { "content": "Which Result has the Event Strikeforce and the Method, Ko (spinning back fist)?", "role": "user" }, { "content": "SELECT result FROM table_name_15 WHERE event = \"strikeforce\" AND method = \"ko (spinning back fist)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26561509_1 (patient_portrayer VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "Who is the patient portrayer of the episode with the production code 3T5004?", "role": "user" }, { "content": "SELECT patient_portrayer FROM table_26561509_1 WHERE production_code = \"3T5004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (score INTEGER, player VARCHAR)", "role": "system" }, { "content": "What was Jack Nicklaus's score after round 1?", "role": "user" }, { "content": "SELECT MIN(score) FROM table_name_97 WHERE player = \"jack nicklaus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR)", "role": "system" }, { "content": "Who was the player that was picked by Los Angeles Kings?", "role": "user" }, { "content": "SELECT player FROM table_2886617_6 WHERE nhl_team = \"Los Angeles Kings\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What was the score after february 4 in the game 61?", "role": "user" }, { "content": "SELECT score FROM table_name_30 WHERE february > 4 AND game = 61", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "When fitzroy was the home team, how much did the away team score?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_76 WHERE home_team = \"fitzroy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1358608_4 (distance VARCHAR, group VARCHAR)", "role": "system" }, { "content": "What was the distance of the race in which Northerly raced in group G3?", "role": "user" }, { "content": "SELECT distance FROM table_1358608_4 WHERE group = \"G3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "WHAT IS THE SCORE OF MARCH 28?", "role": "user" }, { "content": "SELECT score FROM table_name_85 WHERE date = \"march 28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (drew VARCHAR, rank VARCHAR, played VARCHAR)", "role": "system" }, { "content": "Which Drew has a Rank of 5, and a Played larger than 30?", "role": "user" }, { "content": "SELECT COUNT(drew) FROM table_name_55 WHERE rank = 5 AND played > 30", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR)", "role": "system" }, { "content": "How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?", "role": "user" }, { "content": "SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = \"2:20.93 (1232)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (ship VARCHAR, pennant_number VARCHAR)", "role": "system" }, { "content": "What is the name of the ship that had a Pennant number of h55?", "role": "user" }, { "content": "SELECT ship FROM table_name_48 WHERE pennant_number = \"h55\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (release_date VARCHAR, song_title VARCHAR)", "role": "system" }, { "content": "When was the song titled if you talk in your sleep released?", "role": "user" }, { "content": "SELECT release_date FROM table_name_34 WHERE song_title = \"if you talk in your sleep\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (home_captain VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the name of the Home Captain for 23,24,25,26 july 1992?", "role": "user" }, { "content": "SELECT home_captain FROM table_name_7 WHERE date = \"23,24,25,26 july 1992\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the nationality for milwaukee hawks?", "role": "user" }, { "content": "SELECT nationality FROM table_name_91 WHERE team = \"milwaukee hawks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "How many Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20?", "role": "user" }, { "content": "SELECT SUM(attendance) FROM table_name_79 WHERE opponent = \"west bromwich albion\" AND result = \"3 – 3\" AND match > 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2414_1 (celli VARCHAR, section_size VARCHAR)", "role": "system" }, { "content": "How many cellos are suggested in the reference with section size for 20 players?", "role": "user" }, { "content": "SELECT celli FROM table_2414_1 WHERE section_size = \"20 players\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was Jack McGrath's finish number in 1954?", "role": "user" }, { "content": "SELECT finish FROM table_name_95 WHERE year = \"1954\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23286158_8 (high_points VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Name the high points for 30-23", "role": "user" }, { "content": "SELECT high_points FROM table_23286158_8 WHERE record = \"30-23\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Place, when Player is \"Justin Leonard\"?", "role": "user" }, { "content": "SELECT place FROM table_name_46 WHERE player = \"justin leonard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (overall INTEGER, round VARCHAR, pick__number VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?", "role": "user" }, { "content": "SELECT SUM(overall) FROM table_name_99 WHERE pick__number = 10 AND college = \"louisiana tech\" AND round > 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (week INTEGER, game_site VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What week did the Jets play in the meadowlands with and attendance of 78,161?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_13 WHERE game_site = \"the meadowlands\" AND attendance = \"78,161\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?", "role": "user" }, { "content": "SELECT COUNT(gold) FROM table_name_32 WHERE silver > 1 AND nation = \"vietnam\" AND bronze < 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)", "role": "system" }, { "content": "Show the years and the official names of the host cities of competitions.", "role": "user" }, { "content": "SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (career VARCHAR, pct VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the career of player serhiy konovalov, who has less than 1 pct.?", "role": "user" }, { "content": "SELECT career FROM table_name_23 WHERE pct < 1 AND player = \"serhiy konovalov\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (lane INTEGER, nationality VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "How many lanes have a Nationality of france, and a Rank larger than 8?", "role": "user" }, { "content": "SELECT SUM(lane) FROM table_name_92 WHERE nationality = \"france\" AND rank > 8", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?", "role": "user" }, { "content": "SELECT SUM(losses) FROM table_name_50 WHERE result = \"runner-up\" AND wins = 1 AND year < 2006", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25518547_4 (player VARCHAR, affiliation VARCHAR)", "role": "system" }, { "content": "How many players are affiliated with indiana university?", "role": "user" }, { "content": "SELECT COUNT(player) FROM table_25518547_4 WHERE affiliation = \"Indiana University\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR, party VARCHAR)", "role": "system" }, { "content": "How many seats does the party of others have with a change of -1 and more than 0% votes?", "role": "user" }, { "content": "SELECT SUM(seats) FROM table_name_9 WHERE change = -1 AND party = \"others\" AND _percentage_votes > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (gameplan VARCHAR, roleplay VARCHAR)", "role": "system" }, { "content": "Who is the GamePlan when Arabella Lazenby is the RolePlay actor?", "role": "user" }, { "content": "SELECT gameplan FROM table_name_29 WHERE roleplay = \"arabella lazenby\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14937957_1 (country VARCHAR, city VARCHAR)", "role": "system" }, { "content": "In which country is the city of Netanya?", "role": "user" }, { "content": "SELECT country FROM table_14937957_1 WHERE city = \"Netanya\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result for the game against the Pittsburgh Steelers?", "role": "user" }, { "content": "SELECT result FROM table_name_85 WHERE opponent = \"pittsburgh steelers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)", "role": "system" }, { "content": "Which template type code is used by most number of documents?", "role": "user" }, { "content": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (record VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is the record at the UW: Ultimate Fight Minnesota?", "role": "user" }, { "content": "SELECT record FROM table_name_48 WHERE event = \"uw: ultimate fight minnesota\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (team VARCHAR, high_rebounds VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28?", "role": "user" }, { "content": "SELECT team FROM table_name_86 WHERE high_rebounds = \"popeye jones (14)\" AND record = \"16-28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18278508_6 (position VARCHAR, main_contestant VARCHAR, date_performed VARCHAR)", "role": "system" }, { "content": "What was Kashmira Shah's position on August 14?", "role": "user" }, { "content": "SELECT position FROM table_18278508_6 WHERE main_contestant = \"Kashmira Shah\" AND date_performed = \"August 14\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the total medal count when there are more than 1 gold and more than 2 silver medals won and the rank is less than 1?", "role": "user" }, { "content": "SELECT total FROM table_name_15 WHERE gold > 1 AND silver > 2 AND rank < 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11960610_10 (date VARCHAR, high_points VARCHAR)", "role": "system" }, { "content": "What is the date deng (20) had high points?", "role": "user" }, { "content": "SELECT date FROM table_11960610_10 WHERE high_points = \"Deng (20)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "What was the lowest attendance at a game that had a score of 5-4 and a loss of Williams (2-4)?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_name_29 WHERE score = \"5-4\" AND loss = \"williams (2-4)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (Id VARCHAR)", "role": "system" }, { "content": "What is the 1999 for an A 1991, and a 1r 1997?", "role": "user" }, { "content": "SELECT 1999 FROM table_name_45 WHERE 1991 = \"a\" AND 1997 = \"1r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14700336_1 (revenue__millions_ VARCHAR, revenue_per_capita VARCHAR)", "role": "system" }, { "content": "How many numbers were recorded under revenue when revenue per capita was $6,126?", "role": "user" }, { "content": "SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = \"$6,126\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (district VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the district for the parish, Brough?", "role": "user" }, { "content": "SELECT district FROM table_name_58 WHERE name = \"brough\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (george_h_w_bush VARCHAR, ronald_reagan VARCHAR)", "role": "system" }, { "content": "Name the george bush for ronald reagan of 43%", "role": "user" }, { "content": "SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = \"43%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (film VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What film was in 1970?", "role": "user" }, { "content": "SELECT film FROM table_name_55 WHERE year = 1970", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (position VARCHAR, school VARCHAR)", "role": "system" }, { "content": "What is the position of a player from North Carolina?", "role": "user" }, { "content": "SELECT position FROM table_name_57 WHERE school = \"north carolina\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (caps INTEGER, player VARCHAR)", "role": "system" }, { "content": "What is the mean number of caps for Ryota Asano?", "role": "user" }, { "content": "SELECT AVG(caps) FROM table_name_67 WHERE player = \"ryota asano\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (height INTEGER, position VARCHAR, current_club VARCHAR)", "role": "system" }, { "content": "What's the tallest height for c position in current club unicaja malaga?", "role": "user" }, { "content": "SELECT MAX(height) FROM table_name_19 WHERE position = \"c\" AND current_club = \"unicaja malaga\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (opponent VARCHAR, save VARCHAR)", "role": "system" }, { "content": "Name the opponent for save of williams (9)", "role": "user" }, { "content": "SELECT opponent FROM table_name_35 WHERE save = \"williams (9)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "what is the laps when the time/retired is turbo and the grid is less than 14?", "role": "user" }, { "content": "SELECT laps FROM table_name_29 WHERE time_retired = \"turbo\" AND grid < 14", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (school_year VARCHAR)", "role": "system" }, { "content": "What is 02-03, when School Year is % Learning In Latvian?", "role": "user" }, { "content": "SELECT 02 AS _03 FROM table_name_33 WHERE school_year = \"% learning in latvian\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (home_or_away VARCHAR, shirt_number INTEGER)", "role": "system" }, { "content": "Can you tell me the Home or the Away that has the Shirt Number larger than 18?", "role": "user" }, { "content": "SELECT home_or_away FROM table_name_25 WHERE shirt_number > 18", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (state VARCHAR, city VARCHAR)", "role": "system" }, { "content": "Which state includes the city of Storrs?", "role": "user" }, { "content": "SELECT state FROM table_name_25 WHERE city = \"storrs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (opponent VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "What person was played against when the playing surface was hard?", "role": "user" }, { "content": "SELECT opponent FROM table_name_42 WHERE surface = \"hard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)", "role": "system" }, { "content": "Show the ids and names of festivals that have at least two nominations for artworks.", "role": "user" }, { "content": "SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (gold INTEGER, total INTEGER)", "role": "system" }, { "content": "For countries that won more than 32 gold medals, what was the highest number of golds?", "role": "user" }, { "content": "SELECT MAX(gold) FROM table_name_81 WHERE total > 32", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)", "role": "system" }, { "content": "What is the average crowd size when the home team is North Melbourne?", "role": "user" }, { "content": "SELECT AVG(crowd) FROM table_name_36 WHERE home_team = \"north melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What was Tom Weiskopf's Finish?", "role": "user" }, { "content": "SELECT finish FROM table_name_54 WHERE player = \"tom weiskopf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which Rams opponent had a record of 2-3?", "role": "user" }, { "content": "SELECT opponent FROM table_name_87 WHERE record = \"2-3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (Id VARCHAR)", "role": "system" }, { "content": "What is 1994 when 1996 is 3R?", "role": "user" }, { "content": "SELECT 1994 FROM table_name_46 WHERE 1996 = \"3r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2268216_1 (year VARCHAR, average_speed__mph_ VARCHAR)", "role": "system" }, { "content": "In what year was the average speed 92.68?", "role": "user" }, { "content": "SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = \"92.68\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (rank VARCHAR, years_until_mandatory_retirement VARCHAR)", "role": "system" }, { "content": "what rank has years until mandatory retirement of 6 years?", "role": "user" }, { "content": "SELECT rank FROM table_name_55 WHERE years_until_mandatory_retirement = \"6 years\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26609690_1 (top_10 INTEGER)", "role": "system" }, { "content": "What is the smallest top 10 figure?", "role": "user" }, { "content": "SELECT MIN(top_10) FROM table_26609690_1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE departments (department_id VARCHAR, manager_id INTEGER); CREATE TABLE employees (department_id VARCHAR, manager_id INTEGER)", "role": "system" }, { "content": "Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.", "role": "user" }, { "content": "SELECT * FROM employees WHERE NOT department_id IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE review (name VARCHAR, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)", "role": "system" }, { "content": "Find the names of users who did not leave any review.", "role": "user" }, { "content": "SELECT name FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11677100_16 (school VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What school did the player Ethan Bennett attend?", "role": "user" }, { "content": "SELECT school FROM table_11677100_16 WHERE player = \"Ethan Bennett\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR)", "role": "system" }, { "content": "If Wed Aug 25 is β€”β€” no time, what is Sat aug 21?", "role": "user" }, { "content": "SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = \"β€”β€” No Time\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR)", "role": "system" }, { "content": "Total smaller than 285, and a To par larger than 1 belongs to what player?", "role": "user" }, { "content": "SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (year VARCHAR, result VARCHAR, extra VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd?", "role": "user" }, { "content": "SELECT year FROM table_name_95 WHERE extra = \"800 m\" AND tournament = \"european indoor championships\" AND result = \"2nd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_doubles VARCHAR)", "role": "system" }, { "content": "Name the men doubles for caroline persyn smids", "role": "user" }, { "content": "SELECT men_doubles FROM table_14903355_2 WHERE womens_doubles = \"Caroline Persyn Smids\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2010 result of a tournament that is A in 2006 and A in 2011?", "role": "user" }, { "content": "SELECT 2010 FROM table_name_40 WHERE 2011 = \"a\" AND 2006 = \"a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR)", "role": "system" }, { "content": "What is the lowest capacity for 1903?", "role": "user" }, { "content": "SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = \"1903\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20667854_1 (free_float VARCHAR, bse_code VARCHAR)", "role": "system" }, { "content": "How many values of free float for the BSE code of 4EH?", "role": "user" }, { "content": "SELECT COUNT(free_float) FROM table_20667854_1 WHERE bse_code = \"4EH\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23242958_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "How many millions of U.S. viewers watched the episode with the production code of 3AJN01?", "role": "user" }, { "content": "SELECT us_viewers__millions_ FROM table_23242958_1 WHERE production_code = \"3AJN01\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "What Class has a Frequency of 90.1 FM?", "role": "user" }, { "content": "SELECT class FROM table_name_8 WHERE frequency = \"90.1 fm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28358487_3 (no VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "what is the number of the episode in the season whose production code is 101? ", "role": "user" }, { "content": "SELECT COUNT(no) FROM table_28358487_3 WHERE production_code = 101", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE CLASS (crs_code VARCHAR)", "role": "system" }, { "content": "How many courses are offered?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT crs_code) FROM CLASS", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (att INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on June 27?", "role": "user" }, { "content": "SELECT MIN(att) FROM table_name_6 WHERE date = \"june 27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2263152_1 (release_date VARCHAR, version VARCHAR)", "role": "system" }, { "content": "With the version of 1.5a, what is the release date?", "role": "user" }, { "content": "SELECT release_date FROM table_2263152_1 WHERE version = \"1.5a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "What was the score of the game that was played on a grass surface?", "role": "user" }, { "content": "SELECT score FROM table_name_24 WHERE surface = \"grass\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18536769_1 (call_sign VARCHAR, format VARCHAR)", "role": "system" }, { "content": "When hot adult contemporary is the format what is the call sign?", "role": "user" }, { "content": "SELECT call_sign FROM table_18536769_1 WHERE format = \"hot adult contemporary\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What is the Fatalities when the tail number was unknown and in Kabul>", "role": "user" }, { "content": "SELECT fatalities FROM table_name_53 WHERE tail_number = \"unknown\" AND location = \"kabul\"", "role": "assistant" } ]