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_9 (lost INTEGER, goals_against VARCHAR)", "role": "system" }, { "content": "What are the lowest lost has 111 as the goals against?", "role": "user" }, { "content": "SELECT MIN(lost) FROM table_name_9 WHERE goals_against = 111", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (husband VARCHAR, image VARCHAR)", "role": "system" }, { "content": "Who was the husband of marie of baden-sponheim?", "role": "user" }, { "content": "SELECT husband FROM table_name_74 WHERE image = \"marie of baden-sponheim\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Tell me the constructor that has 35 Laps with a grid more than 5", "role": "user" }, { "content": "SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 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_20217456_7 (season VARCHAR, rl_süd__1st_ VARCHAR)", "role": "system" }, { "content": "What season did SV Darmstadt 98 end up at RL Süd (1st)?", "role": "user" }, { "content": "SELECT season FROM table_20217456_7 WHERE rl_süd__1st_ = \"SV Darmstadt 98\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.", "role": "user" }, { "content": "SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = \"DDR3-1333\" AND frequency = \"2.66-2.8GHz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (roll INTEGER, name VARCHAR, decile VARCHAR, authority VARCHAR)", "role": "system" }, { "content": "What is the highest Roll of Orere School with a Decile less than 8 with a State Authority?", "role": "user" }, { "content": "SELECT MAX(roll) FROM table_name_98 WHERE decile < 8 AND authority = \"state\" AND name = \"orere school\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR)", "role": "system" }, { "content": "What is the lowest population for the area that has a density of 36.7?", "role": "user" }, { "content": "SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.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_19 (game INTEGER, record VARCHAR)", "role": "system" }, { "content": "Which Game has a Record of 27-11-10?", "role": "user" }, { "content": "SELECT AVG(game) FROM table_name_19 WHERE record = \"27-11-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_50 (played VARCHAR, points_difference VARCHAR)", "role": "system" }, { "content": "Which Played has a Points difference of +261?", "role": "user" }, { "content": "SELECT played FROM table_name_50 WHERE points_difference = \"+261\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18963843_1 (_percentage_asian_american VARCHAR, indian_american_population__2010_ VARCHAR)", "role": "system" }, { "content": "Name the % asian american for 23526", "role": "user" }, { "content": "SELECT _percentage_asian_american FROM table_18963843_1 WHERE indian_american_population__2010_ = 23526", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?", "role": "user" }, { "content": "SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = \"+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_99 (location VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "What's the location for the Spartans?", "role": "user" }, { "content": "SELECT location FROM table_name_99 WHERE mascot = \"spartans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Which Mascot has a Previous conference of independents, and a Location of akron?", "role": "user" }, { "content": "SELECT mascot FROM table_name_38 WHERE previous_conference = \"independents\" AND location = \"akron\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE church (name VARCHAR, open_date VARCHAR)", "role": "system" }, { "content": "Show the name and opening year for three churches that opened most recently.", "role": "user" }, { "content": "SELECT name, open_date FROM church ORDER BY open_date DESC LIMIT 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_18 (margin VARCHAR, championship VARCHAR)", "role": "system" }, { "content": "What is the margin at the Nabisco Championship?", "role": "user" }, { "content": "SELECT margin FROM table_name_18 WHERE championship = \"nabisco championship\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2646656_3 (candidates VARCHAR, result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?", "role": "user" }, { "content": "SELECT candidates FROM table_2646656_3 WHERE result = \"Retired Republican hold\" AND incumbent = \"Philemon Bliss\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Name the number of first elected for kentucky 3", "role": "user" }, { "content": "SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = \"Kentucky 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_13 (population INTEGER, town_city VARCHAR)", "role": "system" }, { "content": "What is Ivaiporã, pr's biggest population?", "role": "user" }, { "content": "SELECT MAX(population) FROM table_name_13 WHERE town_city = \"ivaiporã, pr\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (decimal VARCHAR, max_memory__kwords_ VARCHAR, byte_string VARCHAR, memory_map VARCHAR)", "role": "system" }, { "content": "What is the decimal value when the memory map and byte string are standard, and the max memory is 512?", "role": "user" }, { "content": "SELECT decimal FROM table_name_19 WHERE byte_string = \"standard\" AND memory_map = \"standard\" AND max_memory__kwords_ = 512", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "What company constructed the car with more than 0 laps and shows 5 for grid?", "role": "user" }, { "content": "SELECT constructor FROM table_name_42 WHERE laps > 0 AND grid = 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_15333005_1 (Ends VARCHAR, pa VARCHAR)", "role": "system" }, { "content": "Name the ends lost for 67 pa", "role": "user" }, { "content": "SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, award VARCHAR)", "role": "system" }, { "content": "Which Result has an Award of virgin media tv awards?", "role": "user" }, { "content": "SELECT result FROM table_name_45 WHERE award = \"virgin media tv awards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_202365_2 (а_а_ VARCHAR, a VARCHAR, гь_гь_ VARCHAR, ɡʲ VARCHAR)", "role": "system" }, { "content": "what is а а [a] when гь гь [ɡʲ] is л л [l]?", "role": "user" }, { "content": "SELECT а_а_[a] FROM table_202365_2 WHERE гь_гь_[ɡʲ] = \"Л л [l]\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR)", "role": "system" }, { "content": "Who was the candidate when the result - % was 0.4%?", "role": "user" }, { "content": "SELECT candidate FROM table_25818630_2 WHERE result____percentage = \"0.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_43 (hometown VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the hometown for a college in Wisconsin?", "role": "user" }, { "content": "SELECT hometown FROM table_name_43 WHERE college = \"wisconsin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR, cuts_made VARCHAR)", "role": "system" }, { "content": "What was the highest Top-10, when the Top-5 was greater than 3, when the Cuts made were 20, and when the Top-25 was more than 10?", "role": "user" }, { "content": "SELECT MAX(top_10) FROM table_name_77 WHERE top_5 > 3 AND cuts_made = 20 AND top_25 > 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_27 (location VARCHAR, established VARCHAR)", "role": "system" }, { "content": "What is the location of the school established in 2013?", "role": "user" }, { "content": "SELECT location FROM table_name_27 WHERE established = 2013", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)", "role": "system" }, { "content": "What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?", "role": "user" }, { "content": "SELECT engine FROM table_name_12 WHERE transmission = \"4-speed automatic\" AND acceleration_0_100km_h__0_62mph_ = \"10.4 s\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What country is Istanbul in?", "role": "user" }, { "content": "SELECT country FROM table_name_11 WHERE city = \"istanbul\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (highest_rank VARCHAR, total VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What rank is Takatōriki having less than 30 total?", "role": "user" }, { "content": "SELECT highest_rank FROM table_name_60 WHERE total < 30 AND name = \"takatōriki\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2509113_2 (vinto_municipality INTEGER, language VARCHAR)", "role": "system" }, { "content": "If the language is Spanish, what is the Vinto Municipality minimum?", "role": "user" }, { "content": "SELECT MIN(vinto_municipality) FROM table_2509113_2 WHERE language = \"Spanish\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "what is the outcome when the surface is grass on 23 june 1997?", "role": "user" }, { "content": "SELECT outcome FROM table_name_45 WHERE surface = \"grass\" AND date = \"23 june 1997\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the score of the match on July 29, 1990?", "role": "user" }, { "content": "SELECT score FROM table_name_79 WHERE date = \"july 29, 1990\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_19 (township VARCHAR, latitude VARCHAR)", "role": "system" }, { "content": "how is called the township where the latitude is 47.377790", "role": "user" }, { "content": "SELECT township FROM table_18600760_19 WHERE latitude = \"47.377790\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_228973_9 (title VARCHAR, original_air_date VARCHAR)", "role": "system" }, { "content": "If the original air date is February 4, 2003, what is the episode title?", "role": "user" }, { "content": "SELECT title FROM table_228973_9 WHERE original_air_date = \"February 4, 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_43 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Nam ethe place for pat perez", "role": "user" }, { "content": "SELECT place FROM table_name_43 WHERE player = \"pat perez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (cores VARCHAR, part_number_s_ VARCHAR)", "role": "system" }, { "content": "What's the cores with the part number cl8064701477202?", "role": "user" }, { "content": "SELECT cores FROM table_name_89 WHERE part_number_s_ = \"cl8064701477202\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (general_classification VARCHAR, points_classification VARCHAR)", "role": "system" }, { "content": "What general classification has levi leipheimer as points classification?", "role": "user" }, { "content": "SELECT general_classification FROM table_name_26 WHERE points_classification = \"levi leipheimer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_171666_1 (administrative_division VARCHAR, area__km²_ VARCHAR)", "role": "system" }, { "content": "What is the administrative division that has an area of 30 km^2?", "role": "user" }, { "content": "SELECT administrative_division FROM table_171666_1 WHERE area__km²_ = 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_20 (school_club_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which team was Roy de Walt a player on?", "role": "user" }, { "content": "SELECT school_club_team FROM table_name_20 WHERE player = \"roy de walt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "On what date was Wimbledon the home team?", "role": "user" }, { "content": "SELECT date FROM table_name_81 WHERE home_team = \"wimbledon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24225238_1 (supporting_actress VARCHAR, leading_actress VARCHAR)", "role": "system" }, { "content": "Who was the supporting actress in a film with Diane Keaton as the leading actress?", "role": "user" }, { "content": "SELECT supporting_actress FROM table_24225238_1 WHERE leading_actress = \"Diane Keaton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, year VARCHAR)", "role": "system" }, { "content": "What is the total point for the year listed in 1988?", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_58 WHERE year = 1988", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 are the duration of the longest and shortest pop tracks in milliseconds?", "role": "user" }, { "content": "SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE 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_30 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the name of the player with a score of 72-68-70=210?", "role": "user" }, { "content": "SELECT player FROM table_name_30 WHERE score = 72 - 68 - 70 = 210", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (counties INTEGER, candidate VARCHAR, delegates VARCHAR)", "role": "system" }, { "content": "What is the highest Counties when Mitt Romney was the candidate with less than 0 delegates?", "role": "user" }, { "content": "SELECT MAX(counties) FROM table_name_62 WHERE candidate = \"mitt romney\" AND delegates < 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_18304058_2 (team_name VARCHAR, sports VARCHAR, schools VARCHAR)", "role": "system" }, { "content": "What is the name of the team from the Elverado Trico school in football? ", "role": "user" }, { "content": "SELECT team_name FROM table_18304058_2 WHERE sports = \"Football\" AND schools = \"Elverado Trico\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (overall INTEGER, round VARCHAR, position VARCHAR)", "role": "system" }, { "content": "WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION?", "role": "user" }, { "content": "SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = \"rb\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (game INTEGER, score VARCHAR)", "role": "system" }, { "content": "What is the sum for the game with a score of 103–126?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_91 WHERE score = \"103–126\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16025095_1 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the minimum crowd on January 24, 1987?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_16025095_1 WHERE date = \"January 24, 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 projects (name VARCHAR, hours INTEGER)", "role": "system" }, { "content": "Find the name of projects that require between 100 and 300 hours of work.", "role": "user" }, { "content": "SELECT name FROM projects WHERE hours BETWEEN 100 AND 300", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341604_22 (party VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "what's the party with candidates being silvio conte (r) unopposed", "role": "user" }, { "content": "SELECT party FROM table_1341604_22 WHERE candidates = \"Silvio Conte (R) Unopposed\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16864968_9 (opponent VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Nam the opponent for prudential center", "role": "user" }, { "content": "SELECT opponent FROM table_16864968_9 WHERE location = \"Prudential Center\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many laps were there in 2002?", "role": "user" }, { "content": "SELECT laps FROM table_2196127_1 WHERE year = \"2002\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "Which team 1 has vfl gummersbach as team 2?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_13 WHERE team_2 = \"vfl gummersbach\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (career VARCHAR)", "role": "system" }, { "content": "What is the career for the 2006 3r, and the 1999 2r?", "role": "user" }, { "content": "SELECT career FROM table_name_70 WHERE 2006 = \"3r\" AND 1999 = \"2r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_169766_13 (show VARCHAR, previous_network VARCHAR)", "role": "system" }, { "content": "Which show as previously on The Family Channel?", "role": "user" }, { "content": "SELECT show FROM table_169766_13 WHERE previous_network = \"The Family Channel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "The venue of Rome has which date?", "role": "user" }, { "content": "SELECT date FROM table_name_84 WHERE venue = \"rome\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE wrestler (Reign VARCHAR, LOCATION VARCHAR)", "role": "system" }, { "content": "What are the distinct reigns of wrestlers whose location is not \"Tokyo,Japan\" ?", "role": "user" }, { "content": "SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> \"Tokyo , Japan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Certificate (aid VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR)", "role": "system" }, { "content": "Show the name of aircraft which fewest people have its certificate.", "role": "user" }, { "content": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid 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_16575609_1 (pick__number INTEGER, player VARCHAR)", "role": "system" }, { "content": "Where did Brendon Labatte get picked?", "role": "user" }, { "content": "SELECT MIN(pick__number) FROM table_16575609_1 WHERE player = \"Brendon LaBatte\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (projects_templates VARCHAR, test_impact_analysis VARCHAR, intellitrace VARCHAR, windows_phone_development VARCHAR)", "role": "system" }, { "content": "Which Projects template has an IntelliTrace of no, and a Windows Phone development of yes, and a Test impact analysis of no?", "role": "user" }, { "content": "SELECT projects_templates FROM table_name_39 WHERE intellitrace = \"no\" AND windows_phone_development = \"yes\" AND test_impact_analysis = \"no\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (league_goals VARCHAR, fa_cup_apps VARCHAR)", "role": "system" }, { "content": "Which league goals has FA cup apps of 2?", "role": "user" }, { "content": "SELECT league_goals FROM table_name_39 WHERE fa_cup_apps = 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (kanji VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the Kanji for the Ayanami dd-45?", "role": "user" }, { "content": "SELECT kanji FROM table_name_84 WHERE name = \"ayanami dd-45\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14330096_4 (title VARCHAR, director VARCHAR, writer VARCHAR)", "role": "system" }, { "content": "Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?", "role": "user" }, { "content": "SELECT title FROM table_14330096_4 WHERE director = \"Patrick Lau\" AND writer = \"Lisa Holdsworth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (sn_sb___percentage_ VARCHAR, liquid_at__°c_ VARCHAR)", "role": "system" }, { "content": "What is the Sn/Sb percentage that is liquid at 258 degrees C?", "role": "user" }, { "content": "SELECT sn_sb___percentage_ FROM table_name_4 WHERE liquid_at__°c_ = \"258\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1346118_2 (incumbent VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "Who was the incumbent when ran william b. oliver (d) unopposed?", "role": "user" }, { "content": "SELECT incumbent FROM table_1346118_2 WHERE candidates = \"William B. Oliver (D) Unopposed\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25773915_11 (int INTEGER, player VARCHAR)", "role": "system" }, { "content": "If the player is Maake Kemoeatu, what is the int maximum?", "role": "user" }, { "content": "SELECT MAX(int) FROM table_25773915_11 WHERE player = \"Maake Kemoeatu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17758010_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "How many original air dates have U.S. Views (millions) of 19.49?", "role": "user" }, { "content": "SELECT COUNT(original_air_date) FROM table_17758010_2 WHERE us_viewers__millions_ = \"19.49\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)", "role": "system" }, { "content": "How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?", "role": "user" }, { "content": "SELECT chipset FROM table_199666_1 WHERE codename = \"Arrandale\" AND wireless_lan = \"Intel centrino Ultimate-N 6300\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, title VARCHAR)", "role": "system" }, { "content": "Who has the title of marquis?", "role": "user" }, { "content": "SELECT name FROM table_name_52 WHERE title = \"marquis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (assists INTEGER, name VARCHAR)", "role": "system" }, { "content": "What's the largest amount of assists juan ignacio sánchez ever had?", "role": "user" }, { "content": "SELECT MAX(assists) FROM table_name_30 WHERE name = \"juan ignacio sánchez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "Which acquisition via has a position of forward and is on the state school or club?", "role": "user" }, { "content": "SELECT acquisition_via FROM table_name_79 WHERE position = \"forward\" AND school_club_team = \"state\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15315816_1 (year VARCHAR, champion VARCHAR)", "role": "system" }, { "content": "When are all years that the champion is Ji Min Jeong?", "role": "user" }, { "content": "SELECT year FROM table_15315816_1 WHERE champion = \"Ji Min Jeong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the Score of the Competition with a 5-0 Result?", "role": "user" }, { "content": "SELECT score FROM table_name_33 WHERE result = \"5-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_34 (rank VARCHAR, wins VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the rank associated with the team that has more than 2 wins and has greater than 204 points?", "role": "user" }, { "content": "SELECT rank FROM table_name_34 WHERE wins > 2 AND points > 204", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (surface VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "On which surface did Mathieu play against Antonio Veić?", "role": "user" }, { "content": "SELECT surface FROM table_name_84 WHERE opponent_in_the_final = \"antonio veić\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, year_s__won VARCHAR)", "role": "system" }, { "content": "What is the average total in 1969?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_27 WHERE year_s__won = \"1969\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (series VARCHAR, conference VARCHAR, season VARCHAR, format VARCHAR)", "role": "system" }, { "content": "What series has a season after 2008, super leg final as the format, and conference v as the conference?", "role": "user" }, { "content": "SELECT series FROM table_name_39 WHERE season > 2008 AND format = \"super leg final\" AND conference = \"conference v\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the attendance during the november 16, 1975 game?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_18 WHERE date = \"november 16, 1975\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (player VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "Name The Player who has a Pick # of 27?", "role": "user" }, { "content": "SELECT player FROM table_name_13 WHERE pick__number = 27", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23286112_12 (date VARCHAR, series VARCHAR)", "role": "system" }, { "content": "What date was the series 0-2?", "role": "user" }, { "content": "SELECT date FROM table_23286112_12 WHERE series = \"0-2\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (coach VARCHAR, win__percentage VARCHAR)", "role": "system" }, { "content": "What is Coach, when Win % is .352?", "role": "user" }, { "content": "SELECT coach FROM table_name_99 WHERE win__percentage = \".352\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week VARCHAR, attendance INTEGER)", "role": "system" }, { "content": "How many weeks had an attendance of over 68,000?", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_name_74 WHERE attendance > 68 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_6 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the name of the team leading on August 17?", "role": "user" }, { "content": "SELECT team FROM table_name_6 WHERE date = \"august 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_39 (overall VARCHAR, round VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "How many Overall went in a round larger than 7 with a pick less than 7?", "role": "user" }, { "content": "SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 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_78 (nationality VARCHAR, year VARCHAR, player VARCHAR)", "role": "system" }, { "content": "After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards?", "role": "user" }, { "content": "SELECT nationality FROM table_name_78 WHERE year > 2009 AND player = \"dwayne de rosario category:articles with hcards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "Which engine has a Lotus 49c chassis?", "role": "user" }, { "content": "SELECT engine FROM table_name_41 WHERE chassis = \"lotus 49c\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR)", "role": "system" }, { "content": "What was the highest match when the away opponent was Dalian Shide Siwu?", "role": "user" }, { "content": "SELECT MAX(match) FROM table_name_53 WHERE opponent_team = \"dalian shide siwu\" AND home_away = \"away\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2104176_1 (homeland_security_distinguished_service_medal VARCHAR, medal_of_honor VARCHAR)", "role": "system" }, { "content": "WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?", "role": "user" }, { "content": "SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = \"Coast Guard Medal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (acquisition_via VARCHAR, position VARCHAR)", "role": "system" }, { "content": "How was the player in the position of Center acquired?", "role": "user" }, { "content": "SELECT acquisition_via FROM table_name_26 WHERE position = \"center\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (potential_prize_money VARCHAR, mole VARCHAR)", "role": "system" }, { "content": "When the Mole was Petrina Edge, what was the potential prize money?", "role": "user" }, { "content": "SELECT potential_prize_money FROM table_name_70 WHERE mole = \"petrina edge\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (set_1 VARCHAR, set_3 VARCHAR)", "role": "system" }, { "content": "What is Set 1, when Set 3 is 22-25?", "role": "user" }, { "content": "SELECT set_1 FROM table_name_39 WHERE set_3 = \"22-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_47 (pick__number VARCHAR, name VARCHAR)", "role": "system" }, { "content": "How many picks does chad owens have?", "role": "user" }, { "content": "SELECT COUNT(pick__number) FROM table_name_47 WHERE name = \"chad owens\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wind__m_s_ INTEGER, nation VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "what is the wind speed when brenda morehead was in the united states?", "role": "user" }, { "content": "SELECT MIN(wind__m_s_) FROM table_name_16 WHERE nation = \"united states\" AND athlete = \"brenda morehead\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE organization_contact_individuals (organization_id VARCHAR); CREATE TABLE organizations (organization_name VARCHAR, organization_id VARCHAR)", "role": "system" }, { "content": "What is the name of organization that has the greatest number of contact individuals?", "role": "user" }, { "content": "SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_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_38 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "In the venue of Glenferrie Oval, what is the home team score?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_38 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 table_name_20 (year INTEGER, entrant VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the highest year team tyrrell earned more than 14 points?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_20 WHERE entrant = \"team tyrrell\" AND points > 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_29 (loss VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the loss of the game with a record of 84-71?", "role": "user" }, { "content": "SELECT loss FROM table_name_29 WHERE record = \"84-71\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (character VARCHAR, result VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which characters after 2003 won?", "role": "user" }, { "content": "SELECT character FROM table_name_1 WHERE result = \"won\" AND year > 2003", "role": "assistant" } ]