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_64 (money___ INTEGER, place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the largest money for a t4 place, for Tiger Woods?", "role": "user" }, { "content": "SELECT MAX(money___) AS $__ FROM table_name_64 WHERE place = \"t4\" AND player = \"tiger woods\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_13 (writer_s_ VARCHAR, airdate VARCHAR)", "role": "system" }, { "content": "Who was the writer of the episode that originally aired on October 14, 1968?", "role": "user" }, { "content": "SELECT writer_s_ FROM table_25800134_13 WHERE airdate = \"October 14, 1968\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (final_score VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What was the final score for the game with 65,309 people in attendance?", "role": "user" }, { "content": "SELECT final_score FROM table_name_28 WHERE attendance = \"65,309\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_206359_1 (_percentage_of_votes VARCHAR, _percentage_of_capital VARCHAR)", "role": "system" }, { "content": "What percentage of votes does the shareholder with 78.19% of capital have?", "role": "user" }, { "content": "SELECT _percentage_of_votes FROM table_206359_1 WHERE _percentage_of_capital = \"78.19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "what average grid has laps larger than 52 and contains the driver of andrea de adamich?", "role": "user" }, { "content": "SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = \"andrea de adamich\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?", "role": "user" }, { "content": "SELECT place FROM table_name_22 WHERE to_par = \"+2\" AND score = 70 - 72 - 73 = 215", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29574579_1 (episode VARCHAR, uk_viewers__million_ VARCHAR)", "role": "system" }, { "content": "How many episodes hve 4.50 million viewers?", "role": "user" }, { "content": "SELECT episode FROM table_29574579_1 WHERE uk_viewers__million_ = \"4.50\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (year INTEGER, length VARCHAR)", "role": "system" }, { "content": "What is the earliest year having a length of 11:25?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_21 WHERE length = \"11: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_93 (rank VARCHAR, year VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "What rank did the dallara chassis finish in 2000?", "role": "user" }, { "content": "SELECT rank FROM table_name_93 WHERE year = \"2000\" AND chassis = \"dallara\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (province VARCHAR, iata VARCHAR)", "role": "system" }, { "content": "WHich province has an IATA of UYN?", "role": "user" }, { "content": "SELECT province FROM table_name_12 WHERE iata = \"uyn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26041144_16 (rank VARCHAR, catches VARCHAR)", "role": "system" }, { "content": "If the catches is 131, what is the rank total number?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_26041144_16 WHERE catches = 131", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?", "role": "user" }, { "content": "SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = \"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 table_name_21 (catalog VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What Catalog came out on August 20, 1965?", "role": "user" }, { "content": "SELECT catalog FROM table_name_21 WHERE date = \"august 20, 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_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR)", "role": "system" }, { "content": "What was the entrant in round 16 were Ferrari was the constructor?", "role": "user" }, { "content": "SELECT entrant FROM table_name_70 WHERE rounds = \"16\" AND constructor = \"ferrari\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (runners_up INTEGER, champions INTEGER)", "role": "system" }, { "content": "What is the highest Runners-Up, when Champions is less than 0?", "role": "user" }, { "content": "SELECT MAX(runners_up) FROM table_name_30 WHERE champions < 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_19722436_2 (results VARCHAR, gt1_winning_team VARCHAR)", "role": "system" }, { "content": "When no.55 ipb spartak racing is the g1 winning team what are the results?", "role": "user" }, { "content": "SELECT results FROM table_19722436_2 WHERE gt1_winning_team = \"No.55 IPB Spartak Racing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (runs VARCHAR, average INTEGER)", "role": "system" }, { "content": "What is the total number of runs where the average is less than 27.22?", "role": "user" }, { "content": "SELECT COUNT(runs) FROM table_name_87 WHERE average < 27.22", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is the value for 2011 corresponding to a 2007 value of 1r?", "role": "user" }, { "content": "SELECT 2011 FROM table_name_32 WHERE 2007 = \"1r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What day is south melbourne away?", "role": "user" }, { "content": "SELECT date FROM table_name_19 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_26137666_3 (pole_position VARCHAR, round VARCHAR)", "role": "system" }, { "content": "How many pole positions for round 20?", "role": "user" }, { "content": "SELECT COUNT(pole_position) FROM table_26137666_3 WHERE round = 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_23 (results VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the result in 2000?", "role": "user" }, { "content": "SELECT results FROM table_name_23 WHERE year = 2000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (rank VARCHAR, laps VARCHAR, qual VARCHAR)", "role": "system" }, { "content": "What is the rank when there are more than 107 laps and the qual is 137.825?", "role": "user" }, { "content": "SELECT rank FROM table_name_26 WHERE laps > 107 AND qual = \"137.825\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342013_34 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "what's the result with incumbent being william h. ayres", "role": "user" }, { "content": "SELECT result FROM table_1342013_34 WHERE incumbent = \"William H. Ayres\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gross_revenue__2011_ VARCHAR, state VARCHAR)", "role": "system" }, { "content": "What is the gross revenue in 2011 for MO?", "role": "user" }, { "content": "SELECT gross_revenue__2011_ FROM table_name_8 WHERE state = \"mo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2899987_2 (network VARCHAR, origin VARCHAR)", "role": "system" }, { "content": "Which of the networks originate in Xalapa?", "role": "user" }, { "content": "SELECT network FROM table_2899987_2 WHERE origin = \"Xalapa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Prime VARCHAR, term_in_office VARCHAR)", "role": "system" }, { "content": "Which Prime Minister's served a term of 344 days?", "role": "user" }, { "content": "SELECT Prime AS minister FROM table_name_68 WHERE term_in_office = \"344 days\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?", "role": "user" }, { "content": "SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = \"cockermouth rural district\" AND name = \"plumbland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?", "role": "user" }, { "content": "SELECT date FROM table_name_86 WHERE outcome = \"runner-up\" AND opponent_in_the_final = \"gilles simon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29436238_1 (original_air_date VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "What date did episode 4 in the season originally air?", "role": "user" }, { "content": "SELECT original_air_date FROM table_29436238_1 WHERE no_in_season = 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_62 (year VARCHAR, qual VARCHAR)", "role": "system" }, { "content": "The Qual of 120.006 took place in what year?", "role": "user" }, { "content": "SELECT year FROM table_name_62 WHERE qual = \"120.006\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, placed VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What event placed bronze earlier than 1987?", "role": "user" }, { "content": "SELECT event FROM table_name_16 WHERE placed = \"bronze\" AND year < 1987", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18428024_3 (original_air_date VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "What is the original air date in series 360?", "role": "user" }, { "content": "SELECT COUNT(original_air_date) FROM table_18428024_3 WHERE no_in_series = 360", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR)", "role": "system" }, { "content": "What is the Proto-Austronesian word for the Proto-Polynesian word *tui?", "role": "user" }, { "content": "SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = \"*tui\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17085947_32 (swim__15km_ VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "What was the duration of Daniela Ryf's swimming stage?", "role": "user" }, { "content": "SELECT swim__15km_ FROM table_17085947_32 WHERE athlete = \"Daniela Ryf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (high_points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What are the High points for Team @ portland?", "role": "user" }, { "content": "SELECT high_points FROM table_name_75 WHERE team = \"@ portland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (surface VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "Which Surface has a Partner of oliver marach?", "role": "user" }, { "content": "SELECT surface FROM table_name_82 WHERE partner = \"oliver marach\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17901155_3 (prod_code VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "how many production codes were there for the episode that was 32 in the series?", "role": "user" }, { "content": "SELECT COUNT(prod_code) FROM table_17901155_3 WHERE no_in_series = 32", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18095719_2 (round INTEGER, circuit VARCHAR)", "role": "system" }, { "content": "What round was circuit Avus?", "role": "user" }, { "content": "SELECT MAX(round) FROM table_18095719_2 WHERE circuit = \"AVUS\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Who retired at lap 77 and was grid 11?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_22 WHERE laps = \"77\" AND grid = \"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 table_name_46 (cargo VARCHAR)", "role": "system" }, { "content": "What was the cargo value in 2005 for all product carriers?", "role": "user" }, { "content": "SELECT 2005 FROM table_name_46 WHERE cargo = \"all product carriers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2009 value with a 1r in 2010 and A in 2011?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_20 WHERE 2010 = \"1r\" AND 2011 = \"a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2008069_2 (conventional VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR)", "role": "system" }, { "content": "Name the conventional for تاغارما", "role": "user" }, { "content": "SELECT conventional FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = \"تاغارما\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (laps VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many laps were in 1955?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_89 WHERE year = \"1955\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (against INTEGER, difference VARCHAR, played VARCHAR)", "role": "system" }, { "content": "How many against have a difference of 6, with a played greater than 19?", "role": "user" }, { "content": "SELECT SUM(against) FROM table_name_57 WHERE difference = \"6\" AND played > 19", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (season VARCHAR, episode_count VARCHAR, time_length VARCHAR)", "role": "system" }, { "content": "Which season has more than 5 episodes each 159 minutes in length?", "role": "user" }, { "content": "SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = \"159 minutes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (top_5 INTEGER, events VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "Name the most top-5 for wins less than 0 and events less than 16", "role": "user" }, { "content": "SELECT MAX(top_5) FROM table_name_88 WHERE events < 16 AND 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_1341423_32 (party VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Name the number of party for new york 29", "role": "user" }, { "content": "SELECT COUNT(party) FROM table_1341423_32 WHERE district = \"New York 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_25244412_2 (renewable_electricity__gw INTEGER, rank VARCHAR)", "role": "system" }, { "content": "How much was the minimum renewable electricity (GW-h) that is ranked 36?", "role": "user" }, { "content": "SELECT MIN(renewable_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE rank = 36", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (round VARCHAR, race VARCHAR)", "role": "system" }, { "content": "What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?", "role": "user" }, { "content": "SELECT round FROM table_name_92 WHERE race = \"int. adac-preis der tourenwagen von sachsen-anhalt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Which Away team has a Home team of walsall?", "role": "user" }, { "content": "SELECT away_team FROM table_name_3 WHERE home_team = \"walsall\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (wins VARCHAR, starts VARCHAR, top_5 VARCHAR)", "role": "system" }, { "content": "Can you tell me the Wins that has the Starts larger than 1, and the Top 5 of 3?", "role": "user" }, { "content": "SELECT wins FROM table_name_19 WHERE starts > 1 AND top_5 = 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_90 (event VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which Event has a Record of 4:02.54?", "role": "user" }, { "content": "SELECT event FROM table_name_90 WHERE record = \"4:02.54\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (to_par VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the to par for Bart Bryant?", "role": "user" }, { "content": "SELECT to_par FROM table_name_9 WHERE player = \"bart bryant\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (event VARCHAR, acts VARCHAR)", "role": "system" }, { "content": "Tell me the event for 6 bands", "role": "user" }, { "content": "SELECT event FROM table_name_74 WHERE acts = \"6 bands\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (launched VARCHAR, ship VARCHAR)", "role": "system" }, { "content": "What date was the ship 'Wyandotte' launched?", "role": "user" }, { "content": "SELECT launched FROM table_name_45 WHERE ship = \"wyandotte\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (line_name VARCHAR, nimt_junction VARCHAR)", "role": "system" }, { "content": "What line has Junction of Huntly NIMT", "role": "user" }, { "content": "SELECT line_name FROM table_name_7 WHERE nimt_junction = \"huntly\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR)", "role": "system" }, { "content": "Name the total number of platforms that waddon railway station has", "role": "user" }, { "content": "SELECT COUNT(platforms) FROM table_name_41 WHERE stations = \"waddon railway station\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (games INTEGER, drawn INTEGER)", "role": "system" }, { "content": "What is the lowest game that has a drawn less than 0?", "role": "user" }, { "content": "SELECT MIN(games) FROM table_name_26 WHERE drawn < 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_2610582_7 (branding VARCHAR, callsign VARCHAR)", "role": "system" }, { "content": "What bran is the callsign dytc-fm?", "role": "user" }, { "content": "SELECT branding FROM table_2610582_7 WHERE callsign = \"DYTC-FM\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13619135_7 (high_rebounds VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Who was the high rebounder against charlotte?", "role": "user" }, { "content": "SELECT high_rebounds FROM table_13619135_7 WHERE team = \"Charlotte\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lost INTEGER, tied INTEGER)", "role": "system" }, { "content": "What is the average number of losses when there are more than 0 ties?", "role": "user" }, { "content": "SELECT AVG(lost) FROM table_name_49 WHERE tied > 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_67 (term_ending INTEGER, position VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "Position of member, and a Nationality of india is what sum of term ending?", "role": "user" }, { "content": "SELECT SUM(term_ending) FROM table_name_67 WHERE position = \"member\" AND nationality = \"india\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (effic INTEGER, avg_g VARCHAR)", "role": "system" }, { "content": "What is the lowest effic with a 58.9 avg/g?", "role": "user" }, { "content": "SELECT MIN(effic) FROM table_name_58 WHERE avg_g = 58.9", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE tweets (text VARCHAR, createdate VARCHAR)", "role": "system" }, { "content": "List the text of all tweets in the order of date.", "role": "user" }, { "content": "SELECT text FROM tweets ORDER BY createdate", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE member (card_number VARCHAR, name VARCHAR, hometown VARCHAR, LEVEL VARCHAR)", "role": "system" }, { "content": "Show card number, name, and hometown for all members in a descending order of level.", "role": "user" }, { "content": "SELECT card_number, name, hometown FROM member ORDER BY LEVEL 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_15621965_10 (years_in_orlando VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "Name the years in orlando that the player from concord hs was in", "role": "user" }, { "content": "SELECT years_in_orlando FROM table_15621965_10 WHERE school_club_team = \"Concord HS\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who were the director/s of episodes written by Mike Daniels?", "role": "user" }, { "content": "SELECT directed_by FROM table_18274425_1 WHERE written_by = \"Mike Daniels\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year_named INTEGER, name VARCHAR)", "role": "system" }, { "content": "What is the year that nahete colles was named?", "role": "user" }, { "content": "SELECT MAX(year_named) FROM table_name_1 WHERE name = \"nahete colles\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Result, when Date is \"December 12\"?", "role": "user" }, { "content": "SELECT result FROM table_name_70 WHERE date = \"december 12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25547943_1 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who directed the episode that was written by Bill Lawrence? ", "role": "user" }, { "content": "SELECT directed_by FROM table_25547943_1 WHERE written_by = \"Bill Lawrence\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_run INTEGER, location VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On June 17 in Tiger stadium, what was the average home run?", "role": "user" }, { "content": "SELECT AVG(home_run) FROM table_name_43 WHERE location = \"tiger stadium\" AND date = \"june 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_1134091_4 (district VARCHAR, reason_for_change VARCHAR)", "role": "system" }, { "content": "What was the district when the reason for change was died January 1, 1974?", "role": "user" }, { "content": "SELECT district FROM table_1134091_4 WHERE reason_for_change = \"Died January 1, 1974\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gender VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which gender has a Name of rangitoto school?", "role": "user" }, { "content": "SELECT gender FROM table_name_6 WHERE name = \"rangitoto school\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10470082_8 (us_air_date VARCHAR, writer VARCHAR)", "role": "system" }, { "content": "When did the episode written by Jim Morris air?", "role": "user" }, { "content": "SELECT us_air_date FROM table_10470082_8 WHERE writer = \"Jim Morris\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, years VARCHAR, games VARCHAR)", "role": "system" }, { "content": "What was the average of games that were one in 1978 that were smaller than 141?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_42 WHERE years = \"1978\" AND games < 141", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)", "role": "system" }, { "content": "What is the name of the course that has the most student enrollment?", "role": "user" }, { "content": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?", "role": "user" }, { "content": "SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (in_vitro___in_vivo VARCHAR, route_of_administration VARCHAR, investigation VARCHAR)", "role": "system" }, { "content": "Tell me the in-vitro for Route of administration of iv and Investigation of somatostatin receptor imaging", "role": "user" }, { "content": "SELECT in_vitro___in_vivo FROM table_name_96 WHERE route_of_administration = \"iv\" AND investigation = \"somatostatin receptor imaging\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14638077_2 (pole_position VARCHAR, date VARCHAR)", "role": "system" }, { "content": "who is the the pole position with date being august 10", "role": "user" }, { "content": "SELECT pole_position FROM table_14638077_2 WHERE date = \"August 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_87 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the record on July 28?", "role": "user" }, { "content": "SELECT record FROM table_name_87 WHERE date = \"july 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 festival_detail (Num_of_Audience INTEGER)", "role": "system" }, { "content": "What is the average number of audience for festivals?", "role": "user" }, { "content": "SELECT AVG(Num_of_Audience) FROM festival_detail", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What were the bowling figures for the competition at Pietermaritzburg?", "role": "user" }, { "content": "SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = \"pietermaritzburg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (democratic_ticket VARCHAR, socialist_ticket VARCHAR)", "role": "system" }, { "content": "Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?", "role": "user" }, { "content": "SELECT democratic_ticket FROM table_name_71 WHERE socialist_ticket = \"edna mitchell blue\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (resolution VARCHAR, network VARCHAR)", "role": "system" }, { "content": "What is the resolution of the network Carismatv?", "role": "user" }, { "content": "SELECT resolution FROM table_name_47 WHERE network = \"carismatv\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, place VARCHAR)", "role": "system" }, { "content": "What Player has a Place of 2?", "role": "user" }, { "content": "SELECT player FROM table_name_78 WHERE place = \"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_15438337_1 (institution VARCHAR, country VARCHAR)", "role": "system" }, { "content": "Which company was based in London, United Kingdom?", "role": "user" }, { "content": "SELECT institution FROM table_15438337_1 WHERE country = \"London, United Kingdom\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (born_in_other_eu_state__millions_ INTEGER, total_foreign_born__millions_ VARCHAR, total_population__millions_ VARCHAR)", "role": "system" }, { "content": "What was the average number of people born in other EU states in millions, when the total number of foreign-born people in millions was 0.5, and when the total population in millions was less than 5.534?", "role": "user" }, { "content": "SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_57 WHERE total_foreign_born__millions_ = 0.5 AND total_population__millions_ < 5.534", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (player VARCHAR, school VARCHAR, division VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?", "role": "user" }, { "content": "SELECT player FROM table_name_21 WHERE division = \"west\" AND team = \"special teams\" AND school = \"toledo western michigan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23501776_16 (points VARCHAR)", "role": "system" }, { "content": "Name the points won for 1230", "role": "user" }, { "content": "SELECT points AS won FROM table_23501776_16 WHERE points = 1230", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (round VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is the Round for the jiu-jitsu vs martial arts?", "role": "user" }, { "content": "SELECT round FROM table_name_20 WHERE event = \"jiu-jitsu vs martial arts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (manufacturer VARCHAR, type VARCHAR)", "role": "system" }, { "content": "Which manucfaturer's type was 2-6-0?", "role": "user" }, { "content": "SELECT manufacturer FROM table_name_68 WHERE type = \"2-6-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_12310814_1 (original_artist VARCHAR, episode VARCHAR)", "role": "system" }, { "content": "What's the original artist of the song performed in the top 3 episode?", "role": "user" }, { "content": "SELECT original_artist FROM table_12310814_1 WHERE episode = \"Top 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_54 (year INTEGER, award VARCHAR, nominated_work VARCHAR, category VARCHAR)", "role": "system" }, { "content": "What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_54 WHERE nominated_work = \"the mineola twins\" AND category = \"outstanding actress in a play\" AND award = \"drama desk award\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (against INTEGER, date VARCHAR)", "role": "system" }, { "content": "What's the against on 17/01/1976?", "role": "user" }, { "content": "SELECT MIN(against) FROM table_name_74 WHERE date = \"17/01/1976\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who vacated the Pennsylvania 6th district?", "role": "user" }, { "content": "SELECT vacator FROM table_225098_4 WHERE district = \"Pennsylvania 6th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (played INTEGER, place VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the highest games Played where the Place is 10 and Points are less than 17?", "role": "user" }, { "content": "SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 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_4 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR)", "role": "system" }, { "content": "What transfer fee did Birmingham City get on 30 June 2010?", "role": "user" }, { "content": "SELECT transfer_fee FROM table_name_4 WHERE ends = \"30 june 2010\" AND moving_from = \"birmingham city\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_238124_1 (bleeding_time VARCHAR, condition VARCHAR)", "role": "system" }, { "content": "What is the bleeding time for glanzmann's thrombasthenia?", "role": "user" }, { "content": "SELECT bleeding_time FROM table_238124_1 WHERE condition = \"Glanzmann's thrombasthenia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What batting team played in Chittagong in 2003?", "role": "user" }, { "content": "SELECT batting_team FROM table_name_63 WHERE venue = \"chittagong\" AND season = \"2003\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (current_status VARCHAR, make VARCHAR, number_of_seats VARCHAR)", "role": "system" }, { "content": "What is the current status for GM Advanced Design with more than 41 seats?", "role": "user" }, { "content": "SELECT current_status FROM table_name_64 WHERE make = \"gm advanced design\" AND number_of_seats > 41", "role": "assistant" } ]