messages
listlengths 3
3
|
---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (earpads VARCHAR, construction VARCHAR, succeeded_by VARCHAR)",
"role": "system"
},
{
"content": "What earpads does the headphone with plastic contruction and was succeeded by igrado have?",
"role": "user"
},
{
"content": "SELECT earpads FROM table_name_67 WHERE construction = \"plastic\" AND succeeded_by = \"igrado\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (game INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest game for a record of 32-12-3?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_48 WHERE record = \"32-12-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 Companies (Industry VARCHAR, Headquarters VARCHAR)",
"role": "system"
},
{
"content": "Show the industries shared by companies whose headquarters are \"USA\" and companies whose headquarters are \"China\".",
"role": "user"
},
{
"content": "SELECT Industry FROM Companies WHERE Headquarters = \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = \"China\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1012730_1 (top_10 VARCHAR, avg_start VARCHAR)",
"role": "system"
},
{
"content": "How many top tens had an average start of 29.4?",
"role": "user"
},
{
"content": "SELECT COUNT(top_10) FROM table_1012730_1 WHERE avg_start = \"29.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_35 (minister VARCHAR, term_start VARCHAR)",
"role": "system"
},
{
"content": "Whose term started on 4 May 2006?",
"role": "user"
},
{
"content": "SELECT minister FROM table_name_35 WHERE term_start = \"4 may 2006\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (class VARCHAR, call_sign VARCHAR)",
"role": "system"
},
{
"content": "what is the class of w269ax",
"role": "user"
},
{
"content": "SELECT class FROM table_name_90 WHERE call_sign = \"w269ax\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)",
"role": "system"
},
{
"content": "How many instruments does the song \"Badlands\" use?",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Assets (asset_acquired_date VARCHAR)",
"role": "system"
},
{
"content": "When was the first asset acquired?",
"role": "user"
},
{
"content": "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (points VARCHAR, tries_for VARCHAR)",
"role": "system"
},
{
"content": "What is Points, when Tries For is \"correct as of 00:00 11 June 2008\"?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_90 WHERE tries_for = \"correct as of 00:00 11 june 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_83 (gymnast VARCHAR, floor VARCHAR)",
"role": "system"
},
{
"content": "Who is the gymnast with a floor score of 14.800?",
"role": "user"
},
{
"content": "SELECT gymnast FROM table_name_83 WHERE floor = \"14.800\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16331025_2 (tickets_sold___available VARCHAR, sellout___percentage_ VARCHAR)",
"role": "system"
},
{
"content": "What is the position of tickets sold/available when the sellout is 82%?",
"role": "user"
},
{
"content": "SELECT COUNT(tickets_sold___available) FROM table_16331025_2 WHERE sellout___percentage_ = \"82%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position_in_2006 VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What was Team Dnepr's position in 2006?",
"role": "user"
},
{
"content": "SELECT position_in_2006 FROM table_name_77 WHERE team = \"dnepr\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)",
"role": "system"
},
{
"content": "What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?",
"role": "user"
},
{
"content": "SELECT COUNT(wins) FROM table_name_79 WHERE tournament = \"u.s. open\" AND top_25 < 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_70 (runner_up VARCHAR, prize VARCHAR)",
"role": "system"
},
{
"content": "What is 3rd Place, when Runner-Up is \"Simon Ehne\", and when Prize is $100,000?",
"role": "user"
},
{
"content": "SELECT 3 AS rd_place FROM table_name_70 WHERE runner_up = \"simon ehne\" AND prize = \"$100,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_78 (year INTEGER, college VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest year for Alabama with a pick under 26?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_78 WHERE college = \"alabama\" AND pick < 26",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (lomavren VARCHAR, persian VARCHAR)",
"role": "system"
},
{
"content": "What is the Lomavren associated with a Persian of se?",
"role": "user"
},
{
"content": "SELECT lomavren FROM table_name_32 WHERE persian = \"se\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (conference_joined VARCHAR, mascot VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Conference Joined that has the Mascot of little sycamores?",
"role": "user"
},
{
"content": "SELECT conference_joined FROM table_name_88 WHERE mascot = \"little sycamores\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, country VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the average Year, when Country is \"U.S.\", and when Location is \"Edmond , OK\"?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_28 WHERE country = \"u.s.\" AND location = \"edmond , ok\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (round INTEGER, pick__number VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back?",
"role": "user"
},
{
"content": "SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = \"defensive back\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27539272_5 (opponent VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "who was the opponent where the game is 14?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_27539272_5 WHERE game = 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_64 (gold INTEGER, nation VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "Name the Gold which has a Nation of australia, and a Bronze smaller than 1?",
"role": "user"
},
{
"content": "SELECT MIN(gold) FROM table_name_64 WHERE nation = \"australia\" AND bronze < 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (events INTEGER, earnings VARCHAR, average VARCHAR)",
"role": "system"
},
{
"content": "Which Events has Earnings of $113,259, and an Average larger than 229.5?",
"role": "user"
},
{
"content": "SELECT MAX(events) FROM table_name_22 WHERE earnings = \"$113,259\" AND average > 229.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_44 (points VARCHAR, performer VARCHAR)",
"role": "system"
},
{
"content": "How many points did Nigel Connell have?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_44 WHERE performer = \"nigel connell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17697980_1 (no_of_episodes INTEGER, year VARCHAR)",
"role": "system"
},
{
"content": "What is the largest number of episodes for a 1989 season dvd release? ",
"role": "user"
},
{
"content": "SELECT MAX(no_of_episodes) FROM table_17697980_1 WHERE year = \"1989\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28211103_1 (attendance VARCHAR, st_kilda_score VARCHAR)",
"role": "system"
},
{
"content": "What is the attendance when the st kilda score is 13.10.88?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_28211103_1 WHERE st_kilda_score = \"13.10.88\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "How many losses were there when the record was 4-0?",
"role": "user"
},
{
"content": "SELECT MAX(opponents) FROM table_20745444_1 WHERE record = \"4-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_95 (australian VARCHAR, examples VARCHAR)",
"role": "system"
},
{
"content": "What is Australian, when Examples is \"amœba, anemone, ascesis\"?",
"role": "user"
},
{
"content": "SELECT australian FROM table_name_95 WHERE examples = \"amœba, anemone, ascesis\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27366772_3 (population__2001_ INTEGER)",
"role": "system"
},
{
"content": "What is the highest population in 2001?",
"role": "user"
},
{
"content": "SELECT MAX(population__2001_) FROM table_27366772_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_77 (opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which opponent has a record of 70-52?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_77 WHERE record = \"70-52\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE people (Weight VARCHAR, Height VARCHAR)",
"role": "system"
},
{
"content": "What is the weight of the shortest person?",
"role": "user"
},
{
"content": "SELECT Weight FROM people ORDER BY Height LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1963459_2 (date VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What day did the race in 1974 take place on?",
"role": "user"
},
{
"content": "SELECT date FROM table_1963459_2 WHERE year = 1974",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pos VARCHAR, points VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What is the position with 0 points in Season of 2007–08?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_37 WHERE points = \"0\" AND season = \"2007–08\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (south VARCHAR, east VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What is south in the 2001-02 season, which had germering wanderers east?",
"role": "user"
},
{
"content": "SELECT south FROM table_name_92 WHERE east = \"germering wanderers\" AND season = \"2001-02\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, lane VARCHAR)",
"role": "system"
},
{
"content": "What is the Rank of the Swimmer in Lane 5?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_16 WHERE lane = 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_12243817_1 (year VARCHAR, champion VARCHAR)",
"role": "system"
},
{
"content": "What is the year that Dewi Claire Schreefel is the champion?",
"role": "user"
},
{
"content": "SELECT year FROM table_12243817_1 WHERE champion = \"Dewi Claire Schreefel\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the ID of marshall landfill on 09/08/1983?",
"role": "user"
},
{
"content": "SELECT cerclis_id FROM table_name_98 WHERE listed = \"09/08/1983\" AND name = \"marshall landfill\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What day was the opponent Austria?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_8 WHERE opponent = \"austria\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27734577_8 (high_rebounds VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What are the high rebounds in the 45 game?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_27734577_8 WHERE game = 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_76 (region VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the region for the date November 18, 2002?",
"role": "user"
},
{
"content": "SELECT region FROM table_name_76 WHERE date = \"november 18, 2002\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (registrations VARCHAR, type VARCHAR, station_number VARCHAR)",
"role": "system"
},
{
"content": "What is the registration of the station with a retained type and a station number of c03?",
"role": "user"
},
{
"content": "SELECT registrations FROM table_name_27 WHERE type = \"retained\" AND station_number = \"c03\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27700375_11 (date VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "Name the date for the palace of auburn hills 14,554",
"role": "user"
},
{
"content": "SELECT date FROM table_27700375_11 WHERE location_attendance = \"The Palace of Auburn Hills 14,554\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (chapter VARCHAR, chinese VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of chapter for chinese of 釋宮",
"role": "user"
},
{
"content": "SELECT COUNT(chapter) FROM table_name_74 WHERE chinese = \"釋宮\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (name VARCHAR, height VARCHAR, block VARCHAR, weight VARCHAR)",
"role": "system"
},
{
"content": "What is the Name of the player with less than 342 Block, less than 87 Weight and Height more than 187?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_50 WHERE block < 342 AND weight < 87 AND height > 187",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR)",
"role": "system"
},
{
"content": "What was the result after the week # top 11?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_84 WHERE week__number = \"top 11\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_255188_1 (founded INTEGER, joined VARCHAR)",
"role": "system"
},
{
"content": "When was the University founded that joined in 1978?",
"role": "user"
},
{
"content": "SELECT MAX(founded) FROM table_255188_1 WHERE joined = 1978",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "List the total points for the 1st place team.",
"role": "user"
},
{
"content": "SELECT points FROM table_25561038_1 WHERE position = \"1st\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_4 VARCHAR)",
"role": "system"
},
{
"content": "How many different meanings does the verb with part 4 gegeven have?",
"role": "user"
},
{
"content": "SELECT COUNT(verb_meaning) FROM table_1745843_7 WHERE part_4 = \"gegeven\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "How much money does player ben crenshaw, who has a t4 place, have?",
"role": "user"
},
{
"content": "SELECT money___$__ FROM table_name_36 WHERE place = \"t4\" AND player = \"ben crenshaw\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Tell me the venue for record of 2-7",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_39 WHERE record = \"2-7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24915874_1 (placing VARCHAR, jockey VARCHAR)",
"role": "system"
},
{
"content": "What was the placing when the jockey was Damien Oliver?",
"role": "user"
},
{
"content": "SELECT placing FROM table_24915874_1 WHERE jockey = \"Damien Oliver\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26702204_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "What was the u.s. viewers (millions) when the production code was 4alh19?",
"role": "user"
},
{
"content": "SELECT us_viewers__million_ FROM table_26702204_1 WHERE production_code = \"4ALH19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (surface VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "On what type of surface did they play on 13 February 1994?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_80 WHERE date = \"13 february 1994\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Who is the away team when the home team was Fitzroy?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_55 WHERE home_team = \"fitzroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, position VARCHAR, school_club_team_country VARCHAR)",
"role": "system"
},
{
"content": "How many times did a center that attended Oral Roberts play for the Rockets?",
"role": "user"
},
{
"content": "SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE position = \"Center\" AND school_club_team_country = \"Oral Roberts\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (placings INTEGER, rank VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the Place of the couple with a Rank smaller than 7 and 514.55 Points?",
"role": "user"
},
{
"content": "SELECT SUM(placings) FROM table_name_22 WHERE rank < 7 AND points = 514.55",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (vs_terran VARCHAR, vs_zerg VARCHAR)",
"role": "system"
},
{
"content": "What is the score vs. Terran when the score vs. Zerg is 69?",
"role": "user"
},
{
"content": "SELECT vs_terran FROM table_name_12 WHERE vs_zerg = \"69\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (laps INTEGER, team VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "How many laps for mi-jack conquest racing when they went off course?",
"role": "user"
},
{
"content": "SELECT SUM(laps) FROM table_name_21 WHERE team = \"mi-jack conquest racing\" AND time_retired = \"off course\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What United States player holds the place of t8?`",
"role": "user"
},
{
"content": "SELECT player FROM table_name_57 WHERE place = \"t8\" AND country = \"united states\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (Id VARCHAR)",
"role": "system"
},
{
"content": "Name the 2006 when the 2010 is 27",
"role": "user"
},
{
"content": "SELECT 2006 FROM table_name_26 WHERE 2010 = \"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_11 (tournament VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "Name the tournament for grass surface and opponent in the final being paul baccanello",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_11 WHERE surface = \"grass\" AND opponent_in_the_final = \"paul baccanello\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_300283_1 (official_name VARCHAR, name_in_spanish VARCHAR)",
"role": "system"
},
{
"content": "What is the official name of the municipality whose name in Spanish is Cripán?",
"role": "user"
},
{
"content": "SELECT official_name FROM table_300283_1 WHERE name_in_spanish = \"Cripá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_1616608_2 (game_modes VARCHAR, released_date VARCHAR)",
"role": "system"
},
{
"content": "What are the game modes for the game released in 2007?",
"role": "user"
},
{
"content": "SELECT game_modes FROM table_1616608_2 WHERE released_date = \"2007\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, issue_price__proof_ VARCHAR, artist VARCHAR)",
"role": "system"
},
{
"content": "What's the average Year with an Issue Price (Proof) of $49.95, and Artist of W.H.J. Blakemore?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_19 WHERE issue_price__proof_ = \"$49.95\" AND artist = \"w.h.j. blakemore\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (visitor VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Visitor has a Score of 0-4?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_78 WHERE score = \"0-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_80 (launch_date VARCHAR, cospar_id VARCHAR)",
"role": "system"
},
{
"content": "When was the satellite that has a COSPAR ID of 1967-042a launched?",
"role": "user"
},
{
"content": "SELECT launch_date FROM table_name_80 WHERE cospar_id = \"1967-042a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2784232_1 (approximate_translation VARCHAR, morphological_category VARCHAR)",
"role": "system"
},
{
"content": "What are the the approximate translations when the Morphological Category is 1st. plur. perfect?",
"role": "user"
},
{
"content": "SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = \"1st. plur. perfect\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26842217_4 (site VARCHAR, visiting_team VARCHAR)",
"role": "system"
},
{
"content": "Where's the louisiana-lafayette as a visiting team?",
"role": "user"
},
{
"content": "SELECT site FROM table_26842217_4 WHERE visiting_team = \"Louisiana-Lafayette\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (score VARCHAR, winning_team VARCHAR)",
"role": "system"
},
{
"content": "What is the Score with a Winning team that is san antonio spurs?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_48 WHERE winning_team = \"san antonio spurs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, react VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Which country has a reaction time of under 0.242 seconds and over 1041 points?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_58 WHERE react < 0.242 AND points > 1041",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who is the opponent of the game played on November 20, 1995?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_66 WHERE date = \"november 20, 1995\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the greatest rank for Fifth third center?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_27 WHERE name = \"fifth third center\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What was the place for the player whose final score was 71-69=140?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What is the attendance amount of the race with a time of 2:07?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_38 WHERE time = \"2:07\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20942925_1 (title VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many titles for the production code of NABF07?",
"role": "user"
},
{
"content": "SELECT COUNT(title) FROM table_20942925_1 WHERE production_code = \"NABF07\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (minutes INTEGER, games_played VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest minutes a goalkeeper with 13 games played has?",
"role": "user"
},
{
"content": "SELECT MIN(minutes) FROM table_name_25 WHERE games_played = 13",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (capital VARCHAR, population VARCHAR)",
"role": "system"
},
{
"content": "Which capital has a population of 308,610?",
"role": "user"
},
{
"content": "SELECT capital FROM table_name_73 WHERE population = \"308,610\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (tournament VARCHAR)",
"role": "system"
},
{
"content": "Which Tournament has a 2007 of 19–4?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_3 WHERE 2007 = \"19–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_73 (crew_chief VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Who was the crew chief for the team from Make Motorsports?",
"role": "user"
},
{
"content": "SELECT crew_chief FROM table_name_73 WHERE team = \"make motorsports\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (bills_first_downs INTEGER, date VARCHAR, bills_points VARCHAR)",
"role": "system"
},
{
"content": "What was the Bills first downs on Oct. 29 with more the 23 Bills points?",
"role": "user"
},
{
"content": "SELECT MIN(bills_first_downs) FROM table_name_47 WHERE date = \"oct. 29\" AND bills_points > 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 dorm_amenity (amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR)",
"role": "system"
},
{
"content": "Find the first name of students who are living in the dorm that has most number of amenities.",
"role": "user"
},
{
"content": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (silver INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?",
"role": "user"
},
{
"content": "SELECT AVG(silver) FROM table_name_87 WHERE bronze < 15 AND nation = \"montenegro\" AND total > 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE DEPARTMENT (DName VARCHAR, Division VARCHAR, Building VARCHAR)",
"role": "system"
},
{
"content": "Find the names of departments that are either in division AS or in division EN and in Building NEB.",
"role": "user"
},
{
"content": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (country VARCHAR, player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the country sergio garcía, who has a score of 69-70-67=206, is from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_43 WHERE score = 69 - 70 - 67 = 206 AND player = \"sergio garcía\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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, location_attendance VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What date was the location attendance at&t center 18,797, and a game earlier than 57?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_24 WHERE location_attendance = \"at&t center 18,797\" AND game < 57",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21977704_1 (chassis VARCHAR, constructor VARCHAR)",
"role": "system"
},
{
"content": "Name the chassis for alta",
"role": "user"
},
{
"content": "SELECT chassis FROM table_21977704_1 WHERE constructor = \"Alta\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27987623_3 (episode VARCHAR, order VARCHAR)",
"role": "system"
},
{
"content": "Which episode was #1 in the order?",
"role": "user"
},
{
"content": "SELECT episode FROM table_27987623_3 WHERE order = 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "what is the score when the home team is cairns taipans?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_23 WHERE home_team = \"cairns taipans\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14959246_2 (result VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the final score of the game against the Dallas Cowboys?",
"role": "user"
},
{
"content": "SELECT result FROM table_14959246_2 WHERE opponent = \"Dallas Cowboys\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student_course_registrations (student_id VARCHAR)",
"role": "system"
},
{
"content": "what is id of students who registered some courses but the least number of courses in these students?",
"role": "user"
},
{
"content": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (year INTEGER, role VARCHAR)",
"role": "system"
},
{
"content": "What is the latest year for the role of joan gordon, aka francine la rue?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_65 WHERE role = \"joan gordon, aka francine la rue\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "When was the game against the Indianapolis Colts?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_40 WHERE opponent = \"indianapolis colts\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (player VARCHAR, to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the Player that has a To standard of –1, and a Score of 71-68-76=215?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_60 WHERE to_par = \"–1\" AND score = 71 - 68 - 76 = 215",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (shooter VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What Shooter has a Total of 28?",
"role": "user"
},
{
"content": "SELECT shooter FROM table_name_9 WHERE total = \"28\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11630008_8 (original_air_date VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "What is the original air date of the episode written by Karen Felix and Don Woodard?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_11630008_8 WHERE written_by = \"Karen Felix and Don Woodard\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Where is the location with a record of 50-19?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_34 WHERE record = \"50-19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12094300_1 (interview VARCHAR, preliminaries VARCHAR)",
"role": "system"
},
{
"content": "What is the score for interview when the preliminaries score is 8.425?",
"role": "user"
},
{
"content": "SELECT interview FROM table_12094300_1 WHERE preliminaries = \"8.425\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Which venue has a Away team of hawthorn?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_76 WHERE away_team = \"hawthorn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (draw INTEGER, language VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "How many draws have french as the language, with a place less than 1?",
"role": "user"
},
{
"content": "SELECT SUM(draw) FROM table_name_93 WHERE language = \"french\" AND place < 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Score is \"71-69-72-72=284\"?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_42 WHERE score = 71 - 69 - 72 - 72 = 284",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE competition (Competition_type VARCHAR)",
"role": "system"
},
{
"content": "List the most common type of competition.",
"role": "user"
},
{
"content": "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |