messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (manufacturer VARCHAR, locomotive_number VARCHAR)", "role": "system" }, { "content": "What manufacturer makes locomotive number CTN 46?", "role": "user" }, { "content": "SELECT manufacturer FROM table_name_73 WHERE locomotive_number = \"ctn 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_69 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What home team has Richmond listed as their Away team?", "role": "user" }, { "content": "SELECT home_team FROM table_name_69 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_92 (player VARCHAR, place VARCHAR, country VARCHAR)", "role": "system" }, { "content": "WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?", "role": "user" }, { "content": "SELECT player FROM table_name_92 WHERE place = \"t7\" AND country = \"england\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR, method VARCHAR)", "role": "system" }, { "content": "What is Date, when Result is Loss, and when Method is Submission (Armbar)?", "role": "user" }, { "content": "SELECT date FROM table_name_8 WHERE result = \"loss\" AND method = \"submission (armbar)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (start VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "What race has a finish time of 10?", "role": "user" }, { "content": "SELECT start FROM table_name_78 WHERE finish = \"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_27277284_27 (socket VARCHAR, frequency VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "What kind of sockets does a 2100MHz Athlon X2 QL-64 use?", "role": "user" }, { "content": "SELECT socket FROM table_27277284_27 WHERE frequency = \"2100MHz\" AND model_number = \"Athlon X2 QL-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_name_75 (venue VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Name the venue for score of 1-3", "role": "user" }, { "content": "SELECT venue FROM table_name_75 WHERE score = \"1-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_76 (attendance VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What was the attendance for the game played at 3:31?", "role": "user" }, { "content": "SELECT attendance FROM table_name_76 WHERE time = \"3:31\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Player that has a To standard of –1, and a Score of 71-68-76=215?", "role": "user" }, { "content": "SELECT player FROM table_name_60 WHERE to_par = \"–1\" AND score = 71 - 68 - 76 = 215", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23696862_6 (name VARCHAR, wsop_cashes VARCHAR, final_place VARCHAR)", "role": "system" }, { "content": "Who had 2 WSOP cashes and was 6th in final place?", "role": "user" }, { "content": "SELECT name FROM table_23696862_6 WHERE wsop_cashes = 2 AND final_place = \"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_69 (ceremony VARCHAR, nominee VARCHAR)", "role": "system" }, { "content": "In which ceremony was Jayant nominated for an award?", "role": "user" }, { "content": "SELECT ceremony FROM table_name_69 WHERE nominee = \"jayant\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, goal VARCHAR)", "role": "system" }, { "content": "Which venue has a Goal of 4?", "role": "user" }, { "content": "SELECT venue FROM table_name_62 WHERE goal = 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_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR)", "role": "system" }, { "content": "How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?", "role": "user" }, { "content": "SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = \"Gabriele Gardel Patrice Goueslard Fernando Rees\" AND circuit = \"Algarve\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nominating_festival VARCHAR, director_s_ VARCHAR)", "role": "system" }, { "content": "Which nominating festival did Olga Baillif enter?", "role": "user" }, { "content": "SELECT nominating_festival FROM table_name_72 WHERE director_s_ = \"olga baillif\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?", "role": "user" }, { "content": "SELECT title FROM table_13336122_3 WHERE directed_by = \"David Von Ancken\" AND no_in_series > 16.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_3 (place INTEGER, best_score INTEGER)", "role": "system" }, { "content": "WHAT IS THE HIGHEST PLACE AND BEST SCORE BIGGER THAN 10?", "role": "user" }, { "content": "SELECT MAX(place) FROM table_name_3 WHERE best_score > 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_22883210_9 (game INTEGER, team VARCHAR)", "role": "system" }, { "content": "What is the highest game number where the team was Cleveland? ", "role": "user" }, { "content": "SELECT MAX(game) FROM table_22883210_9 WHERE team = \"Cleveland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the score of the replay at Millwall?", "role": "user" }, { "content": "SELECT score FROM table_name_23 WHERE tie_no = \"replay\" AND home_team = \"millwall\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (ties INTEGER, played INTEGER)", "role": "system" }, { "content": "What is the average Ties, when Played is greater than 5?", "role": "user" }, { "content": "SELECT AVG(ties) FROM table_name_68 WHERE played > 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_1226250_1 (bleeding_time VARCHAR, condition VARCHAR)", "role": "system" }, { "content": "What kind of bleeding does aspirin cause?", "role": "user" }, { "content": "SELECT bleeding_time FROM table_1226250_1 WHERE condition = \"Aspirin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (episode_title VARCHAR, episode__number VARCHAR)", "role": "system" }, { "content": "Which Episode title has a Episode # of s2?", "role": "user" }, { "content": "SELECT episode_title FROM table_name_65 WHERE episode__number = \"s2\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (type VARCHAR, position VARCHAR, location VARCHAR)", "role": "system" }, { "content": "what is the type when the position is ambassador and the location is rabat?", "role": "user" }, { "content": "SELECT type FROM table_name_62 WHERE position = \"ambassador\" AND location = \"rabat\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR)", "role": "system" }, { "content": "What is the high point toal for martine foubert placing below 2?", "role": "user" }, { "content": "SELECT MAX(points) FROM table_name_32 WHERE artist = \"martine foubert\" AND place > 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_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)", "role": "system" }, { "content": "What was the date of appointment for the manager of the 23rd team?", "role": "user" }, { "content": "SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = \"23rd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE weather (date VARCHAR, cloud_cover VARCHAR)", "role": "system" }, { "content": "What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.", "role": "user" }, { "content": "SELECT date, cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 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_66 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2010 of the Grand Slam Tournaments in 2011?", "role": "user" }, { "content": "SELECT 2010 FROM table_name_66 WHERE 2011 = \"grand slam tournaments\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What's the 1994 if 1995 has a 1R?", "role": "user" }, { "content": "SELECT 1994 FROM table_name_84 WHERE 1995 = \"1r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24501530_1 (candidate VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What is the name of the player from Maylands, Western Australia?", "role": "user" }, { "content": "SELECT candidate FROM table_24501530_1 WHERE hometown = \"Maylands, Western 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_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)", "role": "system" }, { "content": "In what conditions are both the platelet count and prothrombin time unaffected? ", "role": "user" }, { "content": "SELECT condition FROM table_20592988_1 WHERE platelet_count = \"Unaffected\" AND prothrombin_time = \"Unaffected\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (years VARCHAR, rank VARCHAR, matches VARCHAR)", "role": "system" }, { "content": "What years did the player ranked less than 8 and had 447 matches play?", "role": "user" }, { "content": "SELECT years FROM table_name_83 WHERE rank < 8 AND matches = 447", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19487922_1 (poles INTEGER, country VARCHAR)", "role": "system" }, { "content": "How many poles for the Netherlands?", "role": "user" }, { "content": "SELECT MAX(poles) FROM table_19487922_1 WHERE country = \"Netherlands\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What was the Opponent in the game with a Result of W 23-7?", "role": "user" }, { "content": "SELECT opponent FROM table_name_30 WHERE result = \"w 23-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_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)", "role": "system" }, { "content": "How many miles (km) were driven when the average speed (mph) was 103.145?", "role": "user" }, { "content": "SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = \"103.145\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1480455_1 (population__2005_ VARCHAR, population_density___km_2__ VARCHAR)", "role": "system" }, { "content": "What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?", "role": "user" }, { "content": "SELECT COUNT(population__2005_) FROM table_1480455_1 WHERE population_density___km_2__ = \"35.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_77 (margin_of_error VARCHAR, undecided VARCHAR, other VARCHAR)", "role": "system" }, { "content": "what is the margin of error when the undicided is 8% and other is 4%?", "role": "user" }, { "content": "SELECT margin_of_error FROM table_name_77 WHERE undecided = \"8%\" AND other = \"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_27 (opponent VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "Who was the opponent at the game that had a loss of Harden (9-6)?", "role": "user" }, { "content": "SELECT opponent FROM table_name_27 WHERE loss = \"harden (9-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_59 (tournament VARCHAR, runner_up VARCHAR)", "role": "system" }, { "content": "Which tournament was Tim Henman the runner-up in?", "role": "user" }, { "content": "SELECT tournament FROM table_name_59 WHERE runner_up = \"tim henman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (rank VARCHAR, club_s_ VARCHAR, u_17_caps VARCHAR)", "role": "system" }, { "content": "What is the rank of Club Valencia with a U-17 Caps of 20?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_17 WHERE club_s_ = \"valencia\" AND u_17_caps = 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (name VARCHAR, matches VARCHAR, wins VARCHAR, losses VARCHAR)", "role": "system" }, { "content": "Who has 1 win, 1 loss, and has played 2 matches?", "role": "user" }, { "content": "SELECT name FROM table_name_77 WHERE wins = \"1\" AND losses = \"1\" AND matches = \"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_21 (opponent VARCHAR, method VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the name of the opponent when the method was ko (slam), and record was 13–1?", "role": "user" }, { "content": "SELECT opponent FROM table_name_21 WHERE method = \"ko (slam)\" AND record = \"13–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 (house_of_rep_seats INTEGER, abbr VARCHAR)", "role": "system" }, { "content": "What is the average number of House of Representatives seats had an abbreviation of d66?", "role": "user" }, { "content": "SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = \"d66\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (Id VARCHAR)", "role": "system" }, { "content": "WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?", "role": "user" }, { "content": "SELECT 2011 FROM table_name_67 WHERE 2007 = \"a\" AND 2008 = \"3r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)", "role": "system" }, { "content": "When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there?", "role": "user" }, { "content": "SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = \"Wacker Marktredwitz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1888051_1 (area__km²_ VARCHAR, province VARCHAR)", "role": "system" }, { "content": "when province is monseñor nouel, what is the area (km²)?", "role": "user" }, { "content": "SELECT area__km²_ FROM table_1888051_1 WHERE province = \"Monseñor Nouel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, driver VARCHAR, car__number VARCHAR, make VARCHAR)", "role": "system" }, { "content": "Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?", "role": "user" }, { "content": "SELECT team FROM table_name_1 WHERE car__number < 99 AND make = \"toyota\" AND driver = \"mike skinner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17058226_5 (team VARCHAR, high_assists VARCHAR)", "role": "system" }, { "content": "What opposing team was playing when sebastian telfair (7) had the highest assists?", "role": "user" }, { "content": "SELECT team FROM table_17058226_5 WHERE high_assists = \"Sebastian Telfair (7)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (score VARCHAR, place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the score with a place of t6 for the player k.j. choi?", "role": "user" }, { "content": "SELECT score FROM table_name_83 WHERE place = \"t6\" AND player = \"k.j. choi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (sub_parish__sogn_ VARCHAR, parish__prestegjeld_ VARCHAR, location_of_the_church VARCHAR)", "role": "system" }, { "content": "Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?", "role": "user" }, { "content": "SELECT sub_parish__sogn_ FROM table_name_52 WHERE parish__prestegjeld_ = \"hafslo parish\" AND location_of_the_church = \"urnes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (money___ INTEGER, player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?", "role": "user" }, { "content": "SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = \"loren roberts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_record VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is the Team Record, when the Result is l 0–24?", "role": "user" }, { "content": "SELECT team_record FROM table_name_52 WHERE result = \"l 0–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_47 (score VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What is the score when the tie number is 4?", "role": "user" }, { "content": "SELECT score FROM table_name_47 WHERE tie_no = \"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_12 (iata VARCHAR, country VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What is City of Sandefjord in Norway's IATA?", "role": "user" }, { "content": "SELECT iata FROM table_name_12 WHERE country = \"norway\" AND city = \"sandefjord\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, home_team VARCHAR)", "role": "system" }, { "content": "What is the date of the match with west bromwich albion as the home team?", "role": "user" }, { "content": "SELECT date FROM table_name_90 WHERE home_team = \"west bromwich albion\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (played VARCHAR, drawn VARCHAR, position VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1?", "role": "user" }, { "content": "SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 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_26454128_7 (athlete VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Name the athlete for 7 rank", "role": "user" }, { "content": "SELECT athlete FROM table_26454128_7 WHERE rank = 7", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the lowest number of points of the team with 2 losses and a lower than 1 position?", "role": "user" }, { "content": "SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 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_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR)", "role": "system" }, { "content": "Who drove the renault that went over 23 laps and had a grid under 11?", "role": "user" }, { "content": "SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = \"renault\" AND laps > 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_22485543_1 (network VARCHAR, studio_host VARCHAR, ice_level_reporters VARCHAR)", "role": "system" }, { "content": "Which network has bob costas as the studio host and darren pang as the ice level reporters?", "role": "user" }, { "content": "SELECT network FROM table_22485543_1 WHERE studio_host = \"Bob Costas\" AND ice_level_reporters = \"Darren Pang\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2150776_1 (team VARCHAR, date VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "Name the team for june 16 jeff gordon", "role": "user" }, { "content": "SELECT team FROM table_2150776_1 WHERE date = \"June 16\" AND driver = \"Jeff Gordon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, sideline_reporters VARCHAR)", "role": "system" }, { "content": "What's the average year that sara orlesky and farhan lalji are the sideline reporters?", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = \"sara orlesky and farhan lalji\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1473672_8 (college_junior_club_team VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Name the college/junior/club team for left wing", "role": "user" }, { "content": "SELECT college_junior_club_team FROM table_1473672_8 WHERE position = \"Left 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_283203_1 (home_venue VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "Where is the home venue of the team founded in 1993?", "role": "user" }, { "content": "SELECT home_venue FROM table_283203_1 WHERE founded = 1993", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What team was the opponent when there were 27,321 in attendance?", "role": "user" }, { "content": "SELECT opponent FROM table_name_86 WHERE attendance = \"27,321\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (release_date VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "What's the release date of the processor with 2.8 ghz of frequency?", "role": "user" }, { "content": "SELECT release_date FROM table_name_77 WHERE frequency = \"2.8 ghz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (institution VARCHAR, founded VARCHAR, current_conference VARCHAR)", "role": "system" }, { "content": "What American Southwest Conference school was founded in 1883?", "role": "user" }, { "content": "SELECT institution FROM table_name_87 WHERE founded > 1883 AND current_conference = \"american southwest\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What team played South Melbourne at their home game?", "role": "user" }, { "content": "SELECT away_team FROM table_name_22 WHERE home_team = \"south melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668243_22 (incumbent VARCHAR, district VARCHAR)", "role": "system" }, { "content": "Who was the \"incumbent\" of district south carolina 7?", "role": "user" }, { "content": "SELECT incumbent FROM table_2668243_22 WHERE district = \"South Carolina 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 professor (prof_high_degree VARCHAR)", "role": "system" }, { "content": "How many professors do have a Ph.D. degree?", "role": "user" }, { "content": "SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983?", "role": "user" }, { "content": "SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = \"d\" AND birthdate = \"april 5, 1983\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (cast VARCHAR, director VARCHAR)", "role": "system" }, { "content": "Tell me the cast for b. reeves eason and joseph kane", "role": "user" }, { "content": "SELECT cast FROM table_name_80 WHERE director = \"b. reeves eason and joseph kane\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (combined VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "Which combined score has an overall of 8?", "role": "user" }, { "content": "SELECT combined FROM table_name_80 WHERE overall = \"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_64 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "When was the game that had Sydney Spirit as the away team?", "role": "user" }, { "content": "SELECT date FROM table_name_64 WHERE away_team = \"sydney spirit\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (reign_ended VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When did Pharaoh Seth's reign end?", "role": "user" }, { "content": "SELECT reign_ended FROM table_name_17 WHERE name = \"pharaoh seth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (middle_german___luxemburgish__ VARCHAR, english VARCHAR)", "role": "system" }, { "content": "What is the Middle German (Luxemburgish) word for stone?", "role": "user" }, { "content": "SELECT middle_german___luxemburgish__ FROM table_name_58 WHERE english = \"stone\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR)", "role": "system" }, { "content": "What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?", "role": "user" }, { "content": "SELECT COUNT(division) FROM table_name_32 WHERE country = \"china\" AND apps > 9 AND season = \"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_23730973_5 (episode VARCHAR, no VARCHAR)", "role": "system" }, { "content": "What was the title of episode 3?", "role": "user" }, { "content": "SELECT episode FROM table_23730973_5 WHERE no = 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_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which School/ Club Team acquired Jondan Salvador via trade?", "role": "user" }, { "content": "SELECT school_club_team FROM table_name_8 WHERE acquisition_via = \"trade\" AND name = \"jondan salvador\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party (party_name VARCHAR)", "role": "system" }, { "content": "How many parties do we have?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT party_name) FROM party", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21378339_5 (televote_points VARCHAR, song VARCHAR)", "role": "system" }, { "content": "Name the total number of televote points for cry on my shoulders", "role": "user" }, { "content": "SELECT COUNT(televote_points) FROM table_21378339_5 WHERE song = \"Cry on my shoulders\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What team was the away team at Arden Street Oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_72 WHERE venue = \"arden street 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_18 (draw INTEGER, performer VARCHAR, televotes VARCHAR)", "role": "system" }, { "content": "Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?", "role": "user" }, { "content": "SELECT MIN(draw) FROM table_name_18 WHERE performer = \"kaliopi\" AND televotes > 3834", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (name VARCHAR, date_of_birth VARCHAR)", "role": "system" }, { "content": "Who is born on 1982-01-29?", "role": "user" }, { "content": "SELECT name FROM table_name_7 WHERE date_of_birth = \"1982-01-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_20 (date VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?", "role": "user" }, { "content": "SELECT date FROM table_name_20 WHERE 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_27721131_11 (high_assists VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Who had the highest assists during game 78?", "role": "user" }, { "content": "SELECT high_assists FROM table_27721131_11 WHERE game = 78", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17308269_2 (former_wnba_team VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "Name the number of former wnba team for 2", "role": "user" }, { "content": "SELECT COUNT(former_wnba_team) FROM table_17308269_2 WHERE pick = 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_18018214_1 (position INTEGER, draws VARCHAR)", "role": "system" }, { "content": "What is the highest position a team with 7 draws earned?", "role": "user" }, { "content": "SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (win__percentage INTEGER, away VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What was the lowest win% with an away score of 3-2 in 2011 season?", "role": "user" }, { "content": "SELECT MIN(win__percentage) FROM table_name_53 WHERE away = \"3-2\" AND season = \"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_name_18 (device VARCHAR, carrier VARCHAR)", "role": "system" }, { "content": "WHAT IS THE DEVICE WITH MTS MOBILITY?", "role": "user" }, { "content": "SELECT device FROM table_name_18 WHERE carrier = \"mts mobility\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (airdate VARCHAR, length VARCHAR)", "role": "system" }, { "content": "When did the length of 60 minutes air?", "role": "user" }, { "content": "SELECT airdate FROM table_name_46 WHERE length = \"60 minutes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (races VARCHAR, poles VARCHAR, team_name VARCHAR)", "role": "system" }, { "content": "Which race has a pole of test driver and a team name of Lucky Strike Honda Racing f1 team?", "role": "user" }, { "content": "SELECT races FROM table_name_36 WHERE poles = \"test driver\" AND team_name = \"lucky strike honda racing f1 team\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (team VARCHAR, qual_2 VARCHAR)", "role": "system" }, { "content": "Which team had a qualifying 2 time of 1:01.093?", "role": "user" }, { "content": "SELECT team FROM table_name_11 WHERE qual_2 = \"1:01.093\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "The game played on 6 December 1986 had what score?", "role": "user" }, { "content": "SELECT score FROM table_name_12 WHERE date = \"6 december 1986\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What lane had a heat after 12, a rank of 38 and a time larger than 22.67?", "role": "user" }, { "content": "SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.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_22705586_1 (name VARCHAR, date_of_birth VARCHAR)", "role": "system" }, { "content": "Name the date of birth for 27/07/86", "role": "user" }, { "content": "SELECT name FROM table_22705586_1 WHERE date_of_birth = \"27/07/86\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (school VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What school did bo jackson attend?", "role": "user" }, { "content": "SELECT school FROM table_name_96 WHERE player = \"bo jackson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (share_of_votes VARCHAR, election VARCHAR)", "role": "system" }, { "content": "What is the share of votes in the 2008 (1) election?", "role": "user" }, { "content": "SELECT share_of_votes FROM table_name_99 WHERE election = \"2008 (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_57 (writer_s_ VARCHAR, recipient VARCHAR)", "role": "system" }, { "content": "Who was the writer when Parkville Pictures Ltd was the recipient?", "role": "user" }, { "content": "SELECT writer_s_ FROM table_name_57 WHERE recipient = \"parkville pictures ltd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29302781_12 (semifinalists VARCHAR, runner_up VARCHAR)", "role": "system" }, { "content": "Who were the semifinalists when the runner-up was Pat Du Pré?", "role": "user" }, { "content": "SELECT semifinalists FROM table_29302781_12 WHERE runner_up = \"Pat Du Pré\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1?", "role": "user" }, { "content": "SELECT tournament FROM table_name_23 WHERE outcome = \"winner\" AND surface = \"clay\" AND 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_26250176_1 (original_artist VARCHAR, theme VARCHAR)", "role": "system" }, { "content": "Who was the original artist for First Solo?", "role": "user" }, { "content": "SELECT original_artist FROM table_26250176_1 WHERE theme = \"First Solo\"", "role": "assistant" } ]