messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (host_team VARCHAR, final_score VARCHAR)", "role": "system" }, { "content": "Who was the host team for the game with the final score of 26-24?", "role": "user" }, { "content": "SELECT host_team FROM table_name_67 WHERE final_score = \"26-24\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12576536_1 (population__maryborough_ VARCHAR, population__woocoo_ VARCHAR)", "role": "system" }, { "content": "Name the population of maryborough when population of woocoo is 2700", "role": "user" }, { "content": "SELECT population__maryborough_ FROM table_12576536_1 WHERE population__woocoo_ = 2700", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, gold VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "How many bronzes for the nation with 2 golds and ranked below 2?", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_9 WHERE gold = 2 AND rank > 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_24 (time_retired VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "what is the time/retired when the laps is 52?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_24 WHERE laps = 52", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the country of Craig Stadler?", "role": "user" }, { "content": "SELECT country FROM table_name_65 WHERE player = \"craig stadler\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is 2007, when 2003 is 1R?", "role": "user" }, { "content": "SELECT 2007 FROM table_name_54 WHERE 2003 = \"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_74 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What was the smallest crowd when Melbourne was the away team?", "role": "user" }, { "content": "SELECT MIN(crowd) FROM table_name_74 WHERE away_team = \"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_1831262_2 (hydroxymatairesinol VARCHAR, sesamin VARCHAR)", "role": "system" }, { "content": "what is the number of hydroxymatairesinol where sesamin is 62724?", "role": "user" }, { "content": "SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = \"62724\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR)", "role": "system" }, { "content": "Show the name of cities in the county that has the largest number of police officers.", "role": "user" }, { "content": "SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers 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_25 (premierships VARCHAR, league VARCHAR)", "role": "system" }, { "content": "How many premierships for the commonwealth bank trophy league?", "role": "user" }, { "content": "SELECT premierships FROM table_name_25 WHERE league = \"commonwealth bank trophy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR)", "role": "system" }, { "content": "What are the names of representatives in descending order of votes?", "role": "user" }, { "content": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (interview_subject VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What Interview subject was on a Date that is 11-92?", "role": "user" }, { "content": "SELECT interview_subject FROM table_name_42 WHERE date = \"11-92\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_256286_21 (type VARCHAR, meas_num VARCHAR)", "role": "system" }, { "content": "What type of proposal is measure number 3?", "role": "user" }, { "content": "SELECT type FROM table_256286_21 WHERE meas_num = 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_24781886_3 (total INTEGER, _number VARCHAR)", "role": "system" }, { "content": "When 3 is the number what is the highest total?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_24781886_3 WHERE _number = 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_70 (construction_completed VARCHAR, county VARCHAR)", "role": "system" }, { "content": "What is the date construction is completed in Jo Daviess county?", "role": "user" }, { "content": "SELECT construction_completed FROM table_name_70 WHERE county = \"jo daviess\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17718005_2 (goals_for VARCHAR, goal_difference VARCHAR)", "role": "system" }, { "content": "When +10 is the goal difference what is the goals for?", "role": "user" }, { "content": "SELECT goals_for FROM table_17718005_2 WHERE goal_difference = \"+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_24807406_3 (goals INTEGER)", "role": "system" }, { "content": "What was the lowest goals ever achieved?", "role": "user" }, { "content": "SELECT MIN(goals) FROM table_24807406_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_60 (outcome VARCHAR, opponents_in_the_final VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "What was the outcome when the oppenent was serena williams venus williams and had a hard surface?", "role": "user" }, { "content": "SELECT outcome FROM table_name_60 WHERE opponents_in_the_final = \"serena williams venus williams\" AND surface = \"hard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_262481_2 (institution VARCHAR, current_conference VARCHAR)", "role": "system" }, { "content": "What is the institution whose current conference is gcac (naia)? ", "role": "user" }, { "content": "SELECT institution FROM table_262481_2 WHERE current_conference = \"GCAC (NAIA)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country does Greg Norman represent?", "role": "user" }, { "content": "SELECT country FROM table_name_26 WHERE player = \"greg norman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11964263_13 (game INTEGER)", "role": "system" }, { "content": "Name the minimum game", "role": "user" }, { "content": "SELECT MIN(game) FROM table_11964263_13", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (section VARCHAR, level VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What section were they in when there were tier 2 in 1996?", "role": "user" }, { "content": "SELECT section FROM table_name_30 WHERE level = \"tier 2\" AND season = 1996", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR)", "role": "system" }, { "content": "What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = \"valverde\" AND area > 823", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Country of the Player with a Score of 71-73-71=215?", "role": "user" }, { "content": "SELECT country FROM table_name_85 WHERE score = 71 - 73 - 71 = 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_2562572_5 (population__2002_ INTEGER, urban_settlement VARCHAR)", "role": "system" }, { "content": "Name the population for 2002 being ada", "role": "user" }, { "content": "SELECT MIN(population__2002_) FROM table_2562572_5 WHERE urban_settlement = \"Ada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR)", "role": "system" }, { "content": "Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?", "role": "user" }, { "content": "SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = \"gb-mg maglificio\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2655016_4 (episode_title VARCHAR, nick_prod__number VARCHAR)", "role": "system" }, { "content": " What's the name of the episode associated with Nick production number 342? ", "role": "user" }, { "content": "SELECT episode_title FROM table_2655016_4 WHERE nick_prod__number = 342", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2216245_2 (top_5 INTEGER, team_s_ VARCHAR)", "role": "system" }, { "content": "How many top 5s when he was on team #28/#49 jay robinson racing?", "role": "user" }, { "content": "SELECT MAX(top_5) FROM table_2216245_2 WHERE team_s_ = \"#28/#49 Jay Robinson 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_71 (latitude INTEGER, geo_id VARCHAR, longitude VARCHAR, township VARCHAR)", "role": "system" }, { "content": "What is the latitude that has a longitude larger than -101.819319 in Martin and a GEO ID of 3809951140?", "role": "user" }, { "content": "SELECT SUM(latitude) FROM table_name_71 WHERE longitude > -101.819319 AND township = \"martin\" AND geo_id = 3809951140", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (capacity VARCHAR, class VARCHAR)", "role": "system" }, { "content": "Which capacity has the class 4c3h?", "role": "user" }, { "content": "SELECT capacity FROM table_name_37 WHERE class = \"4c3h\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1427998_1 (division VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the division for the year 2006?", "role": "user" }, { "content": "SELECT division FROM table_1427998_1 WHERE year = 2006", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, players VARCHAR)", "role": "system" }, { "content": "Players of amanda coetzer and marcos ondruska is what team?", "role": "user" }, { "content": "SELECT team FROM table_name_19 WHERE players = \"amanda coetzer and marcos ondruska\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, average VARCHAR, rank_by_average VARCHAR)", "role": "system" }, { "content": "Name the most total with average less than 36.5 and rank by average of 14", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_39 WHERE average < 36.5 AND rank_by_average = 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_74 (Id VARCHAR)", "role": "system" }, { "content": "Which Tournament in 2010 also has Grand Slam tournaments in 2011", "role": "user" }, { "content": "SELECT 2010 FROM table_name_74 WHERE 2011 = \"grand slam tournaments\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (series__number INTEGER, original_air_date VARCHAR)", "role": "system" }, { "content": "Tell me the highest series # for september 22, 1976", "role": "user" }, { "content": "SELECT MAX(series__number) FROM table_name_53 WHERE original_air_date = \"september 22, 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_2226343_1 (laps VARCHAR, race_time VARCHAR)", "role": "system" }, { "content": "How many laps have a race time of 3:31:24?", "role": "user" }, { "content": "SELECT laps FROM table_2226343_1 WHERE race_time = \"3:31:24\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)", "role": "system" }, { "content": "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.", "role": "user" }, { "content": "SELECT first_name, last_name, salary, department_id, MAX(salary) FROM employees GROUP BY department_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (events INTEGER, rank VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is the average events where the rank is smaller than 2 and wins are smaller than 5?", "role": "user" }, { "content": "SELECT AVG(events) FROM table_name_11 WHERE rank < 2 AND wins < 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 enzyme (name VARCHAR, LOCATION VARCHAR)", "role": "system" }, { "content": "List the names and the locations that the enzymes can make an effect.", "role": "user" }, { "content": "SELECT name, LOCATION FROM enzyme", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26448179_2 (written_by VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": " He wrote production number 102? ", "role": "user" }, { "content": "SELECT written_by FROM table_26448179_2 WHERE production_code = \"102\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (date VARCHAR, home VARCHAR)", "role": "system" }, { "content": "When did they play Utah at home?", "role": "user" }, { "content": "SELECT date FROM table_name_38 WHERE home = \"utah\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (call_sign VARCHAR, branding VARCHAR)", "role": "system" }, { "content": "What's the call sign for Jack FM?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_60 WHERE branding = \"jack 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_name_67 (draw VARCHAR, place INTEGER)", "role": "system" }, { "content": "How many draw is in a place that is less than 1?", "role": "user" }, { "content": "SELECT COUNT(draw) FROM table_name_67 WHERE place < 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_13770460_3 (type VARCHAR, transfer_fee VARCHAR)", "role": "system" }, { "content": "What is the type of the player whose transfer fee was €20m?", "role": "user" }, { "content": "SELECT type FROM table_13770460_3 WHERE transfer_fee = \"€20M\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, area__km_2__ INTEGER)", "role": "system" }, { "content": "Which place has more area (km 2) than 34.42?", "role": "user" }, { "content": "SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_221315_3 (pilot VARCHAR, max_altitude__miles_ VARCHAR)", "role": "system" }, { "content": "Who was the pilot of max altitude of 55.9 miles?", "role": "user" }, { "content": "SELECT pilot FROM table_221315_3 WHERE max_altitude__miles_ = \"55.9\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11636213_7 (partnering VARCHAR, result VARCHAR)", "role": "system" }, { "content": "How many matches had the result of 6–3, 6–2?", "role": "user" }, { "content": "SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = \"6–3, 6–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_19730892_1 (nation VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the nation where jeff barker is from", "role": "user" }, { "content": "SELECT nation FROM table_19730892_1 WHERE name = \"Jeff Barker\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (valency_change VARCHAR, type VARCHAR)", "role": "system" }, { "content": "WHat is the Valency change of associative type?", "role": "user" }, { "content": "SELECT valency_change FROM table_name_1 WHERE type = \"associative\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_43 (type VARCHAR, cyrillic_name_other_names VARCHAR)", "role": "system" }, { "content": "How many entries are there for type for the cyrillic name other names is падина (slovak: padina)?", "role": "user" }, { "content": "SELECT COUNT(type) FROM table_2562572_43 WHERE cyrillic_name_other_names = \"Падина (Slovak: Padina)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR)", "role": "system" }, { "content": "What is the segment C of the episode where segment B is Film Digitization?", "role": "user" }, { "content": "SELECT segment_c FROM table_15187735_19 WHERE segment_b = \"Film Digitization\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the score on April 20?", "role": "user" }, { "content": "SELECT score FROM table_name_3 WHERE date = \"april 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_96 (opponent VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the game that had a loss of Bell (6–9)?", "role": "user" }, { "content": "SELECT opponent FROM table_name_96 WHERE loss = \"bell (6–9)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (location VARCHAR, method VARCHAR)", "role": "system" }, { "content": "Where was the method of tko?", "role": "user" }, { "content": "SELECT location FROM table_name_34 WHERE method = \"tko\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (birthplace VARCHAR, real_name VARCHAR)", "role": "system" }, { "content": "What Birthplace's Real Name is Charles 'Chuck' Connors?", "role": "user" }, { "content": "SELECT birthplace FROM table_name_86 WHERE real_name = \"charles 'chuck' connors\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_19 (type VARCHAR, settlement VARCHAR)", "role": "system" }, { "content": "What type is the settlement of Lok? ", "role": "user" }, { "content": "SELECT type FROM table_2562572_19 WHERE settlement = \"Lok\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29361707_2 (circuit VARCHAR, pole_position VARCHAR)", "role": "system" }, { "content": "Valmir Benavides won pole position at which circuit?", "role": "user" }, { "content": "SELECT circuit FROM table_29361707_2 WHERE pole_position = \"Valmir Benavides\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (home VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Name the Home with has a Score of 2–7?", "role": "user" }, { "content": "SELECT home FROM table_name_40 WHERE score = \"2–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_83 (result VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Game of game 5 had what result?", "role": "user" }, { "content": "SELECT result FROM table_name_83 WHERE game = \"game 5\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (city VARCHAR, score VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which City has a Score smaller than 30, and a Venue of aigburth?", "role": "user" }, { "content": "SELECT city FROM table_name_85 WHERE score < 30 AND venue = \"aigburth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23018775_3 (_number_number INTEGER, team VARCHAR)", "role": "system" }, { "content": "What is tthe lowest number on team 3g?", "role": "user" }, { "content": "SELECT MIN(_number_number) FROM table_23018775_3 WHERE team = \"team 3G\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (semifinalists VARCHAR, surface VARCHAR, winner_and_score VARCHAR)", "role": "system" }, { "content": "Which Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6–3, 3–6, 6–3?", "role": "user" }, { "content": "SELECT semifinalists FROM table_name_95 WHERE surface = \"hard\" AND winner_and_score = \"pete sampras 6–3, 3–6, 6–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_28089666_1 (original_air_date VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "What original air date was the episode with production code of 5.05?", "role": "user" }, { "content": "SELECT original_air_date FROM table_28089666_1 WHERE production_code = \"5.05\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, winner VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What date did the new york giants win after 2011?", "role": "user" }, { "content": "SELECT date FROM table_name_96 WHERE winner = \"new york giants\" AND year > 2011", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (music VARCHAR, uncut_run_time VARCHAR)", "role": "system" }, { "content": "What music is in the film with an Uncut run time of 95 minutes?", "role": "user" }, { "content": "SELECT music FROM table_name_63 WHERE uncut_run_time = \"95 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_82 (opponent VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the Opponent in the game with a Score of 102-125?", "role": "user" }, { "content": "SELECT opponent FROM table_name_82 WHERE score = \"102-125\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27723228_11 (location_attendance VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What was the location and attendance of the game against Dallas?", "role": "user" }, { "content": "SELECT location_attendance FROM table_27723228_11 WHERE team = \"Dallas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attempts INTEGER, net_yards VARCHAR, touchdowns VARCHAR)", "role": "system" }, { "content": "What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?", "role": "user" }, { "content": "SELECT MAX(attempts) FROM table_name_53 WHERE net_yards < 631 AND touchdowns = 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_21058836_1 (opponents VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Santa Clara was played how many times?", "role": "user" }, { "content": "SELECT opponents FROM table_21058836_1 WHERE opponent = \"Santa Clara\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (song VARCHAR, artist VARCHAR)", "role": "system" }, { "content": "What Song is by the Artist 'mor ve ötesi'?", "role": "user" }, { "content": "SELECT song FROM table_name_19 WHERE artist = \"mor ve ötesi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)", "role": "system" }, { "content": "For the game that was 76-85, what was the record?", "role": "user" }, { "content": "SELECT record FROM table_name_66 WHERE score = \"76-85\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (polling_institute VARCHAR, lead VARCHAR, labour VARCHAR)", "role": "system" }, { "content": "Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?", "role": "user" }, { "content": "SELECT polling_institute FROM table_name_46 WHERE lead = \"12%\" AND labour = \"40.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_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)", "role": "system" }, { "content": "Which film title used in nomination has the year (ceremony) 1990 (63rd)?", "role": "user" }, { "content": "SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = \"1990 (63rd)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "How many golds have bronze values of 4 and silver values over 2?", "role": "user" }, { "content": "SELECT COUNT(gold) FROM table_name_65 WHERE bronze = 4 AND silver > 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_65 (date VARCHAR, city_location VARCHAR)", "role": "system" }, { "content": "Which Date had a City/Location of vancouver, british columbia?", "role": "user" }, { "content": "SELECT date FROM table_name_65 WHERE city_location = \"vancouver, british columbia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country is David Graham from?", "role": "user" }, { "content": "SELECT country FROM table_name_94 WHERE player = \"david graham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (round INTEGER, location VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States?", "role": "user" }, { "content": "SELECT MAX(round) FROM table_name_80 WHERE location = \"las vegas, nevada, united states\" AND event = \"wec 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_2562572_35 (population__2011_ VARCHAR, settlement VARCHAR)", "role": "system" }, { "content": "Name the population 2011 for mihajlovo", "role": "user" }, { "content": "SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = \"Mihajlovo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "In which round was Dustin Hazelett the opponent?", "role": "user" }, { "content": "SELECT round FROM table_name_63 WHERE opponent = \"dustin hazelett\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ship VARCHAR, home_port VARCHAR, nvr_page VARCHAR)", "role": "system" }, { "content": "Name the ship for oakland home port and NVR page of aor-3", "role": "user" }, { "content": "SELECT ship FROM table_name_28 WHERE home_port = \"oakland\" AND nvr_page = \"aor-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_10815352_1 (average_attendance INTEGER, season VARCHAR)", "role": "system" }, { "content": "What's the average attendance of the leagues in the season of 2013?", "role": "user" }, { "content": "SELECT MIN(average_attendance) FROM table_10815352_1 WHERE season = \"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_14286908_1 (school VARCHAR, year_of_last_win VARCHAR)", "role": "system" }, { "content": "What is the name of the school where the year of last win is 1985-86?", "role": "user" }, { "content": "SELECT school FROM table_14286908_1 WHERE year_of_last_win = \"1985-86\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15416002_1 (v_mph_ INTEGER, chi VARCHAR)", "role": "system" }, { "content": "What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5", "role": "user" }, { "content": "SELECT MAX(v_mph_) FROM table_15416002_1 WHERE chi = \"13.5\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (score VARCHAR, date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the score of the game against away team queens park rangers on 23 january 1982?", "role": "user" }, { "content": "SELECT score FROM table_name_63 WHERE date = \"23 january 1982\" AND away_team = \"queens park rangers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342210_2 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Name the position for shorts", "role": "user" }, { "content": "SELECT position FROM table_14342210_2 WHERE player = \"Shorts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "How big was the crowd at the game the away team geelong played at?", "role": "user" }, { "content": "SELECT SUM(crowd) FROM table_name_31 WHERE away_team = \"geelong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19061741_1 (season VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When luz mcclinton is the name what is the season?", "role": "user" }, { "content": "SELECT season FROM table_19061741_1 WHERE name = \"Luz McClinton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE phone (Company_name VARCHAR)", "role": "system" }, { "content": "How many phone hardware models are produced by the company named \"Nokia Corporation\"?", "role": "user" }, { "content": "SELECT COUNT(*) FROM phone WHERE Company_name = \"Nokia Corporation\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11274401_3 (timeslot VARCHAR, air_date VARCHAR)", "role": "system" }, { "content": "What was the timeslot for the episode that aired on May 12, 2009?", "role": "user" }, { "content": "SELECT timeslot FROM table_11274401_3 WHERE air_date = \"May 12, 2009\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (notes VARCHAR, rank INTEGER)", "role": "system" }, { "content": "What were the notes for the player who finished with a rank smaller than 2?", "role": "user" }, { "content": "SELECT notes FROM table_name_48 WHERE rank < 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_11 (average_attendance INTEGER, games VARCHAR)", "role": "system" }, { "content": "What was the total number of average attendance for games of 1311?", "role": "user" }, { "content": "SELECT SUM(average_attendance) FROM table_name_11 WHERE games = 1311", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Highschooler (grade VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What grade is Kyle in?", "role": "user" }, { "content": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR)", "role": "system" }, { "content": "Which Tournament has a 2002 of grand slam tournaments?", "role": "user" }, { "content": "SELECT tournament FROM table_name_82 WHERE 2002 = \"grand slam tournaments\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the to par number with a score of 67-66-71-71=275?", "role": "user" }, { "content": "SELECT to_par FROM table_name_51 WHERE score = 67 - 66 - 71 - 71 = 275", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "What was the score of the game with a loss of Mercedes (0-1)?", "role": "user" }, { "content": "SELECT score FROM table_name_47 WHERE loss = \"mercedes (0-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_11664625_2 (original_air_date VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "What is the original air date of season 18?", "role": "user" }, { "content": "SELECT original_air_date FROM table_11664625_2 WHERE no_in_season = 18", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (laps VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "How many laps did Fernando Alonso do?", "role": "user" }, { "content": "SELECT laps FROM table_name_3 WHERE driver = \"fernando alonso\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Can you tell me the Venue that has the Away team of south dragons?", "role": "user" }, { "content": "SELECT venue FROM table_name_98 WHERE away_team = \"south dragons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the total number of Round, when Position is \"D\", and when Player is \"Andrew Campbell\"?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_94 WHERE position = \"d\" AND player = \"andrew campbell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (episodes INTEGER, premiere VARCHAR)", "role": "system" }, { "content": "What is the earliest season with a premiere of february5,2007?", "role": "user" }, { "content": "SELECT MIN(episodes) FROM table_name_90 WHERE premiere = \"february5,2007\"", "role": "assistant" } ]