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_92 (director VARCHAR, language VARCHAR)", "role": "system" }, { "content": "Who is the director of the film in Italian?", "role": "user" }, { "content": "SELECT director FROM table_name_92 WHERE language = \"italian\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE people (sex VARCHAR, weight INTEGER)", "role": "system" }, { "content": "how many people are there whose weight is higher than 85 for each gender?", "role": "user" }, { "content": "SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_singles VARCHAR)", "role": "system" }, { "content": "Name the men doubles for els baert", "role": "user" }, { "content": "SELECT men_doubles FROM table_14903355_2 WHERE womens_singles = \"Els Baert\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15637071_1 (headquarters VARCHAR, icao VARCHAR)", "role": "system" }, { "content": "Where is the headquarters of the airline which has the ICAO code of AAU?", "role": "user" }, { "content": "SELECT headquarters FROM table_15637071_1 WHERE icao = \"AAU\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)", "role": "system" }, { "content": "At the longitude of 355.0e, what is the name origin?", "role": "user" }, { "content": "SELECT name AS origin FROM table_16799784_9 WHERE longitude = \"355.0E\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10416547_1 (duration VARCHAR, major_instrument_s_ VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?", "role": "user" }, { "content": "SELECT duration FROM table_10416547_1 WHERE major_instrument_s_ = \"Piano\" AND date = \"2004-02-03\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (position INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)", "role": "system" }, { "content": "Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44", "role": "user" }, { "content": "SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27722734_7 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "Name the most game for december 1", "role": "user" }, { "content": "SELECT MAX(game) FROM table_27722734_7 WHERE date = \"December 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_70 (year VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "In what years did Salina Kosgei compete in Singapore?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_70 WHERE venue = \"singapore\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (years VARCHAR, jersey_number_s_ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What years did Elden Campbell category:articles with hcards and jersesy number of 41 play?", "role": "user" }, { "content": "SELECT years FROM table_name_31 WHERE jersey_number_s_ = 41 AND player = \"elden campbell category:articles with hcards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "What was the outcome of the match played on grass?", "role": "user" }, { "content": "SELECT outcome FROM table_name_64 WHERE surface = \"grass\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (capacity INTEGER, club VARCHAR)", "role": "system" }, { "content": "What is the highest capacity for the venue of the club, vihren?", "role": "user" }, { "content": "SELECT MAX(capacity) FROM table_name_19 WHERE club = \"vihren\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away VARCHAR, round VARCHAR, club VARCHAR)", "role": "system" }, { "content": "What is NK Rijeka's away score in Round 2?", "role": "user" }, { "content": "SELECT away FROM table_name_97 WHERE round < 2 AND club = \"nk rijeka\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What was the score of Game 48?", "role": "user" }, { "content": "SELECT score FROM table_name_43 WHERE game = \"48\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What team has a Score of l 88–94 (ot)?", "role": "user" }, { "content": "SELECT team FROM table_name_98 WHERE score = \"l 88–94 (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_95 (height VARCHAR, contestant VARCHAR)", "role": "system" }, { "content": "What is niurbi encarnación ynoa's height?", "role": "user" }, { "content": "SELECT height FROM table_name_95 WHERE contestant = \"niurbi encarnación ynoa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What venue features carlton at home?", "role": "user" }, { "content": "SELECT venue FROM table_name_88 WHERE home_team = \"carlton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (attendance VARCHAR, week VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many people were in attendance in a week over 4 on December 6, 1981?", "role": "user" }, { "content": "SELECT COUNT(attendance) FROM table_name_76 WHERE week > 4 AND date = \"december 6, 1981\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, date VARCHAR)", "role": "system" }, { "content": "At which venue did the event held on 15 November 2010 occur?", "role": "user" }, { "content": "SELECT venue FROM table_name_78 WHERE date = \"15 november 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_12221135_3 (arrival VARCHAR, operator VARCHAR, calling_at VARCHAR)", "role": "system" }, { "content": "How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?", "role": "user" }, { "content": "SELECT COUNT(arrival) FROM table_12221135_3 WHERE operator = \"LNWR\" AND calling_at = \"Castor, Overton, Peterborough East\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (paper_type VARCHAR, date_of_issue VARCHAR)", "role": "system" }, { "content": "What is the paper type that the one that was issued on 26 july 2007 done on?", "role": "user" }, { "content": "SELECT paper_type FROM table_name_7 WHERE date_of_issue = \"26 july 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_48 (diff INTEGER, drawn VARCHAR, played VARCHAR)", "role": "system" }, { "content": "What is the sum of the difference for 9 draws and over 18 played?", "role": "user" }, { "content": "SELECT SUM(diff) FROM table_name_48 WHERE drawn = 9 AND played > 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_33 (earnings___ VARCHAR, player VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What are the earnings for jim colbert with under 4 wins?", "role": "user" }, { "content": "SELECT COUNT(earnings___) AS $__ FROM table_name_33 WHERE player = \"jim colbert\" AND wins < 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_1139087_2 (grand_prix VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What event was in detroit?", "role": "user" }, { "content": "SELECT grand_prix FROM table_1139087_2 WHERE location = \"Detroit\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26591434_1 (original_airdate VARCHAR, writer VARCHAR)", "role": "system" }, { "content": "What is the original air date for the writer tanaka shinichi?", "role": "user" }, { "content": "SELECT original_airdate FROM table_26591434_1 WHERE writer = \"Tanaka Shinichi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21378339_5 (artist VARCHAR, televotes VARCHAR)", "role": "system" }, { "content": "Name the artist for 1595 televotes", "role": "user" }, { "content": "SELECT artist FROM table_21378339_5 WHERE televotes = 1595", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2603017_2 (b___bishop VARCHAR, bc___beast_cadet VARCHAR)", "role": "system" }, { "content": "what is b - bishop where bc - beast cadet is gr - great dove?", "role": "user" }, { "content": "SELECT b___bishop FROM table_2603017_2 WHERE bc___beast_cadet = \"GR - Great Dove\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26847237_1 (win_loss VARCHAR, round__number VARCHAR)", "role": "system" }, { "content": "Was it a win or loss for Wanganui in round 3?", "role": "user" }, { "content": "SELECT win_loss FROM table_26847237_1 WHERE round__number = \"Round 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_27112708_2 (stage VARCHAR, team_classification VARCHAR)", "role": "system" }, { "content": "Who was the stage winner of the letua cycling team on stage 2? ", "role": "user" }, { "content": "SELECT stage AS winner FROM table_27112708_2 WHERE team_classification = \"LeTua Cycling Team\" AND stage = 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_36 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "What county has an IHSAA Football Class of A, and a Mascot of royals?", "role": "user" }, { "content": "SELECT county FROM table_name_36 WHERE ihsaa_football_class = \"a\" AND mascot = \"royals\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?", "role": "user" }, { "content": "SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = \"spin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24160890_3 (conference VARCHAR, tournament_venue__city_ VARCHAR)", "role": "system" }, { "content": "When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?", "role": "user" }, { "content": "SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = \"Madison Square Garden ( New York City, New York )\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (_percentage_hydropower INTEGER, _percentage_nuclear_power VARCHAR, _percentage_oil VARCHAR, country VARCHAR)", "role": "system" }, { "content": "what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0?", "role": "user" }, { "content": "SELECT MAX(_percentage_hydropower) FROM table_name_80 WHERE _percentage_oil < 24.5 AND country = \"united arab emirates\" AND _percentage_nuclear_power < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the date for the 130-56 game?", "role": "user" }, { "content": "SELECT date FROM table_name_26 WHERE score = \"130-56\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26919_7 (akkadian VARCHAR, geez VARCHAR)", "role": "system" }, { "content": "if the geez is libb, what is the akkadian?", "role": "user" }, { "content": "SELECT akkadian FROM table_26919_7 WHERE geez = \"libb\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (attendance INTEGER, season VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the attendance in the game in the 2010-11 season, when the score was 2–0?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_name_39 WHERE season = \"2010-11\" AND score = \"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_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, clean_electric_grid_california__san_francisco_ VARCHAR)", "role": "system" }, { "content": "What is the dirty electric grid rocky mountains (denver) for the vehicle with the clean electric grid california (san francisco) of 160 g/mi (99 g/km)?", "role": "user" }, { "content": "SELECT dirty_electric_grid_rocky_mountains__denver_ FROM table_23840623_4 WHERE clean_electric_grid_california__san_francisco_ = \"160 g/mi (99 g/km)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12983929_1 (construction_start VARCHAR, commercial_operation VARCHAR)", "role": "system" }, { "content": "When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?", "role": "user" }, { "content": "SELECT construction_start FROM table_12983929_1 WHERE commercial_operation = \"04.03.1987\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1358608_4 (group VARCHAR, distance VARCHAR)", "role": "system" }, { "content": "How many races were for a distance of 2020 m?", "role": "user" }, { "content": "SELECT COUNT(group) FROM table_1358608_4 WHERE distance = \"2020 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_2668352_11 (first_elected VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%", "role": "user" }, { "content": "SELECT first_elected FROM table_2668352_11 WHERE candidates = \"Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.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_45 (to_par VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "What is the To par of the Player who won in 1936?", "role": "user" }, { "content": "SELECT to_par FROM table_name_45 WHERE year_s__won = \"1936\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_away VARCHAR, field VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the home/away of the game at Nickerson Field at July 10?", "role": "user" }, { "content": "SELECT home_away FROM table_name_68 WHERE field = \"nickerson field\" AND date = \"july 10\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17085981_2 (manner_of_departure VARCHAR, team VARCHAR, outgoing_manager VARCHAR)", "role": "system" }, { "content": "What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?", "role": "user" }, { "content": "SELECT manner_of_departure FROM table_17085981_2 WHERE team = \"Stuttgarter Kickers\" AND outgoing_manager = \"Edgar Schmitt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_261927_2 (joined VARCHAR, left VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "What date did the institution that left in 2013 and that is nicknamed Corsairs, join? ", "role": "user" }, { "content": "SELECT joined FROM table_261927_2 WHERE left = \"2013\" AND nickname = \"Corsairs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Place of the Player with a Score of 69-72-72=213?", "role": "user" }, { "content": "SELECT place FROM table_name_63 WHERE score = 69 - 72 - 72 = 213", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2850912_5 (college_junior_club_team VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "How many college/junior/club teams are from Sweden?", "role": "user" }, { "content": "SELECT COUNT(college_junior_club_team) FROM table_2850912_5 WHERE nationality = \"Sweden\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (population__2009_estimate_ VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the 2009 estimate population of the Northeast?", "role": "user" }, { "content": "SELECT population__2009_estimate_ FROM table_name_34 WHERE name = \"northeast\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (episodes VARCHAR, duration VARCHAR)", "role": "system" }, { "content": "How many episodes have a duration of 3?", "role": "user" }, { "content": "SELECT COUNT(episodes) FROM table_name_35 WHERE duration = \"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_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?", "role": "user" }, { "content": "SELECT performer_2 FROM table_name_83 WHERE performer_4 = \"josie lawrence\" AND date = \"9 april 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, unit VARCHAR)", "role": "system" }, { "content": "What country is the Jiufotang Formation located in?", "role": "user" }, { "content": "SELECT location FROM table_name_59 WHERE unit = \"jiufotang formation\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (second_member VARCHAR, election VARCHAR, second_party VARCHAR, third_party VARCHAR)", "role": "system" }, { "content": "Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?", "role": "user" }, { "content": "SELECT second_member FROM table_name_70 WHERE second_party = \"liberal\" AND third_party = \"conservative\" AND election > 1841", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25380472_2 (opponent VARCHAR, week VARCHAR)", "role": "system" }, { "content": "On week 7, what were the opponents?", "role": "user" }, { "content": "SELECT opponent FROM table_25380472_2 WHERE week = 7", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (rank INTEGER, name VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which Rank has a Name of john curry, and Points larger than 338.43?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_8 WHERE name = \"john curry\" AND points > 338.43", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Where was the September 3 game?", "role": "user" }, { "content": "SELECT location FROM table_name_15 WHERE date = \"september 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_65 (school VARCHAR, nickname_s_ VARCHAR)", "role": "system" }, { "content": "What is the school with the nickname Tornadoes Lady Tornadoes?", "role": "user" }, { "content": "SELECT school FROM table_name_65 WHERE nickname_s_ = \"tornadoes lady tornadoes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bats VARCHAR, position VARCHAR, first VARCHAR)", "role": "system" }, { "content": "Which does the lhp player with the first name lachlan bat?", "role": "user" }, { "content": "SELECT bats FROM table_name_9 WHERE position = \"lhp\" AND first = \"lachlan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16779068_5 (weightlifter VARCHAR)", "role": "system" }, { "content": "Name the 3 where weightlifter is m. van der goten ( bel )", "role": "user" }, { "content": "SELECT 3 FROM table_16779068_5 WHERE weightlifter = \"M. Van der Goten ( BEL )\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR)", "role": "system" }, { "content": "Name the date successor seated for delegate seat established", "role": "user" }, { "content": "SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = \"Delegate seat established\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (block INTEGER, height VARCHAR, spike VARCHAR)", "role": "system" }, { "content": "What is the lowest number of blocks for players with height of 206 and more than 356 spikes?", "role": "user" }, { "content": "SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pick__number VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which pick number was there for Jason French?", "role": "user" }, { "content": "SELECT pick__number FROM table_name_20 WHERE player = \"jason french\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)", "role": "system" }, { "content": "What is the overall attendance in the places where the average attendance was 17148?", "role": "user" }, { "content": "SELECT overall_attendance FROM table_2771237_1 WHERE average_attendance = 17148", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, dcsf_number VARCHAR)", "role": "system" }, { "content": "Can you tell me the Name that has the DCSF number of 2117?", "role": "user" }, { "content": "SELECT name FROM table_name_11 WHERE dcsf_number = 2117", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which partner was on 14 april 2013?", "role": "user" }, { "content": "SELECT partner FROM table_name_94 WHERE date = \"14 april 2013\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (h___a VARCHAR, opponents VARCHAR)", "role": "system" }, { "content": "Was the game with Kashima antlers at home or away?", "role": "user" }, { "content": "SELECT h___a FROM table_name_86 WHERE opponents = \"kashima antlers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, pct__percentage INTEGER)", "role": "system" }, { "content": "When the percent is larger than 0.685, what is the average number of points scored?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (result VARCHAR, location VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?", "role": "user" }, { "content": "SELECT result FROM table_name_46 WHERE location = \"riverfront stadium\" AND opponent = \"miami dolphins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (authority VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the authority for morrinsville college", "role": "user" }, { "content": "SELECT authority FROM table_name_88 WHERE name = \"morrinsville college\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (recipient VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Name the recipientof the year for 1976", "role": "user" }, { "content": "SELECT recipient FROM table_name_69 WHERE year = 1976", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the home team's score at the game held at Punt Road Oval?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_51 WHERE venue = \"punt road oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341472_49 (result VARCHAR, district VARCHAR)", "role": "system" }, { "content": "what's the result with district being washington 7", "role": "user" }, { "content": "SELECT result FROM table_1341472_49 WHERE district = \"Washington 7\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is the tie with a win of 0?", "role": "user" }, { "content": "SELECT ties FROM table_name_38 WHERE wins = \"0\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which team played at VFL Park?", "role": "user" }, { "content": "SELECT home_team FROM table_name_95 WHERE 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_19 (date VARCHAR, loss VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the date of A. Benes loss to the Rockies?", "role": "user" }, { "content": "SELECT date FROM table_name_19 WHERE loss = \"a. benes\" AND opponent = \"rockies\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR)", "role": "system" }, { "content": "Name the number of season number for jeff truman", "role": "user" }, { "content": "SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = \"Jeff Truman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14877831_2 (first_downs INTEGER, attendance VARCHAR)", "role": "system" }, { "content": "How many first downs were there when the attendance was 13196?", "role": "user" }, { "content": "SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (campeonato_paulista VARCHAR, copa_sudamericana VARCHAR, campeonato_brasileiro VARCHAR, others VARCHAR)", "role": "system" }, { "content": "How many Campeonato Paulistas had a campeonato brasileiro of more than 2, an others number of more than 0, and a copa sudamericana of more than 5?", "role": "user" }, { "content": "SELECT COUNT(campeonato_paulista) FROM table_name_72 WHERE campeonato_brasileiro > 2 AND others > 0 AND copa_sudamericana > 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_17323092_8 (high_points VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Who earned high points in game 69?", "role": "user" }, { "content": "SELECT high_points FROM table_17323092_8 WHERE game = 69", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game INTEGER, score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Score of 118–114, and a Record of 8–1 is what lowest game?", "role": "user" }, { "content": "SELECT MIN(game) FROM table_name_64 WHERE score = \"118–114\" AND record = \"8–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_30 (method VARCHAR, race VARCHAR, date_of_execution VARCHAR)", "role": "system" }, { "content": "How was the native american executed in July 1836?", "role": "user" }, { "content": "SELECT method FROM table_name_30 WHERE race = \"native american\" AND date_of_execution = \"july 1836\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1982739_2 (area VARCHAR, english_name VARCHAR)", "role": "system" }, { "content": "What is the total number of areas that are called Nanqiao District?", "role": "user" }, { "content": "SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = \"Nanqiao District\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (nominated_work VARCHAR, award VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What nominated work received a tony award in 2009?", "role": "user" }, { "content": "SELECT nominated_work FROM table_name_94 WHERE award = \"tony award\" AND year = 2009", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2588674_1 (village VARCHAR, area_km² VARCHAR)", "role": "system" }, { "content": "What village has an area of 27.19 km2?", "role": "user" }, { "content": "SELECT village FROM table_2588674_1 WHERE area_km² = \"27.19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (year VARCHAR, nominee VARCHAR)", "role": "system" }, { "content": "What year was jack cole nominated?", "role": "user" }, { "content": "SELECT year FROM table_name_77 WHERE nominee = \"jack cole\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals VARCHAR, games VARCHAR)", "role": "system" }, { "content": "How many goals were there in game 47?", "role": "user" }, { "content": "SELECT goals FROM table_name_29 WHERE games = \"47\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is the lowest value for 1960, when the value for 2000 is less than 8.4, when the value for 1950 is greater than 3.5, and when the value for 1990 is less than 3.3?", "role": "user" }, { "content": "SELECT MIN(1960) FROM table_name_66 WHERE 2000 < 8.4 AND 1950 > 3.5 AND 1990 < 3.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 authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)", "role": "system" }, { "content": "Find the papers which have \"Olin Shivers\" as an author.", "role": "user" }, { "content": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR)", "role": "system" }, { "content": "Who had the pole position in Milwaukee?", "role": "user" }, { "content": "SELECT pole_position FROM table_27913160_3 WHERE race = \"Milwaukee\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2367847_2 (high_schools INTEGER, district_wide VARCHAR)", "role": "system" }, { "content": "Name the most high schools for 31851", "role": "user" }, { "content": "SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (year_s__won VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What year was the 146 total?", "role": "user" }, { "content": "SELECT year_s__won FROM table_name_58 WHERE total = 146", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25740548_3 (original_air_date VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "How many original air dates are there for the episode with code CA210?", "role": "user" }, { "content": "SELECT COUNT(original_air_date) FROM table_25740548_3 WHERE production_code = \"CA210\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25200461_9 (population VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What is the population if the city is Gilroy?", "role": "user" }, { "content": "SELECT population FROM table_25200461_9 WHERE city = \"Gilroy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, played INTEGER)", "role": "system" }, { "content": "How many Points have a Played larger than 18?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_65 WHERE played > 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_98 (year__ceremony_ VARCHAR, original_title VARCHAR)", "role": "system" }, { "content": "What is the year of the ceremony with the original title ničiji sin?", "role": "user" }, { "content": "SELECT year__ceremony_ FROM table_name_98 WHERE original_title = \"ničiji sin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "How many times this institution was founded that was nicknamed Beavers?", "role": "user" }, { "content": "SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = \"Beavers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (result VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the result against everton?", "role": "user" }, { "content": "SELECT result FROM table_name_73 WHERE opponent = \"everton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21092427_1 (result VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Name the result for 9-1 record", "role": "user" }, { "content": "SELECT result FROM table_21092427_1 WHERE record = \"9-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_49 (points VARCHAR, score VARCHAR, game VARCHAR)", "role": "system" }, { "content": "How many Points have a Score of 1–3, and a Game larger than 82?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_49 WHERE score = \"1–3\" AND game > 82", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rating (stars INTEGER)", "role": "system" }, { "content": "What is the lowest and highest rating star?", "role": "user" }, { "content": "SELECT MAX(stars), MIN(stars) FROM Rating", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28744929_2 (acc_record VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the record in the atlantic coast conference for the Miami team?", "role": "user" }, { "content": "SELECT acc_record FROM table_28744929_2 WHERE team = \"Miami\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)", "role": "system" }, { "content": "Who directed the nominated film 'blood on his hands'?", "role": "user" }, { "content": "SELECT director_s_ FROM table_name_45 WHERE rank = \"nominated\" AND film = \"blood on his hands\"", "role": "assistant" } ]