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_27 (spouse_to VARCHAR, born_as VARCHAR)", "role": "system" }, { "content": "Who was the spouse of the consort who was born as rania al yassin?", "role": "user" }, { "content": "SELECT spouse_to FROM table_name_27 WHERE born_as = \"rania al yassin\"", "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 (bowling VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What was Min Patel's bowling?", "role": "user" }, { "content": "SELECT bowling FROM table_name_7 WHERE player = \"min patel\"", "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 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What nationality has steve kerr as the player?", "role": "user" }, { "content": "SELECT nationality FROM table_name_95 WHERE player = \"steve kerr\"", "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_10 (opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which opponent has a result of 2-0 l?", "role": "user" }, { "content": "SELECT opponent FROM table_name_10 WHERE result = \"2-0 l\"", "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_60 (senior_2nd_viii VARCHAR, senior_iv VARCHAR)", "role": "system" }, { "content": "Which 2nd senior VIII that also has a 4th senior stm?", "role": "user" }, { "content": "SELECT senior_2nd_viii FROM table_name_60 WHERE senior_iv = \"stm\"", "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_2182573_2 (poles INTEGER, year VARCHAR)", "role": "system" }, { "content": "How many poles were there in 1996?", "role": "user" }, { "content": "SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996", "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 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)", "role": "system" }, { "content": "When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?", "role": "user" }, { "content": "SELECT started FROM table_name_23 WHERE country = \"eng\" AND loan_club = \"sunderland\" AND end_source = \"south wales echo\"", "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_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "What is College/Team, when Round is less than 2, and when Nationality is \"United States\"?", "role": "user" }, { "content": "SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = \"united states\"", "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 (d_43_√ VARCHAR, d_42_√ VARCHAR)", "role": "system" }, { "content": "What is the value of D 43 √ when the value of D 42 √ is d 42 √?", "role": "user" }, { "content": "SELECT d_43_√ FROM table_name_58 WHERE d_42_√ = \"d 42 √\"", "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_18143210_2 (top_division_titles VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)", "role": "system" }, { "content": "How many top division titles were won during the 'first season of current spell in top division' in 1979-80?", "role": "user" }, { "content": "SELECT top_division_titles FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = \"1979-80\"", "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 (played INTEGER, against VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?", "role": "user" }, { "content": "SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10", "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_18 (position VARCHAR, nominated_work VARCHAR, award VARCHAR)", "role": "system" }, { "content": "What was the position that the nominated work La Quinta Esencia, which also won an award for best CD coverbox, won?", "role": "user" }, { "content": "SELECT position FROM table_name_18 WHERE nominated_work = \"la quinta esencia\" AND award = \"best cd coverbox\"", "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 (total INTEGER, gold VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 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_38 (historical_references VARCHAR, podcast_date VARCHAR)", "role": "system" }, { "content": "What is the historical reference of the episode that aired on October 23, 2005?", "role": "user" }, { "content": "SELECT historical_references FROM table_name_38 WHERE podcast_date = \"october 23, 2005\"", "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_22875369_3 (irish_points INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "Name the max irish points for eastern michigan", "role": "user" }, { "content": "SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = \"Eastern Michigan\"", "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_12 (points INTEGER, engine VARCHAR)", "role": "system" }, { "content": "What is the average points earned for entrants with ATS V8 engines?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_12 WHERE engine = \"ats v8\"", "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_43 (result VARCHAR, category VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?", "role": "user" }, { "content": "SELECT result FROM table_name_43 WHERE category = \"outstanding supporting actress in a drama series\" AND year = 2009", "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 Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)", "role": "system" }, { "content": "What are the names of the workshop groups that have bookings with status code \"stop\"?", "role": "user" }, { "content": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "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_2 (venue VARCHAR, round VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which Venue has a Round of gs, and a Result of 0–3?", "role": "user" }, { "content": "SELECT venue FROM table_name_2 WHERE round = \"gs\" AND result = \"0–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_61 (format VARCHAR, region VARCHAR, catalog VARCHAR)", "role": "system" }, { "content": "Which Format has a Region of united states, and a Catalog of kem 072?", "role": "user" }, { "content": "SELECT format FROM table_name_61 WHERE region = \"united states\" AND catalog = \"kem 072\"", "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_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)", "role": "system" }, { "content": "Which first election for the labor party is James Sharpe a part of?", "role": "user" }, { "content": "SELECT first_elected FROM table_name_28 WHERE party = \"labor\" AND member = \"james sharpe\"", "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 (province_region VARCHAR, home_campus VARCHAR)", "role": "system" }, { "content": "Where is the Holy Cross of Davao College campus located?", "role": "user" }, { "content": "SELECT province_region FROM table_name_42 WHERE home_campus = \"holy cross of davao college\"", "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_23982399_1 (challenger VARCHAR, overall_episode__number VARCHAR)", "role": "system" }, { "content": "Who was the challenger on Episode 5?", "role": "user" }, { "content": "SELECT challenger FROM table_23982399_1 WHERE overall_episode__number = 5", "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_74 (date VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "what is the date of the tournament in michalovce", "role": "user" }, { "content": "SELECT date FROM table_name_74 WHERE tournament = \"michalovce\"", "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 (song VARCHAR, release_info VARCHAR)", "role": "system" }, { "content": "Which song released on heavenly (hvn152)?", "role": "user" }, { "content": "SELECT song FROM table_name_86 WHERE release_info = \"heavenly (hvn152)\"", "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_78 (venue VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?", "role": "user" }, { "content": "SELECT venue FROM table_name_78 WHERE result = \"won\" AND competition = \"friendly\" AND date = \"28 may 2012\"", "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 (years VARCHAR, decile VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the years when decile was less than 7 for waitoa school", "role": "user" }, { "content": "SELECT years FROM table_name_67 WHERE decile < 7 AND name = \"waitoa school\"", "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_44 (date VARCHAR, game VARCHAR)", "role": "system" }, { "content": "On what date was game 3 played?", "role": "user" }, { "content": "SELECT date FROM table_name_44 WHERE game = 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_94 (distance VARCHAR, race_leader VARCHAR)", "role": "system" }, { "content": "What Distance had a Race Leader in Km (mi)?", "role": "user" }, { "content": "SELECT distance FROM table_name_94 WHERE race_leader = \"km (mi)\"", "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_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the final score at texas stadium on September 17?", "role": "user" }, { "content": "SELECT final_score FROM table_name_43 WHERE stadium = \"texas stadium\" AND date = \"september 17\"", "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 (decision VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "What is the decision when they're at phoenix?", "role": "user" }, { "content": "SELECT decision FROM table_name_22 WHERE visitor = \"phoenix\"", "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_28582091_2 (title VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "What was the title of the episode with production code 2J5515?", "role": "user" }, { "content": "SELECT title FROM table_28582091_2 WHERE production_code = \"2J5515\"", "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_25668962_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "What episode number in the series was viewed by 13.66 million people in the U.S.?", "role": "user" }, { "content": "SELECT MAX(no_in_series) FROM table_25668962_1 WHERE us_viewers__million_ = \"13.66\"", "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_24136814_3 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the record for the Argonauts on September 7?", "role": "user" }, { "content": "SELECT record FROM table_24136814_3 WHERE date = \"September 7\"", "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_14312471_3 (home_team VARCHAR, ground VARCHAR)", "role": "system" }, { "content": "Name the home team for manuka oval", "role": "user" }, { "content": "SELECT home_team FROM table_14312471_3 WHERE ground = \"Manuka Oval\"", "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_68 (year INTEGER, start INTEGER)", "role": "system" }, { "content": "Name the sum of year when start is less than 30", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_68 WHERE start < 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_80 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "What game was played on December 8?", "role": "user" }, { "content": "SELECT AVG(game) FROM table_name_80 WHERE date = \"december 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_77 (record VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the record at the game with a score of 21-16?", "role": "user" }, { "content": "SELECT record FROM table_name_77 WHERE score = \"21-16\"", "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_1015521_2 (rank_in_english VARCHAR, commonwealth_equivalent VARCHAR)", "role": "system" }, { "content": "Give me a list of all spanish officer titles that could receive recognition as group captain in english", "role": "user" }, { "content": "SELECT rank_in_english FROM table_1015521_2 WHERE commonwealth_equivalent = \"Group Captain\"", "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_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)", "role": "system" }, { "content": "What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has?", "role": "user" }, { "content": "SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 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_20967430_2 (prod_code VARCHAR, original_air_date VARCHAR)", "role": "system" }, { "content": "Name the production code for november 08, 1985", "role": "user" }, { "content": "SELECT prod_code FROM table_20967430_2 WHERE original_air_date = \"November 08, 1985\"", "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 (interview INTEGER, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)", "role": "system" }, { "content": "Which mean interview number had an average of more than 9.233, a swimsuit stat of more than 9.473, and an evening gown score of more than 9.671?", "role": "user" }, { "content": "SELECT AVG(interview) FROM table_name_79 WHERE average > 9.233 AND swimsuit = 9.473 AND evening_gown > 9.671", "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 (score VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What is the score if the Tie no is 32?", "role": "user" }, { "content": "SELECT score FROM table_name_99 WHERE tie_no = \"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_66 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "When did the Indians play a game with a record of 28-41?", "role": "user" }, { "content": "SELECT date FROM table_name_66 WHERE record = \"28-41\"", "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 (winning_score VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What is the winning score for the runner-up Ernie Els?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_7 WHERE runner_s__up = \"ernie els\"", "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_11602313_4 (socket VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "What is the socket for the pentium dual-core t2410?", "role": "user" }, { "content": "SELECT socket FROM table_11602313_4 WHERE model_number = \"Pentium Dual-Core T2410\"", "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_11695215_1 (title VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "What episode was writted by John A. Norris?", "role": "user" }, { "content": "SELECT title FROM table_11695215_1 WHERE written_by = \"John A. Norris\"", "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_89 (name VARCHAR, wsu_year_s_ VARCHAR)", "role": "system" }, { "content": "What is Name, when WSU Year(s) is 1981-82?", "role": "user" }, { "content": "SELECT name FROM table_name_89 WHERE wsu_year_s_ = \"1981-82\"", "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_28 (team VARCHAR, conmebol_1995 VARCHAR)", "role": "system" }, { "content": "Which Team has a round 1 CONMEBOL 1995?", "role": "user" }, { "content": "SELECT team FROM table_name_28 WHERE conmebol_1995 = \"round 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_2409041_3 (no_in_series INTEGER, original_air_date VARCHAR)", "role": "system" }, { "content": "What series number had an original airdate of March 1, 1991?", "role": "user" }, { "content": "SELECT MIN(no_in_series) FROM table_2409041_3 WHERE original_air_date = \"March 1, 1991\"", "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_18894744_5 (game VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the game for june 7", "role": "user" }, { "content": "SELECT game FROM table_18894744_5 WHERE date = \"June 7\"", "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_1342256_6 (party VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": " how manyΒ partyΒ withΒ candidatesΒ being john j. phillips (r) 57.6% n. e. west (d) 42.4%", "role": "user" }, { "content": "SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = \"John J. Phillips (R) 57.6% N. E. West (D) 42.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_2362486_1 (championship VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)?", "role": "user" }, { "content": "SELECT championship FROM table_2362486_1 WHERE score_in_the_final = \"6–4, 2–6, 6–4, 7–6(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_69 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR)", "role": "system" }, { "content": "What was Week 15 when Week 12 was Washington (9-1)?", "role": "user" }, { "content": "SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = \"washington (9-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_1140077_2 (fastest_lap VARCHAR, race VARCHAR)", "role": "system" }, { "content": "Who did the fastest lap in the dutch grand prix?", "role": "user" }, { "content": "SELECT fastest_lap FROM table_1140077_2 WHERE race = \"Dutch Grand Prix\"", "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 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "When the score was 76-73-67-69=285 what was the To par?", "role": "user" }, { "content": "SELECT to_par FROM table_name_31 WHERE score = 76 - 73 - 67 - 69 = 285", "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_83 (name VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR, league_cup_goals VARCHAR)", "role": "system" }, { "content": "Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?", "role": "user" }, { "content": "SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 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_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What league is from the United States and a round smaller than 12.", "role": "user" }, { "content": "SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = \"united states\" AND round < 12", "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 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74", "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 (goal_difference VARCHAR, wins VARCHAR, draws VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?", "role": "user" }, { "content": "SELECT goal_difference FROM table_name_97 WHERE draws > 6 AND position > 12 AND wins < 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_42 (floors VARCHAR, location VARCHAR)", "role": "system" }, { "content": "How many floors are in little Italy?", "role": "user" }, { "content": "SELECT COUNT(floors) FROM table_name_42 WHERE location = \"little italy\"", "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_44 (species_authority VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which Species/Authority has a Name of true's beaked whale?", "role": "user" }, { "content": "SELECT species_authority FROM table_name_44 WHERE name = \"true's beaked whale\"", "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 (emissions_co2 VARCHAR, max_speed VARCHAR, car_model VARCHAR)", "role": "system" }, { "content": "What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?", "role": "user" }, { "content": "SELECT emissions_co2 FROM table_name_76 WHERE max_speed = \"km/h (mph)\" AND car_model = \"panamera 4s\"", "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_78 (final_score VARCHAR, visiting_team VARCHAR)", "role": "system" }, { "content": "What was the final score in the game against the Cincinnati Bengals?", "role": "user" }, { "content": "SELECT final_score FROM table_name_78 WHERE visiting_team = \"cincinnati bengals\"", "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 (year_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)", "role": "system" }, { "content": "What year was the wheel arrangement 0-6-0 and a class 302?", "role": "user" }, { "content": "SELECT year_made FROM table_name_76 WHERE wheel_arrangement = \"0-6-0\" AND class = \"302\"", "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_83 (tie_no VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What is home team Chelsea's Tie no?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_83 WHERE home_team = \"chelsea\"", "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 buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)", "role": "system" }, { "content": "Show the name of the building that has the most company offices.", "role": "user" }, { "content": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id 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_27 (rank VARCHAR, reb_avg INTEGER)", "role": "system" }, { "content": "How many ranks have a rebound average smaller than 6.1?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.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_27539272_7 (january INTEGER, record VARCHAR)", "role": "system" }, { "content": "On what day in January was the record 15-29-3?", "role": "user" }, { "content": "SELECT MAX(january) FROM table_27539272_7 WHERE record = \"15-29-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_15187735_8 (series_ep VARCHAR, segment_a VARCHAR)", "role": "system" }, { "content": "Name the number of series episode for s piston", "role": "user" }, { "content": "SELECT COUNT(series_ep) FROM table_15187735_8 WHERE segment_a = \"s Piston\"", "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_90 (avgatt VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the average attendance when the rank is 5?", "role": "user" }, { "content": "SELECT avgatt FROM table_name_90 WHERE rank = \"5\"", "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 (athlete VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the name of the athlete with a time of 30:48?", "role": "user" }, { "content": "SELECT athlete FROM table_name_9 WHERE time = \"30:48\"", "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_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR)", "role": "system" }, { "content": "What was the population of the coastal location Isio in May of 2000?", "role": "user" }, { "content": "SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = \"coastal\" AND barangay = \"Isio\"", "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 (date VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What date has dallas cowboys as the opponent?", "role": "user" }, { "content": "SELECT date FROM table_name_91 WHERE opponent = \"dallas cowboys\"", "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 Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)", "role": "system" }, { "content": "List all document type codes and document type names.", "role": "user" }, { "content": "SELECT document_type_code, document_type_name FROM Ref_document_types", "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_17 (points VARCHAR, chassis VARCHAR, entrant VARCHAR, year VARCHAR)", "role": "system" }, { "content": "what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?", "role": "user" }, { "content": "SELECT points FROM table_name_17 WHERE entrant = \"brabham racing organisation\" AND year = 1964 AND chassis = \"brabham bt7\"", "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_21021796_1 (stroke VARCHAR, applications VARCHAR)", "role": "system" }, { "content": "For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?", "role": "user" }, { "content": "SELECT stroke FROM table_21021796_1 WHERE applications = \"1999 W210 E-Class , 2000 W203 C-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_23 (city VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which City has a Date of may 19, 1976?", "role": "user" }, { "content": "SELECT city FROM table_name_23 WHERE date = \"may 19, 1976\"", "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_23274514_6 (high_points VARCHAR, game VARCHAR)", "role": "system" }, { "content": "How many people got high points in game 35?", "role": "user" }, { "content": "SELECT COUNT(high_points) FROM table_23274514_6 WHERE game = 35", "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 (location VARCHAR, stores VARCHAR)", "role": "system" }, { "content": "Which location has 140 stores?", "role": "user" }, { "content": "SELECT location FROM table_name_29 WHERE stores = \"140\"", "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 (season VARCHAR, round VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What season had a game in the first round with a result of 4–1, 0–1?", "role": "user" }, { "content": "SELECT season FROM table_name_87 WHERE round = \"first round\" AND result = \"4–1, 0–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_27537870_5 (opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Name the opponent for record 10-13-3", "role": "user" }, { "content": "SELECT opponent FROM table_27537870_5 WHERE record = \"10-13-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_41 (stadium VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the Stadium held on november 29?", "role": "user" }, { "content": "SELECT stadium FROM table_name_41 WHERE date = \"november 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_22597626_6 (surface VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "Name the surface for 6–0, 6–3", "role": "user" }, { "content": "SELECT surface FROM table_22597626_6 WHERE score_in_the_final = \"6–0, 6–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_41 (deputy VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the name of the deputy in 1992–93?", "role": "user" }, { "content": "SELECT deputy FROM table_name_41 WHERE year = \"1992–93\"", "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_12 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)", "role": "system" }, { "content": "What is Score Points, when Event is \"WC Rio De Janeiro\", and when Rank Points is \"10\"?", "role": "user" }, { "content": "SELECT score_points FROM table_name_12 WHERE event = \"wc rio de janeiro\" AND rank_points = \"10\"", "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_18 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Opponent, when Date is 8 April 1999?", "role": "user" }, { "content": "SELECT opponent FROM table_name_18 WHERE date = \"8 april 1999\"", "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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Who was the home team that played against Manchester United?", "role": "user" }, { "content": "SELECT home_team FROM table_name_86 WHERE away_team = \"manchester united\"", "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_11691212_2 (lap_by_lap VARCHAR, viewers VARCHAR)", "role": "system" }, { "content": "Who narrated the lap-by-lap to a 13.4 million audience?", "role": "user" }, { "content": "SELECT lap_by_lap FROM table_11691212_2 WHERE viewers = \"13.4 million\"", "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_29181479_5 (series VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Lis the series for game 5.", "role": "user" }, { "content": "SELECT series FROM table_29181479_5 WHERE game = 5", "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 country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "role": "system" }, { "content": "Which Asian countries have a population that is larger than any country in Africa?", "role": "user" }, { "content": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE Continent = \"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_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)", "role": "system" }, { "content": "How many different lead margins were stated in the poll administered on September 11, 2008?", "role": "user" }, { "content": "SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = \"September 11, 2008\"", "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_82 (goals_against VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many goals against have 58 points?", "role": "user" }, { "content": "SELECT goals_against FROM table_name_82 WHERE points = 58", "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 (result VARCHAR, nominated_work VARCHAR, award VARCHAR)", "role": "system" }, { "content": "When Marlene was nominated for the Olivier Award, what was the result?", "role": "user" }, { "content": "SELECT result FROM table_name_33 WHERE nominated_work = \"marlene\" AND award = \"olivier award\"", "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 (school VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "Which school is in Riverside, CA?", "role": "user" }, { "content": "SELECT school FROM table_name_76 WHERE hometown = \"riverside, ca\"", "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_96 (target VARCHAR, brand_name VARCHAR)", "role": "system" }, { "content": "What's the target for the brand mylotarg?", "role": "user" }, { "content": "SELECT target FROM table_name_96 WHERE brand_name = \"mylotarg\"", "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 (pick__number INTEGER, position VARCHAR)", "role": "system" }, { "content": "What is the total number of picks for the position of OL?", "role": "user" }, { "content": "SELECT SUM(pick__number) FROM table_name_87 WHERE position = \"ol\"", "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 (genre VARCHAR, developer_s_ VARCHAR)", "role": "system" }, { "content": "Which Genre has a Developer(s) of naughty dog?", "role": "user" }, { "content": "SELECT genre FROM table_name_47 WHERE developer_s_ = \"naughty dog\"", "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_1966992_1 (area__km_2__ VARCHAR, census_2006_population VARCHAR)", "role": "system" }, { "content": "How many areas (km 2) have 151511 as the census 2006 population?", "role": "user" }, { "content": "SELECT COUNT(area__km_2__) FROM table_1966992_1 WHERE census_2006_population = 151511", "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_93 (place VARCHAR, building VARCHAR)", "role": "system" }, { "content": "Name the place with building of victoria hall", "role": "user" }, { "content": "SELECT place FROM table_name_93 WHERE building = \"victoria hall\"", "role": "assistant" } ]