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_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)", "role": "system" }, { "content": "what is the position when the year [A} is after 2011 and the pick is 28?", "role": "user" }, { "content": "SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = \"28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Which away team played on June 9, 2015 with a home team of f1?", "role": "user" }, { "content": "SELECT away_team FROM table_name_34 WHERE date = \"june 9, 2015\" AND home_team = \"f1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, to_par VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "Which player was +4 to par and won the Open in 1995?", "role": "user" }, { "content": "SELECT player FROM table_name_3 WHERE to_par = \"+4\" AND year_s__won = \"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_17941032_2 (losing_bonus VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What was the losing bonus that had 53 points?", "role": "user" }, { "content": "SELECT losing_bonus FROM table_17941032_2 WHERE points = \"53\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total_points VARCHAR, seasons VARCHAR)", "role": "system" }, { "content": "What is the total for 1984 for the team with 100 points total and more than 3 seasons?", "role": "user" }, { "content": "SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 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_11 (school VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What school is in Ligonier?", "role": "user" }, { "content": "SELECT school FROM table_name_11 WHERE location = \"ligonier\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (crowd VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the crowd size for Victoria park?", "role": "user" }, { "content": "SELECT crowd FROM table_name_99 WHERE venue = \"victoria park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (facility_id INTEGER, city_of_license VARCHAR, erp_kw VARCHAR)", "role": "system" }, { "content": "What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?", "role": "user" }, { "content": "SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = \"wheeling\" AND erp_kw < 4.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_11959669_6 (location_attendance VARCHAR, score VARCHAR)", "role": "system" }, { "content": "How many times is the score 98–90?", "role": "user" }, { "content": "SELECT COUNT(location_attendance) FROM table_11959669_6 WHERE score = \"98–90\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2076608_3 (control VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "What is the control type which was founded in 1818?", "role": "user" }, { "content": "SELECT control FROM table_2076608_3 WHERE founded = \"1818\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "On what year did Newcombe first face Clark Graebner in a final match?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = \"Clark Graebner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, circuit VARCHAR)", "role": "system" }, { "content": "When was the Monza circuit?", "role": "user" }, { "content": "SELECT date FROM table_name_68 WHERE circuit = \"monza\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342379_10 (party VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "what is the affiliation of charles h. brand", "role": "user" }, { "content": "SELECT party FROM table_1342379_10 WHERE incumbent = \"Charles H. Brand\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24330912_1 (money_list_rank INTEGER)", "role": "system" }, { "content": "What is the lowest overall money list rank?", "role": "user" }, { "content": "SELECT MIN(money_list_rank) FROM table_24330912_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_83 (player VARCHAR, total VARCHAR, opposition VARCHAR)", "role": "system" }, { "content": "What Player in Opposition of Kilkenny has a Total of 10?", "role": "user" }, { "content": "SELECT player FROM table_name_83 WHERE total = 10 AND opposition = \"kilkenny\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR)", "role": "system" }, { "content": "What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?", "role": "user" }, { "content": "SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (founded VARCHAR, institution VARCHAR)", "role": "system" }, { "content": "What is the date that the Institution of Lynn University was founded on?", "role": "user" }, { "content": "SELECT founded FROM table_name_69 WHERE institution = \"lynn university\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (earnings___ INTEGER, wins VARCHAR, events VARCHAR)", "role": "system" }, { "content": "What is the number of earning for more than 2 wins and less than 25 events?", "role": "user" }, { "content": "SELECT SUM(earnings___) AS $__ FROM table_name_97 WHERE wins > 2 AND events < 25", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What was the lowest rank by average of a couple who had an average of 23 and a total of 115?", "role": "user" }, { "content": "SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What venue did Richmond play at as the home team?", "role": "user" }, { "content": "SELECT venue FROM table_name_56 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_name_82 (serial_numbers VARCHAR, year_made VARCHAR)", "role": "system" }, { "content": "What is the serial number of the model made in 1930?", "role": "user" }, { "content": "SELECT serial_numbers FROM table_name_82 WHERE year_made = \"1930\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_4 (writer_s_ VARCHAR, season__number VARCHAR)", "role": "system" }, { "content": "Who was the writer of episode 15?", "role": "user" }, { "content": "SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 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_97 (division VARCHAR, regular_season VARCHAR)", "role": "system" }, { "content": "What division was the regular season 5th, Northeast?", "role": "user" }, { "content": "SELECT division FROM table_name_97 WHERE regular_season = \"5th, northeast\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24596664_1 (season VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Name the number of season for 18th position", "role": "user" }, { "content": "SELECT COUNT(season) FROM table_24596664_1 WHERE position = \"18th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (population INTEGER, county VARCHAR, number_of_households VARCHAR)", "role": "system" }, { "content": "What is the highest population for Baraga County with less than 3,444 households?", "role": "user" }, { "content": "SELECT MAX(population) FROM table_name_96 WHERE county = \"baraga\" AND number_of_households < 3 OFFSET 444", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, winning_score VARCHAR)", "role": "system" }, { "content": "On what Date was the Winning score –8 (69-72-70-69=280)?", "role": "user" }, { "content": "SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70 - 69 = 280)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which away team plays at the venue glenferrie oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_63 WHERE venue = \"glenferrie 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 TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)", "role": "system" }, { "content": "What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?", "role": "user" }, { "content": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)", "role": "system" }, { "content": "What is Manner of Departure, when Outgoing Manager is \"Luis Fernando Tena\"?", "role": "user" }, { "content": "SELECT manner_of_departure FROM table_name_25 WHERE outgoing_manager = \"luis fernando tena\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR)", "role": "system" }, { "content": "What is the highest number of cuts made when her best finish is t4?", "role": "user" }, { "content": "SELECT MAX(cuts_made) FROM table_14853156_2 WHERE best_finish = \"T4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (studio VARCHAR, gross_rental VARCHAR)", "role": "system" }, { "content": "What is the Studio of the Film with a Gross rental of $7,500,000?", "role": "user" }, { "content": "SELECT studio FROM table_name_33 WHERE gross_rental = \"$7,500,000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341522_24 (opponent VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Who opposed Marty Meehan in each election?", "role": "user" }, { "content": "SELECT opponent FROM table_1341522_24 WHERE incumbent = \"Marty Meehan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the Result in Year 1973?", "role": "user" }, { "content": "SELECT result FROM table_name_97 WHERE year = 1973", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21536557_2 (name VARCHAR, time__cet_ VARCHAR)", "role": "system" }, { "content": "Who is every name for time(cet) of 09:58?", "role": "user" }, { "content": "SELECT name FROM table_21536557_2 WHERE time__cet_ = \"09:58\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16710971_2 (opponents VARCHAR, record VARCHAR)", "role": "system" }, { "content": "How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?", "role": "user" }, { "content": "SELECT COUNT(opponents) FROM table_16710971_2 WHERE record = \"6-4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (venue VARCHAR, position VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which venue was finished in 2nd position in 1985?", "role": "user" }, { "content": "SELECT venue FROM table_name_40 WHERE position = \"2nd\" AND year = 1985", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR)", "role": "system" }, { "content": "What size was the biggest crowd that watched the home team Hawthorn play?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_95 WHERE home_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_7 (avg VARCHAR, long VARCHAR)", "role": "system" }, { "content": "What is the average for the RB with an 8 yard long?", "role": "user" }, { "content": "SELECT COUNT(avg) FROM table_name_7 WHERE long = 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_15780049_6 (score VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the score of game 33?", "role": "user" }, { "content": "SELECT score FROM table_15780049_6 WHERE game = 33", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10413597_5 (original_air_date VARCHAR, setting VARCHAR)", "role": "system" }, { "content": "What was the original air date of an episode set in 1544?", "role": "user" }, { "content": "SELECT original_air_date FROM table_10413597_5 WHERE setting = \"1544\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16795394_3 (team__number1 VARCHAR, team__number2 VARCHAR)", "role": "system" }, { "content": "If team two is San Lorenzo, how many were on team one?", "role": "user" }, { "content": "SELECT COUNT(team__number1) FROM table_16795394_3 WHERE team__number2 = \"San Lorenzo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR)", "role": "system" }, { "content": "What is the total number of Games, when Losses is greater than 6, when Club is \"Club Sportif Sfaxien\", and when Wins is less than 3?", "role": "user" }, { "content": "SELECT COUNT(games) FROM table_name_58 WHERE losses > 6 AND club = \"club sportif sfaxien\" AND wins < 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_2215159_2 (outcome VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "How many outcomes were there for matches played with Chuck McKinley on grass in 1962?", "role": "user" }, { "content": "SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = \"Grass\" AND partner = \"Chuck McKinley\" AND year = 1962", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (champion VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which champion got a score of 12-1?", "role": "user" }, { "content": "SELECT champion FROM table_name_78 WHERE score = \"12-1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (home_team VARCHAR, crowd INTEGER)", "role": "system" }, { "content": "What home team has had a crowd bigger than 20,000?", "role": "user" }, { "content": "SELECT home_team FROM table_name_95 WHERE crowd > 20 OFFSET 000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (result VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What result in the table is from the year 2012?", "role": "user" }, { "content": "SELECT result FROM table_name_38 WHERE year = 2012", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "How much was the prize money for rwe-sporthalle, mΓΌlheim ?", "role": "user" }, { "content": "SELECT prize_fund FROM table_18828487_1 WHERE venue = \"RWE-Sporthalle, MΓΌlheim\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lane INTEGER, time VARCHAR)", "role": "system" }, { "content": "What lane did the swimmer with a time of 52.84 have?", "role": "user" }, { "content": "SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (authority VARCHAR, roll VARCHAR)", "role": "system" }, { "content": "What is the authority for roll of 96?", "role": "user" }, { "content": "SELECT authority FROM table_name_46 WHERE roll = 96", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (different_holders INTEGER, country VARCHAR, giro_wins VARCHAR)", "role": "system" }, { "content": "what is the least different holders when the country is ireland and giro wins is less than 1?", "role": "user" }, { "content": "SELECT MIN(different_holders) FROM table_name_93 WHERE country = \"ireland\" AND giro_wins < 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_1342233_17 (first_elected VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What year was incumbent joe b. bates first elected?", "role": "user" }, { "content": "SELECT first_elected FROM table_1342233_17 WHERE incumbent = \"Joe B. Bates\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidΓ©otron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR)", "role": "system" }, { "content": "Which Network is on a VidΓ©otron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?", "role": "user" }, { "content": "SELECT network FROM table_name_26 WHERE vidΓ©otron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = \"cjoh-dt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (stadium VARCHAR, final_score VARCHAR)", "role": "system" }, { "content": "What stadium hosted the game that had a final score of 9-14?", "role": "user" }, { "content": "SELECT stadium FROM table_name_75 WHERE final_score = \"9-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_57 (label VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What was the label in the region of Canada?", "role": "user" }, { "content": "SELECT label FROM table_name_57 WHERE region = \"canada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, played VARCHAR, goals_for VARCHAR, losses VARCHAR, goal_difference VARCHAR)", "role": "system" }, { "content": "What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_name_50 WHERE losses < 10 AND goal_difference < 46 AND goals_for < 63 AND played < 30", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR)", "role": "system" }, { "content": "What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?", "role": "user" }, { "content": "SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = \"ethiopia\" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE school (Location VARCHAR, School_ID VARCHAR); CREATE TABLE player (Team VARCHAR, School_ID VARCHAR)", "role": "system" }, { "content": "For each player, show the team and the location of school they belong to.", "role": "user" }, { "content": "SELECT T1.Team, T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR)", "role": "system" }, { "content": "Which skip (club) had 28 PA?", "role": "user" }, { "content": "SELECT skip__club_ FROM table_29546030_2 WHERE pa = 28", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (rank INTEGER, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the rank of the team with 0 gold and less than 0 silvers?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_72 WHERE gold = 0 AND silver < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR)", "role": "system" }, { "content": "Which Line has a Platform of 3?", "role": "user" }, { "content": "SELECT line FROM table_name_62 WHERE platform = \"3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (attempts VARCHAR, touchdowns VARCHAR)", "role": "system" }, { "content": "What is the total number of Attempts, when Touchdowns is 6?", "role": "user" }, { "content": "SELECT COUNT(attempts) FROM table_name_61 WHERE touchdowns = 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_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)", "role": "system" }, { "content": "On what date did the person leave office who died on October 23, 1887 and who served 2 years?", "role": "user" }, { "content": "SELECT left_office FROM table_name_58 WHERE years_in_office = \"2\" AND death = \"october 23, 1887\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, rank INTEGER)", "role": "system" }, { "content": "What is the lowest Year, when Rank is greater than 85?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_28 WHERE rank > 85", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, points INTEGER)", "role": "system" }, { "content": "What position has less than 6 Points?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_name_63 WHERE points < 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_93 (height VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What is the height of the player who is from Huntington, WV?", "role": "user" }, { "content": "SELECT height FROM table_name_93 WHERE hometown = \"huntington, wv\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (upstream VARCHAR, internet_plan VARCHAR)", "role": "system" }, { "content": "What is the upstream for the internet 100 plans?", "role": "user" }, { "content": "SELECT upstream FROM table_name_42 WHERE internet_plan = \"internet 100\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18475946_2 (erp__kw_ VARCHAR)", "role": "system" }, { "content": "What are the 2fm's for erp 16?", "role": "user" }, { "content": "SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = \"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_87 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "What average game was played on October 16?", "role": "user" }, { "content": "SELECT AVG(game) FROM table_name_87 WHERE date = \"october 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_11 (play VARCHAR, company VARCHAR)", "role": "system" }, { "content": "what is the play when the company is national theatre of greece?", "role": "user" }, { "content": "SELECT play FROM table_name_11 WHERE company = \"national theatre of greece\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, loss VARCHAR)", "role": "system" }, { "content": "Which Opponent has a Loss of bΓ‘ez (5-5)?", "role": "user" }, { "content": "SELECT opponent FROM table_name_17 WHERE loss = \"bΓ‘ez (5-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 customer_orders (customer_id VARCHAR, order_date VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)", "role": "system" }, { "content": "Who made the latest order?", "role": "user" }, { "content": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (year INTEGER, notes VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "What is the earliest year the world junior championships has 1500 m notes?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_85 WHERE notes = \"1500 m\" AND competition = \"world junior championships\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "What is the nationality for the guard position from Bowling Green?", "role": "user" }, { "content": "SELECT nationality FROM table_name_47 WHERE position = \"guard\" AND school_club_team = \"bowling green\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2011 value that has a 2r in 2008 and a 4r in 2012?", "role": "user" }, { "content": "SELECT 2011 FROM table_name_62 WHERE 2008 = \"2r\" AND 2012 = \"4r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2387790_2 (avg_start VARCHAR, avg_finish VARCHAR)", "role": "system" }, { "content": "How many years did he have an average finish of 11.7?", "role": "user" }, { "content": "SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = \"11.7\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (count VARCHAR, flight_hours VARCHAR)", "role": "system" }, { "content": "What is the count for the Zero Fighter with hours of 2:00?", "role": "user" }, { "content": "SELECT count FROM table_name_5 WHERE flight_hours = \"2: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_name_79 (icao VARCHAR, airport VARCHAR)", "role": "system" }, { "content": "Name the ICAO for julius nyerere international airport", "role": "user" }, { "content": "SELECT icao FROM table_name_79 WHERE airport = \"julius nyerere 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 table_name_82 (decision VARCHAR, game INTEGER)", "role": "system" }, { "content": "What is the decision of the game larger than 6.", "role": "user" }, { "content": "SELECT decision FROM table_name_82 WHERE game > 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_65 (draws INTEGER, losses VARCHAR, tallangatta_dfl VARCHAR)", "role": "system" }, { "content": "What are the fewest draws with less than 7 losses and Mitta United is the Tallagatta DFL?", "role": "user" }, { "content": "SELECT MIN(draws) FROM table_name_65 WHERE losses < 7 AND tallangatta_dfl = \"mitta united\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28220778_21 (high_rebounds VARCHAR, game VARCHAR)", "role": "system" }, { "content": "How many people had high rebounds in game 14?", "role": "user" }, { "content": "SELECT COUNT(high_rebounds) FROM table_28220778_21 WHERE game = 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_23284271_8 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "When did the Mavericks have a record of 32-19?", "role": "user" }, { "content": "SELECT date FROM table_23284271_8 WHERE record = \"32-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_11545282_19 (player VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Which player's position is the shooting guard?", "role": "user" }, { "content": "SELECT player FROM table_11545282_19 WHERE position = \"Shooting guard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the score when the opponent was Detroit Pistons?", "role": "user" }, { "content": "SELECT score FROM table_name_46 WHERE opponent = \"detroit pistons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (authority VARCHAR, roll VARCHAR, area VARCHAR)", "role": "system" }, { "content": "What's the authority when the roll is less than 234 for the massey east area?", "role": "user" }, { "content": "SELECT authority FROM table_name_79 WHERE roll < 234 AND area = \"massey east\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze?", "role": "user" }, { "content": "SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Name the date for result of eng by 23 runs", "role": "user" }, { "content": "SELECT date FROM table_name_24 WHERE result = \"eng by 23 runs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "what is the score when the away team is tottenham hotspur?", "role": "user" }, { "content": "SELECT score FROM table_name_29 WHERE away_team = \"tottenham hotspur\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15352382_1 (against VARCHAR, difference VARCHAR)", "role": "system" }, { "content": "How many under the category of Against have a Difference of 11", "role": "user" }, { "content": "SELECT COUNT(against) FROM table_15352382_1 WHERE difference = 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 customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)", "role": "system" }, { "content": "List the customers first and last name of 10 least expensive invoices.", "role": "user" }, { "content": "SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 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_2679061_11 (nhl_team VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "What team had pick 203?", "role": "user" }, { "content": "SELECT nhl_team FROM table_2679061_11 WHERE pick__number = 203", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?", "role": "user" }, { "content": "SELECT country FROM table_name_95 WHERE place = \"t9\" AND score = 71 - 71 - 72 = 214 AND player = \"ernie els\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16493961_1 (driver VARCHAR, race_time VARCHAR)", "role": "system" }, { "content": "Name the driver for race time being 2:34:21", "role": "user" }, { "content": "SELECT driver FROM table_16493961_1 WHERE race_time = \"2:34:21\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR)", "role": "system" }, { "content": "What Gershausen has a Willingshain of 243 and Reckerode of 224?", "role": "user" }, { "content": "SELECT gershausen FROM table_name_46 WHERE willingshain = \"243\" AND reckerode_ * * * * = \"224\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, type VARCHAR, dcsf_number VARCHAR)", "role": "system" }, { "content": "Which school is a primary school with DCSF number 2045?", "role": "user" }, { "content": "SELECT name FROM table_name_62 WHERE type = \"primary\" AND dcsf_number = 2045", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, surface VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the date of the tournament with a clay surface and an opponent of Irina Falconi?", "role": "user" }, { "content": "SELECT date FROM table_name_43 WHERE surface = \"clay\" AND opponent = \"irina falconi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22815265_1 (opponents VARCHAR, cowboys_points VARCHAR)", "role": "system" }, { "content": "How many opponents are there when cowboy points were 10?", "role": "user" }, { "content": "SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (games INTEGER, number VARCHAR)", "role": "system" }, { "content": "How many games has number 61 played in?", "role": "user" }, { "content": "SELECT MIN(games) AS ↑ FROM table_name_29 WHERE number = 61", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "What is the losing bonus for the team that has 33 tries against and 5 lost?", "role": "user" }, { "content": "SELECT losing_bonus FROM table_name_35 WHERE tries_against = \"33\" AND lost = \"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_8 (score VARCHAR, opponent VARCHAR, save VARCHAR)", "role": "system" }, { "content": "Which Score has a Opponent of Boston red sox and a Save of sager?", "role": "user" }, { "content": "SELECT score FROM table_name_8 WHERE opponent = \"boston red sox\" AND save = \"sager\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the opponent on September 17, 1995?", "role": "user" }, { "content": "SELECT opponent FROM table_name_63 WHERE date = \"september 17, 1995\"", "role": "assistant" } ]