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_27117365_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who wrote the episodes with 7.70 u.s. viewers (million) ?", "role": "user" }, { "content": "SELECT written_by FROM table_27117365_1 WHERE us_viewers__million_ = \"7.70\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (player VARCHAR, country VARCHAR, place VARCHAR)", "role": "system" }, { "content": "What is Player, when Country is \"United States\", and when Place is \"6\"?", "role": "user" }, { "content": "SELECT player FROM table_name_41 WHERE country = \"united states\" AND place = \"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_42 (position VARCHAR, first_election VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What Position does First Elected in 2003 William D. Euille hold ?", "role": "user" }, { "content": "SELECT position FROM table_name_42 WHERE first_election = \"2003\" AND name = \"william d. euille\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date INTEGER, label VARCHAR, format VARCHAR)", "role": "system" }, { "content": "What is the earliest date with Great Expectations label with LP format?", "role": "user" }, { "content": "SELECT MIN(date) FROM table_name_92 WHERE label = \"great expectations\" AND format = \"lp\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which is the opponent when the record was 43-56?", "role": "user" }, { "content": "SELECT opponent FROM table_name_12 WHERE record = \"43-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_name_51 (win__percentage VARCHAR, _number_of_bids VARCHAR, conference VARCHAR)", "role": "system" }, { "content": "When the conference is west coast and the number of bids are at 2, what's the percentage of games won?", "role": "user" }, { "content": "SELECT win__percentage FROM table_name_51 WHERE _number_of_bids = 2 AND conference = \"west coast\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13512105_3 (fastest_lap VARCHAR, rnd VARCHAR)", "role": "system" }, { "content": "how many have times of 6", "role": "user" }, { "content": "SELECT COUNT(fastest_lap) FROM table_13512105_3 WHERE rnd = 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_19651669_1 (finalist VARCHAR, final_venue VARCHAR)", "role": "system" }, { "content": "Who was the finalist when the final venue was Varese?", "role": "user" }, { "content": "SELECT finalist FROM table_19651669_1 WHERE final_venue = \"Varese\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country does Bobby Nichols play for?", "role": "user" }, { "content": "SELECT country FROM table_name_70 WHERE player = \"bobby nichols\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23248869_8 (date VARCHAR, high_points VARCHAR)", "role": "system" }, { "content": "How many times was the high points david lee (30)", "role": "user" }, { "content": "SELECT COUNT(date) FROM table_23248869_8 WHERE high_points = \"David Lee (30)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28140588_1 (title VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "What is the title when the director is Maynard C. Virgil i ?", "role": "user" }, { "content": "SELECT title FROM table_28140588_1 WHERE directed_by = \"Maynard C. Virgil I\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2701851_5 (written_by VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "Who wrote the episode in the series 46b?", "role": "user" }, { "content": "SELECT written_by FROM table_2701851_5 WHERE no_in_series = \"46b\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, position VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "Who has a nationality of Czech Republic and a position of right wing?", "role": "user" }, { "content": "SELECT player FROM table_name_49 WHERE position = \"right wing\" AND nationality = \"czech republic\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (system VARCHAR, license VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which System's Name is Steem, and has a Freeware License?", "role": "user" }, { "content": "SELECT system FROM table_name_76 WHERE license = \"freeware\" AND name = \"steem\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (body_styles VARCHAR, model VARCHAR)", "role": "system" }, { "content": "What body styles have 6/75 as the model?", "role": "user" }, { "content": "SELECT body_styles FROM table_name_4 WHERE model = \"6/75\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (opponents_in_final VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who were the opponents in the final on 9 January 1994?", "role": "user" }, { "content": "SELECT opponents_in_final FROM table_name_29 WHERE date = \"9 january 1994\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (average VARCHAR, matches VARCHAR, best_bowling VARCHAR, team VARCHAR, wickets VARCHAR)", "role": "system" }, { "content": "What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?", "role": "user" }, { "content": "SELECT COUNT(average) FROM table_name_57 WHERE team = \"england\" AND wickets < 18 AND best_bowling = \"4/138\" AND matches < 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_75 (time VARCHAR, release_date VARCHAR, track VARCHAR)", "role": "system" }, { "content": "What was the time for tracks before 19 on 8/26/69?", "role": "user" }, { "content": "SELECT time FROM table_name_75 WHERE release_date = \"8/26/69\" AND track < 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_27 (entrepreneur_s_ VARCHAR, money_requested__£_ VARCHAR)", "role": "system" }, { "content": "What Entrepreneurs requested £60,000?", "role": "user" }, { "content": "SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = \"60,000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, catalog VARCHAR)", "role": "system" }, { "content": "What is the Date for Catalog of lp 5060?", "role": "user" }, { "content": "SELECT date FROM table_name_65 WHERE catalog = \"lp 5060\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = \"innes ireland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which Share has a weekly Rank of 8 and is dated 15 June?", "role": "user" }, { "content": "SELECT share FROM table_name_12 WHERE weekly_rank = \"8\" AND date = \"15 june\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (royal_house VARCHAR, state VARCHAR)", "role": "system" }, { "content": "What was the Royal House for the state of Song?", "role": "user" }, { "content": "SELECT royal_house FROM table_name_54 WHERE state = \"song\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (draw INTEGER, artist VARCHAR, place VARCHAR)", "role": "system" }, { "content": "What is the average draw for Desi Dobreva, was it less than 6?", "role": "user" }, { "content": "SELECT AVG(draw) FROM table_name_64 WHERE artist = \"desi dobreva\" AND place < 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_12 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?", "role": "user" }, { "content": "SELECT SUM(gold) FROM table_name_12 WHERE silver > 1 AND rank > 1 AND total > 4 AND bronze > 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_97 (rank__timeslot_ INTEGER, rating VARCHAR, share VARCHAR)", "role": "system" }, { "content": "What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4?", "role": "user" }, { "content": "SELECT AVG(rank__timeslot_) FROM table_name_97 WHERE rating < 2.6 AND share > 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_74 (rounds VARCHAR, constructor VARCHAR)", "role": "system" }, { "content": "What rounds did Gordini participate in?", "role": "user" }, { "content": "SELECT rounds FROM table_name_74 WHERE constructor = \"gordini\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, week VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?", "role": "user" }, { "content": "SELECT date FROM table_name_16 WHERE week < 13 AND opponent = \"green bay packers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (format VARCHAR, city_of_license VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "Which format is in St. George with a frequency of 0 107.3 fm?", "role": "user" }, { "content": "SELECT format FROM table_name_31 WHERE city_of_license = \"st. george\" AND frequency = \"0 107.3 fm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR)", "role": "system" }, { "content": "Name the last title for greater buenos aires and first season of 1920", "role": "user" }, { "content": "SELECT last_title FROM table_name_9 WHERE area_province = \"greater buenos aires\" AND first_season = \"1920\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)", "role": "system" }, { "content": "Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?", "role": "user" }, { "content": "SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = \"37\" AND goals_against < 63", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?", "role": "user" }, { "content": "SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = \"stuart appleby\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the home team score when played at mcg?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_24 WHERE venue = \"mcg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (e_score INTEGER, t_score VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What E score has the T score of 8 and a number smaller than 22.95?", "role": "user" }, { "content": "SELECT MIN(e_score) FROM table_name_66 WHERE t_score = 8 AND total < 22.95", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, visitor VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?", "role": "user" }, { "content": "SELECT score FROM table_name_45 WHERE visitor = \"chicago black hawks\" AND record = \"3-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_14 (to_par VARCHAR, country VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which To par has a Country of united states, and a Score of 71-70=141?", "role": "user" }, { "content": "SELECT to_par FROM table_name_14 WHERE country = \"united states\" AND score = 71 - 70 = 141", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (tournament VARCHAR)", "role": "system" }, { "content": "Which 1997's accompanying 1991 was a when the tournament was the australian open?", "role": "user" }, { "content": "SELECT 1997 FROM table_name_57 WHERE 1991 = \"a\" AND tournament = \"australian open\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who did the cubs play on june 3?", "role": "user" }, { "content": "SELECT opponent FROM table_name_60 WHERE date = \"june 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_27734577_11 (date VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What date did the Hawks play against Boston?", "role": "user" }, { "content": "SELECT date FROM table_27734577_11 WHERE team = \"Boston\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (vmax VARCHAR, type VARCHAR)", "role": "system" }, { "content": "What was the maximum speed for the P4-1 (24/36 ps)?", "role": "user" }, { "content": "SELECT vmax FROM table_name_78 WHERE type = \"p4-1 (24/36 ps)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (military_deaths VARCHAR, total_casualties VARCHAR)", "role": "system" }, { "content": "How many military deaths were there when there were 1,615 total casualties?", "role": "user" }, { "content": "SELECT military_deaths FROM table_name_92 WHERE total_casualties = \"1,615\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)", "role": "system" }, { "content": "what is the total number of played when the goals for is more than 34 and goals against is more than 63?", "role": "user" }, { "content": "SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (champion VARCHAR, runner_up VARCHAR)", "role": "system" }, { "content": "Who won when Peter Fleming was a runner-up?", "role": "user" }, { "content": "SELECT champion FROM table_name_82 WHERE runner_up = \"peter fleming\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (high_points VARCHAR, game VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On April 29, with a game larger than 2, what is the high points?", "role": "user" }, { "content": "SELECT high_points FROM table_name_25 WHERE game > 2 AND date = \"april 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_30 (regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR)", "role": "system" }, { "content": "What municipality has 719 people and is larger than 108.46 km2?", "role": "user" }, { "content": "SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (final_round VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What was the final round score for the player from the Milwaukee Bucks?", "role": "user" }, { "content": "SELECT final_round FROM table_name_31 WHERE team = \"milwaukee bucks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11222744_2 (format VARCHAR, title VARCHAR)", "role": "system" }, { "content": "where title is beginning callanetics , what is the total of format ?", "role": "user" }, { "content": "SELECT COUNT(format) FROM table_11222744_2 WHERE title = \"Beginning Callanetics\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, date VARCHAR)", "role": "system" }, { "content": "What is the attendance of the game that had a date listed as Bye?", "role": "user" }, { "content": "SELECT attendance FROM table_name_76 WHERE date = \"bye\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the outcome of the match with a score of 6–4, 6–1?", "role": "user" }, { "content": "SELECT outcome FROM table_name_39 WHERE score = \"6–4, 6–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_35 (played VARCHAR, club VARCHAR)", "role": "system" }, { "content": "What is listed under Played that has a Club of Morriston RFC?", "role": "user" }, { "content": "SELECT played FROM table_name_35 WHERE club = \"morriston rfc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, event VARCHAR, method VARCHAR)", "role": "system" }, { "content": "What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)?", "role": "user" }, { "content": "SELECT result FROM table_name_95 WHERE event = \"2012 ibjjf world jiu-jitsu championships\" AND method = \"points (4 x 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_6 (opponent VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "Who is the opponent for the winner outcome on a hard surface on August 27, 2011?", "role": "user" }, { "content": "SELECT opponent FROM table_name_6 WHERE outcome = \"winner\" AND surface = \"hard\" AND date = \"august 27, 2011\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20760407_1 (record VARCHAR, bruins_points VARCHAR)", "role": "system" }, { "content": "What was the record when the Bruins had 41 points?", "role": "user" }, { "content": "SELECT record FROM table_20760407_1 WHERE bruins_points = 41", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, against VARCHAR)", "role": "system" }, { "content": "What is the least amount of wins when against is 1314?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_name_41 WHERE against = 1314", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19624708_1 (number VARCHAR, sp VARCHAR, finishing_position VARCHAR)", "role": "system" }, { "content": "How many numbers have sp of 20/1 and a finishing position of fence 19?", "role": "user" }, { "content": "SELECT COUNT(number) FROM table_19624708_1 WHERE sp = \"20/1\" AND finishing_position = \"Fence 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_23 (podiums INTEGER, series VARCHAR, poles VARCHAR)", "role": "system" }, { "content": "What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole?", "role": "user" }, { "content": "SELECT MIN(podiums) FROM table_name_23 WHERE series = \"formula renault 2000 brazil\" AND poles < 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_84 (competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the competition on 7 June 1999?", "role": "user" }, { "content": "SELECT competition FROM table_name_84 WHERE date = \"7 june 1999\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14325653_2 (publisher_s_ VARCHAR, video_game VARCHAR)", "role": "system" }, { "content": "Name the total number of publishers for flushed away", "role": "user" }, { "content": "SELECT COUNT(publisher_s_) FROM table_14325653_2 WHERE video_game = \"Flushed Away\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Opponent in a game with a Score of 6–2, 6–2?", "role": "user" }, { "content": "SELECT opponent FROM table_name_66 WHERE score = \"6–2, 6–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_26351260_1 (team_nickname VARCHAR, institution VARCHAR)", "role": "system" }, { "content": "What is Kent State University's team nickname?", "role": "user" }, { "content": "SELECT team_nickname FROM table_26351260_1 WHERE institution = \"Kent State 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_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR)", "role": "system" }, { "content": "Who was the radio commentator when the final television commentator was John Dunn? ", "role": "user" }, { "content": "SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = \"John Dunn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the score on April 12?", "role": "user" }, { "content": "SELECT score FROM table_name_48 WHERE date = \"april 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_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?", "role": "user" }, { "content": "SELECT entrant FROM table_name_80 WHERE engine = \"talbot l6\" AND driver = \"eugène chaboud\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (discovery___publication_of_name VARCHAR, species VARCHAR)", "role": "system" }, { "content": "Tell me the discovery/publication for red deer cave people", "role": "user" }, { "content": "SELECT discovery___publication_of_name FROM table_name_69 WHERE species = \"red deer cave people\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (owner VARCHAR, winner VARCHAR)", "role": "system" }, { "content": "Who is the owner of the Raglan Road winner?", "role": "user" }, { "content": "SELECT owner FROM table_name_43 WHERE winner = \"raglan road\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15463188_7 (school_club_team VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Nametheh school team for norman gonzales", "role": "user" }, { "content": "SELECT school_club_team FROM table_15463188_7 WHERE name = \"Norman Gonzales\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)", "role": "system" }, { "content": "Find the id and city of the student address with the highest average monthly rental.", "role": "user" }, { "content": "SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21578303_2 (time VARCHAR, time__eet_ VARCHAR)", "role": "system" }, { "content": "What is the time when time is 10:46?", "role": "user" }, { "content": "SELECT time FROM table_21578303_2 WHERE time__eet_ = \"10:46\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_4 VARCHAR)", "role": "system" }, { "content": "Which Athlete has a Run 1 larger than 57.37, and a Run 4 smaller than 59.05, and a Run 3 of 58.08?", "role": "user" }, { "content": "SELECT athlete FROM table_name_15 WHERE run_1 > 57.37 AND run_4 < 59.05 AND run_3 = 58.08", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26218783_6 (rk VARCHAR, new_points VARCHAR)", "role": "system" }, { "content": "If the new points were 5760, what is the RK?", "role": "user" }, { "content": "SELECT rk FROM table_26218783_6 WHERE new_points = 5760", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12165999_1 (afl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Bob Johnson plays for which AFL team?", "role": "user" }, { "content": "SELECT afl_team FROM table_12165999_1 WHERE player = \"Bob Johnson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR)", "role": "system" }, { "content": "If the event number is 5, what is the winner total number?", "role": "user" }, { "content": "SELECT COUNT(winner) FROM table_2534387_11 WHERE event__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_53 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "what is the place for Heath Slocum?", "role": "user" }, { "content": "SELECT place FROM table_name_53 WHERE player = \"heath slocum\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, games VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What is the fewest number of medals associated with under 6 games and over 0 golds?", "role": "user" }, { "content": "SELECT MIN(total) FROM table_name_44 WHERE games < 6 AND gold > 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_60 (event VARCHAR, method VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the event when the method was tko (punches), and the record was 7-1?", "role": "user" }, { "content": "SELECT event FROM table_name_60 WHERE method = \"tko (punches)\" AND record = \"7-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_75 (venue VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What venue has 2 as the rank?", "role": "user" }, { "content": "SELECT venue FROM table_name_75 WHERE rank = \"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_57 (pts VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "How many points were scored when the Chassis is BRM p25?", "role": "user" }, { "content": "SELECT pts FROM table_name_57 WHERE chassis = \"brm p25\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the game that had a loss of Caldwell (10-11)?", "role": "user" }, { "content": "SELECT opponent FROM table_name_35 WHERE loss = \"caldwell (10-11)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (athlete VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On 11 July 2003, which athlete performed?", "role": "user" }, { "content": "SELECT athlete FROM table_name_53 WHERE date = \"11 july 2003\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (title VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Which Title is from 1952?", "role": "user" }, { "content": "SELECT title FROM table_name_6 WHERE year = 1952", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16388478_4 (away_team VARCHAR, crowd VARCHAR)", "role": "system" }, { "content": "What was the away team score for the game with a crowd of 5391?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_16388478_4 WHERE crowd = 5391", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, athletes VARCHAR)", "role": "system" }, { "content": "What is the rank of Manuel Cortina Martínez?", "role": "user" }, { "content": "SELECT rank FROM table_name_46 WHERE athletes = \"manuel cortina martínez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23235767_1 (surface VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "What is every surface with a score in the final of 6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6?", "role": "user" }, { "content": "SELECT surface FROM table_23235767_1 WHERE score_in_the_final = \"6–4, 6–7 (1–7) , 6–7 (4–7) , 4–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_269888_1 (no_of_s_barangay VARCHAR, pop_density__per_km²_ VARCHAR)", "role": "system" }, { "content": "Name the number of barangay for 205.4 density", "role": "user" }, { "content": "SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = \"205.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_2186447_1 (partner VARCHAR, score VARCHAR)", "role": "system" }, { "content": "How many partners were there when the score was 7–6 (7–4) , 6–3?", "role": "user" }, { "content": "SELECT COUNT(partner) FROM table_2186447_1 WHERE score = \"7–6 (7–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_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR)", "role": "system" }, { "content": "How many heavy attacks did the 450 Luftflotte 2 conduct?", "role": "user" }, { "content": "SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (record VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Which record has a Team of manchester yankees?", "role": "user" }, { "content": "SELECT record FROM table_name_43 WHERE team = \"manchester yankees\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who was the home team at Kardinia Park?", "role": "user" }, { "content": "SELECT home_team FROM table_name_45 WHERE venue = \"kardinia park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Which opponent has an attendance of 17,015?", "role": "user" }, { "content": "SELECT opponent FROM table_name_33 WHERE attendance = \"17,015\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13012165_1 (maryland VARCHAR, pennsylvania VARCHAR)", "role": "system" }, { "content": "Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?", "role": "user" }, { "content": "SELECT maryland FROM table_13012165_1 WHERE pennsylvania = \"Deep Run Valley LL Hilltown\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)", "role": "system" }, { "content": "What was the vote tally on the episode aired May 5, 2005?", "role": "user" }, { "content": "SELECT vote FROM table_1272844_2 WHERE air_date = \"May 5, 2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR)", "role": "system" }, { "content": "Which railway had the earliest build date and a disposal of \"Scrapped 1941?\"", "role": "user" }, { "content": "SELECT MIN(build_date) FROM table_name_48 WHERE disposal = \"scrapped 1941\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1670921_2 (runs VARCHAR, fielding_team VARCHAR)", "role": "system" }, { "content": "How many runs when bangladesh was the fielding team?", "role": "user" }, { "content": "SELECT runs FROM table_1670921_2 WHERE fielding_team = \"Bangladesh\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (club VARCHAR, tries_for VARCHAR)", "role": "system" }, { "content": "Which club has 40 tries for?", "role": "user" }, { "content": "SELECT club FROM table_name_2 WHERE tries_for = \"40\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (album_title VARCHAR, original_label VARCHAR)", "role": "system" }, { "content": "What is the title of the album that has Popup has the original label?", "role": "user" }, { "content": "SELECT album_title FROM table_name_25 WHERE original_label = \"popup\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25383715_1 (slno VARCHAR, contact_person VARCHAR)", "role": "system" }, { "content": "What was the SlNo no of contact person SDE (P), Thiruppattur?", "role": "user" }, { "content": "SELECT slno FROM table_25383715_1 WHERE contact_person = \"SDE (P), Thiruppattur\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "What Engine had a chassis of March 85c?", "role": "user" }, { "content": "SELECT engine FROM table_name_72 WHERE chassis = \"march 85c\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_7 (geo_id INTEGER, longitude VARCHAR)", "role": "system" }, { "content": "If the longitude is -97.473110, what is the minimum geo id?", "role": "user" }, { "content": "SELECT MIN(geo_id) FROM table_18600760_7 WHERE longitude = \"-97.473110\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, role_code VARCHAR)", "role": "system" }, { "content": "When do all the researcher role staff start to work, and when do they stop working?", "role": "user" }, { "content": "SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'researcher'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25429986_1 (handicap VARCHAR, distance VARCHAR)", "role": "system" }, { "content": "what is the handicap where the distance is 9 lengths?", "role": "user" }, { "content": "SELECT handicap FROM table_25429986_1 WHERE distance = \"9 lengths\"", "role": "assistant" } ]