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_30 (surface VARCHAR, outcome VARCHAR, score VARCHAR)", "role": "system" }, { "content": "On what Surface was the match with a Score of 6–4, 6–3 and Runner-up Outcome played?", "role": "user" }, { "content": "SELECT surface FROM table_name_30 WHERE outcome = \"runner-up\" AND score = \"6–4, 6–3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (name VARCHAR, constituency_number VARCHAR)", "role": "system" }, { "content": "What is the name of constituency 5?", "role": "user" }, { "content": "SELECT name FROM table_name_50 WHERE constituency_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_name_80 (opponent VARCHAR, attendance INTEGER)", "role": "system" }, { "content": "Who was the opponent during the game that had more than 31,891 people in attendance?", "role": "user" }, { "content": "SELECT opponent FROM table_name_80 WHERE attendance > 31 OFFSET 891", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (Id VARCHAR)", "role": "system" }, { "content": "Who attended the school in 2006, that Whitney Powell attended in 2007?", "role": "user" }, { "content": "SELECT 2006 FROM table_name_32 WHERE 2007 = \"whitney powell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)", "role": "system" }, { "content": "What is the maximum lost with points 1 more than 58 and 66 goals against?", "role": "user" }, { "content": "SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, school VARCHAR)", "role": "system" }, { "content": "What is the player that went to st. benedict's prep?", "role": "user" }, { "content": "SELECT player FROM table_name_61 WHERE school = \"st. benedict's prep\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21576644_2 (mens_3rd_xi VARCHAR, ladies_1st_xi VARCHAR)", "role": "system" }, { "content": "When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?", "role": "user" }, { "content": "SELECT mens_3rd_xi FROM table_21576644_2 WHERE ladies_1st_xi = \"3rd, Sedgemoor Division 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_24384861_1 (video_out VARCHAR, version VARCHAR)", "role": "system" }, { "content": "how many video out connections does the sounddock portable have?", "role": "user" }, { "content": "SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = \"SoundDock Portable\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (location VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Location, when Date is December 8-December 20?", "role": "user" }, { "content": "SELECT location FROM table_name_74 WHERE date = \"december 8-december 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_10361230_1 (player_name VARCHAR, college VARCHAR)", "role": "system" }, { "content": "Which player went to Emporia State?", "role": "user" }, { "content": "SELECT player_name FROM table_10361230_1 WHERE college = \"Emporia State\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What is the First Issue date of Soul Eater?", "role": "user" }, { "content": "SELECT first_issue FROM table_name_85 WHERE title = \"soul eater\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (director_s_ VARCHAR, film VARCHAR)", "role": "system" }, { "content": "Name the director of alt i alt", "role": "user" }, { "content": "SELECT director_s_ FROM table_name_92 WHERE film = \"alt i alt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24865763_2 (gt2_winning_team VARCHAR, lmp1_winning_team VARCHAR)", "role": "system" }, { "content": "Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?", "role": "user" }, { "content": "SELECT gt2_winning_team FROM table_24865763_2 WHERE lmp1_winning_team = \"Greg Mansell Leo Mansell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22897453_1 (kr_narayanan__votes_ INTEGER, value_of_each_vote VARCHAR)", "role": "system" }, { "content": "Name the most kr votes for value of each vote for 208", "role": "user" }, { "content": "SELECT MAX(kr_narayanan__votes_) FROM table_22897453_1 WHERE value_of_each_vote = 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 ship (name VARCHAR, built_year VARCHAR, CLASS VARCHAR)", "role": "system" }, { "content": "List all ship names in the order of built year and class.", "role": "user" }, { "content": "SELECT name FROM ship ORDER BY built_year, CLASS", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18461635_1 (coach VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Who is the coach of the team in Leicester? ", "role": "user" }, { "content": "SELECT coach FROM table_18461635_1 WHERE location = \"Leicester\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (stage VARCHAR, team_classification VARCHAR)", "role": "system" }, { "content": "Which stage had tabriz petrochemical team in the team classification?", "role": "user" }, { "content": "SELECT stage FROM table_name_68 WHERE team_classification = \"tabriz petrochemical team\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, earnings__$__ INTEGER)", "role": "system" }, { "content": "How many wins do the players that earned more than 720,134 have?", "role": "user" }, { "content": "SELECT SUM(wins) FROM table_name_8 WHERE earnings__$__ > 720 OFFSET 134", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the away team score when the home team essendon was playing?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_63 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_name_97 (opponent VARCHAR, method VARCHAR)", "role": "system" }, { "content": "Which Opponent has a Method of submission?", "role": "user" }, { "content": "SELECT opponent FROM table_name_97 WHERE method = \"submission\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27561503_2 (results VARCHAR, sports_20_winning_team VARCHAR)", "role": "system" }, { "content": "Name the results for #23 lotus", "role": "user" }, { "content": "SELECT COUNT(results) FROM table_27561503_2 WHERE sports_20_winning_team = \"#23 Lotus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "Which Country has a Year(s) won of 1977?", "role": "user" }, { "content": "SELECT country FROM table_name_60 WHERE year_s__won = \"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_10 (year INTEGER, competition VARCHAR)", "role": "system" }, { "content": "What year were the Olympic Games?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_10 WHERE competition = \"olympic games\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17001658_6 (team VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Against which team was game 21?", "role": "user" }, { "content": "SELECT team FROM table_17001658_6 WHERE game = 21", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, land_area__km_2__ VARCHAR)", "role": "system" }, { "content": "In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?", "role": "user" }, { "content": "SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = \"8,543.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_14608759_1 (opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "In week 9 who were the opponent? ", "role": "user" }, { "content": "SELECT opponent FROM table_14608759_1 WHERE week = 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_48 (position INTEGER, played INTEGER)", "role": "system" }, { "content": "What is the highest position for less than 42 played?", "role": "user" }, { "content": "SELECT MAX(position) FROM table_name_48 WHERE played < 42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "Name the viewers for production code being 3x6706", "role": "user" }, { "content": "SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = \"3X6706\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What away team is the home team richmond?", "role": "user" }, { "content": "SELECT away_team FROM table_name_16 WHERE home_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "What's the title of the episode first seen by 18.15 million people in the US?", "role": "user" }, { "content": "SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = \"18.15\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2508633_6 (nfl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Name the total number for nfl team for ellis gardner", "role": "user" }, { "content": "SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = \"Ellis Gardner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (club VARCHAR, losing_bonus VARCHAR)", "role": "system" }, { "content": "Which Club has 1 Losing bonus?", "role": "user" }, { "content": "SELECT club FROM table_name_18 WHERE losing_bonus = \"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 (title VARCHAR, appointed_by VARCHAR)", "role": "system" }, { "content": "What is the title of the representative appointed by James K. Polk?", "role": "user" }, { "content": "SELECT title FROM table_name_52 WHERE appointed_by = \"james k. polk\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (type VARCHAR, issued VARCHAR)", "role": "system" }, { "content": "What type was issued in 1964?", "role": "user" }, { "content": "SELECT type FROM table_name_1 WHERE issued = 1964", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28281704_1 (stadium VARCHAR, city VARCHAR)", "role": "system" }, { "content": "Name the stadium for nizhny novgorod", "role": "user" }, { "content": "SELECT stadium FROM table_28281704_1 WHERE city = \"Nizhny Novgorod\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (s_touchdown VARCHAR, average VARCHAR, rec VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?", "role": "user" }, { "content": "SELECT COUNT(s_touchdown) FROM table_name_57 WHERE rec = 10 AND opponent = \"oregon state\" AND average < 19.7", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "What city and state are the miners located in?", "role": "user" }, { "content": "SELECT location FROM table_11044765_1 WHERE mascot = \"Miners\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1912713_2 (意義_meaning VARCHAR, 性情_personality VARCHAR)", "role": "system" }, { "content": "What is the meaning of a gentle personality?", "role": "user" }, { "content": "SELECT 意義_meaning FROM table_1912713_2 WHERE 性情_personality = \"Gentle\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, nominee VARCHAR, category VARCHAR)", "role": "system" }, { "content": "Which Year has a Nominee of stephen sondheim, and a Category of the best original score?", "role": "user" }, { "content": "SELECT year FROM table_name_90 WHERE nominee = \"stephen sondheim\" AND category = \"best original score\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29942205_1 (miss_international INTEGER, rank VARCHAR)", "role": "system" }, { "content": "How many women has reached the title of Miss International representing the country ranked as number 1?", "role": "user" }, { "content": "SELECT MIN(miss_international) FROM table_29942205_1 WHERE 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_23 (total VARCHAR, first_round VARCHAR, finals VARCHAR)", "role": "system" }, { "content": "Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?", "role": "user" }, { "content": "SELECT COUNT(total) FROM table_name_23 WHERE first_round = \"0\" AND finals < 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_14115168_4 (national_titles INTEGER, school VARCHAR)", "role": "system" }, { "content": "how many overall championships does concordia university have", "role": "user" }, { "content": "SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = \"Concordia 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 table_name_35 (school_club_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What school does John Crotty play for?", "role": "user" }, { "content": "SELECT school_club_team FROM table_name_35 WHERE player = \"john crotty\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Which team played Footscray?", "role": "user" }, { "content": "SELECT away_team FROM table_name_41 WHERE home_team = \"footscray\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, total VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "Which Bronze has a Total of 11, and a Silver smaller than 6?", "role": "user" }, { "content": "SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 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_69 (call_sign VARCHAR, class VARCHAR)", "role": "system" }, { "content": "What is the call sign for a class of A?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_69 WHERE class = \"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_13 (date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR)", "role": "system" }, { "content": "What is the date of birth of the goalkeeper from the 1st season?", "role": "user" }, { "content": "SELECT date_of_birth FROM table_name_13 WHERE position_s_ = \"goalkeeper\" AND seasons = \"1st\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, team VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What year did they get 4 points with Suzuki?", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_97 WHERE team = \"suzuki\" AND points = 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 SUBJECTS (subject_name VARCHAR)", "role": "system" }, { "content": "List all the subject names.", "role": "user" }, { "content": "SELECT subject_name FROM SUBJECTS", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, losses VARCHAR, against VARCHAR)", "role": "system" }, { "content": "How many wins have 16 losses and an Against smaller than 3213?", "role": "user" }, { "content": "SELECT SUM(wins) FROM table_name_82 WHERE losses = 16 AND against < 3213", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27713030_7 (game INTEGER)", "role": "system" }, { "content": "What game in the season does this list start?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_27713030_7", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14977592_1 (game_site VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Name the total number of game sites for chicago bears", "role": "user" }, { "content": "SELECT COUNT(game_site) FROM table_14977592_1 WHERE opponent = \"Chicago Bears\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "How many times did the Centurions play the Rhein Fire?", "role": "user" }, { "content": "SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = \"Rhein Fire\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, goals_conceded VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_64 WHERE goals_conceded > 23 AND position > 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_13657749_2 (results VARCHAR, gto_winning_team VARCHAR)", "role": "system" }, { "content": "What is Peter Gregg Hurley Haywood's results?", "role": "user" }, { "content": "SELECT results FROM table_13657749_2 WHERE gto_winning_team = \"Peter Gregg Hurley Haywood\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)", "role": "system" }, { "content": "What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?", "role": "user" }, { "content": "SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = \"रविवार ravivār\" AND tuesday_mangala__mars_ = \"मंगळवार mangaḷavār\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26708105_5 (protein_name VARCHAR, aa_length VARCHAR)", "role": "system" }, { "content": "What is the protein name when aa length is 202 aa?", "role": "user" }, { "content": "SELECT protein_name FROM table_26708105_5 WHERE aa_length = \"202 aa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = \"czechoslovakia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (airport VARCHAR, country VARCHAR, icao VARCHAR)", "role": "system" }, { "content": "what is the airport for the country tunisia with the icao dtaa?", "role": "user" }, { "content": "SELECT airport FROM table_name_68 WHERE country = \"tunisia\" AND icao = \"dtaa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (network VARCHAR, region_country VARCHAR, dates_aired VARCHAR)", "role": "system" }, { "content": "What is the name of the network in the United Kingdom which aired in 1985–1992?", "role": "user" }, { "content": "SELECT network FROM table_name_44 WHERE region_country = \"united kingdom\" AND dates_aired = \"1985–1992\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (title VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "What is the title of the episode that was directed by Roy Dupuis?", "role": "user" }, { "content": "SELECT title FROM table_name_38 WHERE directed_by = \"roy dupuis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (population_density__per_km²_ VARCHAR, gdp__ppp__$m_usd VARCHAR)", "role": "system" }, { "content": "How much is the population density with a GDP at $188,112?", "role": "user" }, { "content": "SELECT population_density__per_km²_ FROM table_name_31 WHERE gdp__ppp__$m_usd = \"$188,112\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (to_par VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What did Steve Elkington par?", "role": "user" }, { "content": "SELECT to_par FROM table_name_47 WHERE player = \"steve elkington\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22165661_3 (head_coach VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who is the head coach for the score of 4-3?", "role": "user" }, { "content": "SELECT head_coach FROM table_22165661_3 WHERE score = \"4-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_32 (position VARCHAR, school VARCHAR)", "role": "system" }, { "content": "What position does the player from texas a&m play?", "role": "user" }, { "content": "SELECT position FROM table_name_32 WHERE school = \"texas a&m\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR)", "role": "system" }, { "content": "Name the most number when tournament is madrid masters", "role": "user" }, { "content": "SELECT MAX(no) FROM table_1590652_4 WHERE tournament = \"Madrid Masters\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, goals VARCHAR, matches VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_89 WHERE matches < 285 AND name = \"des dickson\" AND goals < 219", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20174050_24 (format VARCHAR, author VARCHAR)", "role": "system" }, { "content": "how many formats of books authored by day, martin martin day", "role": "user" }, { "content": "SELECT COUNT(format) FROM table_20174050_24 WHERE author = \"Day, Martin Martin Day\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140073_2 (race VARCHAR, pole_position VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What race had Nelson Piquet on the pole and was in Nürburgring?", "role": "user" }, { "content": "SELECT race FROM table_1140073_2 WHERE pole_position = \"Nelson Piquet\" AND location = \"Nürburgring\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (surface VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "On what Surface was the match against Ilija Bozoljac played?", "role": "user" }, { "content": "SELECT surface FROM table_name_9 WHERE opponent = \"ilija bozoljac\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (against INTEGER, wins VARCHAR, geelong_fl VARCHAR)", "role": "system" }, { "content": "Which Against has more than 11 wins, and a Geelong FL of st josephs?", "role": "user" }, { "content": "SELECT MIN(against) FROM table_name_35 WHERE wins > 11 AND geelong_fl = \"st josephs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result of the fight with Tony Halme?", "role": "user" }, { "content": "SELECT res FROM table_name_27 WHERE opponent = \"tony halme\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (inductee_s_ VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the name of the inductee for the ecw arena?", "role": "user" }, { "content": "SELECT inductee_s_ FROM table_name_56 WHERE venue = \"ecw arena\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (nba_draft VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What was the nba draft for al-farouq aminu?", "role": "user" }, { "content": "SELECT nba_draft FROM table_name_53 WHERE player = \"al-farouq aminu\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Name the district for spencer bachus", "role": "user" }, { "content": "SELECT district FROM table_25030512_4 WHERE incumbent = \"Spencer Bachus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "What is the name of the director of the episode written by robin schwartz & robert tarlow?", "role": "user" }, { "content": "SELECT directed_by FROM table_name_55 WHERE written_by = \"robin schwartz & robert tarlow\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE film (language_id VARCHAR)", "role": "system" }, { "content": "How many languages are in these films?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT language_id) FROM 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_89 (wins VARCHAR, position VARCHAR, draws VARCHAR, scored VARCHAR, conceded VARCHAR)", "role": "system" }, { "content": "How many Wins have a Scored smaller than 24, and a Conceded larger than 25, and Draws larger than 5, and a Position smaller than 9?", "role": "user" }, { "content": "SELECT COUNT(wins) FROM table_name_89 WHERE scored < 24 AND conceded > 25 AND draws > 5 AND position < 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_62 (years VARCHAR, goals VARCHAR)", "role": "system" }, { "content": "For the player that scored 27 goals, what years did he score them?", "role": "user" }, { "content": "SELECT years FROM table_name_62 WHERE goals = 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_169955_1 (saka_era VARCHAR, sign_of_zodiac VARCHAR)", "role": "system" }, { "content": "Name the saka era for sign of zodiac being pisces", "role": "user" }, { "content": "SELECT saka_era FROM table_169955_1 WHERE sign_of_zodiac = \"Pisces\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (points INTEGER, performer VARCHAR, draw VARCHAR)", "role": "system" }, { "content": "Which Points has a Performer of rob burke band and a Draw larger than 1?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_32 WHERE performer = \"rob burke band\" AND draw > 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_26758262_1 (judges_residence VARCHAR, municipalities_served VARCHAR)", "role": "system" }, { "content": "Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?", "role": "user" }, { "content": "SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = \"Beacon Falls , Naugatuck , Middlebury , Prospect\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (days_held VARCHAR, wrestler VARCHAR)", "role": "system" }, { "content": "What days held has noiz as the wrestler?", "role": "user" }, { "content": "SELECT days_held FROM table_name_95 WHERE wrestler = \"noiz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17622423_12 (high_assists VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the high assists for may 21", "role": "user" }, { "content": "SELECT high_assists FROM table_17622423_12 WHERE date = \"May 21\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (pal_m VARCHAR, ntsc_m VARCHAR)", "role": "system" }, { "content": "What is the PAL M for the NTSC M 4.5mhz?", "role": "user" }, { "content": "SELECT pal_m FROM table_name_54 WHERE ntsc_m = \"4.5mhz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR)", "role": "system" }, { "content": "Name the color analyst for terry bowden and 17.2", "role": "user" }, { "content": "SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = \"Terry Bowden\" AND tv_rating = \"17.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_51 (air_date VARCHAR, order VARCHAR)", "role": "system" }, { "content": "What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?", "role": "user" }, { "content": "SELECT SUM(18 AS _49) FROM table_name_51 WHERE air_date = \"june 25, 2009\" AND order > 29", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 INTEGER, west VARCHAR, berlin VARCHAR)", "role": "system" }, { "content": "What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_90 WHERE west = \"borussia dortmund\" AND berlin = \"bfc viktoria 1889\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, rider VARCHAR)", "role": "system" }, { "content": "How many ranks have michael russell as the rider?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_71 WHERE rider = \"michael russell\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "Which 2012 has a 2007 of 0 / 4?", "role": "user" }, { "content": "SELECT 2012 FROM table_name_8 WHERE 2007 = \"0 / 4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (venue VARCHAR, game VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is Venue, when Game is greater than 18, and when Opponent is Morecambe?", "role": "user" }, { "content": "SELECT venue FROM table_name_41 WHERE game > 18 AND opponent = \"morecambe\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR)", "role": "system" }, { "content": "What was the termination type for the headphones with comfort pads and selling for $150?", "role": "user" }, { "content": "SELECT termination FROM table_name_2 WHERE earpads = \"comfort pads\" AND us_msrp = \"$150\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (frequency VARCHAR, branding VARCHAR)", "role": "system" }, { "content": "Which Frequency has a Branding of country 600?", "role": "user" }, { "content": "SELECT frequency FROM table_name_26 WHERE branding = \"country 600\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, january VARCHAR)", "role": "system" }, { "content": "How many Points have a January of 18?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_88 WHERE january = 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_28884858_1 (average_attendance VARCHAR, capacity_percentage VARCHAR)", "role": "system" }, { "content": "How many average attendance has a capacity percentage of 96.5%", "role": "user" }, { "content": "SELECT COUNT(average_attendance) FROM table_28884858_1 WHERE capacity_percentage = \"96.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_72 (rookie_of_the_year VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Who was the Rookie of the Year for the Season in 2000?", "role": "user" }, { "content": "SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (nba_draft VARCHAR, school VARCHAR)", "role": "system" }, { "content": "Which NBA draft has a School of huntington high school?", "role": "user" }, { "content": "SELECT nba_draft FROM table_name_57 WHERE school = \"huntington high school\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (jury INTEGER, place VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the total of the jury that is 2nd place and the total is larger than 190?", "role": "user" }, { "content": "SELECT SUM(jury) FROM table_name_86 WHERE place = \"2nd\" AND total > 190", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27723526_13 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "What is the game number played on April 3?", "role": "user" }, { "content": "SELECT MAX(game) FROM table_27723526_13 WHERE date = \"April 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_56 (rank VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the total rank for the athlete that had a race time of 7:34.24?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_56 WHERE time = \"7:34.24\"", "role": "assistant" } ]