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 artist (artist_name VARCHAR, country VARCHAR, gender VARCHAR)", "role": "system" }, { "content": "What are the names of artists who are Male and are from UK?", "role": "user" }, { "content": "SELECT artist_name FROM artist WHERE country = \"UK\" AND gender = \"Male\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 the number of high schoolers for each grade.", "role": "user" }, { "content": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25773116_2 (round VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many rounds were played on May 8?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_25773116_2 WHERE date = \"May 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_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR)", "role": "system" }, { "content": "Who built the train in 1966 with over 40 produced?", "role": "user" }, { "content": "SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = \"1966\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tyres VARCHAR, class VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which tires were in Class C in years before 1983?", "role": "user" }, { "content": "SELECT tyres FROM table_name_70 WHERE class = \"c\" AND year < 1983", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Customers_Cards (card_type_code VARCHAR)", "role": "system" }, { "content": "Show all card type codes.", "role": "user" }, { "content": "SELECT DISTINCT card_type_code FROM Customers_Cards", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, extra VARCHAR)", "role": "system" }, { "content": "Which venue had an extra of Junior Race?", "role": "user" }, { "content": "SELECT venue FROM table_name_68 WHERE extra = \"junior race\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2985664_8 (runs INTEGER, average VARCHAR)", "role": "system" }, { "content": "What is the lowest value for runs when the average is 42.36?", "role": "user" }, { "content": "SELECT MIN(runs) FROM table_2985664_8 WHERE average = \"42.36\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)", "role": "system" }, { "content": "who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?", "role": "user" }, { "content": "SELECT opponent FROM table_name_93 WHERE surface = \"clay\" AND outcome = \"winner\" AND championship = \"estoril\" AND date = \"15 april 1996\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (winning__percentage VARCHAR, years VARCHAR)", "role": "system" }, { "content": "what is the winning % for the years 2006-11?", "role": "user" }, { "content": "SELECT winning__percentage FROM table_name_98 WHERE years = \"2006-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_96 (session VARCHAR, discipline VARCHAR)", "role": "system" }, { "content": "Which session had a discipline of open wheel?", "role": "user" }, { "content": "SELECT session FROM table_name_96 WHERE discipline = \"open wheel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2182562_1 (avg_finish VARCHAR, winnings VARCHAR)", "role": "system" }, { "content": "What is the average finish when winnings equals $71,200?", "role": "user" }, { "content": "SELECT avg_finish FROM table_2182562_1 WHERE winnings = \"$71,200\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, nation VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "How many Bronze medals did Switzerland with less than 3 Silver medals receive?", "role": "user" }, { "content": "SELECT MIN(bronze) FROM table_name_75 WHERE nation = \"switzerland\" AND silver < 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_23730973_5 (no INTEGER, rating VARCHAR)", "role": "system" }, { "content": "What number episode had a 4.2 rating? ", "role": "user" }, { "content": "SELECT MIN(no) FROM table_23730973_5 WHERE rating = \"4.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_41 (co_drivers VARCHAR, pos VARCHAR, class VARCHAR)", "role": "system" }, { "content": "Who was the co-driver in the DNF position in the GT1 class?", "role": "user" }, { "content": "SELECT co_drivers FROM table_name_41 WHERE pos = \"dnf\" AND class = \"gt1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (year INTEGER, bronze VARCHAR)", "role": "system" }, { "content": "WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_20 WHERE bronze = \"aimo tepsell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many average speeds are listed in the year 2003? ", "role": "user" }, { "content": "SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = \"2003\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (country VARCHAR, career VARCHAR)", "role": "system" }, { "content": "What Country has a Career of 1989–2004?", "role": "user" }, { "content": "SELECT country FROM table_name_26 WHERE career = \"1989–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_54 (week INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the Week number on November 20, 1977?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_54 WHERE date = \"november 20, 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_name_16 (label VARCHAR, release VARCHAR)", "role": "system" }, { "content": "Which Label has a Release of liebesgrüsse aus ost-berlin?", "role": "user" }, { "content": "SELECT label FROM table_name_16 WHERE release = \"liebesgrüsse aus ost-berlin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1965650_8 (college_junior_club_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What cub team or college did Bob Law come from?", "role": "user" }, { "content": "SELECT college_junior_club_team FROM table_1965650_8 WHERE player = \"Bob Law\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (play_by_play VARCHAR, year VARCHAR, ice_level_reporters VARCHAR)", "role": "system" }, { "content": "Who did the play-by-play before 1992 with the Ice level reporter Mike Emrick?", "role": "user" }, { "content": "SELECT play_by_play FROM table_name_15 WHERE year < 1992 AND ice_level_reporters = \"mike emrick\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR)", "role": "system" }, { "content": "What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?", "role": "user" }, { "content": "SELECT n° FROM table_15887683_5 WHERE package_option = \"Sky Cinema\" AND content = \"cinema\" AND television_service = \"Sky Cinema\" + 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_11545282_18 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which position does Deshawn Stevenson play?", "role": "user" }, { "content": "SELECT position FROM table_11545282_18 WHERE player = \"DeShawn Stevenson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER)", "role": "system" }, { "content": "Name the result for goal # more than 4", "role": "user" }, { "content": "SELECT result FROM table_name_92 WHERE goal__number > 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_68 (manufacturer VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "Who manufactures Makoto Tamada's vehicle?", "role": "user" }, { "content": "SELECT manufacturer FROM table_name_68 WHERE rider = \"makoto tamada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, host VARCHAR)", "role": "system" }, { "content": "In what year was Luxembourg Host?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_77 WHERE host = \"luxembourg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (voltage VARCHAR, turbo VARCHAR, cores VARCHAR, release_date VARCHAR)", "role": "system" }, { "content": "What is the voltage when there are 2 cores, turbo is 5/8 and the release date is September 2010?", "role": "user" }, { "content": "SELECT voltage FROM table_name_71 WHERE cores = \"2\" AND release_date = \"september 2010\" AND turbo = \"5/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_name_65 (venue VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What venue features essendon at home?", "role": "user" }, { "content": "SELECT venue FROM table_name_65 WHERE home_team = \"essendon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1354805_3 (total VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)", "role": "system" }, { "content": "What is the Number of dances is 11 and competition finish is larger than 2.0 total", "role": "user" }, { "content": "SELECT total FROM table_1354805_3 WHERE number_of_dances = 11 AND competition_finish > 2.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_27537870_6 (january VARCHAR, decision VARCHAR)", "role": "system" }, { "content": "If the decision was by Lalime, when in January was it made?", "role": "user" }, { "content": "SELECT january FROM table_27537870_6 WHERE decision = \"Lalime\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (norwegian__nynorsk_ VARCHAR, danish VARCHAR)", "role": "system" }, { "content": "Which Norwegian (nynorsk) has a Danish of farvel?", "role": "user" }, { "content": "SELECT norwegian__nynorsk_ FROM table_name_12 WHERE danish = \"farvel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23225927_1 (original_air_date VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "If the number in the season is 22, what is the original air date?", "role": "user" }, { "content": "SELECT original_air_date FROM table_23225927_1 WHERE no_in_season = 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_11658094_3 (left INTEGER, institution VARCHAR)", "role": "system" }, { "content": "What year did longwood university leave the conference?", "role": "user" }, { "content": "SELECT MIN(left) FROM table_11658094_3 WHERE institution = \"Longwood University\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR)", "role": "system" }, { "content": "What country does Roberto Almeida live?", "role": "user" }, { "content": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25342713_5 (blocks VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many players 89 points?", "role": "user" }, { "content": "SELECT COUNT(blocks) FROM table_25342713_5 WHERE points = 89", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23281862_10 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Name the total number of date for score being l 106–116 (ot)", "role": "user" }, { "content": "SELECT COUNT(date) FROM table_23281862_10 WHERE score = \"L 106–116 (OT)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR)", "role": "system" }, { "content": "Which report has a Winning driver of peter collins, and a Circuit of syracuse?", "role": "user" }, { "content": "SELECT report FROM table_name_33 WHERE winning_driver = \"peter collins\" AND circuit = \"syracuse\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Local VARCHAR, mission VARCHAR)", "role": "system" }, { "content": "What is Local Mission, when Mission is \"Mauritius\"?", "role": "user" }, { "content": "SELECT Local AS mission FROM table_name_8 WHERE mission = \"mauritius\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28677723_9 (style VARCHAR, tor_fløysvik VARCHAR)", "role": "system" }, { "content": "Which style led to a score given by Tor Floysvik of 8?", "role": "user" }, { "content": "SELECT style FROM table_28677723_9 WHERE tor_fløysvik = 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_name_82 (runs INTEGER, batting_partners VARCHAR)", "role": "system" }, { "content": "How many runs did mahela jayawardene and thilan samaraweera have?", "role": "user" }, { "content": "SELECT SUM(runs) FROM table_name_82 WHERE batting_partners = \"mahela jayawardene and thilan samaraweera\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (party VARCHAR, district VARCHAR)", "role": "system" }, { "content": "In Colorado 6 district what is the party?", "role": "user" }, { "content": "SELECT party FROM table_name_66 WHERE district = \"colorado 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_82 (attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the attendance of the game on December 11, 2005?", "role": "user" }, { "content": "SELECT attendance FROM table_name_82 WHERE date = \"december 11, 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_11959669_3 (high_rebounds VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who had the highest rebounds on November 4", "role": "user" }, { "content": "SELECT high_rebounds FROM table_11959669_3 WHERE date = \"November 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_11 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Nationality of daniel goneau?", "role": "user" }, { "content": "SELECT nationality FROM table_name_11 WHERE player = \"daniel goneau\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (artist_id VARCHAR)", "role": "system" }, { "content": "Show all artist names and the number of exhibitions for each artist.", "role": "user" }, { "content": "SELECT T2.name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (points INTEGER, record VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Which Points have a Record of 45–21–4, and a Game larger than 70?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_77 WHERE record = \"45–21–4\" AND game > 70", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, floors VARCHAR)", "role": "system" }, { "content": "Which Location has a Floors of 03.0 n/a?", "role": "user" }, { "content": "SELECT location FROM table_name_18 WHERE floors = \"03.0 n/a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR)", "role": "system" }, { "content": "what is the heat when the athlete is anita pistone?", "role": "user" }, { "content": "SELECT SUM(heat) FROM table_name_89 WHERE athlete = \"anita pistone\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "Which Notes has a Competition of venice marathon?", "role": "user" }, { "content": "SELECT notes FROM table_name_78 WHERE competition = \"venice marathon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What team was the home team on 27 june 1981, at vfl park?", "role": "user" }, { "content": "SELECT home_team FROM table_name_88 WHERE date = \"27 june 1981\" AND venue = \"vfl 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_44 (height VARCHAR, position VARCHAR, year_born VARCHAR)", "role": "system" }, { "content": "Born in 1982, this guard has what listed as a height?", "role": "user" }, { "content": "SELECT height FROM table_name_44 WHERE position = \"guard\" AND year_born = 1982", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the venue when melbourne is the away team?", "role": "user" }, { "content": "SELECT venue FROM table_name_25 WHERE away_team = \"melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (score VARCHAR, set_3 VARCHAR)", "role": "system" }, { "content": "What was the overall score when the score of set 3 was 29–27?", "role": "user" }, { "content": "SELECT score FROM table_name_63 WHERE set_3 = \"29–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_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What League's Round is Sup and Position is Right Wing?", "role": "user" }, { "content": "SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = \"right wing\" AND round = \"sup\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?", "role": "user" }, { "content": "SELECT venue FROM table_name_20 WHERE competition = \"european cross country championships\" AND notes = \"junior men individual 6.595km\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_176529_2 (census_ranking VARCHAR, population VARCHAR)", "role": "system" }, { "content": "What is the census ranking of the location with population of 959?", "role": "user" }, { "content": "SELECT census_ranking FROM table_176529_2 WHERE population = 959", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21436373_11 (result_games VARCHAR, type_of_record VARCHAR)", "role": "system" }, { "content": "Name the result for total attendance-regular season", "role": "user" }, { "content": "SELECT result_games FROM table_21436373_11 WHERE type_of_record = \"Total attendance-Regular season\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, attendance VARCHAR)", "role": "system" }, { "content": "What is the least recent week number when the attendance is 16,562?", "role": "user" }, { "content": "SELECT MIN(week) FROM table_name_1 WHERE attendance = 16 OFFSET 562", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (school_club_team VARCHAR, position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Amal McCaskill who plays forward-center played for what school/club team?", "role": "user" }, { "content": "SELECT school_club_team FROM table_name_55 WHERE position = \"forward-center\" AND player = \"amal mccaskill\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR)", "role": "system" }, { "content": "which regiment was in the Fulton County", "role": "user" }, { "content": "SELECT regiment FROM table_29458735_5 WHERE county = \"Fulton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23486853_7 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What scores happened on February 9?", "role": "user" }, { "content": "SELECT score FROM table_23486853_7 WHERE date = \"February 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_66 (year INTEGER, category VARCHAR)", "role": "system" }, { "content": "Which Year has a Category of best film?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_66 WHERE category = \"best film\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (balls VARCHAR, venue VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is Balls, when Venue is \"Bristol\", and when Score is \"104*\"?", "role": "user" }, { "content": "SELECT balls FROM table_name_3 WHERE venue = \"bristol\" AND score = \"104*\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, year VARCHAR, class VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the sum of Points for 250cc class, ranked 13th, later than 1955?", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_89 WHERE class = \"250cc\" AND rank = \"13th\" AND year > 1955", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (completed VARCHAR, builder VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When did chatham complete the Hmsmedusa?", "role": "user" }, { "content": "SELECT completed FROM table_name_91 WHERE builder = \"chatham\" AND name = \"hmsmedusa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16376436_1 (college VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What college did the defensive back attend?", "role": "user" }, { "content": "SELECT college FROM table_16376436_1 WHERE position = \"Defensive Back\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (position VARCHAR, played INTEGER)", "role": "system" }, { "content": "What is the total number of Position, when Played is less than 46?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_name_51 WHERE played < 46", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lost VARCHAR, _percentage_won VARCHAR)", "role": "system" }, { "content": "Name the lost for % won of 55.37", "role": "user" }, { "content": "SELECT lost FROM table_name_64 WHERE _percentage_won = \"55.37\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12094609_1 (swimsuit VARCHAR, average VARCHAR)", "role": "system" }, { "content": " what's the swimsuit where average is 8.670", "role": "user" }, { "content": "SELECT swimsuit FROM table_12094609_1 WHERE average = \"8.670\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)", "role": "system" }, { "content": "Show the names of members and the location of the performances they attended.", "role": "user" }, { "content": "SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (tyre VARCHAR, fastest_lap VARCHAR)", "role": "system" }, { "content": "What tyre did Paul Russo have on his fastest lap?", "role": "user" }, { "content": "SELECT tyre FROM table_name_67 WHERE fastest_lap = \"paul russo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (date VARCHAR, winner VARCHAR)", "role": "system" }, { "content": "When did Scott Hoch (2) win?", "role": "user" }, { "content": "SELECT date FROM table_name_78 WHERE winner = \"scott hoch (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_27491610_2 (no_in_season INTEGER, no_in_series VARCHAR)", "role": "system" }, { "content": "What number in season is number 141 in series?", "role": "user" }, { "content": "SELECT MAX(no_in_season) FROM table_27491610_2 WHERE no_in_series = 141", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (premiere INTEGER, average VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the premiere rating associated with an average of 35 ranked above 1?", "role": "user" }, { "content": "SELECT MIN(premiere) FROM table_name_7 WHERE average = 35 AND rank > 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_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)", "role": "system" }, { "content": "What's the duration of the Archers with Norman Painting as an actor?", "role": "user" }, { "content": "SELECT duration FROM table_name_98 WHERE soap_opera = \"the archers\" AND actor = \"norman painting\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the venue for friendly competition october 16, 2012", "role": "user" }, { "content": "SELECT venue FROM table_name_89 WHERE competition = \"friendly\" AND date = \"october 16, 2012\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Owners (state VARCHAR); CREATE TABLE Professionals (state VARCHAR)", "role": "system" }, { "content": "Which states have both owners and professionals living there?", "role": "user" }, { "content": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27765443_2 (no_of_processors VARCHAR, period_of_operation VARCHAR)", "role": "system" }, { "content": "Name the number of processors for october 2006 - january 2010", "role": "user" }, { "content": "SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = \"October 2006 - January 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_1408397_3 (telugu_తెలుగు VARCHAR, mongolian VARCHAR)", "role": "system" }, { "content": "What is the Telugu word for хонгорцог in Mongolian?", "role": "user" }, { "content": "SELECT telugu_తెలుగు FROM table_1408397_3 WHERE mongolian = \"Хонгорцог\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (decision VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "What is the decision when they're at phoenix?", "role": "user" }, { "content": "SELECT decision FROM table_name_22 WHERE visitor = \"phoenix\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "What is the position of a player from a round less than 4 and an overall of 17?", "role": "user" }, { "content": "SELECT position FROM table_name_81 WHERE round < 4 AND overall = \"17\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14650373_1 (pick__number INTEGER)", "role": "system" }, { "content": "What is the highest pick number?", "role": "user" }, { "content": "SELECT MAX(pick__number) FROM table_14650373_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_18590048_1 (platform VARCHAR, units_sold__in_millions_ VARCHAR)", "role": "system" }, { "content": "What platform sold 11.18 million units?", "role": "user" }, { "content": "SELECT platform FROM table_18590048_1 WHERE units_sold__in_millions_ = \"11.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_23 (cr_no INTEGER, works VARCHAR, lms_no VARCHAR)", "role": "system" }, { "content": "What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?", "role": "user" }, { "content": "SELECT AVG(cr_no) FROM table_name_23 WHERE works = \"hawthorn leslie 3100\" AND lms_no < 14761", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR)", "role": "system" }, { "content": "what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?", "role": "user" }, { "content": "SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND 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_78 (playoffs VARCHAR, manager VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Manager of spencer abbott, and a Year of 1919 involves what playoffs?", "role": "user" }, { "content": "SELECT playoffs FROM table_name_78 WHERE manager = \"spencer abbott\" AND year = 1919", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winner VARCHAR, score VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Which Winner has a Score of 1 – 0, and a Season of 2011–12?", "role": "user" }, { "content": "SELECT winner FROM table_name_30 WHERE score = \"1 – 0\" AND season = \"2011–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_23248967_5 (score VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What was the score against New Orleans?", "role": "user" }, { "content": "SELECT score FROM table_23248967_5 WHERE team = \"New Orleans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2012187_3 (team_s_ VARCHAR, top_10 VARCHAR)", "role": "system" }, { "content": "What team or teams with 18 in the top 10?", "role": "user" }, { "content": "SELECT team_s_ FROM table_2012187_3 WHERE top_10 = 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_78 (population INTEGER, area_km_2 VARCHAR)", "role": "system" }, { "content": "What is the population of the parish that has an area of 304.06?", "role": "user" }, { "content": "SELECT SUM(population) FROM table_name_78 WHERE area_km_2 = 304.06", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_2 (pop__2010_ VARCHAR, water__sqmi_ VARCHAR)", "role": "system" }, { "content": "how many townships where pop (2010) and ater is 0.818", "role": "user" }, { "content": "SELECT COUNT(pop__2010_) FROM table_18600760_2 WHERE water__sqmi_ = \"0.818\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, visitor VARCHAR, home VARCHAR)", "role": "system" }, { "content": "How many points have pittsburgh as the visitor, and philadelphia as the home?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_38 WHERE visitor = \"pittsburgh\" AND home = \"philadelphia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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_of_demolition VARCHAR, location VARCHAR)", "role": "system" }, { "content": "How many dates of demolition are located on Wood Street?", "role": "user" }, { "content": "SELECT COUNT(date_of_demolition) FROM table_name_7 WHERE location = \"wood street\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)", "role": "system" }, { "content": "what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?", "role": "user" }, { "content": "SELECT nominated_work_title FROM table_name_52 WHERE result = \"won\" AND organisation = \"star awards\" AND award = \"top 10 most popular female artiste\" 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_31 (rotterterode VARCHAR, reimboldsh VARCHAR)", "role": "system" }, { "content": "What Rotterterrode has a Reimboldsh 80?", "role": "user" }, { "content": "SELECT rotterterode FROM table_name_31 WHERE reimboldsh = \"80\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "How much gold does the tank have that has 3 silver and more than 3 bronze?", "role": "user" }, { "content": "SELECT COUNT(gold) FROM table_name_19 WHERE silver = 3 AND bronze > 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_22977424_8 (name VARCHAR, promoted_to_league VARCHAR)", "role": "system" }, { "content": "Name the name for henley manchester", "role": "user" }, { "content": "SELECT name FROM table_22977424_8 WHERE promoted_to_league = \"Henley Manchester\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27021001_1 (district VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the district with the result mac collins (r) unopposed?", "role": "user" }, { "content": "SELECT district FROM table_27021001_1 WHERE result = \"Mac Collins (R) unopposed\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)", "role": "system" }, { "content": "How many acres does the area of Lissagroom with Bandon as its poor law union cover?", "role": "user" }, { "content": "SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = \"Bandon\" AND townland = \"Lissagroom\"", "role": "assistant" } ]