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 Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)",
"role": "system"
},
{
"content": "Show the account id and name with at least 4 transactions.",
"role": "user"
},
{
"content": "SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 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_79 (player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the player with a 71-69-71-69=280 score?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_79 WHERE score = 71 - 69 - 71 - 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_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "What episode titles have 20.94 million U.S. viewers?",
"role": "user"
},
{
"content": "SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = \"20.94\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, reb_avg INTEGER)",
"role": "system"
},
{
"content": "How many ranks have a rebound average smaller than 6.1?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 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_29583441_1 (original_air_date VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "What date did the episode that was directed by Christian i. nyby ii originally air on?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_29583441_1 WHERE directed_by = \"Christian I. Nyby II\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What is Ludo Peeters' team classification?",
"role": "user"
},
{
"content": "SELECT team_classification FROM table_name_74 WHERE winner = \"ludo peeters\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (system VARCHAR, internal_hard_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR)",
"role": "system"
},
{
"content": "Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots?",
"role": "user"
},
{
"content": "SELECT system FROM table_name_47 WHERE s_100_slots < 21 AND year_introduced < 1981 AND internal_hard_disk = \"11 megabytes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was their record when they lost with Lilly (0-1) pitching?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_6 WHERE loss = \"lilly (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_1300525_1 (population VARCHAR, pinyin VARCHAR)",
"role": "system"
},
{
"content": "How many people live in the district who's capital is héngfēng xiàn?",
"role": "user"
},
{
"content": "SELECT population FROM table_1300525_1 WHERE pinyin = \"Héngfēng Xiàn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (losses VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What losses consist of the team of japan?",
"role": "user"
},
{
"content": "SELECT losses FROM table_name_13 WHERE team = \"japan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11916083_1 (year INTEGER, mintage__proof_ VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest year where the mintage (proof) is 25,000?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_11916083_1 WHERE mintage__proof_ = \"25,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR)",
"role": "system"
},
{
"content": "What is Played, when Goal Difference is \"+51\"?",
"role": "user"
},
{
"content": "SELECT played FROM table_name_91 WHERE goal_difference = \"+51\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140111_5 (constructor VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "Who constructed the Syracuse circuit?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_1140111_5 WHERE circuit = \"Syracuse\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (drivers VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "Name the drivers for chassis of season cancelled",
"role": "user"
},
{
"content": "SELECT drivers FROM table_name_88 WHERE chassis = \"season cancelled\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_211791_1 (nato_us_dod_code VARCHAR, nato_reporting_name VARCHAR)",
"role": "system"
},
{
"content": "Name the nato/ us dod code for sabbot",
"role": "user"
},
{
"content": "SELECT nato_us_dod_code FROM table_211791_1 WHERE nato_reporting_name = \"SABBOT\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (loser VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What is the Loser when the winner was los angeles lakers (10)?",
"role": "user"
},
{
"content": "SELECT loser FROM table_name_18 WHERE winner = \"los angeles lakers (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 campuses (campus VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "Which campus was opened between 1935 and 1939?",
"role": "user"
},
{
"content": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (ihsaa_class VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "What is the IHSAA class when the county was 83 vermillion?",
"role": "user"
},
{
"content": "SELECT ihsaa_class FROM table_name_40 WHERE county = \"83 vermillion\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16912000_13 (p_ret VARCHAR, kr_avg VARCHAR)",
"role": "system"
},
{
"content": "How many p.ret are there when kr avg is 11.3 ? ",
"role": "user"
},
{
"content": "SELECT COUNT(p_ret) FROM table_16912000_13 WHERE kr_avg = \"11.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_52 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the away team at Western Oval?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_52 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_50 (date VARCHAR, stadium VARCHAR)",
"role": "system"
},
{
"content": "What day did they play in central park stadium?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_50 WHERE stadium = \"central park\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR)",
"role": "system"
},
{
"content": "What is every missile type with a code and location of M-20 Harbor Drive?",
"role": "user"
},
{
"content": "SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = \"M-20 Harbor Drive\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (game VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which game was on September 12?",
"role": "user"
},
{
"content": "SELECT game FROM table_name_2 WHERE date = \"september 12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)",
"role": "system"
},
{
"content": "How many different lead margins were stated in the poll administered on September 11, 2008?",
"role": "user"
},
{
"content": "SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = \"September 11, 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_58 (class VARCHAR, co_drivers VARCHAR)",
"role": "system"
},
{
"content": "What is the class of the co-driver emanuele pirro jj lehto?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_58 WHERE co_drivers = \"emanuele pirro jj lehto\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (density__inhabitants_km_2__ INTEGER, city VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest density of serravalle scrivia?",
"role": "user"
},
{
"content": "SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = \"serravalle scrivia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score_in_the_final VARCHAR, championship VARCHAR)",
"role": "system"
},
{
"content": "What was the final score of the Australian Open?",
"role": "user"
},
{
"content": "SELECT score_in_the_final FROM table_name_13 WHERE championship = \"australian open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many different titles does the episode with production code IP02003 have?",
"role": "user"
},
{
"content": "SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = \"IP02003\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (award VARCHAR, director_s_ VARCHAR)",
"role": "system"
},
{
"content": "Name the award for candida scott knight",
"role": "user"
},
{
"content": "SELECT award FROM table_name_78 WHERE director_s_ = \"candida scott knight\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "How many points have 75 laps?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_6 WHERE laps = \"75\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (laps INTEGER, drivers VARCHAR)",
"role": "system"
},
{
"content": "What were the highest laps for glenn seton gregg hansford?",
"role": "user"
},
{
"content": "SELECT MAX(laps) FROM table_name_1 WHERE drivers = \"glenn seton gregg hansford\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (launched VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the launch date for the Ushio dd-54?",
"role": "user"
},
{
"content": "SELECT launched FROM table_name_55 WHERE name = \"ushio dd-54\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22496344_1 (_number VARCHAR, high_school VARCHAR)",
"role": "system"
},
{
"content": "What is the # for worthing high school?",
"role": "user"
},
{
"content": "SELECT COUNT(_number) FROM table_22496344_1 WHERE high_school = \"Worthing\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE courses (course_name VARCHAR)",
"role": "system"
},
{
"content": "List the names of courses in alphabetical order?",
"role": "user"
},
{
"content": "SELECT course_name FROM courses ORDER BY course_name",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341897_23 (candidates VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the candidates for massachusetts 6",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341897_23 WHERE district = \"Massachusetts 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_77 (venue VARCHAR, position_in_2005 VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Venue that has the Position in 2005 of 8?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_77 WHERE position_in_2005 = \"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_28561455_1 (written_by VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "Who wrote the episodes that were directed by Peter O'Fallon?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_28561455_1 WHERE directed_by = \"Peter O'Fallon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (final_score VARCHAR, visiting_team VARCHAR)",
"role": "system"
},
{
"content": "What was the final score when the Denver Broncos were the visiting team?",
"role": "user"
},
{
"content": "SELECT final_score FROM table_name_27 WHERE visiting_team = \"denver broncos\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (type VARCHAR, disaster VARCHAR)",
"role": "system"
},
{
"content": "What is the type of disaster that the Arrow Air Flight 1285 categorized in?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_55 WHERE disaster = \"arrow air flight 1285\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24278858_2 (date VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What date did the team play on week 8?",
"role": "user"
},
{
"content": "SELECT date FROM table_24278858_2 WHERE week = 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_13 (formula VARCHAR, chemical_class VARCHAR)",
"role": "system"
},
{
"content": "Which formula has a thial as a chemical class?",
"role": "user"
},
{
"content": "SELECT formula FROM table_name_13 WHERE chemical_class = \"thial\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (top_10 INTEGER, tournament VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?",
"role": "user"
},
{
"content": "SELECT MIN(top_10) FROM table_name_32 WHERE tournament = \"the open championship\" AND 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_41 (touchdowns INTEGER, yards VARCHAR)",
"role": "system"
},
{
"content": "What is the lease amount of touchdowns with 1318 yards?",
"role": "user"
},
{
"content": "SELECT MIN(touchdowns) FROM table_name_41 WHERE yards = 1318",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (event VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "what is the event when the location is saitama, japan?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_66 WHERE location = \"saitama, japan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "What is the total number drawn with goals against less than 55, and a total of 14 losses?",
"role": "user"
},
{
"content": "SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (seine_saint_denis VARCHAR, paris VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS A Seine-Saint-Denis WITH A PARIS OF 12.1%?",
"role": "user"
},
{
"content": "SELECT seine_saint_denis FROM table_name_90 WHERE paris = \"12.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_19495707_1 (application VARCHAR, mainly_used_for VARCHAR)",
"role": "system"
},
{
"content": "Name the number of application for modeling, computer aided design, animation",
"role": "user"
},
{
"content": "SELECT COUNT(application) FROM table_19495707_1 WHERE mainly_used_for = \"Modeling, Computer Aided Design, Animation\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16799784_4 (year_named INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What year was Norterma Tholus created?",
"role": "user"
},
{
"content": "SELECT MAX(year_named) FROM table_16799784_4 WHERE name = \"Norterma Tholus\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (national_league VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Which National League is in 1969-70 season?",
"role": "user"
},
{
"content": "SELECT national_league FROM table_name_7 WHERE season = \"1969-70\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What tournament was on Jan 29, 2012?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_8 WHERE date = \"jan 29, 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_5 (grid INTEGER, laps INTEGER)",
"role": "system"
},
{
"content": "For Laps smaller than 6, what does the Grid add up to?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_5 WHERE laps < 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_14058433_3 (points VARCHAR, tries_for VARCHAR)",
"role": "system"
},
{
"content": "How many points were made when the tries for was 83?",
"role": "user"
},
{
"content": "SELECT points FROM table_14058433_3 WHERE tries_for = \"83\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the record after game 41?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_1 WHERE game = 41",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (winner VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "who was the winner in 2003?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_53 WHERE year = \"2003\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (reg_season VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the regular season info that had a record of 20-10?",
"role": "user"
},
{
"content": "SELECT reg_season FROM table_name_87 WHERE record = \"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_35 (raised VARCHAR, original_team VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "How much did the Hydra team from Bronx, New York raise?",
"role": "user"
},
{
"content": "SELECT raised FROM table_name_35 WHERE original_team = \"hydra\" AND hometown = \"bronx, new york\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (poll_source VARCHAR, dates_administered VARCHAR)",
"role": "system"
},
{
"content": "What was the poll source for october 6, 2008?",
"role": "user"
},
{
"content": "SELECT poll_source FROM table_name_91 WHERE dates_administered = \"october 6, 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_42 (purse__ INTEGER, year INTEGER)",
"role": "system"
},
{
"content": "How much is the purse worth (¥) after 2012?",
"role": "user"
},
{
"content": "SELECT SUM(purse__) AS ¥_ FROM table_name_42 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_1762887_1 (state VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "Name the state for lake county",
"role": "user"
},
{
"content": "SELECT state FROM table_1762887_1 WHERE county = \"Lake county\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE review (u_id VARCHAR); CREATE TABLE useracct (u_id VARCHAR)",
"role": "system"
},
{
"content": "Find the number of users who did not write any review.",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "What is Opponent, when Location/Attendance is \"Mellon Arena - 17,132\"?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_67 WHERE location_attendance = \"mellon arena - 17,132\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (height_ft___m__ VARCHAR, street_address VARCHAR)",
"role": "system"
},
{
"content": "How tall is the Street address of 07.0 200 east washington street?",
"role": "user"
},
{
"content": "SELECT height_ft___m__ FROM table_name_10 WHERE street_address = \"07.0 200 east washington street\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest silver from Vietnam?",
"role": "user"
},
{
"content": "SELECT MIN(silver) FROM table_name_7 WHERE nation = \"vietnam\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28759261_5 (dadar_xi_‘b’ VARCHAR, pifa_colaba_fc_u_17 VARCHAR)",
"role": "system"
},
{
"content": "what is the dadar xi b where pifa colaba is sporting options?",
"role": "user"
},
{
"content": "SELECT dadar_xi_‘b’ FROM table_28759261_5 WHERE pifa_colaba_fc_u_17 = \"Sporting Options\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (week INTEGER, result VARCHAR)",
"role": "system"
},
{
"content": "Tell me the lowest week for w 10-3",
"role": "user"
},
{
"content": "SELECT MIN(week) FROM table_name_50 WHERE result = \"w 10-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_24 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "what is the outcome when the opponent in the final is william renshaw after year 1882?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_24 WHERE year > 1882 AND opponent_in_the_final = \"william renshaw\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (population VARCHAR, number_of_households VARCHAR)",
"role": "system"
},
{
"content": "What is the population with 41,511 households?",
"role": "user"
},
{
"content": "SELECT COUNT(population) FROM table_name_92 WHERE number_of_households = 41 OFFSET 511",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20823568_2 (second_place_s_ VARCHAR, sporting_profession VARCHAR)",
"role": "system"
},
{
"content": "How many second place showings does snooker have?",
"role": "user"
},
{
"content": "SELECT second_place_s_ FROM table_20823568_2 WHERE sporting_profession = \"Snooker\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (d_42 VARCHAR, d_47 VARCHAR)",
"role": "system"
},
{
"content": "What is the D42 associated with a D47 of d 27?",
"role": "user"
},
{
"content": "SELECT d_42 FROM table_name_31 WHERE d_47 = \"d 27\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)",
"role": "system"
},
{
"content": "What game had the date was it with the final score of 7-23",
"role": "user"
},
{
"content": "SELECT date FROM table_name_35 WHERE final_score = \"7-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_23647668_2 (season VARCHAR, champion VARCHAR)",
"role": "system"
},
{
"content": "How many season had Melgar as a champion?",
"role": "user"
},
{
"content": "SELECT COUNT(season) FROM table_23647668_2 WHERE champion = \"Melgar\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?",
"role": "user"
},
{
"content": "SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.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_96 (elimination VARCHAR, wrestler VARCHAR)",
"role": "system"
},
{
"content": "What is the Elimination for Candice?",
"role": "user"
},
{
"content": "SELECT elimination FROM table_name_96 WHERE wrestler = \"candice\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (drawn VARCHAR, bonus_points VARCHAR, points_against VARCHAR)",
"role": "system"
},
{
"content": "What was drawn for 6 bonus points and is against 410 points?",
"role": "user"
},
{
"content": "SELECT drawn FROM table_name_87 WHERE bonus_points = \"6\" AND points_against = \"410\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (points INTEGER, against VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "How many Points have an Against smaller than 43, and a Position smaller than 1?",
"role": "user"
},
{
"content": "SELECT SUM(points) FROM table_name_49 WHERE against < 43 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_25352324_5 (points VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "How many values for points have Sophia Witherspoon as the player?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_25352324_5 WHERE player = \"Sophia Witherspoon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, game VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Attendance has a Game score less than 3, and a Score of 2 – 5?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_58 WHERE game < 3 AND score = \"2 – 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_55 (apps INTEGER, goals VARCHAR, avge VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of apps of the player with more than 63 goals and an avge of 0.45?",
"role": "user"
},
{
"content": "SELECT MAX(apps) FROM table_name_55 WHERE goals > 63 AND avge = 0.45",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (phonetic VARCHAR, standard_thai VARCHAR)",
"role": "system"
},
{
"content": "What is the phonetic when the standard thai is ผ่า?",
"role": "user"
},
{
"content": "SELECT phonetic FROM table_name_88 WHERE standard_thai = \"ผ่า\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2780146_6 (hc__g_kwh_ VARCHAR, standard VARCHAR)",
"role": "system"
},
{
"content": "What's the HC for the Euro I standard?",
"role": "user"
},
{
"content": "SELECT hc__g_kwh_ FROM table_2780146_6 WHERE standard = \"Euro I\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (north_american_release_date VARCHAR, japanese_release_date VARCHAR)",
"role": "system"
},
{
"content": "What is North American Release Date, when Japanese Release Date is \"2011-06-23\"?",
"role": "user"
},
{
"content": "SELECT north_american_release_date FROM table_name_17 WHERE japanese_release_date = \"2011-06-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_1876825_8 (title VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "what is the title no in season 2?",
"role": "user"
},
{
"content": "SELECT title FROM table_1876825_8 WHERE no_in_season = 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_10138926_1 (city VARCHAR)",
"role": "system"
},
{
"content": "What's the 1991 census of the city of Carpi?",
"role": "user"
},
{
"content": "SELECT MAX(1991 AS _census) FROM table_10138926_1 WHERE city = \"Carpi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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, week VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the game after week 6 against the cleveland browns?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_41 WHERE week < 6 AND opponent = \"cleveland browns\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR)",
"role": "system"
},
{
"content": "Name the winner for genoa to livorno",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_39 WHERE course = \"genoa to livorno\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (roll VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "Which roll has an Area of mahia?",
"role": "user"
},
{
"content": "SELECT roll FROM table_name_2 WHERE area = \"mahia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER)",
"role": "system"
},
{
"content": "What is the average for the agricultural panel that has a National University of Ireland less than 0?",
"role": "user"
},
{
"content": "SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 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_10819266_8 (season VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many season premiers have a rank of #21?",
"role": "user"
},
{
"content": "SELECT season AS premiere FROM table_10819266_8 WHERE rank = \"#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_55 (recording_date VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "On what date was My Lord What a Mornin' recorded?",
"role": "user"
},
{
"content": "SELECT recording_date FROM table_name_55 WHERE title = \"my lord what a mornin'\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?",
"role": "user"
},
{
"content": "SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (avg INTEGER, player VARCHAR, fumbles VARCHAR)",
"role": "system"
},
{
"content": "What was Buck Pierce's highest average when there were less than 2 fumbles?",
"role": "user"
},
{
"content": "SELECT MAX(avg) FROM table_name_41 WHERE player = \"buck pierce\" AND fumbles < 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_47 (score VARCHAR)",
"role": "system"
},
{
"content": "What is the average first prize of the tournament with a score of 279 (–9)?",
"role": "user"
},
{
"content": "SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = \"279 (–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_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)",
"role": "system"
},
{
"content": "How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?",
"role": "user"
},
{
"content": "SELECT COUNT(gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_) FROM table_30133_3 WHERE 2012 = 23113",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2897457_8 (pick__number VARCHAR, nhl_team VARCHAR)",
"role": "system"
},
{
"content": "What pick number did the New York Rangers have?",
"role": "user"
},
{
"content": "SELECT pick__number FROM table_2897457_8 WHERE nhl_team = \"New York Rangers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, score VARCHAR, couple VARCHAR)",
"role": "system"
},
{
"content": "What was the result for Steve & Anna when the score was 21 (7, 7, 7)?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_80 WHERE score = \"21 (7, 7, 7)\" AND couple = \"steve & anna\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22379931_2 (round INTEGER, fastest_lap VARCHAR)",
"role": "system"
},
{
"content": "What was the earlier round where Takashi Kogure got the fastest lap?",
"role": "user"
},
{
"content": "SELECT MIN(round) FROM table_22379931_2 WHERE fastest_lap = \"Takashi Kogure\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points INTEGER, place INTEGER)",
"role": "system"
},
{
"content": "Which places have points larger than 10?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_8 WHERE place > 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_28 (name VARCHAR, street_address VARCHAR)",
"role": "system"
},
{
"content": "What is the Name of the Building at 100 North Tampa Street?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_28 WHERE street_address = \"100 north tampa street\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the to par when the score is 73-69-67-74=283?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_40 WHERE score = 73 - 69 - 67 - 74 = 283",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23274514_9 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What was the score when the record was 22-53?",
"role": "user"
},
{
"content": "SELECT score FROM table_23274514_9 WHERE record = \"22-53\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.