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_54 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Name the venue for geelong away team",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_54 WHERE away_team = \"geelong\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15581223_8 (tackles INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "Name the least amount of tackles for danny clark",
"role": "user"
},
{
"content": "SELECT MIN(tackles) FROM table_15581223_8 WHERE player = \"Danny Clark\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (height VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What's filiberto rivera's height?",
"role": "user"
},
{
"content": "SELECT COUNT(height) FROM table_name_54 WHERE player = \"filiberto rivera\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2267465_1 (driver VARCHAR, race_time VARCHAR)",
"role": "system"
},
{
"content": "What driver achieved a 3:50:12 race time?",
"role": "user"
},
{
"content": "SELECT driver FROM table_2267465_1 WHERE race_time = \"3:50:12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22379931_2 (fastest_lap VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "Who has the fastest lap where Benoît Tréluyer got the pole position?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_22379931_2 WHERE pole_position = \"Benoît Tréluyer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (method VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the method of the match with chris ade as the opponent?",
"role": "user"
},
{
"content": "SELECT method FROM table_name_70 WHERE opponent = \"chris ade\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, guest VARCHAR)",
"role": "system"
},
{
"content": "How many introductory phrases were there on David Finkel's guest episode?",
"role": "user"
},
{
"content": "SELECT COUNT(introductory_phrase) FROM table_25691838_8 WHERE guest = \"David Finkel\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (height_of_ground_station_m_ VARCHAR, name VARCHAR, height_of_mountain_station_m_ VARCHAR)",
"role": "system"
},
{
"content": "How much Height of ground station(m) has a Name of lutersee, and a Height of mountain station(m) larger than 2398?",
"role": "user"
},
{
"content": "SELECT COUNT(height_of_ground_station_m_) FROM table_name_35 WHERE name = \"lutersee\" AND height_of_mountain_station_m_ > 2398",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, goal VARCHAR)",
"role": "system"
},
{
"content": "In what Venue was the game with a Friendly Competition and 1 Goal played?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_29 WHERE competition = \"friendly\" AND goal = 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_2 (city VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What city did Yugoslavia play Norway in?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_2 WHERE opponent = \"norway\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_187239_1 (minor_sponsors VARCHAR, kit_manufacturer VARCHAR, period VARCHAR)",
"role": "system"
},
{
"content": "When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there?",
"role": "user"
},
{
"content": "SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = \"Olympikus\" AND period = \"2011\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2030453_1 (date_motor_gear_fitted VARCHAR, lms_1946_no VARCHAR)",
"role": "system"
},
{
"content": "When was the motor gear of the LMS 1946 no. 1901 model fitted?",
"role": "user"
},
{
"content": "SELECT date_motor_gear_fitted FROM table_2030453_1 WHERE lms_1946_no = 1901",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (goal_diff INTEGER, losses VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "Which team has a Losses value larger than 1 and a Wins value smaller than 0?",
"role": "user"
},
{
"content": "SELECT SUM(goal_diff) FROM table_name_94 WHERE losses > 1 AND wins < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is 2011, when 2009 is \"A\"?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_59 WHERE 2009 = \"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_99 (greek VARCHAR, german VARCHAR)",
"role": "system"
},
{
"content": "What Greek word means the same thing as the German word ebbe?",
"role": "user"
},
{
"content": "SELECT greek FROM table_name_99 WHERE german = \"ebbe\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20453681_1 (obama_number VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "How many votes did Obama get in Geauga?",
"role": "user"
},
{
"content": "SELECT obama_number FROM table_20453681_1 WHERE county = \"Geauga\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)",
"role": "system"
},
{
"content": "Return the ids of all products that were ordered more than three times or supplied more than 80000.",
"role": "user"
},
{
"content": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19017269_5 (world INTEGER)",
"role": "system"
},
{
"content": "what is the worlds smallest population?",
"role": "user"
},
{
"content": "SELECT MIN(world) FROM table_19017269_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_71 (finish VARCHAR, start VARCHAR)",
"role": "system"
},
{
"content": "When the start is 22, what is the finish?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_71 WHERE start = \"22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1147705_1 (engine_type VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "How many have are model 2.4 awd?",
"role": "user"
},
{
"content": "SELECT COUNT(engine_type) FROM table_1147705_1 WHERE model = \"2.4 AWD\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which tournament was played on September 25, 1995?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_46 WHERE date = \"september 25, 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_73 (team_2 VARCHAR, team_1 VARCHAR)",
"role": "system"
},
{
"content": "Who played as Team 2 against Team 1 SC Gagnoa?",
"role": "user"
},
{
"content": "SELECT team_2 FROM table_name_73 WHERE team_1 = \"sc gagnoa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2886617_8 (player VARCHAR, nhl_team VARCHAR)",
"role": "system"
},
{
"content": "What player was picked for Buffalo Sabres?",
"role": "user"
},
{
"content": "SELECT player FROM table_2886617_8 WHERE nhl_team = \"Buffalo Sabres\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR)",
"role": "system"
},
{
"content": "Where was the tourney when UCLA won the regular season?",
"role": "user"
},
{
"content": "SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = \"UCLA\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, chassis VARCHAR, entrant VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of points for beta team march 1975 and chassis of march 751",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_86 WHERE entrant = \"beta team march\" AND year = 1975 AND chassis = \"march 751\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (enrollment INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "How much Enrollment has a School of fort wayne homestead?",
"role": "user"
},
{
"content": "SELECT SUM(enrollment) FROM table_name_5 WHERE school = \"fort wayne homestead\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (frequency_mhz INTEGER, erp_w INTEGER)",
"role": "system"
},
{
"content": "What is the frequency MHz of the ERP W's greater than 250?",
"role": "user"
},
{
"content": "SELECT AVG(frequency_mhz) FROM table_name_55 WHERE erp_w > 250",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, airport VARCHAR)",
"role": "system"
},
{
"content": "Which country features Adelaide Airport?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_21 WHERE airport = \"adelaide airport\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29434211_1 (season INTEGER, podiums VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum season that has exactly 2 podiums?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_29434211_1 WHERE podiums = 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (frequency VARCHAR, power__kw_ VARCHAR)",
"role": "system"
},
{
"content": "Which frequency has 40kw power?",
"role": "user"
},
{
"content": "SELECT frequency FROM table_name_5 WHERE power__kw_ = \"40kw\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1121352_2 (date VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "What date were the runner ups pat hurst juli inkster?",
"role": "user"
},
{
"content": "SELECT date FROM table_1121352_2 WHERE runner_s__up = \"Pat Hurst Juli Inkster\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (nationality VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality when Claude Periard is the player?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_33 WHERE player = \"claude periard\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?",
"role": "user"
},
{
"content": "SELECT circuit FROM table_name_16 WHERE tyre = \"d\" AND pole_position = \"jochen rindt\" AND fastest_lap = \"jackie stewart\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (sport VARCHAR, name VARCHAR, games VARCHAR)",
"role": "system"
},
{
"content": "What sport did the National Team play in the 1968 mexico City Games?",
"role": "user"
},
{
"content": "SELECT sport FROM table_name_58 WHERE name = \"national team\" AND games = \"1968 mexico city\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "On what date did Detroit play at home?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_25 WHERE home = \"detroit\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12962773_16 (position VARCHAR, current_club VARCHAR)",
"role": "system"
},
{
"content": "How many players are from energa czarni?",
"role": "user"
},
{
"content": "SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = \"Energa Czarni\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What was the venue during the Season of 2010–11?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_88 WHERE season = \"2010–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_name_31 (name VARCHAR, province VARCHAR, appointed VARCHAR)",
"role": "system"
},
{
"content": "Who was appointed on October 21, 2011 from Quebec?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_31 WHERE province = \"quebec\" AND appointed = \"october 21, 2011\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18064020_21 (ast VARCHAR, avg VARCHAR)",
"role": "system"
},
{
"content": "How many tackle assists for the player who averages 23.7?",
"role": "user"
},
{
"content": "SELECT ast FROM table_18064020_21 WHERE avg = \"23.7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many final score datas are there on Sunday, May 12?",
"role": "user"
},
{
"content": "SELECT COUNT(final_score) FROM table_24776075_2 WHERE date = \"Sunday, May 12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the locations of parties and the names of the party hosts in ascending order of the age of the host.",
"role": "user"
},
{
"content": "SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10240125_1 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR)",
"role": "system"
},
{
"content": "When FA Cup Apps is 9 what is the smallest number of FA Cup Goals?",
"role": "user"
},
{
"content": "SELECT MIN(fa_cup_goals) FROM table_10240125_1 WHERE fa_cup_apps = 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11449590_2 (kickoff_ VARCHAR, a_ VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Which kickoff has the opponent at new orleans saints?",
"role": "user"
},
{
"content": "SELECT kickoff_[a_] FROM table_11449590_2 WHERE opponent = \"at New Orleans Saints\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What is the largest number in attendance at H venue opposing Liverpool with a result of D?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_40 WHERE venue = \"h\" AND result = \"d\" AND opponents = \"liverpool\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (finish VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the finish in 1956?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_17 WHERE year = \"1956\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the result when the opponent was fenerbahçe?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_5 WHERE opponent = \"fenerbahçe\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (city VARCHAR, state_territory VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "Which city has tasmania as the state/territory and a ICAO of ymhb?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_24 WHERE state_territory = \"tasmania\" AND icao = \"ymhb\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (artist VARCHAR, genre VARCHAR)",
"role": "system"
},
{
"content": "Who is the artist of the rock song?",
"role": "user"
},
{
"content": "SELECT artist FROM table_name_7 WHERE genre = \"rock\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the second round?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_5 WHERE round = \"second round\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (copa_sudamericana INTEGER, others INTEGER)",
"role": "system"
},
{
"content": "What is the largest copa sudamericana number when the others number is less than 0?",
"role": "user"
},
{
"content": "SELECT MAX(copa_sudamericana) FROM table_name_80 WHERE others < 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_9 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was home team Essendon's opponents score?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_9 WHERE home_team = \"essendon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20026849_1 (season INTEGER, winner VARCHAR)",
"role": "system"
},
{
"content": "What season was won by Ashutosh Kaushik?",
"role": "user"
},
{
"content": "SELECT MIN(season) FROM table_20026849_1 WHERE winner = \"Ashutosh Kaushik\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the pick for the Maryland-Eastern Shore team with a round lower than 2?",
"role": "user"
},
{
"content": "SELECT SUM(pick) FROM table_name_70 WHERE school_club_team = \"maryland-eastern shore\" AND round < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (crowd INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "Which Crowd has a Venue of princes park?",
"role": "user"
},
{
"content": "SELECT MIN(crowd) FROM table_name_25 WHERE venue = \"princes park\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (location VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the Location for the newington international airport?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_6 WHERE name = \"newington international airport\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29692554_2 (eliminated VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Who was eliminated a person at 18:48?",
"role": "user"
},
{
"content": "SELECT eliminated AS by FROM table_29692554_2 WHERE time = \"18:48\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__night_ VARCHAR, rating VARCHAR)",
"role": "system"
},
{
"content": "What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?",
"role": "user"
},
{
"content": "SELECT rank__week_ FROM table_name_73 WHERE viewers__millions_ > 7.14 AND rank__night_ = \"5\" AND rating / SHARE(18 - 49) = 2.9 / 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (rank VARCHAR, code__iata_icao_ VARCHAR)",
"role": "system"
},
{
"content": "What is the rank of the airport with the BKK/VTBS code?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_60 WHERE code__iata_icao_ = \"bkk/vtbs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (top_25 INTEGER, wins INTEGER)",
"role": "system"
},
{
"content": "What is the highest number of top-25s for events with 0 wins?",
"role": "user"
},
{
"content": "SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2159547_3 (date_successor_seated VARCHAR, vacator VARCHAR)",
"role": "system"
},
{
"content": "On what date was James P. Buchanan (d)'s successor seated?",
"role": "user"
},
{
"content": "SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = \"James P. Buchanan (D)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the result for rounds under 2 against D.J. Linderman?",
"role": "user"
},
{
"content": "SELECT res FROM table_name_44 WHERE round < 2 AND opponent = \"d.j. linderman\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (halang VARCHAR, rera VARCHAR)",
"role": "system"
},
{
"content": "Which Halang has a Rera of ʒo²?",
"role": "user"
},
{
"content": "SELECT halang FROM table_name_6 WHERE rera = \"ʒo²\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the highest round of a player from Sweden who plays right wing?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_name_59 WHERE nationality = \"sweden\" AND position = \"right wing\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the country of player curtis strange?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_33 WHERE player = \"curtis strange\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of Tie no 21?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_13 WHERE tie_no = \"21\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (case_length VARCHAR, rim_diameter VARCHAR)",
"role": "system"
},
{
"content": "Which Case length has a Rim diameter of 13.20 (.518)?",
"role": "user"
},
{
"content": "SELECT case_length FROM table_name_90 WHERE rim_diameter = \"13.20 (.518)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (title VARCHAR, artist VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What title does Overkill have before 1984?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_65 WHERE artist = \"overkill\" AND year < 1984",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home VARCHAR, leading_scorer VARCHAR)",
"role": "system"
},
{
"content": "Who was the home team of the game with manu ginóbili (34) as the leading scorer?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_74 WHERE leading_scorer = \"manu ginóbili (34)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, round VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "what is the record when the round is before 3 and the time si 4:59?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_41 WHERE round < 3 AND time = \"4:59\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What Opponent has a Result of –?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_20 WHERE result = \"–\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "Where does the network Star Cricket originate?",
"role": "user"
},
{
"content": "SELECT origin_of_programming FROM table_name_25 WHERE genre = \"cricket\" AND network = \"star cricket\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (year_left INTEGER, location VARCHAR)",
"role": "system"
},
{
"content": "What year did Culver leave?",
"role": "user"
},
{
"content": "SELECT SUM(year_left) FROM table_name_71 WHERE location = \"culver\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who was the opposing team during a game in the Pontiac Silverdome?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_89 WHERE location = \"pontiac silverdome\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Total that has the A Score larger than 6.4, and the B Score smaller than 9.025?",
"role": "user"
},
{
"content": "SELECT total FROM table_name_31 WHERE a_score > 6.4 AND b_score < 9.025",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who is the opponent at america west arena?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_24 WHERE location = \"america west arena\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (r_bacon VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "What is the number for R Bacon in Passaic County?",
"role": "user"
},
{
"content": "SELECT r_bacon FROM table_name_98 WHERE county = \"passaic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (bronze VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "How many bronze medals does South Korea have?",
"role": "user"
},
{
"content": "SELECT bronze FROM table_name_20 WHERE nation = \"south korea\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2866503_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "How many millions of viewers are listed where the writer is Matthew Okumura?",
"role": "user"
},
{
"content": "SELECT us_viewers__million_ FROM table_2866503_1 WHERE written_by = \"Matthew Okumura\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "How many points for maserati v12 engines in 1968?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_89 WHERE engine = \"maserati v12\" AND year = 1968",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tie_no VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is Tie no, when Home Team is \"Gillingham\"?",
"role": "user"
},
{
"content": "SELECT tie_no FROM table_name_96 WHERE home_team = \"gillingham\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (original_air_date VARCHAR, series__number VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "What was the original air date of a series number after 78, written by Jenee V. Giles?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_name_85 WHERE series__number > 78 AND written_by = \"jenee v. giles\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (bronze INTEGER, nation VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "How many bronze medals did west germany win when they had less than 2 silver medals?",
"role": "user"
},
{
"content": "SELECT SUM(bronze) FROM table_name_29 WHERE nation = \"west germany\" AND silver < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (player VARCHAR, to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Which player from Scotland has a To Par score of +7?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_50 WHERE to_par = \"+7\" AND country = \"scotland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the result on 10/06/1934?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_80 WHERE date = \"10/06/1934\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "How many goals were scored when they had over 28 points and played over 18 games?",
"role": "user"
},
{
"content": "SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (class VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "Which Class has a City of license of garden city, kansas?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_50 WHERE city_of_license = \"garden city, kansas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (europe VARCHAR, japan VARCHAR)",
"role": "system"
},
{
"content": "Tell me europe for japan of january 28, 2010",
"role": "user"
},
{
"content": "SELECT europe FROM table_name_72 WHERE japan = \"january 28, 2010\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (label VARCHAR, format VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_75 WHERE format = \"stereo vinyl lp\" AND catalog = \"sf-7635\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (zan_1 VARCHAR, nor_1 VARCHAR)",
"role": "system"
},
{
"content": "What is the zan 1 that has 11 as the nor 1?",
"role": "user"
},
{
"content": "SELECT zan_1 FROM table_name_34 WHERE nor_1 = \"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_11220799_2 (episode_titles VARCHAR, first_air_date VARCHAR)",
"role": "system"
},
{
"content": "How many episodes had their first air date on March 6, 2008?",
"role": "user"
},
{
"content": "SELECT COUNT(episode_titles) FROM table_11220799_2 WHERE first_air_date = \"March 6, 2008\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (date VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "what is the date when the competition is 1998 asian games?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_17 WHERE competition = \"1998 asian games\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (pick VARCHAR, round VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Pick, when Round is greater than 1, and when Player is \"Jim Stack\"?",
"role": "user"
},
{
"content": "SELECT COUNT(pick) FROM table_name_1 WHERE round > 1 AND player = \"jim stack\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 INTEGER, game_site VARCHAR)",
"role": "system"
},
{
"content": "How many were in attendance when the game was held in Arrowhead Stadium?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_17972193_1 WHERE game_site = \"Arrowhead Stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (tournament VARCHAR, winning_score VARCHAR)",
"role": "system"
},
{
"content": "In what tournament was the winning score –10 (68-71-69-70=278)?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_21 WHERE winning_score = –10(68 - 71 - 69 - 70 = 278)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_148535_2 (hand VARCHAR)",
"role": "system"
},
{
"content": "Name the least 2 credits for flush",
"role": "user"
},
{
"content": "SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = \"Flush\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27998152_1 (date_of_birth VARCHAR, no VARCHAR)",
"role": "system"
},
{
"content": "for the no. 7 what is the date of birth",
"role": "user"
},
{
"content": "SELECT date_of_birth FROM table_27998152_1 WHERE no = 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_1342198_25 (first_elected VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "In what year was Phil J. Welch first elected?",
"role": "user"
},
{
"content": "SELECT first_elected FROM table_1342198_25 WHERE incumbent = \"Phil J. Welch\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, sport VARCHAR)",
"role": "system"
},
{
"content": "Which venue held a basketball team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_98 WHERE sport = \"basketball\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance VARCHAR, competition VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many people attended the Scottish Cup on 29.02.2000?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_60 WHERE competition = \"scottish cup\" AND date = \"29.02.2000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (game VARCHAR, record VARCHAR, march VARCHAR)",
"role": "system"
},
{
"content": "How many games ended in a record of 30-28-4, with a March more than 1?",
"role": "user"
},
{
"content": "SELECT COUNT(game) FROM table_name_42 WHERE record = \"30-28-4\" AND march > 1",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.