messages
listlengths
3
3
text
stringlengths
266
592
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?", "role": "user" }, { "content": "SELECT opponent FROM table_name_93 WHERE game > 72 AND record = \"39-27-9\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)<|im_end|> <|im_start|>user Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21458142_1 (total_copies_sold VARCHAR, release_date VARCHAR)", "role": "system" }, { "content": "How many copies were sold of the game released on october 23, 2008?", "role": "user" }, { "content": "SELECT total_copies_sold FROM table_21458142_1 WHERE release_date = \"October 23, 2008\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_21458142_1 (total_copies_sold VARCHAR, release_date VARCHAR)<|im_end|> <|im_start|>user How many copies were sold of the game released on october 23, 2008?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25368177_1 (abandoned INTEGER)", "role": "system" }, { "content": "What's the largest number of abandoned games by any of the teams?", "role": "user" }, { "content": "SELECT MAX(abandoned) FROM table_25368177_1", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_25368177_1 (abandoned INTEGER)<|im_end|> <|im_start|>user What's the largest number of abandoned games by any of the teams?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "Which tournament had a runner-up of Val Skinner?", "role": "user" }, { "content": "SELECT tournament FROM table_name_20 WHERE runner_s__up = \"val skinner\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_20 (tournament VARCHAR, runner_s__up VARCHAR)<|im_end|> <|im_start|>user Which tournament had a runner-up of Val Skinner?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (loss VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the loss of the game when the record was 32–34?", "role": "user" }, { "content": "SELECT loss FROM table_name_52 WHERE record = \"32–34\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_52 (loss VARCHAR, record VARCHAR)<|im_end|> <|im_start|>user What was the loss of the game when the record was 32–34?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, competition VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?", "role": "user" }, { "content": "SELECT result FROM table_name_32 WHERE competition = \"2006 fifa world cup qualifier\" AND venue = \"warner park sporting complex, bassaterre\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR)<|im_end|> <|im_start|>user What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (finish VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is the Finish of 28 Wins?", "role": "user" }, { "content": "SELECT finish FROM table_name_8 WHERE wins = \"28\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_8 (finish VARCHAR, wins VARCHAR)<|im_end|> <|im_start|>user What is the Finish of 28 Wins?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE player (Occupation VARCHAR)", "role": "system" }, { "content": "Please show the most common occupation of players.", "role": "user" }, { "content": "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE player (Occupation VARCHAR)<|im_end|> <|im_start|>user Please show the most common occupation of players.<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, attendance INTEGER)", "role": "system" }, { "content": "How many weeks have an attendance less than 26,048?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER)<|im_end|> <|im_start|>user How many weeks have an attendance less than 26,048?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the Score on 17 december 1979?", "role": "user" }, { "content": "SELECT score FROM table_name_80 WHERE date = \"17 december 1979\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user Name the Score on 17 december 1979?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, against VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "How many wins for team with 1800 Against and more than 0 byes?", "role": "user" }, { "content": "SELECT MAX(wins) FROM table_name_64 WHERE against = 1800 AND draws > 0", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_64 (wins INTEGER, against VARCHAR, draws VARCHAR)<|im_end|> <|im_start|>user How many wins for team with 1800 Against and more than 0 byes?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (drawn INTEGER, points VARCHAR, played VARCHAR)", "role": "system" }, { "content": "What is the average drawn number of the team with less than 70 points and less than 46 played?", "role": "user" }, { "content": "SELECT AVG(drawn) FROM table_name_76 WHERE points < 70 AND played < 46", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_76 (drawn INTEGER, points VARCHAR, played VARCHAR)<|im_end|> <|im_start|>user What is the average drawn number of the team with less than 70 points and less than 46 played?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which Attendance has a Date of november 18, 1951?", "role": "user" }, { "content": "SELECT attendance FROM table_name_22 WHERE date = \"november 18, 1951\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_22 (attendance VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user Which Attendance has a Date of november 18, 1951?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Who is the opponent in 1992?", "role": "user" }, { "content": "SELECT opponent FROM table_name_17 WHERE year = \"1992\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR)<|im_end|> <|im_start|>user Who is the opponent in 1992?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR)", "role": "system" }, { "content": "How many wins are with Dodge vehicles?", "role": "user" }, { "content": "SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = \"Dodge\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR)<|im_end|> <|im_start|>user How many wins are with Dodge vehicles?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, visitor VARCHAR)", "role": "system" }, { "content": "What is the average attendance for a game against Phoenix?", "role": "user" }, { "content": "SELECT AVG(attendance) FROM table_name_16 WHERE visitor = \"phoenix\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR)<|im_end|> <|im_start|>user What is the average attendance for a game against Phoenix?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Where is the location of a team with a 3-2 record?", "role": "user" }, { "content": "SELECT location FROM table_name_96 WHERE record = \"3-2\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR)<|im_end|> <|im_start|>user Where is the location of a team with a 3-2 record?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (school VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "Which school has a mascot of the Panthers?", "role": "user" }, { "content": "SELECT school FROM table_name_25 WHERE mascot = \"panthers\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_25 (school VARCHAR, mascot VARCHAR)<|im_end|> <|im_start|>user Which school has a mascot of the Panthers?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the largest attendance at Memorial Stadium on December 12, 1965?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_51 WHERE game_site = \"memorial stadium\" AND date = \"december 12, 1965\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user What is the largest attendance at Memorial Stadium on December 12, 1965?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)", "role": "system" }, { "content": "What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?", "role": "user" }, { "content": "SELECT MIN(losses) FROM table_name_38 WHERE wins < 4 AND ties = 2 AND place = 5", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_38 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)<|im_end|> <|im_start|>user What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24018112_1 (frequency VARCHAR, brand_name VARCHAR)", "role": "system" }, { "content": "What frequency does the Pentium processor use?", "role": "user" }, { "content": "SELECT frequency FROM table_24018112_1 WHERE brand_name = \"Pentium\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_24018112_1 (frequency VARCHAR, brand_name VARCHAR)<|im_end|> <|im_start|>user What frequency does the Pentium processor use?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE pilot (name VARCHAR, age VARCHAR, pilot_id VARCHAR); CREATE TABLE MATCH (winning_pilot VARCHAR)", "role": "system" }, { "content": "what is the name and age of the youngest winning pilot?", "role": "user" }, { "content": "SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE pilot (name VARCHAR, age VARCHAR, pilot_id VARCHAR); CREATE TABLE MATCH (winning_pilot VARCHAR)<|im_end|> <|im_start|>user what is the name and age of the youngest winning pilot?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)", "role": "system" }, { "content": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\".", "role": "user" }, { "content": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)<|im_end|> <|im_start|>user Find the first names of all the authors who have written a paper with title containing the word "Functional".<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)", "role": "system" }, { "content": "Which team played at home for the second leg and has an aggregate score of 2-4?", "role": "user" }, { "content": "SELECT home__2nd_leg_ FROM table_name_39 WHERE aggregate = \"2-4\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_39 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)<|im_end|> <|im_start|>user Which team played at home for the second leg and has an aggregate score of 2-4?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (october VARCHAR, february VARCHAR)", "role": "system" }, { "content": "Who is the october playmate with February playmate Cristy Thom?", "role": "user" }, { "content": "SELECT october FROM table_name_51 WHERE february = \"cristy thom\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_51 (october VARCHAR, february VARCHAR)<|im_end|> <|im_start|>user Who is the october playmate with February playmate Cristy Thom?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)", "role": "system" }, { "content": "Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_15 WHERE frequency_mhz > 88.7 AND erp_w = 99", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_15 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)<|im_end|> <|im_start|>user Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (pavilion_depth VARCHAR, crown_angle VARCHAR)", "role": "system" }, { "content": "Which Pavilion depth has a Crown angle of 34.0–34.7°?", "role": "user" }, { "content": "SELECT pavilion_depth FROM table_name_49 WHERE crown_angle = \"34.0–34.7°\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_49 (pavilion_depth VARCHAR, crown_angle VARCHAR)<|im_end|> <|im_start|>user Which Pavilion depth has a Crown angle of 34.0–34.7°?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18946749_1 (prominence__m_ INTEGER, peak VARCHAR)", "role": "system" }, { "content": "When mount gauttier is the peak what is the highest prominence in meters?", "role": "user" }, { "content": "SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = \"Mount Gauttier\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_18946749_1 (prominence__m_ INTEGER, peak VARCHAR)<|im_end|> <|im_start|>user When mount gauttier is the peak what is the highest prominence in meters?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (time VARCHAR, laps VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "Which Time has Laps smaller than 28, and a Rider of nicky hayden?", "role": "user" }, { "content": "SELECT time FROM table_name_40 WHERE laps < 28 AND rider = \"nicky hayden\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)<|im_end|> <|im_start|>user Which Time has Laps smaller than 28, and a Rider of nicky hayden?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10333757_1 (frequency VARCHAR, market_rank VARCHAR)", "role": "system" }, { "content": "What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?", "role": "user" }, { "content": "SELECT COUNT(frequency) FROM table_10333757_1 WHERE market_rank = \"Burlington - Plattsburgh , Vermont - New York /143\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_10333757_1 (frequency VARCHAR, market_rank VARCHAR)<|im_end|> <|im_start|>user What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, losses VARCHAR)", "role": "system" }, { "content": "What is the lowest amount of wins of someone who has 2 losses?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_name_96 WHERE losses = 2", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_96 (wins INTEGER, losses VARCHAR)<|im_end|> <|im_start|>user What is the lowest amount of wins of someone who has 2 losses?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (winning_score VARCHAR, runner_s__up VARCHAR, margin_of_victory VARCHAR)", "role": "system" }, { "content": "What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_42 WHERE runner_s__up = \"beth daniel\" AND margin_of_victory = \"7 strokes\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_42 (winning_score VARCHAR, runner_s__up VARCHAR, margin_of_victory VARCHAR)<|im_end|> <|im_start|>user What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (pre_season INTEGER, a_league VARCHAR, finals VARCHAR)", "role": "system" }, { "content": "Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?", "role": "user" }, { "content": "SELECT MIN(pre_season) FROM table_name_4 WHERE a_league = \"0 1\" AND finals > 0", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_4 (pre_season INTEGER, a_league VARCHAR, finals VARCHAR)<|im_end|> <|im_start|>user Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "On what date was the result a draw?", "role": "user" }, { "content": "SELECT date FROM table_name_24 WHERE result = \"draw\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)<|im_end|> <|im_start|>user On what date was the result a draw?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (frequency VARCHAR, power VARCHAR, channel VARCHAR)", "role": "system" }, { "content": "On channel 32, when the power is 32 kW horizontal, what is the frequency?", "role": "user" }, { "content": "SELECT frequency FROM table_name_32 WHERE power = \"32 kw horizontal\" AND channel = 32", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_32 (frequency VARCHAR, power VARCHAR, channel VARCHAR)<|im_end|> <|im_start|>user On channel 32, when the power is 32 kW horizontal, what is the frequency?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many weeks are there that include the date November 9, 1969.", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_10646790_2 WHERE date = \"November 9, 1969\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user How many weeks are there that include the date November 9, 1969.<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "role": "system" }, { "content": "What are the names of movies that get 3 star and 4 star?", "role": "user" }, { "content": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)<|im_end|> <|im_start|>user What are the names of movies that get 3 star and 4 star?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, type VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the name of the dead end type ranked 22?", "role": "user" }, { "content": "SELECT name FROM table_name_42 WHERE type = \"dead end\" AND rank = \"22\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_42 (name VARCHAR, type VARCHAR, rank VARCHAR)<|im_end|> <|im_start|>user What is the name of the dead end type ranked 22?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR)", "role": "system" }, { "content": "What score has 15.0% as the 2012?", "role": "user" }, { "content": "SELECT score FROM table_name_87 WHERE 2012 = \"15.0%\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_87 (score VARCHAR)<|im_end|> <|im_start|>user What score has 15.0% as the 2012?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (played VARCHAR, position VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What's the value for played when points is 8 and position is 11th?", "role": "user" }, { "content": "SELECT played FROM table_name_2 WHERE position = \"11th\" AND points = \"8\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_2 (played VARCHAR, position VARCHAR, points VARCHAR)<|im_end|> <|im_start|>user What's the value for played when points is 8 and position is 11th?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, round INTEGER)", "role": "system" }, { "content": "What position has round less than 2?", "role": "user" }, { "content": "SELECT position FROM table_name_86 WHERE round < 2", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_86 (position VARCHAR, round INTEGER)<|im_end|> <|im_start|>user What position has round less than 2?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1506950_4 (date VARCHAR, rounds VARCHAR)", "role": "system" }, { "content": "What days were the rounds of 66-67-70-67 recorded?", "role": "user" }, { "content": "SELECT date FROM table_1506950_4 WHERE rounds = \"66-67-70-67\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_1506950_4 (date VARCHAR, rounds VARCHAR)<|im_end|> <|im_start|>user What days were the rounds of 66-67-70-67 recorded?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (wins INTEGER, top_25 VARCHAR, events VARCHAR)", "role": "system" }, { "content": "What is the highest number of wins that has a top-25 of 13 and events less than 32?", "role": "user" }, { "content": "SELECT MAX(wins) FROM table_name_76 WHERE top_25 = 13 AND events < 32", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)<|im_end|> <|im_start|>user What is the highest number of wins that has a top-25 of 13 and events less than 32?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR)", "role": "system" }, { "content": "How many total number of attendance were there when the game was held in Anaheim Stadium?", "role": "user" }, { "content": "SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = \"Anaheim Stadium\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR)<|im_end|> <|im_start|>user How many total number of attendance were there when the game was held in Anaheim Stadium?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, iata VARCHAR)", "role": "system" }, { "content": "Which country's IATA is ika?", "role": "user" }, { "content": "SELECT country FROM table_name_72 WHERE iata = \"ika\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_72 (country VARCHAR, iata VARCHAR)<|im_end|> <|im_start|>user Which country's IATA is ika?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (pole_position VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What was the pole position for jerez?", "role": "user" }, { "content": "SELECT pole_position FROM table_name_39 WHERE location = \"jerez\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR)<|im_end|> <|im_start|>user What was the pole position for jerez?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, last_performance VARCHAR)", "role": "system" }, { "content": "who had a last performance of 3 july 2011?", "role": "user" }, { "content": "SELECT name FROM table_name_18 WHERE last_performance = \"3 july 2011\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR)<|im_end|> <|im_start|>user who had a last performance of 3 july 2011?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which event was against Pat Barry?", "role": "user" }, { "content": "SELECT event FROM table_name_87 WHERE opponent = \"pat barry\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_87 (event VARCHAR, opponent VARCHAR)<|im_end|> <|im_start|>user Which event was against Pat Barry?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)", "role": "system" }, { "content": "Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63", "role": "user" }, { "content": "SELECT COUNT(snatch) FROM table_name_62 WHERE clean_ & _jerk > 132.5 AND total__kg_ = 315 AND bodyweight = 68.63", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_62 (snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)<|im_end|> <|im_start|>user Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR)", "role": "system" }, { "content": "What is the away team's score when footscray is the away team?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_74 WHERE away_team = \"footscray\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_74 (away_team VARCHAR)<|im_end|> <|im_start|>user What is the away team's score when footscray is the away team?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20319085_2 (coach VARCHAR, conference_record VARCHAR)", "role": "system" }, { "content": "Who coached the team in the season with a 6-1 conference record?", "role": "user" }, { "content": "SELECT coach FROM table_20319085_2 WHERE conference_record = \"6-1\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_20319085_2 (coach VARCHAR, conference_record VARCHAR)<|im_end|> <|im_start|>user Who coached the team in the season with a 6-1 conference record?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE accounts (Id VARCHAR)", "role": "system" }, { "content": "How many accounts are there in total?", "role": "user" }, { "content": "SELECT COUNT(*) FROM accounts", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE accounts (Id VARCHAR)<|im_end|> <|im_start|>user How many accounts are there in total?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (wins VARCHAR, losses VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "What is the total number of Wins, when Losses is \"6\", and when Draws is greater than \"0\"?", "role": "user" }, { "content": "SELECT COUNT(wins) FROM table_name_70 WHERE losses = 6 AND draws > 0", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_70 (wins VARCHAR, losses VARCHAR, draws VARCHAR)<|im_end|> <|im_start|>user What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (tries_against VARCHAR, points_for VARCHAR)", "role": "system" }, { "content": "What is Tries Against, when Points For is 98?", "role": "user" }, { "content": "SELECT tries_against FROM table_name_22 WHERE points_for = \"98\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_22 (tries_against VARCHAR, points_for VARCHAR)<|im_end|> <|im_start|>user What is Tries Against, when Points For is 98?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What is the home team when the tie is 11?", "role": "user" }, { "content": "SELECT home_team FROM table_name_40 WHERE tie_no = \"11\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)<|im_end|> <|im_start|>user What is the home team when the tie is 11?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which opponent is friendly and played on 15-08-2012?", "role": "user" }, { "content": "SELECT opponent FROM table_name_38 WHERE competition = \"friendly\" AND date = \"15-08-2012\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user Which opponent is friendly and played on 15-08-2012?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20522228_2 (share INTEGER, rank__overall_ VARCHAR)", "role": "system" }, { "content": "What was the share for rank 54?", "role": "user" }, { "content": "SELECT MAX(share) FROM table_20522228_2 WHERE rank__overall_ = \"54\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_20522228_2 (share INTEGER, rank__overall_ VARCHAR)<|im_end|> <|im_start|>user What was the share for rank 54?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the away teams score at Princes Park?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_37 WHERE venue = \"princes park\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_37 (away_team VARCHAR, venue VARCHAR)<|im_end|> <|im_start|>user What was the away teams score at Princes Park?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, took_office VARCHAR)", "role": "system" }, { "content": "Who has Took Office of march 4, 1875?", "role": "user" }, { "content": "SELECT name FROM table_name_67 WHERE took_office = \"march 4, 1875\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_67 (name VARCHAR, took_office VARCHAR)<|im_end|> <|im_start|>user Who has Took Office of march 4, 1875?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)", "role": "system" }, { "content": "What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?", "role": "user" }, { "content": "SELECT song_title FROM table_21500850_1 WHERE genre = \"Rock\" AND original_game = \"Guitar Hero\" AND artist = \"Queens of the Stone Age\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)<|im_end|> <|im_start|>user What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (winner VARCHAR, country VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On the date november 24-december 6 what's the winner when the country is united states?", "role": "user" }, { "content": "SELECT winner FROM table_name_35 WHERE country = \"united states\" AND date = \"november 24-december 6\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_35 (winner VARCHAR, country VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user On the date november 24-december 6 what's the winner when the country is united states?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1013168_2 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)", "role": "system" }, { "content": "Who was the succesor that was formally installed on November 8, 1978?", "role": "user" }, { "content": "SELECT successor FROM table_1013168_2 WHERE date_of_successors_formal_installation = \"November 8, 1978\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_1013168_2 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)<|im_end|> <|im_start|>user Who was the succesor that was formally installed on November 8, 1978?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What away team is based in moorabbin oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_19 WHERE venue = \"moorabbin oval\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR)<|im_end|> <|im_start|>user What away team is based in moorabbin oval?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (jersey__number VARCHAR)", "role": "system" }, { "content": "What is the 2000-2001 Team with a Jersey # that is 19?", "role": "user" }, { "content": "SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 19", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_15 (jersey__number VARCHAR)<|im_end|> <|im_start|>user What is the 2000-2001 Team with a Jersey # that is 19?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (governor VARCHAR, took_office VARCHAR)", "role": "system" }, { "content": "Which governor took office on January 8, 1877?", "role": "user" }, { "content": "SELECT governor FROM table_name_88 WHERE took_office = \"january 8, 1877\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_88 (governor VARCHAR, took_office VARCHAR)<|im_end|> <|im_start|>user Which governor took office on January 8, 1877?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (origin VARCHAR, destination VARCHAR)", "role": "system" }, { "content": "From where did the train that arrived in the Anand Vihar Terminal originate?", "role": "user" }, { "content": "SELECT origin FROM table_name_29 WHERE destination = \"anand vihar terminal\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_29 (origin VARCHAR, destination VARCHAR)<|im_end|> <|im_start|>user From where did the train that arrived in the Anand Vihar Terminal originate?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the attendance at the West Ham United home game?", "role": "user" }, { "content": "SELECT attendance FROM table_name_69 WHERE home_team = \"west ham united\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_69 (attendance VARCHAR, home_team VARCHAR)<|im_end|> <|im_start|>user What was the attendance at the West Ham United home game?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What score has april 28 as the date?", "role": "user" }, { "content": "SELECT score FROM table_name_5 WHERE date = \"april 28\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user What score has april 28 as the date?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_95 WHERE gold < 3 AND silver = 0 AND bronze > 2", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)<|im_end|> <|im_start|>user What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (to_club VARCHAR, transfer_fee VARCHAR, pos VARCHAR)", "role": "system" }, { "content": "What club received a DF player for free?", "role": "user" }, { "content": "SELECT to_club FROM table_name_52 WHERE transfer_fee = \"free\" AND pos = \"df\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_52 (to_club VARCHAR, transfer_fee VARCHAR, pos VARCHAR)<|im_end|> <|im_start|>user What club received a DF player for free?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (nat VARCHAR, principal_victims VARCHAR)", "role": "system" }, { "content": "What is the nationality of the ship when the principle victims are civilians?", "role": "user" }, { "content": "SELECT nat FROM table_name_49 WHERE principal_victims = \"civilians\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_49 (nat VARCHAR, principal_victims VARCHAR)<|im_end|> <|im_start|>user What is the nationality of the ship when the principle victims are civilians?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (genre VARCHAR, english_title__chinese_title_ VARCHAR)", "role": "system" }, { "content": "What genre is revolving doors of vengeance 酒店風雲?", "role": "user" }, { "content": "SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = \"revolving doors of vengeance 酒店風雲\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)<|im_end|> <|im_start|>user What genre is revolving doors of vengeance 酒店風雲?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What was the margin of victory at the Hawaiian Open tournament?", "role": "user" }, { "content": "SELECT margin_of_victory FROM table_1514634_2 WHERE tournament = \"Hawaiian Open\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR)<|im_end|> <|im_start|>user What was the margin of victory at the Hawaiian Open tournament?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (founded INTEGER, day_boarding VARCHAR, year_entered_competition VARCHAR)", "role": "system" }, { "content": "Which is the earliest founded day school to have entered the competition after 1958?", "role": "user" }, { "content": "SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = \"day\" AND year_entered_competition > 1958", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_64 (founded INTEGER, day_boarding VARCHAR, year_entered_competition VARCHAR)<|im_end|> <|im_start|>user Which is the earliest founded day school to have entered the competition after 1958?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (winning_score VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What was the Winning Score when Betsy Rawls was the Runner(s)-up?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_96 WHERE runner_s__up = \"betsy rawls\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_96 (winning_score VARCHAR, runner_s__up VARCHAR)<|im_end|> <|im_start|>user What was the Winning Score when Betsy Rawls was the Runner(s)-up?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?", "role": "user" }, { "content": "SELECT SUM(silver) FROM table_name_70 WHERE gold < 1 AND rank = \"9\" AND total < 1", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_70 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)<|im_end|> <|im_start|>user How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19439864_2 (ålesund INTEGER, bergen VARCHAR)", "role": "system" }, { "content": "When bergen is 88, what is the alesund?", "role": "user" }, { "content": "SELECT MIN(ålesund) FROM table_19439864_2 WHERE bergen = 88", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_19439864_2 (ålesund INTEGER, bergen VARCHAR)<|im_end|> <|im_start|>user When bergen is 88, what is the alesund?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE playlists (name VARCHAR)", "role": "system" }, { "content": "List the name of all playlist.", "role": "user" }, { "content": "SELECT name FROM playlists", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE playlists (name VARCHAR)<|im_end|> <|im_start|>user List the name of all playlist.<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24925945_3 (previous_school VARCHAR, _number VARCHAR)", "role": "system" }, { "content": "What was the previous school of #22?", "role": "user" }, { "content": "SELECT previous_school FROM table_24925945_3 WHERE _number = 22", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_24925945_3 (previous_school VARCHAR, _number VARCHAR)<|im_end|> <|im_start|>user What was the previous school of #22?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (react INTEGER, rank INTEGER)", "role": "system" }, { "content": "What is the average react for a rank more than 8?", "role": "user" }, { "content": "SELECT AVG(react) FROM table_name_36 WHERE rank > 8", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_36 (react INTEGER, rank INTEGER)<|im_end|> <|im_start|>user What is the average react for a rank more than 8?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR)", "role": "system" }, { "content": "What contestant was premiered on July 25? ", "role": "user" }, { "content": "SELECT contestant_name FROM table_18513028_3 WHERE date_premiered__2009_ = \"July 25\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR)<|im_end|> <|im_start|>user What contestant was premiered on July 25? <|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the location of the tournament on Feb 10?", "role": "user" }, { "content": "SELECT location FROM table_name_68 WHERE date = \"feb 10\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_68 (location VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user What is the location of the tournament on Feb 10?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What player scored 70-72-70=212?", "role": "user" }, { "content": "SELECT player FROM table_name_35 WHERE score = 70 - 72 - 70 = 212", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR)<|im_end|> <|im_start|>user What player scored 70-72-70=212?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, nationality VARCHAR, lane VARCHAR)", "role": "system" }, { "content": "Who has less than 3 lanes for France?", "role": "user" }, { "content": "SELECT name FROM table_name_88 WHERE nationality = \"france\" AND lane < 3", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_88 (name VARCHAR, nationality VARCHAR, lane VARCHAR)<|im_end|> <|im_start|>user Who has less than 3 lanes for France?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "When was nese malifa born?", "role": "user" }, { "content": "SELECT date_of_birth__age_ FROM table_name_19 WHERE player = \"nese malifa\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR)<|im_end|> <|im_start|>user When was nese malifa born?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (location VARCHAR, year INTEGER)", "role": "system" }, { "content": "What location is previous to 1994?", "role": "user" }, { "content": "SELECT location FROM table_name_56 WHERE year < 1994", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_56 (location VARCHAR, year INTEGER)<|im_end|> <|im_start|>user What location is previous to 1994?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (total_goals VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, name VARCHAR)", "role": "system" }, { "content": "how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?", "role": "user" }, { "content": "SELECT COUNT(total_goals) FROM table_name_40 WHERE total_apps = \"1\" AND name = \"bob mountain\" AND fa_cup_goals < 0", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_40 (total_goals VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, name VARCHAR)<|im_end|> <|im_start|>user how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What Position is Ryan Russell?", "role": "user" }, { "content": "SELECT position FROM table_name_6 WHERE player = \"ryan russell\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR)<|im_end|> <|im_start|>user What Position is Ryan Russell?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (winning_score VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What is Winning Score, when Runner(s)-up is Ted Purdy?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_37 WHERE runner_s__up = \"ted purdy\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_37 (winning_score VARCHAR, runner_s__up VARCHAR)<|im_end|> <|im_start|>user What is Winning Score, when Runner(s)-up is Ted Purdy?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)", "role": "system" }, { "content": "Name the total number of fin pos for 12 points of accident", "role": "user" }, { "content": "SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = \"12\" AND time_retired = \"Accident\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)<|im_end|> <|im_start|>user Name the total number of fin pos for 12 points of accident<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)", "role": "system" }, { "content": "Tell me the Grantee for san ysidro", "role": "user" }, { "content": "SELECT grantee FROM table_name_34 WHERE concession = \"san ysidro\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)<|im_end|> <|im_start|>user Tell me the Grantee for san ysidro<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, engine VARCHAR)", "role": "system" }, { "content": "What is the total number of points of the honda hr-1 engine?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_41 WHERE engine = \"honda hr-1\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_41 (points VARCHAR, engine VARCHAR)<|im_end|> <|im_start|>user What is the total number of points of the honda hr-1 engine?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (season VARCHAR, division VARCHAR)", "role": "system" }, { "content": "In which Season was the Division Washington Bullets?", "role": "user" }, { "content": "SELECT season FROM table_name_4 WHERE division = \"washington bullets\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_4 (season VARCHAR, division VARCHAR)<|im_end|> <|im_start|>user In which Season was the Division Washington Bullets?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (lost INTEGER, drawn VARCHAR, goals_for VARCHAR, points_1 VARCHAR)", "role": "system" }, { "content": "What is the lowest Lost, when Goals For is greater than 52, when Points 1 is \"44\", and when Drawn is less than 8?", "role": "user" }, { "content": "SELECT MIN(lost) FROM table_name_88 WHERE goals_for > 52 AND points_1 = \"44\" AND drawn < 8", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_88 (lost INTEGER, drawn VARCHAR, goals_for VARCHAR, points_1 VARCHAR)<|im_end|> <|im_start|>user What is the lowest Lost, when Goals For is greater than 52, when Points 1 is "44", and when Drawn is less than 8?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)", "role": "system" }, { "content": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.", "role": "user" }, { "content": "SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\") AND first_name <> \"Clara\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)<|im_end|> <|im_start|>user display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21311525_1 (round VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the round number for the date 19/06/2009?", "role": "user" }, { "content": "SELECT round FROM table_21311525_1 WHERE date = \"19/06/2009\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_21311525_1 (round VARCHAR, date VARCHAR)<|im_end|> <|im_start|>user What is the round number for the date 19/06/2009?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (laps VARCHAR, make VARCHAR, winnings VARCHAR)", "role": "system" }, { "content": "How many total laps did the Chevrolet that won $97,508 make?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_53 WHERE make = \"chevrolet\" AND winnings = \"$97,508\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR)<|im_end|> <|im_start|>user How many total laps did the Chevrolet that won $97,508 make?<|im_end|>
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR)", "role": "system" }, { "content": "What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = \"bryan mclay † morris lallo ‡ gerry moore ‡\" AND goals_against > 322", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR)<|im_end|> <|im_start|>user What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (country VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which country has a score of 73-74-69=216?", "role": "user" }, { "content": "SELECT country FROM table_name_95 WHERE score = 73 - 74 - 69 = 216", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE table_name_95 (country VARCHAR, score VARCHAR)<|im_end|> <|im_start|>user Which country has a score of 73-74-69=216?<|im_end|>
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)", "role": "system" }, { "content": "List the distinct police forces of counties whose location is not on east side.", "role": "user" }, { "content": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> \"East\"", "role": "assistant" } ]
<|im_start|>system You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA. SCHEMA: CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)<|im_end|> <|im_start|>user List the distinct police forces of counties whose location is not on east side.<|im_end|>