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_32 (teams VARCHAR, league VARCHAR, away VARCHAR)",
"role": "system"
},
{
"content": "What team has a league of bundesliga, and an away of 3-2?",
"role": "user"
},
{
"content": "SELECT teams FROM table_name_32 WHERE league = \"bundesliga\" AND away = \"3-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_21980_1 (january__°f_ VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What were the January (°F) temperatures in the Corner Brook location?",
"role": "user"
},
{
"content": "SELECT january__°f_ FROM table_21980_1 WHERE location = \"Corner Brook\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (wins INTEGER, losses INTEGER)",
"role": "system"
},
{
"content": "What is the highest win for losses less than 2?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_65 WHERE losses < 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_19 (tied VARCHAR, losses VARCHAR, win__percentage VARCHAR)",
"role": "system"
},
{
"content": "Who tied with 8 losses and 50% wins?",
"role": "user"
},
{
"content": "SELECT tied FROM table_name_19 WHERE losses = \"8\" AND win__percentage = \"50%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tonnage INTEGER, nationality VARCHAR, ship VARCHAR)",
"role": "system"
},
{
"content": "What is the highest tonnage for a ship from Great Britain named Newton Ash?",
"role": "user"
},
{
"content": "SELECT MAX(tonnage) FROM table_name_13 WHERE nationality = \"great britain\" AND ship = \"newton ash\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23248420_1 (rank INTEGER, population VARCHAR)",
"role": "system"
},
{
"content": "When 142900 is the population what is the highest rank?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_23248420_1 WHERE population = 142900",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (purpose VARCHAR, callsign VARCHAR)",
"role": "system"
},
{
"content": "Callsign of 6nan has what purpose?",
"role": "user"
},
{
"content": "SELECT purpose FROM table_name_34 WHERE callsign = \"6nan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (competition VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What competition had a score of 8-1?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_78 WHERE score = \"8-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 student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR)",
"role": "system"
},
{
"content": "What is the first, last name, gpa of the youngest one among students whose GPA is above 3?",
"role": "user"
},
{
"content": "SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob 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_97 (icao VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Which ICAO is found in Vavuniya?",
"role": "user"
},
{
"content": "SELECT icao FROM table_name_97 WHERE city = \"vavuniya\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver VARCHAR, rank VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What kind of Silver has a Rank of 3, and a Gold smaller than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_9 WHERE rank = \"3\" AND gold < 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_79 (romaji_title VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)",
"role": "system"
},
{
"content": "What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?",
"role": "user"
},
{
"content": "SELECT romaji_title FROM table_name_79 WHERE tv_station = \"tbs\" AND japanese_title = \"around40〜注文の多いオンナたち〜\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which Team has the Player of A.J. Moye?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_81 WHERE player = \"a.j. moye\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1529260_2 (country VARCHAR, margin_of_victory VARCHAR)",
"role": "system"
},
{
"content": "What countries have a margin of victory at 6 strokes?",
"role": "user"
},
{
"content": "SELECT country FROM table_1529260_2 WHERE margin_of_victory = \"6 strokes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, start VARCHAR)",
"role": "system"
},
{
"content": "Which rank is the start of totals?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_78 WHERE start = \"totals\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (featuring VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "who is featuring when the title is energy of the daleks?",
"role": "user"
},
{
"content": "SELECT featuring FROM table_name_18 WHERE title = \"energy of the daleks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (surface VARCHAR, partner VARCHAR)",
"role": "system"
},
{
"content": "The tournament with a partner listed as Aurelija Misevičiūtė had what kind of surface?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_88 WHERE partner = \"aurelija misevičiūtė\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1859269_1 (round VARCHAR, new_entries_this_round VARCHAR)",
"role": "system"
},
{
"content": "If new entries this round is 65, what is the round?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_1859269_1 WHERE new_entries_this_round = \"65\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tyres VARCHAR, laps VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Which tyres has more than 5 laps with team nissan motorsports international?",
"role": "user"
},
{
"content": "SELECT tyres FROM table_name_89 WHERE laps > 5 AND team = \"nissan motorsports international\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (d_46_√ VARCHAR, d_50_√ VARCHAR)",
"role": "system"
},
{
"content": "What is the D 46 √ when the D 50 √ is d 50 √?",
"role": "user"
},
{
"content": "SELECT d_46_√ FROM table_name_14 WHERE d_50_√ = \"d 50 √\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, february VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game 57 after February 23?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_19 WHERE february > 23 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_18217753_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "Who were the writers when there were 27.11 million viewers?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_18217753_1 WHERE us_viewers__millions_ = \"27.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_92 (score VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the Score when the Player is toru taniguchi?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_92 WHERE player = \"toru taniguchi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22860_1 (atlantic_europe VARCHAR, age__before_ VARCHAR)",
"role": "system"
},
{
"content": "What is the Atlantic Europe when age is 10,000 years?",
"role": "user"
},
{
"content": "SELECT atlantic_europe FROM table_22860_1 WHERE age__before_ = \"10,000 years\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR)",
"role": "system"
},
{
"content": "What was the winning to par score of the 1993 PGA Championship?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_4 WHERE year_s__won = \"1993\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (position INTEGER, points_1 VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest position with points 1 of 27 2 and fewer than 9 drawn?",
"role": "user"
},
{
"content": "SELECT MIN(position) FROM table_name_74 WHERE points_1 = \"27 2\" AND drawn < 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (grid INTEGER, driver VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the average grid for jack brabham going over 32 laps?",
"role": "user"
},
{
"content": "SELECT AVG(grid) FROM table_name_66 WHERE driver = \"jack brabham\" AND laps > 32",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21091145_1 (opponent VARCHAR, black_knights_points VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent for black knights points 27",
"role": "user"
},
{
"content": "SELECT opponent FROM table_21091145_1 WHERE black_knights_points = 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 (category VARCHAR, stations VARCHAR)",
"role": "system"
},
{
"content": "Which category has 5 stations?",
"role": "user"
},
{
"content": "SELECT category FROM table_name_11 WHERE stations = \"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_96 (name VARCHAR, decile VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "Which name has a Decile of 5, and an Area of tauranga?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_96 WHERE decile = 5 AND area = \"tauranga\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What team has a Record of 50–28?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_9 WHERE record = \"50–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_24477075_1 (position VARCHAR, minutes VARCHAR)",
"role": "system"
},
{
"content": "Name the position for 132 minutes",
"role": "user"
},
{
"content": "SELECT position FROM table_24477075_1 WHERE minutes = 132",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What's the lowest rank of the United States with a time less than 24.63?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_74 WHERE nationality = \"united states\" AND time < 24.63",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Products (Product_Type_Code VARCHAR)",
"role": "system"
},
{
"content": "Show the most common type code across products.",
"role": "user"
},
{
"content": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code 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_24 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum download speed for the Internet basic plan with 3G?",
"role": "user"
},
{
"content": "SELECT maximum_download_speed__kbps FROM table_name_24 WHERE technology = \"3g\" AND plan_name = \"internet basic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the Bronco's record when they played the Detroit Lions at Mile High Stadium?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_98 WHERE game_site = \"mile high stadium\" AND opponent = \"detroit lions\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341423_43 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the first elected for texas 6 district",
"role": "user"
},
{
"content": "SELECT first_elected FROM table_1341423_43 WHERE district = \"Texas 6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (launch_date VARCHAR, odds_of_winning VARCHAR)",
"role": "system"
},
{
"content": "What is the launch date odds of winning 1 in 4.44?",
"role": "user"
},
{
"content": "SELECT launch_date FROM table_name_92 WHERE odds_of_winning = \"1 in 4.44\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (blood_type VARCHAR, agency VARCHAR)",
"role": "system"
},
{
"content": "What's the blood type of the member from the vision factory agency?",
"role": "user"
},
{
"content": "SELECT blood_type FROM table_name_52 WHERE agency = \"vision factory\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (number INTEGER, opponent VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What number with the opponent Fokker D.vii have with a time of 1655?",
"role": "user"
},
{
"content": "SELECT SUM(number) FROM table_name_89 WHERE opponent = \"fokker d.vii\" AND time = 1655",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (format VARCHAR, station VARCHAR)",
"role": "system"
},
{
"content": "Which format has a Station of kcbs?",
"role": "user"
},
{
"content": "SELECT format FROM table_name_80 WHERE station = \"kcbs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE TV_Channel (series_name VARCHAR, content VARCHAR)",
"role": "system"
},
{
"content": "List the number of different series names and contents in the TV Channel table.",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (type VARCHAR, opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the type when Robert Villemain had a record at 109–1–2?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_34 WHERE opponent = \"robert villemain\" AND record = \"109–1–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_27755603_7 (high_assists VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Who had the most assists agains New Orleans?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_27755603_7 WHERE team = \"New Orleans\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was the score for the match where the home team was Leicester City?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_16 WHERE home_team = \"leicester 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_64 (edition INTEGER, runner_up VARCHAR, year VARCHAR, third VARCHAR)",
"role": "system"
},
{
"content": "What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?",
"role": "user"
},
{
"content": "SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = \"tikveš\" AND runner_up = \"sileks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "What is the maac when the overall is 26-8?",
"role": "user"
},
{
"content": "SELECT maac FROM table_21756039_1 WHERE overall = \"26-8\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (date VARCHAR, week VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "When was the game before week 8 with a result of bye?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_44 WHERE week < 8 AND result = \"bye\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR)",
"role": "system"
},
{
"content": "what is the sweet for voice actor saki fujita?",
"role": "user"
},
{
"content": "SELECT sweet FROM table_26615633_3 WHERE voice_actor = \"Saki Fujita\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (ties VARCHAR, goals_against INTEGER)",
"role": "system"
},
{
"content": "What are the number of Ties for games with Goals Against smaller than 33?",
"role": "user"
},
{
"content": "SELECT ties FROM table_name_23 WHERE goals_against < 33",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (first_elected INTEGER, district VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest First Elected, when District is \"Massachusetts 10\"?",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_name_40 WHERE district = \"massachusetts 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_16388439_3 (home_team VARCHAR, ground VARCHAR)",
"role": "system"
},
{
"content": "Name the home team for football park",
"role": "user"
},
{
"content": "SELECT home_team FROM table_16388439_3 WHERE ground = \"Football 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_39 (competition VARCHAR, venue VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the home Competition with Attendance of 1,268?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_39 WHERE venue = \"home\" AND attendance = \"1,268\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (city VARCHAR, iata VARCHAR)",
"role": "system"
},
{
"content": "Which city's IATA is KUL?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_50 WHERE iata = \"kul\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR)",
"role": "system"
},
{
"content": "What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184?",
"role": "user"
},
{
"content": "SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = \"21352022\" AND population > 184",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (opponent_in_the_final VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Opponent in the final of the game on february 2, 2004?",
"role": "user"
},
{
"content": "SELECT opponent_in_the_final FROM table_name_68 WHERE date = \"february 2, 2004\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, played INTEGER)",
"role": "system"
},
{
"content": "What is the rank for less than 6 plays?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_47 WHERE played < 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (pada_3 VARCHAR, pada_1 VARCHAR)",
"role": "system"
},
{
"content": "Which Pada 3 has a Pada 1 of टे te?",
"role": "user"
},
{
"content": "SELECT pada_3 FROM table_name_41 WHERE pada_1 = \"टे te\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the score of team chicago?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_64 WHERE team = \"chicago\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR)",
"role": "system"
},
{
"content": "What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?",
"role": "user"
},
{
"content": "SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = \"ellen burstyn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (primary_military_speciality VARCHAR, code_name VARCHAR)",
"role": "system"
},
{
"content": "What is Moondancer's Primary Military Speciality?",
"role": "user"
},
{
"content": "SELECT primary_military_speciality FROM table_name_39 WHERE code_name = \"moondancer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick__number VARCHAR, affiliation VARCHAR)",
"role": "system"
},
{
"content": "Tell me the total number of pick for university of virginia",
"role": "user"
},
{
"content": "SELECT COUNT(pick__number) FROM table_name_78 WHERE affiliation = \"university of virginia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (title VARCHAR, rank VARCHAR, gross VARCHAR)",
"role": "system"
},
{
"content": "Which title ranked lower than 19 has a gross of $11,833,696?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_11 WHERE rank < 19 AND gross = \"$11,833,696\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (podium INTEGER, pole INTEGER)",
"role": "system"
},
{
"content": "Pole smaller than 0 had what lowest podium?",
"role": "user"
},
{
"content": "SELECT MIN(podium) FROM table_name_92 WHERE pole < 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_2 (opponent VARCHAR, game VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent when they played after Game 26 and their record was 23-4?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_2 WHERE game > 26 AND record = \"23-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_67 (set_2 VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Set 2, when Date is May 31?",
"role": "user"
},
{
"content": "SELECT set_2 FROM table_name_67 WHERE date = \"may 31\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (byes INTEGER, against VARCHAR, draws VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of Byes when there were less than 0 losses and were against 1247?",
"role": "user"
},
{
"content": "SELECT AVG(byes) FROM table_name_75 WHERE against = 1247 AND draws < 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_65 (date VARCHAR, score VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "When has a Score of 0–0, and a Away team of scunthorpe united?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_65 WHERE score = \"0–0\" AND away_team = \"scunthorpe united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (high_rebounds VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of rebounds of the game with a 6-14 record?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_name_53 WHERE record = \"6-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 editor (Name VARCHAR, Age VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the youngest editor?",
"role": "user"
},
{
"content": "SELECT Name FROM editor ORDER BY Age 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_27734577_8 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many records where in January 2?",
"role": "user"
},
{
"content": "SELECT COUNT(record) FROM table_27734577_8 WHERE date = \"January 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_44 (mac_os_x VARCHAR, gnu_linux VARCHAR, windows VARCHAR)",
"role": "system"
},
{
"content": "Which Mac OSX's GNU/Linux was yes when Windows was no?",
"role": "user"
},
{
"content": "SELECT mac_os_x FROM table_name_44 WHERE gnu_linux = \"yes\" AND windows = \"no\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14132239_3 (offensive VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "Who was the offensive award winner the week when Bob Watson was given the overall award?",
"role": "user"
},
{
"content": "SELECT offensive FROM table_14132239_3 WHERE overall = \"Bob Watson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (headquarter VARCHAR, type VARCHAR)",
"role": "system"
},
{
"content": "What is Headquarter, when Type is Independent Online News Portal?",
"role": "user"
},
{
"content": "SELECT headquarter FROM table_name_49 WHERE type = \"independent online news portal\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (icelandic VARCHAR, english VARCHAR)",
"role": "system"
},
{
"content": "What's the Icelandic word for rain?",
"role": "user"
},
{
"content": "SELECT icelandic FROM table_name_12 WHERE english = \"rain\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Where was the game with a result of won 5-0?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_25 WHERE result = \"won 5-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_52 (date VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "what is the date for the tournament joué-lès-tours?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_52 WHERE tournament = \"joué-lès-tours\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR)",
"role": "system"
},
{
"content": "What are the codes of countries where Spanish is spoken by the largest percentage of people?",
"role": "user"
},
{
"content": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (worship_leader VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Who was the Worship Leader for the song that was 7:05 long?",
"role": "user"
},
{
"content": "SELECT worship_leader FROM table_name_17 WHERE time = \"7:05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (college VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "Which college did the player picked number 136 go to?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_54 WHERE pick = 136",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR)",
"role": "system"
},
{
"content": "Name the vessel type for dof subsea",
"role": "user"
},
{
"content": "SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = \"DOF Subsea\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (away_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the Away team of Tie no 1?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_68 WHERE tie_no = \"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_44 (year INTEGER, entrant VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What year featured lola motorsport as an entrant with over 0 points?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_44 WHERE entrant = \"lola motorsport\" AND points > 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_69 (games INTEGER, drawn INTEGER)",
"role": "system"
},
{
"content": "Name the most games with drawn more than 1",
"role": "user"
},
{
"content": "SELECT MAX(games) FROM table_name_69 WHERE drawn > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR)",
"role": "system"
},
{
"content": "What day did he play on hard with tom mercer?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_69 WHERE surface = \"hard\" AND partner = \"tom mercer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR)",
"role": "system"
},
{
"content": "What is the percentage of the popular vote when there were 90 seats available?",
"role": "user"
},
{
"content": "SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10748727_1 (points VARCHAR, series VARCHAR, team_name VARCHAR)",
"role": "system"
},
{
"content": "how much did the british formula three called \"fortec motorsport\" score?",
"role": "user"
},
{
"content": "SELECT points FROM table_10748727_1 WHERE series = \"British Formula Three\" AND team_name = \"Fortec Motorsport\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL 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 (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)",
"role": "system"
},
{
"content": "How many clubs does \"Linda Smith\" belong to?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "Name the most attendance whent he record is 45-57",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_2 WHERE record = \"45-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_name_57 (country VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which country is ranked 24?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_57 WHERE rank = \"24\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28561455_1 (no_in_series INTEGER, directed_by VARCHAR)",
"role": "system"
},
{
"content": "What is the latest episode number that was directed by Tom Dicillo?",
"role": "user"
},
{
"content": "SELECT MAX(no_in_series) FROM table_28561455_1 WHERE directed_by = \"Tom DiCillo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17311759_9 (record VARCHAR, high_assists VARCHAR)",
"role": "system"
},
{
"content": "When mike bibby (8) had the highest amount of assists what is the record?",
"role": "user"
},
{
"content": "SELECT record FROM table_17311759_9 WHERE high_assists = \"Mike Bibby (8)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (third VARCHAR, second VARCHAR)",
"role": "system"
},
{
"content": "Which Third has a Second of scott pfeifer?",
"role": "user"
},
{
"content": "SELECT third FROM table_name_29 WHERE second = \"scott pfeifer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (round__number INTEGER, pick__number VARCHAR, position VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "What is the average round number with wide receiver as position and Clark University as the college and the pick number is bigger than 166?",
"role": "user"
},
{
"content": "SELECT AVG(round__number) FROM table_name_18 WHERE position = \"wide receiver\" AND college = \"clark university\" AND pick__number > 166",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (surface VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What suface during the game that had Yevgeny Kafelnikov as an opponent?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_38 WHERE opponent = \"yevgeny kafelnikov\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10581768_2 (founded INTEGER, type VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "How many institutions are located in wilmore, kentucky and private",
"role": "user"
},
{
"content": "SELECT MAX(founded) FROM table_10581768_2 WHERE type = \"Private\" AND location = \"Wilmore, Kentucky\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1644876_2 (skip VARCHAR, stolen_ends VARCHAR)",
"role": "system"
},
{
"content": "Who was the skip with 14 stolen ends?",
"role": "user"
},
{
"content": "SELECT skip FROM table_1644876_2 WHERE stolen_ends = 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_71 (Id VARCHAR)",
"role": "system"
},
{
"content": "What was the 2009 results that has q1 for 2010, and A as the result for 2011?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_71 WHERE 2010 = \"q1\" AND 2011 = \"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_216776_2 (municipality VARCHAR, pop_density__per_km²_ VARCHAR)",
"role": "system"
},
{
"content": "In what municipality were there 757.5 people per km2?",
"role": "user"
},
{
"content": "SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = \"757.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_70 (college VARCHAR, overall VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What college has an overall less than 243, and tony green as the name?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_70 WHERE overall < 243 AND name = \"tony green\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.