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_16 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the game held on December 24, 2005?", "role": "user" }, { "content": "SELECT opponent FROM table_name_16 WHERE date = \"december 24, 2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (pick__number INTEGER, name VARCHAR)", "role": "system" }, { "content": "What is the sum of the Pick # Anthony Maddox?", "role": "user" }, { "content": "SELECT SUM(pick__number) FROM table_name_27 WHERE name = \"anthony maddox\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?", "role": "user" }, { "content": "SELECT rounds FROM table_name_72 WHERE entrant = \"automobiles talbot-darracq\" AND driver = \"pierre levegh\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR)", "role": "system" }, { "content": "I want the venue for 23 july 1992", "role": "user" }, { "content": "SELECT venue FROM table_name_64 WHERE date = \"23 july 1992\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR)", "role": "system" }, { "content": "What is the venue of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?", "role": "user" }, { "content": "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (sample_size VARCHAR, poll_source VARCHAR, date_s__administered VARCHAR)", "role": "system" }, { "content": "How many people participated in the Rasmussen Reports poll on October 13, 2010?", "role": "user" }, { "content": "SELECT sample_size FROM table_name_61 WHERE poll_source = \"rasmussen reports\" AND date_s__administered = \"october 13, 2010\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winners VARCHAR)", "role": "system" }, { "content": "Who came in 3rd when Matej žagar won?", "role": "user" }, { "content": "SELECT 3 AS rd_place FROM table_name_30 WHERE winners = \"matej žagar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (candidate VARCHAR, number_of_votes VARCHAR)", "role": "system" }, { "content": "Who is the candidate with 73,494 votes?", "role": "user" }, { "content": "SELECT candidate FROM table_name_41 WHERE number_of_votes = \"73,494\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (number VARCHAR, acquisition_via VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What is the number of the acquisition of import in the 2002 season?", "role": "user" }, { "content": "SELECT number FROM table_name_19 WHERE acquisition_via = \"import\" AND season = \"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_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)", "role": "system" }, { "content": "In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?", "role": "user" }, { "content": "SELECT SUM(fixtures) FROM table_name_67 WHERE round = \"sixth round\" AND clubs_involved > 15", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER)", "role": "system" }, { "content": "Which Polish Cup has a Puchat Ligi larger than 0?", "role": "user" }, { "content": "SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 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_46 (score VARCHAR, visitor VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What's the score on february 18 when the visitors are the montreal canadiens?", "role": "user" }, { "content": "SELECT score FROM table_name_46 WHERE visitor = \"montreal canadiens\" AND date = \"february 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_24 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who was the away team at Arden Street Oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_24 WHERE venue = \"arden street oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (year VARCHAR, title VARCHAR)", "role": "system" }, { "content": "When was The Love Eterne released?", "role": "user" }, { "content": "SELECT year FROM table_name_2 WHERE title = \"the love eterne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (score_in_the_final VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the score in the final on 14 august 1994?", "role": "user" }, { "content": "SELECT score_in_the_final FROM table_name_36 WHERE date = \"14 august 1994\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (original_name VARCHAR, director VARCHAR)", "role": "system" }, { "content": "What is the real name of the movie directed by gert fredholm?", "role": "user" }, { "content": "SELECT original_name FROM table_name_22 WHERE director = \"gert fredholm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (competition VARCHAR, goals VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which competition has a Goal of deacon 8/8 and a Score of 32-14?", "role": "user" }, { "content": "SELECT competition FROM table_name_3 WHERE goals = \"deacon 8/8\" AND score = \"32-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_24 (year VARCHAR, chassis VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the total number of years that has a chassis of Ferrari 625 and 2 points?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_24 WHERE chassis = \"ferrari 625\" AND points = \"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_179174_2 (spacecraft VARCHAR, flights VARCHAR)", "role": "system" }, { "content": "What spacecrafts had 22 orbital flights? ", "role": "user" }, { "content": "SELECT spacecraft FROM table_179174_2 WHERE flights = \"22 Orbital\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (reign_ended VARCHAR, length VARCHAR, country VARCHAR)", "role": "system" }, { "content": "Whose reign ended in Afghanistan after 3 days?", "role": "user" }, { "content": "SELECT reign_ended FROM table_name_2 WHERE length = \"3 days\" AND country = \"afghanistan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (version VARCHAR, length VARCHAR)", "role": "system" }, { "content": "what album is 5:15 long", "role": "user" }, { "content": "SELECT version FROM table_name_60 WHERE length = \"5:15\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (points VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the total number of Points that were in a Year that was 2005?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_18 WHERE year = \"2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Tell me the score on 1978-12-16", "role": "user" }, { "content": "SELECT score FROM table_name_91 WHERE date = \"1978-12-16\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (date_founded VARCHAR, park_name VARCHAR)", "role": "system" }, { "content": "how many parks are name beltzville state park?", "role": "user" }, { "content": "SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = \"beltzville state park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (date VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "What is the Date of the game with a Loss of Leneveu (1–0–1)?", "role": "user" }, { "content": "SELECT date FROM table_name_75 WHERE loss = \"leneveu (1–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_23248940_8 (high_rebounds VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Who tied for the highest rebounds during the game against Orlando?", "role": "user" }, { "content": "SELECT high_rebounds FROM table_23248940_8 WHERE team = \"Orlando\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, date VARCHAR)", "role": "system" }, { "content": "what is the outcome when the date is 10 october 1994?", "role": "user" }, { "content": "SELECT outcome FROM table_name_40 WHERE date = \"10 october 1994\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lost VARCHAR, try_bonus VARCHAR)", "role": "system" }, { "content": "What is the Lost with a Try Bonus that is try bonus?", "role": "user" }, { "content": "SELECT lost FROM table_name_77 WHERE try_bonus = \"try bonus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the visiting team on October 15, 2006?", "role": "user" }, { "content": "SELECT visiting_team FROM table_name_59 WHERE date = \"october 15, 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_50 (election INTEGER, province VARCHAR, established VARCHAR)", "role": "system" }, { "content": "What is the average election result for the province of Grosseto from 1766 and prior?", "role": "user" }, { "content": "SELECT AVG(election) FROM table_name_50 WHERE province = \"grosseto\" AND established < 1766", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25214321_1 (winner VARCHAR, third_place VARCHAR)", "role": "system" }, { "content": "Who was the winner when Mateus Rocha finished in 3rd place? ", "role": "user" }, { "content": "SELECT winner FROM table_25214321_1 WHERE third_place = \"Mateus Rocha\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (school VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What is the school of the player from Dallas, TX?", "role": "user" }, { "content": "SELECT school FROM table_name_47 WHERE hometown = \"dallas, tx\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, games VARCHAR, medal VARCHAR)", "role": "system" }, { "content": "Which event in the 2008 Beijing Games had a bronze medal?", "role": "user" }, { "content": "SELECT event FROM table_name_34 WHERE games = \"2008 beijing\" AND medal = \"bronze\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (category VARCHAR, result VARCHAR, year VARCHAR)", "role": "system" }, { "content": "In 2007 what category won?", "role": "user" }, { "content": "SELECT category FROM table_name_62 WHERE result = \"won\" AND year < 2007", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which country was the player from who scored 66-72-70=207?", "role": "user" }, { "content": "SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (set_2 VARCHAR, set_3 VARCHAR)", "role": "system" }, { "content": "Which Set 2 has a Set 3 of 20–25?", "role": "user" }, { "content": "SELECT set_2 FROM table_name_70 WHERE set_3 = \"20–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_59 (rank INTEGER, country VARCHAR)", "role": "system" }, { "content": "What is the sum of the ranks for india?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_59 WHERE country = \"india\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (drawn VARCHAR, lost VARCHAR, played VARCHAR)", "role": "system" }, { "content": "How many games drawn when there are 78 losses and over 121 games played?", "role": "user" }, { "content": "SELECT COUNT(drawn) FROM table_name_41 WHERE lost = 78 AND played > 121", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Courses (Id VARCHAR)", "role": "system" }, { "content": "How many courses in total are listed?", "role": "user" }, { "content": "SELECT COUNT(*) FROM Courses", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (record VARCHAR, visitor VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What record has pittsburgh as the visitor, and November 23 as the date?", "role": "user" }, { "content": "SELECT record FROM table_name_45 WHERE visitor = \"pittsburgh\" AND date = \"november 23\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pubs_2011 INTEGER, location VARCHAR, totals_07_11 VARCHAR)", "role": "system" }, { "content": "What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025?", "role": "user" }, { "content": "SELECT AVG(pubs_2011) FROM table_name_52 WHERE location = \"mumbai\" AND totals_07_11 < 1025", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17289224_1 (races INTEGER, wins VARCHAR)", "role": "system" }, { "content": "When the wins is 3, what is the maximum races?", "role": "user" }, { "content": "SELECT MAX(races) FROM table_17289224_1 WHERE wins = 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (draws INTEGER, against VARCHAR, losses VARCHAR)", "role": "system" }, { "content": "What is the sum of draws for teams with against of 1731 and under 10 losses?", "role": "user" }, { "content": "SELECT SUM(draws) FROM table_name_67 WHERE against = 1731 AND losses < 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_68 (gold INTEGER, total VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Which Gold has a Total of 2998, and a Bronze smaller than 1191?", "role": "user" }, { "content": "SELECT AVG(gold) FROM table_name_68 WHERE total = 2998 AND bronze < 1191", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR)", "role": "system" }, { "content": "What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?", "role": "user" }, { "content": "SELECT AVG(jersey__number) FROM table_name_71 WHERE name = \"steve griffith\" AND weight__kg_ < 84", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25548213_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "How many million viewers watch the episode that kevin biegel & aseem batra wrote?", "role": "user" }, { "content": "SELECT us_viewers__million_ FROM table_25548213_1 WHERE written_by = \"Kevin Biegel & Aseem Batra\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the result of the game played at Jinan?", "role": "user" }, { "content": "SELECT result FROM table_name_26 WHERE venue = \"jinan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (bello VARCHAR, liscumb VARCHAR, libweshya VARCHAR)", "role": "system" }, { "content": "What Bello has a 27 Liscumb and 6539 Libweshya?", "role": "user" }, { "content": "SELECT bello FROM table_name_35 WHERE liscumb = \"27\" AND libweshya = \"6539\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What is the Away team at Mansfield Town's Home game?", "role": "user" }, { "content": "SELECT away_team FROM table_name_53 WHERE home_team = \"mansfield town\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)", "role": "system" }, { "content": "Who was the director of the film with the original title of \"The Patience Stone\"? ", "role": "user" }, { "content": "SELECT director FROM table_17155250_1 WHERE original_title = \"The Patience Stone\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, wins INTEGER)", "role": "system" }, { "content": "What is the name of the player with less than 2 wins?", "role": "user" }, { "content": "SELECT player FROM table_name_24 WHERE wins < 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_13 (location VARCHAR, year VARCHAR, runner_up VARCHAR)", "role": "system" }, { "content": "Where in 1985 was tim mayotte runner up?", "role": "user" }, { "content": "SELECT location FROM table_name_13 WHERE year > 1985 AND runner_up = \"tim mayotte\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR)", "role": "system" }, { "content": "What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?", "role": "user" }, { "content": "SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (grand_finalist VARCHAR, grand_finalists VARCHAR)", "role": "system" }, { "content": "who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?", "role": "user" }, { "content": "SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = \"jonathan loh, peterson poon, nathan santos\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR)", "role": "system" }, { "content": "List the number of invoices from the US, grouped by state.", "role": "user" }, { "content": "SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_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_16254861_1 (result VARCHAR, year__ceremony_ VARCHAR)", "role": "system" }, { "content": "What was the result for the 2009 (82nd) awards?", "role": "user" }, { "content": "SELECT result FROM table_16254861_1 WHERE year__ceremony_ = \"2009 (82nd)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR)", "role": "system" }, { "content": "What was the population of the coastal location Isio in May of 2000?", "role": "user" }, { "content": "SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = \"coastal\" AND barangay = \"Isio\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17901155_3 (written_by VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "who co-wrote Season 2, Episode 3?", "role": "user" }, { "content": "SELECT written_by FROM table_17901155_3 WHERE no_in_season = 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_72 (relative_value VARCHAR, jyutping VARCHAR)", "role": "system" }, { "content": "what's the relative value that contains a jyutping of daam3?", "role": "user" }, { "content": "SELECT relative_value FROM table_name_72 WHERE jyutping = \"daam3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (height VARCHAR, date_of_birth VARCHAR)", "role": "system" }, { "content": "What is the Height of the Player with a Date of Birth of 1982-07-05?", "role": "user" }, { "content": "SELECT height FROM table_name_38 WHERE date_of_birth = \"1982-07-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_32 (hometown VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What's the hometown of the player who went to lsu?", "role": "user" }, { "content": "SELECT hometown FROM table_name_32 WHERE college = \"lsu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "On what date was the venue at Edgbaston?", "role": "user" }, { "content": "SELECT date FROM table_name_97 WHERE venue = \"edgbaston\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, town VARCHAR)", "role": "system" }, { "content": "what country has dubai", "role": "user" }, { "content": "SELECT country FROM table_name_89 WHERE town = \"dubai\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25304789_1 (share INTEGER)", "role": "system" }, { "content": "What was the highest share?", "role": "user" }, { "content": "SELECT MAX(share) FROM table_25304789_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 (years_at_club VARCHAR, player VARCHAR, debut_year VARCHAR, games VARCHAR)", "role": "system" }, { "content": "Which Years at club have a Debut year of 1930, and Games larger than 7, and a Player of colin benham?", "role": "user" }, { "content": "SELECT years_at_club FROM table_name_38 WHERE debut_year = 1930 AND games > 7 AND player = \"colin benham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, floors VARCHAR)", "role": "system" }, { "content": "What is the average rank for a building with 24 floors?", "role": "user" }, { "content": "SELECT AVG(rank) FROM table_name_84 WHERE floors = 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_name_97 (points VARCHAR, combined_elapsed_time VARCHAR)", "role": "system" }, { "content": "Which points have a Combined elapsed time of 175d 20h 46m 04s?", "role": "user" }, { "content": "SELECT points FROM table_name_97 WHERE combined_elapsed_time = \"175d 20h 46m 04s\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)", "role": "system" }, { "content": "Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.", "role": "user" }, { "content": "SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 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_20799587_1 (obama_number INTEGER, mccain_percentage VARCHAR)", "role": "system" }, { "content": "How many people voted for Obama in the county where McCain got 72.75% of the votes?", "role": "user" }, { "content": "SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = \"72.75%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the name of the away team whose venue is Kardinia Park?", "role": "user" }, { "content": "SELECT away_team FROM table_name_73 WHERE venue = \"kardinia park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (round INTEGER, player VARCHAR)", "role": "system" }, { "content": "What is the lowest round that Adam Wiesel was picked?", "role": "user" }, { "content": "SELECT MIN(round) FROM table_name_9 WHERE player = \"adam wiesel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26130295_3 (first_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "who is first team when dimitris diamantidis play.", "role": "user" }, { "content": "SELECT COUNT(first_team) FROM table_26130295_3 WHERE player = \"Dimitris Diamantidis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What place is player leo diegel?", "role": "user" }, { "content": "SELECT place FROM table_name_38 WHERE player = \"leo diegel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, film_name VARCHAR)", "role": "system" }, { "content": "Which year was the film Rang Barse introduced?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_63 WHERE film_name = \"rang barse\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (period VARCHAR, team VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the period for the DET Team with a time of 11:27?", "role": "user" }, { "content": "SELECT period FROM table_name_52 WHERE team = \"det\" AND time = \"11: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_name_8 (szdsz VARCHAR, mszp VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?", "role": "user" }, { "content": "SELECT szdsz FROM table_name_8 WHERE mszp = \"25%\" AND date = \"25/2/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_97 (venue VARCHAR, runs VARCHAR)", "role": "system" }, { "content": "What was the venue where there were 62 runs?", "role": "user" }, { "content": "SELECT venue FROM table_name_97 WHERE runs = \"62\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (total_appearances_league_only_ VARCHAR, name VARCHAR)", "role": "system" }, { "content": "How many total appearances (league only) have a name of gavin dykes?", "role": "user" }, { "content": "SELECT total_appearances_league_only_ FROM table_name_88 WHERE name = \"gavin dykes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28068063_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)", "role": "system" }, { "content": "Who proceeded to the quarter final when the london irish were eliminated from competition?", "role": "user" }, { "content": "SELECT proceed_to_quarter_final FROM table_28068063_3 WHERE eliminated_from_competition = \"London Irish\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (founded VARCHAR, location VARCHAR)", "role": "system" }, { "content": "When was the Balayan, Batangas campus founded?", "role": "user" }, { "content": "SELECT founded FROM table_name_41 WHERE location = \"balayan, batangas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (score VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is the total score for the 36 arrow finals event?", "role": "user" }, { "content": "SELECT COUNT(score) FROM table_name_72 WHERE event = \"36 arrow finals\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)", "role": "system" }, { "content": "What was the film title used in nomination for Panny Z Wilka?", "role": "user" }, { "content": "SELECT film_title_used_in_nomination FROM table_name_83 WHERE original_name = \"panny z wilka\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (competition VARCHAR, club VARCHAR)", "role": "system" }, { "content": "What competition has the club villareal?", "role": "user" }, { "content": "SELECT competition FROM table_name_89 WHERE club = \"villareal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19722233_5 (points INTEGER, blocks VARCHAR)", "role": "system" }, { "content": "what is the lowest points scored by a player who blocked 21 times", "role": "user" }, { "content": "SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What was the largest crowd when Collingwood was the away team?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_67 WHERE away_team = \"collingwood\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Where was a 0-5 game played?", "role": "user" }, { "content": "SELECT venue FROM table_name_7 WHERE result = \"0-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_93 (result VARCHAR, guest VARCHAR)", "role": "system" }, { "content": "What was the result when the guest was fc zürich (asl)?", "role": "user" }, { "content": "SELECT result FROM table_name_93 WHERE guest = \"fc zürich (asl)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What is the time of the match with a win result, more than 2 rounds, and Makoto Ishikawa as the opponent?", "role": "user" }, { "content": "SELECT time FROM table_name_74 WHERE res = \"win\" AND round > 2 AND opponent = \"makoto ishikawa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1139087_2 (date VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What day was the grand prix in jerez?", "role": "user" }, { "content": "SELECT date FROM table_1139087_2 WHERE location = \"Jerez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR)", "role": "system" }, { "content": "WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?", "role": "user" }, { "content": "SELECT AVG(votes) FROM table_name_14 WHERE constituency = \"dublin south\" AND spoilt < 3 OFFSET 387", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (division VARCHAR, country VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What division was Ukraine in 2006/07?", "role": "user" }, { "content": "SELECT division FROM table_name_66 WHERE country = \"ukraine\" AND season = \"2006/07\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, points_for VARCHAR)", "role": "system" }, { "content": "Which Points has a Points for of 381?", "role": "user" }, { "content": "SELECT points FROM table_name_34 WHERE points_for = \"381\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR)", "role": "system" }, { "content": "What is the total national rank of Canada with lanes larger than 3?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_72 WHERE nationality = \"canada\" AND lane > 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_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR)", "role": "system" }, { "content": "What district was the city with an area smaller than 12 square kilometers and a serial number of 35?", "role": "user" }, { "content": "SELECT district FROM table_name_9 WHERE city_area_km_2__ < 12 AND serial_no = 35", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE FACULTY (Rank VARCHAR)", "role": "system" }, { "content": "Find the rank of the faculty that the fewest faculties belong to.", "role": "user" }, { "content": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY COUNT(*) LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (country_of_origin VARCHAR, year_of_intro VARCHAR, primary_cartridge VARCHAR)", "role": "system" }, { "content": "What is Country of Origin, when Year of Intro is greater than 1985, and when Primary Cartridge is 125mm?", "role": "user" }, { "content": "SELECT country_of_origin FROM table_name_27 WHERE year_of_intro > 1985 AND primary_cartridge = \"125mm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)", "role": "system" }, { "content": "I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde", "role": "user" }, { "content": "SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = \"resigned\" AND outgoing_manager = \"gordon wylde\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (american VARCHAR, australian VARCHAR)", "role": "system" }, { "content": "What's the American pronunciation when the Australian is əʉ?", "role": "user" }, { "content": "SELECT american FROM table_name_11 WHERE australian = \"əʉ\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (date VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "On what date was Nick Price the runner-up?", "role": "user" }, { "content": "SELECT date FROM table_name_7 WHERE runner_s__up = \"nick price\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What venue hosted the 2003 event?", "role": "user" }, { "content": "SELECT venue FROM table_name_91 WHERE year = 2003", "role": "assistant" } ]