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_88 (iata VARCHAR, airport VARCHAR)", "role": "system" }, { "content": "What is the IATA for San Francisco airport?", "role": "user" }, { "content": "SELECT iata FROM table_name_88 WHERE airport = \"san francisco airport\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (area__km_2__ INTEGER, code VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What is the average area larger than Code 19025 but a smaller region than 12?", "role": "user" }, { "content": "SELECT AVG(area__km_2__) FROM table_name_91 WHERE code > 19025 AND region < 12", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140105_6 (circuit VARCHAR, race_name VARCHAR)", "role": "system" }, { "content": "What is the name of the circuit where the race xi Syracuse grand prix was held?", "role": "user" }, { "content": "SELECT circuit FROM table_1140105_6 WHERE race_name = \"XI Syracuse Grand Prix\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (catalog VARCHAR, format VARCHAR)", "role": "system" }, { "content": "Which catalog is in cd format?", "role": "user" }, { "content": "SELECT catalog FROM table_name_54 WHERE format = \"cd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winner VARCHAR, runner_up VARCHAR)", "role": "system" }, { "content": "What team was the winner when the runner-up shows both teams awarded championship after a draw.?", "role": "user" }, { "content": "SELECT winner FROM table_name_26 WHERE runner_up = \"both teams awarded championship after a draw.\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1463383_1 (social_democratic VARCHAR, socialist VARCHAR)", "role": "system" }, { "content": "If Socialist is at 46.1%, what are all percentages for social democratic?", "role": "user" }, { "content": "SELECT social_democratic FROM table_1463383_1 WHERE socialist = \"46.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_52 (losses VARCHAR, against VARCHAR, byes VARCHAR)", "role": "system" }, { "content": "Which Losses has an Against of 1101, and a Byes smaller than 0?", "role": "user" }, { "content": "SELECT COUNT(losses) FROM table_name_52 WHERE against = 1101 AND byes < 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_63 (tournament VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What Tournament was against Daniel Elsner?", "role": "user" }, { "content": "SELECT tournament FROM table_name_63 WHERE opponent = \"daniel elsner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR)", "role": "system" }, { "content": "what is the tournament when 2011 is qf and 2012 is sf?", "role": "user" }, { "content": "SELECT tournament FROM table_name_42 WHERE 2011 = \"qf\" AND 2012 = \"sf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (athlete VARCHAR, fastest_time__s_ VARCHAR)", "role": "system" }, { "content": "Which athlete has the fastest time of 15.82?", "role": "user" }, { "content": "SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.82", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, region VARCHAR, format VARCHAR)", "role": "system" }, { "content": "What is the date for a CD format with a Region of Europe?", "role": "user" }, { "content": "SELECT date FROM table_name_54 WHERE region = \"europe\" AND format = \"cd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2144389_9 (japanese_title VARCHAR, _number VARCHAR)", "role": "system" }, { "content": "When 5 is the number what is the japanese title?", "role": "user" }, { "content": "SELECT japanese_title FROM table_2144389_9 WHERE _number = 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_18102421_2 (title VARCHAR, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "What was the title of the episode that had 13.82 million U.S. viewers? ", "role": "user" }, { "content": "SELECT title FROM table_18102421_2 WHERE us_viewers__millions_ = \"13.82\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, inclination__deg___to_moon_equator_ VARCHAR)", "role": "system" }, { "content": "What is every value of epoch if inclination is 90.063603?", "role": "user" }, { "content": "SELECT epoch__utc_ FROM table_206217_2 WHERE inclination__deg___to_moon_equator_ = \"90.063603\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "what is the event when the opponent is yuji hisamatsu?", "role": "user" }, { "content": "SELECT event FROM table_name_9 WHERE opponent = \"yuji hisamatsu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (partner VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the partner on May 16, 2004?", "role": "user" }, { "content": "SELECT partner FROM table_name_52 WHERE date = \"may 16, 2004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, time VARCHAR, nationality VARCHAR, heat VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?", "role": "user" }, { "content": "SELECT name FROM table_name_64 WHERE heat < 3 AND rank < 18 AND nationality = \"east germany\" AND time = \"2:35.31\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country_of_release VARCHAR, year_of_release VARCHAR)", "role": "system" }, { "content": "Where was the title released in 1977?", "role": "user" }, { "content": "SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341738_34 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR)", "role": "system" }, { "content": "who was the candidate elected to the democratic party in 1952?", "role": "user" }, { "content": "SELECT candidates FROM table_1341738_34 WHERE first_elected = \"1952\" AND party = \"Democratic\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, location VARCHAR, novelty VARCHAR)", "role": "system" }, { "content": "What is Name, when Location is Tanzania, and when Novelty is Gen Nov?", "role": "user" }, { "content": "SELECT name FROM table_name_88 WHERE location = \"tanzania\" AND novelty = \"gen nov\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, accolade VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Name the highest year with rank of 22 and accolade of singles of 1999", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_89 WHERE accolade = \"singles of 1999\" AND rank = \"22\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR)", "role": "system" }, { "content": "Which season had a Regionalliga Sud of Stuttgarter Kickers?", "role": "user" }, { "content": "SELECT season FROM table_name_68 WHERE regionalliga_süd = \"stuttgarter kickers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)", "role": "system" }, { "content": "Which name had a bodyweight bigger than 89.64, a total (kg) bigger than 310, a clean and jerk less than 207.5, and a snatch that is bigger than 165?", "role": "user" }, { "content": "SELECT name FROM table_name_89 WHERE bodyweight > 89.64 AND total__kg_ > 310 AND clean_ & _jerk < 207.5 AND snatch > 165", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (res VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is the result of the UFC 87?", "role": "user" }, { "content": "SELECT res FROM table_name_95 WHERE event = \"ufc 87\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the record after the January 6 game?", "role": "user" }, { "content": "SELECT record FROM table_name_44 WHERE date = \"january 6\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (episodes INTEGER, region_1_release VARCHAR)", "role": "system" }, { "content": "What is the average episode that has September 11, 2007 as a region 1?", "role": "user" }, { "content": "SELECT AVG(episodes) FROM table_name_70 WHERE region_1_release = \"september 11, 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_72 (date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "When did the w 20-19 happen?", "role": "user" }, { "content": "SELECT date FROM table_name_72 WHERE result = \"w 20-19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14631909_1 (english_title VARCHAR, author VARCHAR)", "role": "system" }, { "content": "What is the English version of Mariusz Szczygieł book?", "role": "user" }, { "content": "SELECT english_title FROM table_14631909_1 WHERE author = \"Mariusz Szczygieł\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_300283_1 (official_name VARCHAR, name_in_basque VARCHAR)", "role": "system" }, { "content": "What is the official name of the municipality whose name in Basque is Bilar?", "role": "user" }, { "content": "SELECT official_name FROM table_300283_1 WHERE name_in_basque = \"Bilar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (decision VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the decision on November 26?", "role": "user" }, { "content": "SELECT decision FROM table_name_18 WHERE date = \"november 26\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1067441_1 (area__km²_ INTEGER, density VARCHAR)", "role": "system" }, { "content": "What is the area of the place that has a population density of 331.4?", "role": "user" }, { "content": "SELECT MAX(area__km²_) FROM table_1067441_1 WHERE density = \"331.4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)", "role": "system" }, { "content": "In 2008, what was the world ranking that ranked 5th in L.A.?", "role": "user" }, { "content": "SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = \"5th\" AND year_of_publication = \"2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, byes INTEGER)", "role": "system" }, { "content": "What's the average number of wins for those with less than 2 byes?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_62 WHERE byes < 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_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR)", "role": "system" }, { "content": "What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports?", "role": "user" }, { "content": "SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = \"rasmussen reports\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (centerfold_model VARCHAR, interview_subject VARCHAR)", "role": "system" }, { "content": "Who was the Centerfold model when O.J. Simpson was the Interview Subject?", "role": "user" }, { "content": "SELECT centerfold_model FROM table_name_72 WHERE interview_subject = \"o.j. simpson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29181479_5 (series VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Lis the series for game 5.", "role": "user" }, { "content": "SELECT series FROM table_29181479_5 WHERE 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_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?", "role": "user" }, { "content": "SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = \"united states\" AND rank > 47 AND main_span_metres = \"421\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (start VARCHAR, main_host VARCHAR, winning_mentor VARCHAR)", "role": "system" }, { "content": "What is the start date with Luke Jacobz hosting and Dannii Minogue as a winning mentor?", "role": "user" }, { "content": "SELECT start FROM table_name_16 WHERE main_host = \"luke jacobz\" AND winning_mentor = \"dannii minogue\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11677691_5 (school VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Zach Banner is a player at which school?", "role": "user" }, { "content": "SELECT school FROM table_11677691_5 WHERE player = \"Zach Banner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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)", "role": "system" }, { "content": "Show all the grades of the high schoolers.", "role": "user" }, { "content": "SELECT grade FROM Highschooler", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 (Product_ID VARCHAR)", "role": "system" }, { "content": "What is the product ID of the most frequently ordered item on invoices?", "role": "user" }, { "content": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341690_21 (district VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "what is the district with the candidates edward boland (d) unopposed?", "role": "user" }, { "content": "SELECT district FROM table_1341690_21 WHERE candidates = \"Edward Boland (D) Unopposed\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE airports (elevation INTEGER, country VARCHAR)", "role": "system" }, { "content": "What is the maximum elevation of all airports in the country of Iceland?", "role": "user" }, { "content": "SELECT MAX(elevation) FROM airports WHERE country = 'Iceland'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year_to INTEGER, engine VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "Which Year To has an Engine of 119.972, and a Chassis smaller than 129.067?", "role": "user" }, { "content": "SELECT MIN(year_to) FROM table_name_14 WHERE engine = 119.972 AND chassis < 129.067", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17311759_5 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the location and the crowd attendance on December 9?", "role": "user" }, { "content": "SELECT location_attendance FROM table_17311759_5 WHERE date = \"December 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_43 (event VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "Which event has notes of women +60kg quarterfinal?", "role": "user" }, { "content": "SELECT event FROM table_name_43 WHERE notes = \"women +60kg quarterfinal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, game VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Score, when Game is greater than 78, and when Date is \"4\"?", "role": "user" }, { "content": "SELECT score FROM table_name_31 WHERE game > 78 AND date = 4", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29154676_1 (season_no VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "How many episodes were written by Warren Leight?", "role": "user" }, { "content": "SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = \"Warren Leight\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?", "role": "user" }, { "content": "SELECT AVG(crowd) FROM table_name_64 WHERE away_team = \"new zealand breakers\" AND venue = \"cairns convention centre\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result_f___a VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "hat is the Result F– A when they played against Leeds United?", "role": "user" }, { "content": "SELECT result_f___a FROM table_name_98 WHERE opponents = \"leeds united\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_127511_1 (sequencer VARCHAR, ion_torrent_pgm VARCHAR)", "role": "system" }, { "content": "What is the sequencer when ion torrent pgm is 200-400 bp?", "role": "user" }, { "content": "SELECT sequencer FROM table_127511_1 WHERE ion_torrent_pgm = \"200-400 bp\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (mls_team VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "Which MLS team had a pick number of 32?", "role": "user" }, { "content": "SELECT mls_team FROM table_name_3 WHERE pick__number = 32", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (qual_1 VARCHAR, team VARCHAR, best VARCHAR)", "role": "system" }, { "content": "Team Rusport has the best of 59.654 and what qual 1?", "role": "user" }, { "content": "SELECT qual_1 FROM table_name_15 WHERE team = \"rusport\" AND best = \"59.654\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pick__number VARCHAR, team_from VARCHAR, league_from VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?", "role": "user" }, { "content": "SELECT COUNT(pick__number) FROM table_name_61 WHERE league_from = \"ontario hockey league\" AND nationality = \"united states\" AND team_from = \"brampton battalion\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (years VARCHAR, goals VARCHAR, games VARCHAR)", "role": "system" }, { "content": "What year had more than 2 goals and 11 (2) games?", "role": "user" }, { "content": "SELECT years FROM table_name_36 WHERE goals > 2 AND games = \"11 (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 Timed_Status_of_Things (Status_of_Thing_Code VARCHAR)", "role": "system" }, { "content": "How many different status codes of things are there?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the Team on January 20?", "role": "user" }, { "content": "SELECT team FROM table_name_97 WHERE date = \"january 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_47 (approximate_age VARCHAR, virtues VARCHAR)", "role": "system" }, { "content": "Can you give me the age of the Virtues of Wisdom?", "role": "user" }, { "content": "SELECT approximate_age FROM table_name_47 WHERE virtues = \"wisdom\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE company (Headquarters VARCHAR)", "role": "system" }, { "content": "Show the different headquarters and number of companies at each headquarter.", "role": "user" }, { "content": "SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, manufacturer VARCHAR)", "role": "system" }, { "content": "In what year was Letecke Zavody N.P., Jinonice the manufacturer?", "role": "user" }, { "content": "SELECT year FROM table_name_90 WHERE manufacturer = \"letecke zavody n.p., jinonice\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "When the venue was lake oval what did the home team score?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_56 WHERE venue = \"lake 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_13 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)", "role": "system" }, { "content": "Which main cast seasons were portrayed by Joe Jonas?", "role": "user" }, { "content": "SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = \"joe jonas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (date VARCHAR, set_1 VARCHAR)", "role": "system" }, { "content": "What is Date, when Set 1 is \"20:22\"?", "role": "user" }, { "content": "SELECT date FROM table_name_49 WHERE set_1 = \"20:22\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)", "role": "system" }, { "content": "Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?", "role": "user" }, { "content": "SELECT second_runner_up FROM table_1825751_4 WHERE binibining_pilipinas_world = \"Janina San Miguel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (res VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the result of the bout that led to a 4-4 record?", "role": "user" }, { "content": "SELECT res FROM table_name_1 WHERE record = \"4-4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18424435_5 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Which air dates have 1.229 canadian viewers (millions)?", "role": "user" }, { "content": "SELECT us_air_date FROM table_18424435_5 WHERE canadian_viewers__million_ = \"1.229\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE assignedto (scientist VARCHAR)", "role": "system" }, { "content": "How many different scientists are assigned to any project?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT scientist) FROM assignedto", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (revised VARCHAR, mccune_reischauer VARCHAR)", "role": "system" }, { "content": "Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n)", "role": "user" }, { "content": "SELECT revised FROM table_name_48 WHERE mccune_reischauer = \"yŏn (s) ryŏn (n)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (chassis VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which Chassis was featured in the year 1971?", "role": "user" }, { "content": "SELECT chassis FROM table_name_88 WHERE year = 1971", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23453931_5 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the score for december 19", "role": "user" }, { "content": "SELECT score FROM table_23453931_5 WHERE date = \"December 19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27571406_1 (f_laps VARCHAR, podiums VARCHAR)", "role": "system" }, { "content": "What's the f/laps count for the team with 8 podiums?", "role": "user" }, { "content": "SELECT f_laps FROM table_27571406_1 WHERE podiums = 8", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15327489_1 (poles VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Name the poles for 2011", "role": "user" }, { "content": "SELECT poles FROM table_15327489_1 WHERE 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 driver (home_city VARCHAR)", "role": "system" }, { "content": "Show the home city with the most number of drivers.", "role": "user" }, { "content": "SELECT home_city FROM driver GROUP BY home_city ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2007 value for the 2010 wta premier 5 tournaments?", "role": "user" }, { "content": "SELECT 2007 FROM table_name_12 WHERE 2010 = \"wta premier 5 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_29644931_1 (participants_recipients VARCHAR, film_festival VARCHAR)", "role": "system" }, { "content": "Which films participated in the 30th Hawaii International Film Festival?", "role": "user" }, { "content": "SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = \"30th Hawaii International film_festival\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR)", "role": "system" }, { "content": "In what location was a stadium built for the St Kilda Football Club?", "role": "user" }, { "content": "SELECT location FROM table_28885977_1 WHERE built_for = \"St Kilda Football Club\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (visa_3 VARCHAR, visa_4 VARCHAR)", "role": "system" }, { "content": "Which Visa 3 has a Visa 4 of youssouf hersi?", "role": "user" }, { "content": "SELECT visa_3 FROM table_name_70 WHERE visa_4 = \"youssouf hersi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR)", "role": "system" }, { "content": "Name the number of jons team for 15x10", "role": "user" }, { "content": "SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = \"15x10\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, location VARCHAR, winner VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_39 WHERE winner = \"new york jets\" AND result = \"24–17\" AND location = \"giants stadium\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (label VARCHAR, region VARCHAR)", "role": "system" }, { "content": "Which Label has a Region of canada?", "role": "user" }, { "content": "SELECT label FROM table_name_12 WHERE region = \"canada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (builder VARCHAR, pennant_number VARCHAR)", "role": "system" }, { "content": "Who is the builder of Pennant d03?", "role": "user" }, { "content": "SELECT builder FROM table_name_43 WHERE pennant_number = \"d03\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What is the score of the Tournament Players Championship?", "role": "user" }, { "content": "SELECT score FROM table_name_16 WHERE tournament = \"tournament players championship\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the pick with Dean Sears and round larger than 6?", "role": "user" }, { "content": "SELECT MIN(pick) FROM table_name_61 WHERE round > 6 AND player = \"dean sears\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27501030_8 (march VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "How many times did they play the pittsburgh penguins?", "role": "user" }, { "content": "SELECT COUNT(march) FROM table_27501030_8 WHERE opponent = \"Pittsburgh Penguins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR)", "role": "system" }, { "content": "How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?", "role": "user" }, { "content": "SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = \"20' 05.19 112.703mph\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11963601_11 (high_points VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the high scorer and how much did they score in the game on May 3? ", "role": "user" }, { "content": "SELECT high_points FROM table_11963601_11 WHERE date = \"May 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_38 (college VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Which college has their team as the New York Jets?", "role": "user" }, { "content": "SELECT college FROM table_name_38 WHERE team = \"new york jets\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, share_count VARCHAR, amount_of_transaction VARCHAR)", "role": "system" }, { "content": "What are the dates of transactions with at least 100 share count or amount bigger than 100?", "role": "user" }, { "content": "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (play VARCHAR, base VARCHAR, company VARCHAR)", "role": "system" }, { "content": "What is the Athens Base play with Dance Theatre Roes Company?", "role": "user" }, { "content": "SELECT play FROM table_name_59 WHERE base = \"athens\" AND company = \"dance theatre roes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What is the opponent for the tournament of rio de janeiro?", "role": "user" }, { "content": "SELECT opponent FROM table_name_22 WHERE tournament = \"rio de janeiro\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (qual_2 VARCHAR, best VARCHAR)", "role": "system" }, { "content": "What is Qual 2, when Best is 1:27.976?", "role": "user" }, { "content": "SELECT qual_2 FROM table_name_10 WHERE best = \"1:27.976\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lane VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "what lane was new zealand in?", "role": "user" }, { "content": "SELECT lane FROM table_name_86 WHERE nationality = \"new zealand\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18595004_7 (tonioli VARCHAR, week__number VARCHAR)", "role": "system" }, { "content": "How many sets of marks does Tonioli get in week 3?", "role": "user" }, { "content": "SELECT COUNT(tonioli) FROM table_18595004_7 WHERE week__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_11238597_4 (share VARCHAR, air_date VARCHAR)", "role": "system" }, { "content": "What was the share for the episode with the air date december 10, 2008?", "role": "user" }, { "content": "SELECT share FROM table_11238597_4 WHERE air_date = \"December 10, 2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27887723_1 (winner VARCHAR, location VARCHAR)", "role": "system" }, { "content": "who was the winner for souderton, pa?", "role": "user" }, { "content": "SELECT winner FROM table_27887723_1 WHERE location = \"Souderton, PA\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (modern_equivalent VARCHAR, province_of_silla VARCHAR, post_1009_province VARCHAR, administrative_district VARCHAR)", "role": "system" }, { "content": "What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?", "role": "user" }, { "content": "SELECT modern_equivalent FROM table_name_88 WHERE post_1009_province = \"gyeongsang -do\" AND administrative_district = \"jinju -mok\" AND province_of_silla = \"gangju\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (yards INTEGER, player VARCHAR, rec VARCHAR, avg VARCHAR, long VARCHAR)", "role": "system" }, { "content": "Which Yards has an Avg larger than 7, and a Long smaller than 60, and a Rec larger than 19, and a Player of correll buckhalter?", "role": "user" }, { "content": "SELECT AVG(yards) FROM table_name_90 WHERE avg > 7 AND long < 60 AND rec > 19 AND player = \"correll buckhalter\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (games INTEGER, team VARCHAR, rebounds VARCHAR)", "role": "system" }, { "content": "What is the number of Games for the Maccabi Tel Aviv Team with less than 208 Rebounds?", "role": "user" }, { "content": "SELECT AVG(games) FROM table_name_47 WHERE team = \"maccabi tel aviv\" AND rebounds < 208", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time___mt__ VARCHAR, opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the (MT) time which has kansas city chiefs as an opponent on nov 11?", "role": "user" }, { "content": "SELECT time___mt__ FROM table_name_13 WHERE opponent = \"kansas city chiefs\" AND date = \"nov 11\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (name VARCHAR, position VARCHAR, weight VARCHAR)", "role": "system" }, { "content": "What is the name of the player who is a wr and has a weight of 197?", "role": "user" }, { "content": "SELECT name FROM table_name_83 WHERE position = \"wr\" AND weight = 197", "role": "assistant" } ]