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_6 (silver VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the total number of silver with rank number 6?", "role": "user" }, { "content": "SELECT COUNT(silver) FROM table_name_6 WHERE rank = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What date had a tie no of replay, and an away team of watford?", "role": "user" }, { "content": "SELECT date FROM table_name_57 WHERE tie_no = \"replay\" AND away_team = \"watford\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (date_of_birth__age_ VARCHAR, caps VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?", "role": "user" }, { "content": "SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = \"3\" AND name = \"gabriel quak jun yi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_98 (doctor VARCHAR, format VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What is Doctor, when Format is CD, and when Title is The Relics Of Time?", "role": "user" }, { "content": "SELECT doctor FROM table_name_98 WHERE format = \"cd\" AND title = \"the relics of time\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (directed___undirected VARCHAR, name VARCHAR, basis VARCHAR)", "role": "system" }, { "content": "What is the directed/undirected for mfinder, which has a network-centric basis?", "role": "user" }, { "content": "SELECT directed___undirected FROM table_name_83 WHERE name = \"mfinder\" AND basis = \"network-centric\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (company_name VARCHAR, hardware_model VARCHAR)", "role": "system" }, { "content": "What company makes the Nokia 700?", "role": "user" }, { "content": "SELECT company_name FROM table_name_31 WHERE hardware_model = \"nokia 700\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (surface VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "What was the surface where the opponent was Nathalie Dechy Meilen Tu?", "role": "user" }, { "content": "SELECT surface FROM table_name_63 WHERE opponent_in_the_final = \"nathalie dechy meilen tu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which opponent was present on April 14?", "role": "user" }, { "content": "SELECT opponent FROM table_name_17 WHERE date = \"april 14\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the record in the game where the opponent wasd the atlanta falcons?", "role": "user" }, { "content": "SELECT record FROM table_name_40 WHERE opponent = \"atlanta falcons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)", "role": "system" }, { "content": "What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?", "role": "user" }, { "content": "SELECT pick FROM table_name_68 WHERE nba_years_[a_] = \"2\" AND previous_team = \"utah jazz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668367_7 (incumbent VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who was the incumbent in the Kentucky 8 district? ", "role": "user" }, { "content": "SELECT incumbent FROM table_2668367_7 WHERE district = \"Kentucky 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_25730123_2 (player VARCHAR, extra_points VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Name the player/s when there were 20 points with less than 1.0 extra point .", "role": "user" }, { "content": "SELECT player FROM table_25730123_2 WHERE extra_points < 1.0 AND points = 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (game VARCHAR, field_judge VARCHAR)", "role": "system" }, { "content": "What game had Al Jury as field judge?", "role": "user" }, { "content": "SELECT game FROM table_name_8 WHERE field_judge = \"al jury\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 VARCHAR, years VARCHAR, goals VARCHAR)", "role": "system" }, { "content": "What is the total number of Rank for 1996–2007, when there are more than 108 goals?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_51 WHERE years = \"1996–2007\" AND goals > 108", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1198175_1 (name VARCHAR, position VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the name when the position is de and college is ohio state?", "role": "user" }, { "content": "SELECT name FROM table_1198175_1 WHERE position = \"DE\" AND college = \"Ohio State\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many Gold does the Nation in Rank 12 with less than 2 Total medals have?", "role": "user" }, { "content": "SELECT MAX(gold) FROM table_name_45 WHERE rank = \"12\" AND total < 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_32 (game VARCHAR, location_attendance VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What game was played at Omni Coliseum with a w 105-95 score?", "role": "user" }, { "content": "SELECT game FROM table_name_32 WHERE location_attendance = \"omni coliseum\" AND score = \"w 105-95\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (highest_elevation VARCHAR, lowest_point VARCHAR)", "role": "system" }, { "content": "What is the highest elevation of a place where the lowest point is the Allaine River, National border?", "role": "user" }, { "content": "SELECT highest_elevation FROM table_name_93 WHERE lowest_point = \"allaine river, national border\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11677760_1 (college VARCHAR, player VARCHAR)", "role": "system" }, { "content": "what is the college for the player damon bailey?", "role": "user" }, { "content": "SELECT college FROM table_11677760_1 WHERE player = \"Damon Bailey\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (show VARCHAR, award VARCHAR)", "role": "system" }, { "content": "Which Show has an Award of indian television academy awards?", "role": "user" }, { "content": "SELECT show FROM table_name_77 WHERE award = \"indian television academy awards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1909647_2 (avg_finish VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What's the average finish in 2008?", "role": "user" }, { "content": "SELECT avg_finish FROM table_1909647_2 WHERE year = 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_54 (profits__billion_ INTEGER, sales__billion_$_ VARCHAR, headquarters VARCHAR, industry VARCHAR)", "role": "system" }, { "content": "How many profits is the company that is headquartered in the USA, in the banking industry, and has sales (billion $) less than 98.64 bringing in?", "role": "user" }, { "content": "SELECT SUM(profits__billion_) AS $_ FROM table_name_54 WHERE headquarters = \"usa\" AND industry = \"banking\" AND sales__billion_$_ < 98.64", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_70 (surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the surface on june 11, 1995", "role": "user" }, { "content": "SELECT surface FROM table_name_70 WHERE date = \"june 11, 1995\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (to_par INTEGER, player VARCHAR)", "role": "system" }, { "content": "What is the lowest to par for Bob Charles?", "role": "user" }, { "content": "SELECT MIN(to_par) FROM table_name_91 WHERE player = \"bob charles\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the place of the player with a 71-69-66=206 score?", "role": "user" }, { "content": "SELECT place FROM table_name_95 WHERE score = 71 - 69 - 66 = 206", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (game INTEGER, attendance INTEGER)", "role": "system" }, { "content": "Attendance larger than 55,189 is which average game?", "role": "user" }, { "content": "SELECT AVG(game) FROM table_name_25 WHERE attendance > 55 OFFSET 189", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (crew_chief VARCHAR, driver_s_ VARCHAR)", "role": "system" }, { "content": "Who is the crew chief, of driver Matt kurzejewski?", "role": "user" }, { "content": "SELECT crew_chief FROM table_name_27 WHERE driver_s_ = \"matt kurzejewski\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19948664_2 (ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR)", "role": "system" }, { "content": "How many items were under ranking l.a.(2) when the world ranking was 21st?", "role": "user" }, { "content": "SELECT COUNT(ranking_la__2_) FROM table_19948664_2 WHERE world_ranking__1_ = \"21st\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What opponent did the Broncos play on November 16?", "role": "user" }, { "content": "SELECT opponent FROM table_name_93 WHERE date = \"november 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_name_69 (position INTEGER, best_3_year_period VARCHAR)", "role": "system" }, { "content": "Which Position has a best 3-year period of petrosian?", "role": "user" }, { "content": "SELECT MAX(position) FROM table_name_69 WHERE best_3_year_period = \"petrosian\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (player VARCHAR, college VARCHAR)", "role": "system" }, { "content": "Which player is from Murray State college?", "role": "user" }, { "content": "SELECT player FROM table_name_9 WHERE college = \"murray state\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_52 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which player has 69 as the score?", "role": "user" }, { "content": "SELECT player FROM table_name_52 WHERE score = 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_8 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which home team has the Brunswick Street Oval venue?", "role": "user" }, { "content": "SELECT home_team FROM table_name_8 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_82 (videoconferencing VARCHAR, data_conferencing VARCHAR, web_conferencing VARCHAR)", "role": "system" }, { "content": "What is Videoconferencing, when Data Conferencing is \"No\", and when Web Conferencing is \"No\"?", "role": "user" }, { "content": "SELECT videoconferencing FROM table_name_82 WHERE data_conferencing = \"no\" AND web_conferencing = \"no\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE user_profiles (name VARCHAR, email VARCHAR)", "role": "system" }, { "content": "Find the name and email of the user whose name contains the word ‘Swift’.", "role": "user" }, { "content": "SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (score VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What is the Score of the Pingguo Tournament?", "role": "user" }, { "content": "SELECT score FROM table_name_94 WHERE tournament = \"pingguo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (type VARCHAR, res VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the type of the match with a win result and Michael Gomez as the opponent?", "role": "user" }, { "content": "SELECT type FROM table_name_79 WHERE res = \"win\" AND opponent = \"michael gomez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)", "role": "system" }, { "content": "Which stadium has a payout of $3 million?", "role": "user" }, { "content": "SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = \"$3 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_name_22 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who played the Rams on October 2, 2005?", "role": "user" }, { "content": "SELECT opponent FROM table_name_22 WHERE date = \"october 2, 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_name_58 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the date of the game where South Melbourne was the away team?", "role": "user" }, { "content": "SELECT date FROM table_name_58 WHERE away_team = \"south melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)", "role": "system" }, { "content": "Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?", "role": "user" }, { "content": "SELECT set_3 FROM table_name_86 WHERE score = \"3–2\" AND set_2 = \"25–23\" AND time = \"19:00\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25046766_3 (title VARCHAR, original_airdate_uk VARCHAR)", "role": "system" }, { "content": "What was the title of the episode that aired on October 7, 1965?", "role": "user" }, { "content": "SELECT title FROM table_25046766_3 WHERE original_airdate_uk = \"October 7, 1965\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_228973_11 (directed_by VARCHAR, original_air_date VARCHAR)", "role": "system" }, { "content": "Who directed the episode which originally aired February 4, 2005?", "role": "user" }, { "content": "SELECT directed_by FROM table_228973_11 WHERE original_air_date = \"February 4, 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_name_72 (score VARCHAR, home VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the Score with a Home of colorado, and a Date with may 11?", "role": "user" }, { "content": "SELECT score FROM table_name_72 WHERE home = \"colorado\" AND date = \"may 11\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "role": "system" }, { "content": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.", "role": "user" }, { "content": "SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) 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 PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)", "role": "system" }, { "content": "Show all the distinct product names with price higher than the average.", "role": "user" }, { "content": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13805773_2 (position INTEGER, artist VARCHAR)", "role": "system" }, { "content": "What is highest place reached by artist Ray Adams?", "role": "user" }, { "content": "SELECT MAX(position) FROM table_13805773_2 WHERE artist = \"Ray Adams\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_178242_1 (name VARCHAR, channel VARCHAR, premiere___aired VARCHAR)", "role": "system" }, { "content": "What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?", "role": "user" }, { "content": "SELECT name FROM table_178242_1 WHERE channel = \"Nederland 3\" AND premiere___aired = \"17 May 2008 – 21 June 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_83 (week VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Tell me the number of weeks for december 5, 2005", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_name_83 WHERE date = \"december 5, 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_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)", "role": "system" }, { "content": "For the ship that was a brig and located in the English Channel, what was the disposition of ship?", "role": "user" }, { "content": "SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = \"brig\" AND location = \"english channel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1769428_2 (winning_driver VARCHAR, team VARCHAR, make VARCHAR)", "role": "system" }, { "content": "Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS?", "role": "user" }, { "content": "SELECT winning_driver FROM table_1769428_2 WHERE team = \"Hendrick Motorsports\" AND make = \"Chevrolet Impala SS\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_70 (year VARCHAR, wins INTEGER)", "role": "system" }, { "content": "What is the total number of Year, when Wins is less than 0?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_70 WHERE wins < 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_6 (played INTEGER, goals_against VARCHAR, losses VARCHAR)", "role": "system" }, { "content": "When goals against is greater than 60 and losses less than 29, what is the highest played?", "role": "user" }, { "content": "SELECT MAX(played) FROM table_name_6 WHERE goals_against > 60 AND losses < 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_49 (first_elected INTEGER, district VARCHAR)", "role": "system" }, { "content": "What is the average First Elected, when District is \"Massachusetts 3\"?", "role": "user" }, { "content": "SELECT AVG(first_elected) FROM table_name_49 WHERE district = \"massachusetts 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_17 (result VARCHAR, award VARCHAR, nominee VARCHAR)", "role": "system" }, { "content": "What is the result of nominee, Patricia McGourty, for the drama desk award?", "role": "user" }, { "content": "SELECT result FROM table_name_17 WHERE award = \"drama desk award\" AND nominee = \"patricia mcgourty\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (apps INTEGER, rank VARCHAR, goals VARCHAR)", "role": "system" }, { "content": "How many Apps have a Rank larger than 2, and Goals smaller than 102?", "role": "user" }, { "content": "SELECT SUM(apps) FROM table_name_48 WHERE rank > 2 AND goals < 102", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (overall INTEGER, round VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?", "role": "user" }, { "content": "SELECT SUM(overall) FROM table_name_50 WHERE round < 24 AND college = \"north carolina state\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (game INTEGER, opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the lowest numbered game against Phoenix with a record of 29-17?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_name_61 WHERE opponent = \"phoenix\" AND record = \"29-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_96 (fcc_info VARCHAR, erp_w VARCHAR)", "role": "system" }, { "content": "What FCC info is listed for the ERP W of 2?", "role": "user" }, { "content": "SELECT fcc_info FROM table_name_96 WHERE erp_w = 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 festival_detail (Chair_Name VARCHAR, YEAR VARCHAR)", "role": "system" }, { "content": "What are the names of the chairs of festivals, sorted in ascending order of the year held?", "role": "user" }, { "content": "SELECT Chair_Name FROM festival_detail ORDER BY 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 table_name_37 (match INTEGER, points VARCHAR, draw VARCHAR)", "role": "system" }, { "content": "What is the highest number of matches with more than 18 points and more than 1 draw?", "role": "user" }, { "content": "SELECT MAX(match) FROM table_name_37 WHERE points > 18 AND draw > 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_148535_2 (hand VARCHAR)", "role": "system" }, { "content": "Name the least 2 credits for straight hand", "role": "user" }, { "content": "SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = \"Straight\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (rounds VARCHAR, entrant VARCHAR)", "role": "system" }, { "content": "what is the rounds when the entrant is scuderia ferrari marlboro?", "role": "user" }, { "content": "SELECT rounds FROM table_name_57 WHERE entrant = \"scuderia ferrari marlboro\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (date VARCHAR, results¹ VARCHAR)", "role": "system" }, { "content": "On what Date were the Results¹ 5:1?", "role": "user" }, { "content": "SELECT date FROM table_name_72 WHERE results¹ = \"5: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_72 (race_title VARCHAR, circuit VARCHAR)", "role": "system" }, { "content": "What was the title of the race at Oran Park Raceway?", "role": "user" }, { "content": "SELECT race_title FROM table_name_72 WHERE circuit = \"oran park raceway\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (wins VARCHAR, scored VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "How many Wins has a Scored of 27 and Draws smaller than 5?", "role": "user" }, { "content": "SELECT COUNT(wins) FROM table_name_61 WHERE scored = 27 AND draws < 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_31 (league VARCHAR, sport VARCHAR, club VARCHAR)", "role": "system" }, { "content": "Which league is for baseball with Laredo Apaches?", "role": "user" }, { "content": "SELECT league FROM table_name_31 WHERE sport = \"baseball\" AND club = \"laredo apaches\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (place VARCHAR, country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which Place has a Country of united states, and a Player of corey pavin?", "role": "user" }, { "content": "SELECT place FROM table_name_69 WHERE country = \"united states\" AND player = \"corey pavin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_49 (cerclis_id VARCHAR, listed VARCHAR)", "role": "system" }, { "content": "What CERCLIS ID was listed 10/14/1992?", "role": "user" }, { "content": "SELECT cerclis_id FROM table_name_49 WHERE listed = \"10/14/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_1 (championships VARCHAR, established INTEGER)", "role": "system" }, { "content": "Which championship was established after 2005?", "role": "user" }, { "content": "SELECT championships FROM table_name_1 WHERE established > 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_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)", "role": "system" }, { "content": "What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?", "role": "user" }, { "content": "SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE procedures (name VARCHAR, cost VARCHAR)", "role": "system" }, { "content": "List the name and cost of all procedures sorted by the cost from the highest to the lowest.", "role": "user" }, { "content": "SELECT name, cost FROM procedures ORDER BY cost DESC", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (place VARCHAR, score VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Ben Hogan with a score larger than 66 had a place listed of what?", "role": "user" }, { "content": "SELECT place FROM table_name_77 WHERE score > 66 AND player = \"ben hogan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_98 (agg VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "What was the aggregate for the match with a team 2 of Hafia FC?", "role": "user" }, { "content": "SELECT agg FROM table_name_98 WHERE team_2 = \"hafia fc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What date does the Home team of Richmond have?", "role": "user" }, { "content": "SELECT date FROM table_name_32 WHERE home_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27755603_2 (record VARCHAR, high_rebounds VARCHAR)", "role": "system" }, { "content": "What's the record in the game where Greg Monroe (8) did the high rebounds?", "role": "user" }, { "content": "SELECT record FROM table_27755603_2 WHERE high_rebounds = \"Greg Monroe (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 (losses VARCHAR, against VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "How many total losses does the team have with an against of 2195 and the draws were greater than 0?", "role": "user" }, { "content": "SELECT COUNT(losses) FROM table_name_77 WHERE against = 2195 AND 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_12407546_1 (fencing VARCHAR, running VARCHAR)", "role": "system" }, { "content": "What's the fencing score of the player with 9:40.31 (1080 pts) in running?", "role": "user" }, { "content": "SELECT fencing FROM table_12407546_1 WHERE running = \"9:40.31 (1080 pts)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17289604_38 (quarterfinals VARCHAR, round_of_32 VARCHAR)", "role": "system" }, { "content": "What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?", "role": "user" }, { "content": "SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = \"S Williams / V Williams ( USA ) L 6–4, 5–7, 1–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_23114705_3 (title VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "What is the name of the episode where the season number is 13?", "role": "user" }, { "content": "SELECT title FROM table_23114705_3 WHERE no_in_season = 13", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27654988_1 (scorers VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Who were the scorers in the game with final score 0–4 7–1 0–3?", "role": "user" }, { "content": "SELECT scorers FROM table_27654988_1 WHERE result = \"0–4 7–1 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_29626583_3 (position VARCHAR, mls_team VARCHAR)", "role": "system" }, { "content": "What position did the team new york red bulls pick?", "role": "user" }, { "content": "SELECT position FROM table_29626583_3 WHERE mls_team = \"New York Red Bulls\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (record VARCHAR, round VARCHAR, res VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?", "role": "user" }, { "content": "SELECT record FROM table_name_85 WHERE res = \"win\" AND time = \"5:00\" AND round > 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the opponent on September 13, 1992?", "role": "user" }, { "content": "SELECT opponent FROM table_name_10 WHERE date = \"september 13, 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_10 (h_a_n VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is H/A/N, when Score is 104-109?", "role": "user" }, { "content": "SELECT h_a_n FROM table_name_10 WHERE score = \"104-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_24 (winning_constructor VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Who was the winning constructor of the Grand Prix Du Salon ?", "role": "user" }, { "content": "SELECT winning_constructor FROM table_name_24 WHERE name = \"grand prix du salon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR)", "role": "system" }, { "content": "Who was the Coat of Cash Wearing Celebrity in Episode 6?", "role": "user" }, { "content": "SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (points VARCHAR, year INTEGER)", "role": "system" }, { "content": "How many points have a Year larger than 1966?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_69 WHERE year > 1966", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)", "role": "system" }, { "content": "What is the tyre of real racing with leon team member koudai tsukakoshi?", "role": "user" }, { "content": "SELECT tyre FROM table_name_24 WHERE team = \"real racing with leon\" AND drivers = \"koudai tsukakoshi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (high_points VARCHAR, game VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What high points did a game earlier than 80 have with a score of l 123–142?", "role": "user" }, { "content": "SELECT high_points FROM table_name_47 WHERE game < 80 AND score = \"l 123–142\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (name VARCHAR, position VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "Which name was in a position less than 4 with 2 losses?", "role": "user" }, { "content": "SELECT name FROM table_name_78 WHERE position < 4 AND lost = 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who was the away captain for matches played at Trent Bridge?", "role": "user" }, { "content": "SELECT away_captain FROM table_name_81 WHERE venue = \"trent bridge\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (round VARCHAR, rank INTEGER)", "role": "system" }, { "content": "What is Round, when Rank is less than 117?", "role": "user" }, { "content": "SELECT round FROM table_name_90 WHERE rank < 117", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (week INTEGER, opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_97 WHERE opponent = \"houston oilers\" AND attendance > 54 OFFSET 582", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_70 (date VARCHAR, year VARCHAR, location VARCHAR, winner VARCHAR)", "role": "system" }, { "content": "What is Date, when Location is Polo Grounds, when Winner is Philadelphia Eagles, and when Year is 1948?", "role": "user" }, { "content": "SELECT date FROM table_name_70 WHERE location = \"polo grounds\" AND winner = \"philadelphia eagles\" AND year = 1948", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (time VARCHAR, notes VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the time for Estonia with sc/d notes?", "role": "user" }, { "content": "SELECT time FROM table_name_9 WHERE notes = \"sc/d\" AND country = \"estonia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_261951_1 (pop_density__per_km²_ VARCHAR, municipality VARCHAR)", "role": "system" }, { "content": "List the population density per kilometer for the city of calintaan?", "role": "user" }, { "content": "SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = \"Calintaan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_16 (martin_mcguinness VARCHAR, david_norris VARCHAR)", "role": "system" }, { "content": "What is the Martin McGuinness with a David Norris that is 10.3%?", "role": "user" }, { "content": "SELECT martin_mcguinness FROM table_name_16 WHERE david_norris = \"10.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_95 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Who is the home team when hawthorn is the away team?", "role": "user" }, { "content": "SELECT home_team FROM table_name_95 WHERE away_team = \"hawthorn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_1 (lead VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "Where did Croatia lead?", "role": "user" }, { "content": "SELECT lead FROM table_name_1 WHERE nation = \"croatia\"", "role": "assistant" } ]