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_1506950_9 (us_open VARCHAR, open_ch VARCHAR)", "role": "system" }, { "content": "What was the player's result at the U.S. Open of the player who finished 6th at the Open Ch?", "role": "user" }, { "content": "SELECT us_open FROM table_1506950_9 WHERE open_ch = \"6th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, release_type VARCHAR, released_as VARCHAR)", "role": "system" }, { "content": "What year was Ethereal 77, which has a CD album release type?", "role": "user" }, { "content": "SELECT year FROM table_name_26 WHERE release_type = \"cd album\" AND released_as = \"ethereal 77\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)", "role": "system" }, { "content": "What is the Result with an NFL Recap, played at bank of america stadium?", "role": "user" }, { "content": "SELECT result FROM table_name_41 WHERE nfl_recap = \"recap\" AND game_site = \"bank of america stadium\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (total VARCHAR)", "role": "system" }, { "content": "Which 2009 year has a total of 1, and 2004 year of 7th?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_45 WHERE total = 1 AND 2004 = \"7th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (class VARCHAR, team VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What was the class that team Honda Britain was in with points higher than 0?", "role": "user" }, { "content": "SELECT class FROM table_name_34 WHERE team = \"honda britain\" AND points > 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_98 (developer_s_ VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Who was the developer of XCom: Enemy Unknown?", "role": "user" }, { "content": "SELECT developer_s_ FROM table_name_98 WHERE game = \"xcom: enemy unknown\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, total INTEGER)", "role": "system" }, { "content": "What is the number of bronze when the total is smaller than 1?", "role": "user" }, { "content": "SELECT AVG(bronze) FROM table_name_58 WHERE total < 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_27537518_6 (location VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Where was the game seen by 10056 people played?", "role": "user" }, { "content": "SELECT location FROM table_27537518_6 WHERE attendance = 10056", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)", "role": "system" }, { "content": "How many wins did he have when he made over 2 cuts and had under 2 top 10s?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 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_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)", "role": "system" }, { "content": "Name the recognised seats for pharmacology", "role": "user" }, { "content": "SELECT recognised_seats FROM table_19304764_2 WHERE discipline = \"Pharmacology\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the opponent on april 26, 2003?", "role": "user" }, { "content": "SELECT opponent FROM table_name_25 WHERE date = \"april 26, 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_22654073_13 (high_assists VARCHAR, series VARCHAR)", "role": "system" }, { "content": "List all high assists in series 2-3.", "role": "user" }, { "content": "SELECT high_assists FROM table_22654073_13 WHERE series = \"2-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_98 (points_2 INTEGER, goals_for VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?", "role": "user" }, { "content": "SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = \"altrincham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)", "role": "system" }, { "content": "What are the vocal types used in song \"Badlands\"?", "role": "user" }, { "content": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR)", "role": "system" }, { "content": "When 1.67 is the height how many contestants are there?", "role": "user" }, { "content": "SELECT COUNT(contestant) FROM table_18618707_1 WHERE height = \"1.67\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (wins VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "How many wins happened with 8 draws?", "role": "user" }, { "content": "SELECT wins FROM table_name_72 WHERE draws = \"8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (foreign_population INTEGER, population__2004_ VARCHAR)", "role": "system" }, { "content": "What is the largest foreign population when the 2004 population is 7641?", "role": "user" }, { "content": "SELECT MAX(foreign_population) FROM table_name_83 WHERE population__2004_ = 7641", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (played VARCHAR, tries_against VARCHAR)", "role": "system" }, { "content": "What is Played, when Tries Against is \"63\"?", "role": "user" }, { "content": "SELECT played FROM table_name_81 WHERE tries_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_1 (geo_id INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR)", "role": "system" }, { "content": "what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?", "role": "user" }, { "content": "SELECT MAX(geo_id) FROM table_name_1 WHERE longitude = -98.435797 AND land___sqmi__ < 36.039", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1000181_1 (notes VARCHAR, current_slogan VARCHAR)", "role": "system" }, { "content": "Tell me what the notes are for South Australia ", "role": "user" }, { "content": "SELECT notes FROM table_1000181_1 WHERE current_slogan = \"SOUTH AUSTRALIA\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (brazil_scorers VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What Brazil scorers have a 2-1 Score?", "role": "user" }, { "content": "SELECT brazil_scorers FROM table_name_35 WHERE score = \"2-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_15938543_1 (production_code VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "How many episodes were written by Jack Burditt & Robert Carlock", "role": "user" }, { "content": "SELECT COUNT(production_code) FROM table_15938543_1 WHERE written_by = \"Jack Burditt & Robert Carlock\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE projects (name VARCHAR, hours VARCHAR)", "role": "system" }, { "content": "Find the name of project that continues for the longest time.", "role": "user" }, { "content": "SELECT name FROM projects ORDER BY hours DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (team VARCHAR, sport VARCHAR, class VARCHAR)", "role": "system" }, { "content": "Which baseball team is class AAA?", "role": "user" }, { "content": "SELECT team FROM table_name_75 WHERE sport = \"baseball\" AND class = \"aaa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (game INTEGER, score VARCHAR)", "role": "system" }, { "content": "Which Game has a Score of l 102–114 (ot)?", "role": "user" }, { "content": "SELECT AVG(game) FROM table_name_90 WHERE score = \"l 102–114 (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_18600760_3 (county VARCHAR, latitude VARCHAR)", "role": "system" }, { "content": "What was the county with a latitude of 46.770977?", "role": "user" }, { "content": "SELECT county FROM table_18600760_3 WHERE latitude = \"46.770977\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27003186_3 (no_party_preference VARCHAR, republican VARCHAR)", "role": "system" }, { "content": "What is the no party preference when republican is 45.3%?", "role": "user" }, { "content": "SELECT no_party_preference FROM table_27003186_3 WHERE republican = \"45.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_44 (record VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "Which Record has a Loss of o'connor (0-1)?", "role": "user" }, { "content": "SELECT record FROM table_name_44 WHERE loss = \"o'connor (0-1)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR)", "role": "system" }, { "content": "What is the average age as of February 1, 2014 for the supercentenarians born in the United States?", "role": "user" }, { "content": "SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = \"united states\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the away team score at western oval?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_46 WHERE venue = \"western oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (speed VARCHAR, glider VARCHAR, pilot VARCHAR)", "role": "system" }, { "content": "What was sebastian kawa's average speed with Diana 2?", "role": "user" }, { "content": "SELECT speed FROM table_name_36 WHERE glider = \"diana 2\" AND pilot = \"sebastian kawa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (qual VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "Which qual also has a finish total of 9?", "role": "user" }, { "content": "SELECT qual FROM table_name_75 WHERE finish = \"9\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26454128_4 (country VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "What is the country of Paavo Yrjölä?", "role": "user" }, { "content": "SELECT country FROM table_26454128_4 WHERE athlete = \"Paavo Yrjölä\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What were the most in attendance in Richmond?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_61 WHERE away_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (city VARCHAR, icao VARCHAR)", "role": "system" }, { "content": "Where has an ICAO of EPWA?", "role": "user" }, { "content": "SELECT city FROM table_name_43 WHERE icao = \"epwa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1637981_7 (grand_rapids__grr_ VARCHAR, saginaw__mbs_ VARCHAR)", "role": "system" }, { "content": "When Saginaw's fare is $470.47, what was the fare to Grand Rapids?", "role": "user" }, { "content": "SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = \"$470.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_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR)", "role": "system" }, { "content": "If the establishment is 49319, what is the sales, receipts or shipments maximum amount?", "role": "user" }, { "content": "SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (poles VARCHAR, wins INTEGER)", "role": "system" }, { "content": "What is the total number of poles with less than 0 wins?", "role": "user" }, { "content": "SELECT COUNT(poles) FROM table_name_43 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_18 (attendance INTEGER, record VARCHAR, week VARCHAR)", "role": "system" }, { "content": "Record of 8–1, and a Week larger than 9 had what highest attendance?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_18 WHERE record = \"8–1\" AND week > 9", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (february VARCHAR, score VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How much February has a Score of 5–2, and Points of 70?", "role": "user" }, { "content": "SELECT COUNT(february) FROM table_name_44 WHERE score = \"5–2\" AND points = 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_16795394_3 (points VARCHAR, team__number2 VARCHAR)", "role": "system" }, { "content": "If team two is Lanús, what was the total number of points?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = \"Lanús\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)", "role": "system" }, { "content": "When was the status test match with an opposing team of south africa?", "role": "user" }, { "content": "SELECT date FROM table_name_77 WHERE status = \"test match\" AND opposing_teams = \"south africa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (played INTEGER, conceded INTEGER)", "role": "system" }, { "content": "Mean of played with smaller than 7 conceded?", "role": "user" }, { "content": "SELECT AVG(played) FROM table_name_62 WHERE conceded < 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_24814477_2 (week VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What week did the Galaxy play the Amsterdam Admirals?", "role": "user" }, { "content": "SELECT week FROM table_24814477_2 WHERE opponent = \"Amsterdam Admirals\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (dates VARCHAR, lifetime_achievement VARCHAR)", "role": "system" }, { "content": "On what dates did Jim Jarmusch win the Lifetime Achievement?", "role": "user" }, { "content": "SELECT dates FROM table_name_27 WHERE lifetime_achievement = \"jim jarmusch\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (team VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What team played the Jazz at game 68?", "role": "user" }, { "content": "SELECT team FROM table_name_50 WHERE game = 68", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (score VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Name the score for attendance of 13,617", "role": "user" }, { "content": "SELECT score FROM table_name_63 WHERE attendance = \"13,617\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outgoing_manager VARCHAR, replaced_by VARCHAR)", "role": "system" }, { "content": "Who was the outgoing manager that was replaced by Thomas Von Heesen?", "role": "user" }, { "content": "SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = \"thomas von heesen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE classroom (building VARCHAR)", "role": "system" }, { "content": "Count the number of rooms that are not in the Lamberton building.", "role": "user" }, { "content": "SELECT COUNT(*) FROM classroom WHERE building <> 'Lamberton'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (played INTEGER, blackpool INTEGER)", "role": "system" }, { "content": "Which Played is the lowest one that has a Blackpool smaller than 0?", "role": "user" }, { "content": "SELECT MIN(played) FROM table_name_57 WHERE blackpool < 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_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, gdp__nominal___billions_usd_ VARCHAR)", "role": "system" }, { "content": "What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? ", "role": "user" }, { "content": "SELECT population__millions, _2011_ FROM table_2155836_1 WHERE gdp__nominal___billions_usd_ = \"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_42 (year INTEGER, winning_score VARCHAR)", "role": "system" }, { "content": "Which Year has a Winning score of –4 (69-72-70-69=280)?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (week VARCHAR, result VARCHAR)", "role": "system" }, { "content": "How many weeks ended in a result of L 20-10?", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_name_85 WHERE result = \"l 20-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_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)", "role": "system" }, { "content": "What is the highest Year, when Finish is \"51\", and when Start is less than 64?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17326036_5 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What team was the game on November 21 played against?", "role": "user" }, { "content": "SELECT team FROM table_17326036_5 WHERE date = \"November 21\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2009 when 2012 is Year-End Championship?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_38 WHERE 2012 = \"year-end championship\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR)", "role": "system" }, { "content": "Name the least age for distrito nacional", "role": "user" }, { "content": "SELECT MIN(age) FROM table_26301697_2 WHERE represents = \"Distrito Nacional\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the score on May 18?", "role": "user" }, { "content": "SELECT score FROM table_name_75 WHERE date = \"may 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_82 (losingteam VARCHAR, cup_finaldate VARCHAR)", "role": "system" }, { "content": "What team lost on 20 August 1989?", "role": "user" }, { "content": "SELECT losingteam FROM table_name_82 WHERE cup_finaldate = \"20 august 1989\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, gold VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What is the total when the gold of 0, and a bronze larger than 1?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 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_51 (date INTEGER, attendance VARCHAR)", "role": "system" }, { "content": "When was the attendance 1,034?", "role": "user" }, { "content": "SELECT MIN(date) FROM table_name_51 WHERE attendance = \"1,034\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nationality VARCHAR, round VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the nationality of the player with a round after 4 and plays right wing?", "role": "user" }, { "content": "SELECT nationality FROM table_name_41 WHERE round > 4 AND position = \"right wing\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23018775_3 (avg_speed VARCHAR, total_time VARCHAR)", "role": "system" }, { "content": "What was the average speed where the total time was 1:30.4842?", "role": "user" }, { "content": "SELECT avg_speed FROM table_23018775_3 WHERE total_time = \"1:30.4842\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the date of the game with a score of 2–1?", "role": "user" }, { "content": "SELECT date FROM table_name_60 WHERE score = \"2–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_89 (place VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What did South Africa place?", "role": "user" }, { "content": "SELECT place FROM table_name_89 WHERE country = \"south africa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (r_epp VARCHAR, ed_zacharias VARCHAR)", "role": "system" }, { "content": "Which of the R. Epp, has Ed Zacharias from Rollen, Jerolt, Golt?", "role": "user" }, { "content": "SELECT r_epp FROM table_name_97 WHERE ed_zacharias = \"rollen, jerolt, golt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the Crowd for the Venue of Princes Park?", "role": "user" }, { "content": "SELECT crowd FROM table_name_88 WHERE venue = \"princes 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 customers (customer_details VARCHAR)", "role": "system" }, { "content": "Find the names of customers whose name contains \"Diana\".", "role": "user" }, { "content": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game INTEGER, series VARCHAR)", "role": "system" }, { "content": "Series of oilers win 4–3 had what highest game?", "role": "user" }, { "content": "SELECT MAX(game) FROM table_name_6 WHERE series = \"oilers win 4–3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR)", "role": "system" }, { "content": "what is the number of people where the pieces is 3015", "role": "user" }, { "content": "SELECT COUNT(player) FROM table_28498999_6 WHERE points = 3015", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17323529_5 (high_points VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the high points for the date of november 24", "role": "user" }, { "content": "SELECT high_points FROM table_17323529_5 WHERE date = \"November 24\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the highest attendance for the match against west ham united at the venue of a?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_42 WHERE venue = \"a\" AND opponent = \"west ham united\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (u_wins VARCHAR, alianza_goals VARCHAR, u_goals VARCHAR)", "role": "system" }, { "content": "What is the total number of U Wins, when Alianza Goals is \"0\", and when U Goals is greater than 3?", "role": "user" }, { "content": "SELECT COUNT(u_wins) FROM table_name_25 WHERE alianza_goals = 0 AND u_goals > 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_11 (position VARCHAR, competition VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What position was played at the World Athletics Final Competition in a year more recent than 2008?", "role": "user" }, { "content": "SELECT position FROM table_name_11 WHERE competition = \"world athletics final\" AND year > 2008", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (chassis VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "What kind of chassis does Ricardo Zonta have?", "role": "user" }, { "content": "SELECT chassis FROM table_name_30 WHERE driver = \"ricardo zonta\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (sanction VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What was the sanction of the event at Nashville, Illinois?", "role": "user" }, { "content": "SELECT sanction FROM table_name_5 WHERE location = \"nashville, illinois\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "What is the sum of Game on february 28?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_52 WHERE date = \"february 28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2008 value that was 2nd in 2006?", "role": "user" }, { "content": "SELECT 2008 FROM table_name_87 WHERE 2006 = \"2nd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR)", "role": "system" }, { "content": "How many race 3 winners were there when Mitch Evans won race 2?", "role": "user" }, { "content": "SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = \"Mitch Evans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (avg_g INTEGER, gain VARCHAR)", "role": "system" }, { "content": "Which Avg/G has a Gain of 1,839?", "role": "user" }, { "content": "SELECT SUM(avg_g) FROM table_name_93 WHERE gain = 1 OFFSET 839", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (mission VARCHAR, name VARCHAR)", "role": "system" }, { "content": "David Scott went on which mission?", "role": "user" }, { "content": "SELECT mission FROM table_name_8 WHERE name = \"david scott\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_224672_2 (type VARCHAR, term_ended VARCHAR)", "role": "system" }, { "content": "What branch of government was the term that ended on January 3, 2001?", "role": "user" }, { "content": "SELECT type FROM table_224672_2 WHERE term_ended = \"January 3, 2001\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE order_items (product_id VARCHAR)", "role": "system" }, { "content": "What is the id of the product that was ordered the most often?", "role": "user" }, { "content": "SELECT product_id FROM order_items GROUP BY product_id ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "What is Team 1 where Team 2 is al tahrir?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_13 WHERE team_2 = \"al tahrir\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (total_points VARCHAR, gp_gs VARCHAR)", "role": "system" }, { "content": "What is the total points for GP/GS of 24/23?", "role": "user" }, { "content": "SELECT total_points FROM table_name_28 WHERE gp_gs = \"24/23\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (regular_season VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the regular season for 2012?", "role": "user" }, { "content": "SELECT regular_season FROM table_name_38 WHERE year = \"2012\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (serial_format VARCHAR, design VARCHAR, serials_issued VARCHAR)", "role": "system" }, { "content": "What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?", "role": "user" }, { "content": "SELECT serial_format FROM table_name_72 WHERE design = \"white on blue\" AND serials_issued = \"ss-00-00 to zz-99-99\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, competition VARCHAR, runners_up VARCHAR)", "role": "system" }, { "content": "What date did the Fai Cup with Derry City F.C. as runners-up take place?", "role": "user" }, { "content": "SELECT date FROM table_name_33 WHERE competition = \"fai cup\" AND runners_up = \"derry city f.c.\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Name the date when bye was opponent", "role": "user" }, { "content": "SELECT date FROM table_name_15 WHERE opponent = \"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_2562572_39 (type VARCHAR, cyrillic_name_other_names VARCHAR)", "role": "system" }, { "content": "What kind of type is бока?", "role": "user" }, { "content": "SELECT type FROM table_2562572_39 WHERE cyrillic_name_other_names = \"Бока\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (erp_w INTEGER, frequency_mhz INTEGER)", "role": "system" }, { "content": "What is the ERP W number where the frequency is smaller than 91.1?", "role": "user" }, { "content": "SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (game VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "How many games have an Attendance of 19,190?", "role": "user" }, { "content": "SELECT COUNT(game) FROM table_name_52 WHERE attendance = 19 OFFSET 190", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (class_aA VARCHAR, school_year VARCHAR)", "role": "system" }, { "content": "Who was Class AA in School Year 1994-95?", "role": "user" }, { "content": "SELECT class_aA FROM table_name_26 WHERE school_year = \"1994-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_43 (february INTEGER, opponent VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?", "role": "user" }, { "content": "SELECT MAX(february) FROM table_name_43 WHERE opponent = \"philadelphia flyers\" AND game > 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_40 (power VARCHAR, years VARCHAR)", "role": "system" }, { "content": "What is the power for the years 1975-84?", "role": "user" }, { "content": "SELECT power FROM table_name_40 WHERE years = \"1975-84\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What date did the VFL play Punt Road Oval?", "role": "user" }, { "content": "SELECT date FROM table_name_90 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_name_66 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)", "role": "system" }, { "content": "Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?", "role": "user" }, { "content": "SELECT outcome FROM table_name_66 WHERE partner = \"mark dickson\" AND opponents_in_the_final = \"hans gildemeister belus prajoux\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, transfer_fee VARCHAR)", "role": "system" }, { "content": "Which Date had a Transfer fee of £8.8m?", "role": "user" }, { "content": "SELECT date FROM table_name_45 WHERE transfer_fee = \"£8.8m\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (floor_exercise INTEGER, pommel_horse VARCHAR, horizontal_bar VARCHAR)", "role": "system" }, { "content": "what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?", "role": "user" }, { "content": "SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 (Major VARCHAR, major VARCHAR)", "role": "system" }, { "content": "Which major has the most students?", "role": "user" }, { "content": "SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]