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_25800134_3 (director VARCHAR, airdate VARCHAR)", "role": "system" }, { "content": "Who was the director for the episode on May 2, 1959?", "role": "user" }, { "content": "SELECT director FROM table_25800134_3 WHERE airdate = \"May 2, 1959\"", "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_27700375_6 (team VARCHAR, high_points VARCHAR)", "role": "system" }, { "content": "If the high points were by Anthony Morrow (24), what was the team?", "role": "user" }, { "content": "SELECT team FROM table_27700375_6 WHERE high_points = \"Anthony Morrow (24)\"", "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_56 (date VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What was the date of the game that tied at 3?", "role": "user" }, { "content": "SELECT date FROM table_name_56 WHERE tie_no = \"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_33 (region VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the region for december 7, 2004", "role": "user" }, { "content": "SELECT region FROM table_name_33 WHERE date = \"december 7, 2004\"", "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_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)", "role": "system" }, { "content": "What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_51 WHERE province = \"gīlān\" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366", "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_51 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What day is north melbourne the away side?", "role": "user" }, { "content": "SELECT date FROM table_name_51 WHERE away_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_21091145_1 (result VARCHAR, black_knights_points VARCHAR)", "role": "system" }, { "content": "Name the result for 19 black knights points", "role": "user" }, { "content": "SELECT result FROM table_21091145_1 WHERE black_knights_points = 19", "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 (years_played INTEGER, singles_win_loss VARCHAR, first_year_played VARCHAR)", "role": "system" }, { "content": "How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?", "role": "user" }, { "content": "SELECT SUM(years_played) FROM table_name_28 WHERE singles_win_loss = \"4-9\" AND first_year_played < 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_95 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?", "role": "user" }, { "content": "SELECT pick FROM table_name_95 WHERE round > 1 AND school_club_team = \"south 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_73 (game VARCHAR, road_team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What game number was played on April 23, with Boston as the road team?", "role": "user" }, { "content": "SELECT game FROM table_name_73 WHERE road_team = \"boston\" AND date = \"april 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_2668393_18 (party VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "What is the party for the candidates edwin gray (dr)?", "role": "user" }, { "content": "SELECT party FROM table_2668393_18 WHERE candidates = \"Edwin Gray (DR)\"", "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 (event VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which event was the opponent jose carlos oliveira?", "role": "user" }, { "content": "SELECT event FROM table_name_46 WHERE opponent = \"jose carlos oliveira\"", "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 (tie_no VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the Tie Number of the Bradford City away team?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_7 WHERE away_team = \"bradford city\"", "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 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)", "role": "system" }, { "content": "How many sacks have 72 as the solo and a TTkl less than 112?", "role": "user" }, { "content": "SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112", "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_2370579_1 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who directed the episode written by Tony O'Grady (pseudonym of brian clemens)?", "role": "user" }, { "content": "SELECT directed_by FROM table_2370579_1 WHERE written_by = \"Tony O'Grady (pseudonym of Brian Clemens)\"", "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_3 (outcome VARCHAR, surface VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What outcome occurs on a hard surface with a score of 4–6, 6–7(3)?", "role": "user" }, { "content": "SELECT outcome FROM table_name_3 WHERE surface = \"hard\" AND score = \"4–6, 6–7(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 TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "role": "user" }, { "content": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "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 (operator VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What was the operator of the ensemble from Yorkshire?", "role": "user" }, { "content": "SELECT operator FROM table_name_89 WHERE region = \"yorkshire\"", "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 (coding VARCHAR, genbank_id VARCHAR)", "role": "system" }, { "content": "What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2?", "role": "user" }, { "content": "SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE coding = \"6a 3\" AND genbank_id = \"nm_001093770.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_2518850_4 (year_of_previous_participation VARCHAR, total_number_of_participation VARCHAR, high_school_name VARCHAR)", "role": "system" }, { "content": "How many previous years did Maebashi Ikuei high school have a total number of 1 participation?", "role": "user" }, { "content": "SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = \"Maebashi Ikuei\"", "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 (score VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is Score, when Away Team is \"Yeovil Town\"?", "role": "user" }, { "content": "SELECT score FROM table_name_43 WHERE away_team = \"yeovil town\"", "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_3 (player VARCHAR, country VARCHAR, place VARCHAR)", "role": "system" }, { "content": "Which United States player has a place of T3?", "role": "user" }, { "content": "SELECT player FROM table_name_3 WHERE country = \"united states\" AND place = \"t3\"", "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 (tries_against INTEGER, points_against INTEGER)", "role": "system" }, { "content": "Which Tries against have Points against larger than 109?", "role": "user" }, { "content": "SELECT MAX(tries_against) FROM table_name_9 WHERE points_against > 109", "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_51 (label VARCHAR, catalog VARCHAR)", "role": "system" }, { "content": "What is the Label of the Release with Catalog number 2508668?", "role": "user" }, { "content": "SELECT label FROM table_name_51 WHERE catalog = \"2508668\"", "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 (constructor VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Who was the Constructor when the Grid was 2?", "role": "user" }, { "content": "SELECT constructor FROM table_name_63 WHERE grid = 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_30 (first VARCHAR, dob VARCHAR)", "role": "system" }, { "content": "Which first was born on 5 february 1979?", "role": "user" }, { "content": "SELECT first FROM table_name_30 WHERE dob = \"5 february 1979\"", "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_26686908_2 (production VARCHAR, championship VARCHAR, challenge VARCHAR)", "role": "system" }, { "content": "Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?", "role": "user" }, { "content": "SELECT production FROM table_26686908_2 WHERE championship = \"David Wall\" AND challenge = \"Jordan Ormsby\"", "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 (argon VARCHAR, helium VARCHAR)", "role": "system" }, { "content": "Wha argon has helium of 1.0000684?", "role": "user" }, { "content": "SELECT argon FROM table_name_54 WHERE helium = \"1.0000684\"", "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 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR)", "role": "system" }, { "content": "What is the democratic seat plurality with 29% democrat?", "role": "user" }, { "content": "SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = \"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_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR)", "role": "system" }, { "content": "Who are the drivers with 133 laps in OC class?", "role": "user" }, { "content": "SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = \"oc\"", "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_62 (venue VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Where did Geelong play as the away team?", "role": "user" }, { "content": "SELECT venue FROM table_name_62 WHERE away_team = \"geelong\"", "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 (crowd INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What is the average crowd size for Brunswick street oval?", "role": "user" }, { "content": "SELECT AVG(crowd) FROM table_name_32 WHERE venue = \"brunswick street 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_28 (silver VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Who won the Silver the Year Katie Curtis Unknown won the Bronze?", "role": "user" }, { "content": "SELECT silver FROM table_name_28 WHERE bronze = \"katie curtis unknown\"", "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 (date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What day is carlton the home side?", "role": "user" }, { "content": "SELECT date FROM table_name_87 WHERE home_team = \"carlton\"", "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 (year INTEGER, venue VARCHAR)", "role": "system" }, { "content": "When is the latest year the venue is in gothenburg, sweden?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_36 WHERE venue = \"gothenburg, sweden\"", "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_2668378_13 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "what was the section where the winner is william hoge", "role": "user" }, { "content": "SELECT district FROM table_2668378_13 WHERE incumbent = \"William Hoge\"", "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 (against VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "Who was against the opponents, mădălina gojnea monica niculescu?", "role": "user" }, { "content": "SELECT against FROM table_name_94 WHERE opponents = \"mădălina gojnea monica niculescu\"", "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 tryout (pID VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "role": "system" }, { "content": "Find the name of all students who were in the tryout sorted in alphabetic order.", "role": "user" }, { "content": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName", "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 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR)", "role": "system" }, { "content": "Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73", "role": "user" }, { "content": "SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = \"delaware\" AND interview > 9.73", "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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who did the Red Sox play against on July 8?", "role": "user" }, { "content": "SELECT opponent FROM table_name_22 WHERE date = \"july 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_75 (draws INTEGER, byes INTEGER)", "role": "system" }, { "content": "What is the fewest number of draws for teams with more than 0 byes?", "role": "user" }, { "content": "SELECT MIN(draws) FROM table_name_75 WHERE byes > 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_11 (date VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What date has attendance listed as 45,024?", "role": "user" }, { "content": "SELECT date FROM table_name_11 WHERE attendance = \"45,024\"", "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_11318462_5 (u15_3rd_iv VARCHAR, u15_4th_iv VARCHAR)", "role": "system" }, { "content": "what are all the u15 3rd iv with u15 4th iv being bbc", "role": "user" }, { "content": "SELECT u15_3rd_iv FROM table_11318462_5 WHERE u15_4th_iv = \"BBC\"", "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_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR)", "role": "system" }, { "content": "How many subscribers, in 2006, does Glo Mobile have?", "role": "user" }, { "content": "SELECT subscribers__2006___thousands_ FROM table_29395291_2 WHERE provider = \"Glo Mobile\"", "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, pole_position VARCHAR)", "role": "system" }, { "content": "What is the fastest lap with pole position of gilles villeneuve?", "role": "user" }, { "content": "SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = \"Gilles Villeneuve\"", "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 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)", "role": "system" }, { "content": "Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?", "role": "user" }, { "content": "SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = \"terang-mortlake\"", "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 CUSTOMERS (Customer_Phone VARCHAR, Customer_Email_Address VARCHAR, Customer_Name VARCHAR)", "role": "system" }, { "content": "What are the phone and email for customer Harold?", "role": "user" }, { "content": "SELECT Customer_Phone, Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = \"Harold\"", "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_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)", "role": "system" }, { "content": "Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?", "role": "user" }, { "content": "SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = \"Sean Barrett\"", "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_1342198_18 (candidates VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who is the candidate wehre district is louisiana 1?", "role": "user" }, { "content": "SELECT candidates FROM table_1342198_18 WHERE district = \"Louisiana 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_10470082_3 (writer VARCHAR, us_air_date VARCHAR)", "role": "system" }, { "content": "How many writers had an US air date of september 25, 1993?", "role": "user" }, { "content": "SELECT COUNT(writer) FROM table_10470082_3 WHERE us_air_date = \"September 25, 1993\"", "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_171666_1 (national_share___percentage_ VARCHAR, administrative_division VARCHAR)", "role": "system" }, { "content": "What is the national share of Guizhou's administrative division?", "role": "user" }, { "content": "SELECT national_share___percentage_ FROM table_171666_1 WHERE administrative_division = \"Guizhou\"", "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 (runner_s__up VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who were the runners-up in the tournament on May 26, 1996?", "role": "user" }, { "content": "SELECT runner_s__up FROM table_name_93 WHERE date = \"may 26, 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_85 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR)", "role": "system" }, { "content": "What time did the ferrari car that finished 62 laps have?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_85 WHERE laps < 62 AND constructor = \"ferrari\"", "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 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the height for rank greater than 10 in Tameer Tower?", "role": "user" }, { "content": "SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = \"tameer tower\"", "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 (pole_position VARCHAR, grand_prix VARCHAR)", "role": "system" }, { "content": "What is the pole position of the Belgian Grand Prix?", "role": "user" }, { "content": "SELECT pole_position FROM table_name_27 WHERE grand_prix = \"belgian 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_27730_9 (ikavian VARCHAR, ijekavian VARCHAR)", "role": "system" }, { "content": "What's the Ikavian translation of the Ijekavian word lijep?", "role": "user" }, { "content": "SELECT ikavian FROM table_27730_9 WHERE ijekavian = \"lijep\"", "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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What was the margin of victory when the runner-up was Janet Coles?", "role": "user" }, { "content": "SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = \"janet coles\"", "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 (aggregate VARCHAR)", "role": "system" }, { "content": "What was the 1st leg that had a 4-2 aggregate?", "role": "user" }, { "content": "SELECT 1 AS st_leg FROM table_name_33 WHERE aggregate = \"4-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_26301697_2 (represents VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "Name the represents for los alcarrizos", "role": "user" }, { "content": "SELECT represents FROM table_26301697_2 WHERE hometown = \"Los Alcarrizos\"", "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 (overall INTEGER, position VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What is the largest overall rank for a center drafted before round 10?", "role": "user" }, { "content": "SELECT MAX(overall) FROM table_name_22 WHERE position = \"center\" AND round < 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_29 (elevator VARCHAR, title VARCHAR)", "role": "system" }, { "content": "Which Elevator has a Title of bishop of palestrina?", "role": "user" }, { "content": "SELECT elevator FROM table_name_29 WHERE title = \"bishop of palestrina\"", "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 (writer VARCHAR, actual_title VARCHAR)", "role": "system" }, { "content": "What is the Writer with an Actual Title that is mork & mindy?", "role": "user" }, { "content": "SELECT writer FROM table_name_8 WHERE actual_title = \"mork & mindy\"", "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_29897962_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who directed the episode that had 3.55 million viewers?", "role": "user" }, { "content": "SELECT directed_by FROM table_29897962_1 WHERE us_viewers__million_ = \"3.55\"", "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_17675675_2 (points VARCHAR, won VARCHAR)", "role": "system" }, { "content": "What is the total amount of points when the given won is 9?", "role": "user" }, { "content": "SELECT points FROM table_17675675_2 WHERE won = \"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_11665016_2 (title VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "Which episode was directed by steven depaul", "role": "user" }, { "content": "SELECT title FROM table_11665016_2 WHERE directed_by = \"Steven DePaul\"", "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 (played VARCHAR, position VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which Played has a Position of 3, and a Points smaller than 15?", "role": "user" }, { "content": "SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15", "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_39 (tournament VARCHAR)", "role": "system" }, { "content": "What is 2011, when Tournament is \"Year-End Ranking\"?", "role": "user" }, { "content": "SELECT 2011 FROM table_name_39 WHERE tournament = \"year-end ranking\"", "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 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?", "role": "user" }, { "content": "SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 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_1341598_11 (candidates VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Who are shown as candidates when George Darden is the incumbent?", "role": "user" }, { "content": "SELECT candidates FROM table_1341598_11 WHERE incumbent = \"George Darden\"", "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 (date VARCHAR, type VARCHAR)", "role": "system" }, { "content": "Name the date which has type of plain stage", "role": "user" }, { "content": "SELECT date FROM table_name_2 WHERE type = \"plain stage\"", "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_1013129_2 (position VARCHAR, college_junior_club_team VARCHAR)", "role": "system" }, { "content": "How many different positions did Sherbrooke Faucons (qmjhl) provide in the draft?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_1013129_2 WHERE college_junior_club_team = \"Sherbrooke Faucons (QMJHL)\"", "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 (iata VARCHAR, airport VARCHAR)", "role": "system" }, { "content": "What is the IATA code for SHahjalal International Airport?", "role": "user" }, { "content": "SELECT iata FROM table_name_7 WHERE airport = \"shahjalal international airport\"", "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 gas_station (station_id VARCHAR, LOCATION VARCHAR, manager_name VARCHAR, open_year VARCHAR)", "role": "system" }, { "content": "Show gas station id, location, and manager_name for all gas stations ordered by open year.", "role": "user" }, { "content": "SELECT station_id, LOCATION, manager_name FROM gas_station ORDER BY open_year", "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 Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)", "role": "system" }, { "content": "List the names of all players who have a crossing score higher than 90 and prefer their right foot.", "role": "user" }, { "content": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = \"right\"", "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_4 (high_points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Who tied in the highest point scorer when playing against Phoenix?", "role": "user" }, { "content": "SELECT high_points FROM table_23274514_4 WHERE team = \"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_29063233_1 (original_air_date VARCHAR, uk_viewers__million_ VARCHAR)", "role": "system" }, { "content": "What was the airdate of the episode with a UK viewership of 6.02 million?", "role": "user" }, { "content": "SELECT original_air_date FROM table_29063233_1 WHERE uk_viewers__million_ = \"6.02\"", "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 (chassis VARCHAR, entrant VARCHAR)", "role": "system" }, { "content": "What kind of Chassis supports an Equipe Gordini Entrant?", "role": "user" }, { "content": "SELECT chassis FROM table_name_82 WHERE entrant = \"equipe gordini\"", "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 (bronze INTEGER, team VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "what is the average bronze when the team is northwest territories and gold is more than 34?", "role": "user" }, { "content": "SELECT AVG(bronze) FROM table_name_23 WHERE team = \"northwest territories\" AND gold > 34", "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 (surface VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "What surface was used when she played with Remi Tezuka?", "role": "user" }, { "content": "SELECT surface FROM table_name_76 WHERE partner = \"remi tezuka\"", "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 (split__50m_ INTEGER, time VARCHAR, lane VARCHAR)", "role": "system" }, { "content": "What is the slowest 50m split time for a total of 53.74 in a lane of less than 3?", "role": "user" }, { "content": "SELECT MAX(split__50m_) FROM table_name_8 WHERE time = 53.74 AND lane < 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_14 (plan_name VARCHAR, monthly_price_incl_vat__czk VARCHAR)", "role": "system" }, { "content": "What plan has monthly prices of 300, 500, 750, 1000?", "role": "user" }, { "content": "SELECT plan_name FROM table_name_14 WHERE monthly_price_incl_vat__czk = \"300, 500, 750, 1000\"", "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 (southbridge VARCHAR, model VARCHAR)", "role": "system" }, { "content": "What shows for Southbridge when the Model number is amd-640 chipset?", "role": "user" }, { "content": "SELECT southbridge FROM table_name_7 WHERE model = \"amd-640 chipset\"", "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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the away team at mcg?", "role": "user" }, { "content": "SELECT away_team FROM table_name_44 WHERE venue = \"mcg\"", "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 enzyme (OMIM INTEGER)", "role": "system" }, { "content": "What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?", "role": "user" }, { "content": "SELECT MAX(OMIM) FROM enzyme", "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_84 (city VARCHAR, county VARCHAR)", "role": "system" }, { "content": "what city is brule in", "role": "user" }, { "content": "SELECT city FROM table_name_84 WHERE county = \"brule\"", "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 (trailers VARCHAR, motors VARCHAR)", "role": "system" }, { "content": "I want the trailers for motors of 145", "role": "user" }, { "content": "SELECT trailers FROM table_name_92 WHERE motors = \"145\"", "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 (total INTEGER, year_s__won VARCHAR)", "role": "system" }, { "content": "What is the lowest total that has 1992 as the year (s) won?", "role": "user" }, { "content": "SELECT MIN(total) FROM table_name_81 WHERE year_s__won = \"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_12 (pick INTEGER, name VARCHAR)", "role": "system" }, { "content": "what is the pick for adam gettis?", "role": "user" }, { "content": "SELECT MIN(pick) FROM table_name_12 WHERE name = \"adam gettis\"", "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 (outcome VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "What is the outcome of the match when the partner is Nicole Arendt?", "role": "user" }, { "content": "SELECT outcome FROM table_name_94 WHERE partner = \"nicole arendt\"", "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 (election INTEGER, party VARCHAR, province VARCHAR)", "role": "system" }, { "content": "What is the average election for vicenza province with the liga veneta party?", "role": "user" }, { "content": "SELECT AVG(election) FROM table_name_31 WHERE party = \"liga veneta\" AND province = \"vicenza\"", "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_65 (lineup VARCHAR, competition VARCHAR, match VARCHAR)", "role": "system" }, { "content": "What was the lineup for match 12 that had a competition of Group Stage?", "role": "user" }, { "content": "SELECT lineup FROM table_name_65 WHERE competition = \"group stage\" AND match = \"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_29 (location VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the location of the match with Aron Lofton as the opponent?", "role": "user" }, { "content": "SELECT location FROM table_name_29 WHERE opponent = \"aron lofton\"", "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 (ground VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Where was the game played the ended with a score of 62-69?", "role": "user" }, { "content": "SELECT ground FROM table_name_22 WHERE score = \"62-69\"", "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 (long VARCHAR, ryds VARCHAR)", "role": "system" }, { "content": "What is the Long when the ryds is 18?", "role": "user" }, { "content": "SELECT long FROM table_name_14 WHERE ryds = \"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_5 (wins INTEGER, draws INTEGER)", "role": "system" }, { "content": "How many wins were there when draws were more than 0?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_name_5 WHERE draws > 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_4 (tournament VARCHAR)", "role": "system" }, { "content": "Which tournament's 2001 and 2008 were a when 2010 was qf?", "role": "user" }, { "content": "SELECT tournament FROM table_name_4 WHERE 2001 = \"a\" AND 2008 = \"a\" AND 2010 = \"qf\"", "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 (Id VARCHAR)", "role": "system" }, { "content": "What is the 1988 result that has a 1994 result of A, and 3r as the 1987 result?", "role": "user" }, { "content": "SELECT 1988 FROM table_name_19 WHERE 1994 = \"a\" AND 1987 = \"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_1277350_1 (thursday_iuppiter__jupiter_ VARCHAR, friday_venus__venus_ VARCHAR)", "role": "system" }, { "content": "what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi", "role": "user" }, { "content": "SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = \"vendredi\"", "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 (european_competitions VARCHAR, pos VARCHAR)", "role": "system" }, { "content": "Which European competitions have a Pos of 6?", "role": "user" }, { "content": "SELECT european_competitions FROM table_name_85 WHERE pos = 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_11703336_1 (display_size VARCHAR, year_released VARCHAR)", "role": "system" }, { "content": "what is the display size for the calculator released in 1997?", "role": "user" }, { "content": "SELECT display_size FROM table_11703336_1 WHERE year_released = \"1997\"", "role": "assistant" } ]