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_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "How many millions of U.S. viewers watched episode 185?",
"role": "user"
},
{
"content": "SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE invoices (billing_state VARCHAR, total INTEGER)",
"role": "system"
},
{
"content": "List the number of invoices and the invoice total from California.",
"role": "user"
},
{
"content": "SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = \"CA\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE death (injured INTEGER)",
"role": "system"
},
{
"content": "What is the average number of injuries caused each time?",
"role": "user"
},
{
"content": "SELECT AVG(injured) FROM death",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (general_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)",
"role": "system"
},
{
"content": "What's the general classification of stage 3 with David Loosli as the mountains classification?",
"role": "user"
},
{
"content": "SELECT general_classification FROM table_name_74 WHERE mountains_classification = \"david loosli\" AND stage = \"3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27781212_1 (driver VARCHAR, winnings VARCHAR)",
"role": "system"
},
{
"content": "who is the driver that had winnings of $225,000?",
"role": "user"
},
{
"content": "SELECT driver FROM table_27781212_1 WHERE winnings = \"$225,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12444503_1 (season VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "In which season was Jeanne d'Arc (Bamako) the runner-up?",
"role": "user"
},
{
"content": "SELECT season FROM table_12444503_1 WHERE runner_up = \"Jeanne d'Arc (Bamako)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest rank of Citigroup?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_67 WHERE name = \"citigroup\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE railway (Location VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Railway_ID VARCHAR)",
"role": "system"
},
{
"content": "Show id and location of railways that are associated with more than one train.",
"role": "user"
},
{
"content": "SELECT T2.Railway_ID, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 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_71 (built VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "In what year was the bridge in Lovell built?",
"role": "user"
},
{
"content": "SELECT built FROM table_name_71 WHERE location = \"lovell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (visitor VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who visited on April 29?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_35 WHERE date = \"april 29\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (location VARCHAR, capacity VARCHAR, opening VARCHAR)",
"role": "system"
},
{
"content": "What place can sit 65,000 and opens 2016?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_63 WHERE capacity = \"65,000\" AND opening = \"2016\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24807774_1 (afghan VARCHAR, bangladeshi VARCHAR)",
"role": "system"
},
{
"content": "how many afghan in banglash is hungarian",
"role": "user"
},
{
"content": "SELECT afghan FROM table_24807774_1 WHERE bangladeshi = \"Hungarian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_2 (no VARCHAR, current_club VARCHAR)",
"role": "system"
},
{
"content": "What are the numbers of the players currently playing for Ironi Nahariya?",
"role": "user"
},
{
"content": "SELECT no FROM table_12962773_2 WHERE current_club = \"Ironi Nahariya\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR)",
"role": "system"
},
{
"content": "Find the average grade point of student whose last name is Smith.",
"role": "user"
},
{
"content": "SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE 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_42 (surface VARCHAR, score_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "Which Surface has a Score in the final of 2–6, 6–7?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_42 WHERE score_in_the_final = \"2–6, 6–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_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)",
"role": "system"
},
{
"content": "Who was the lead envoy of the mission with the Ryūkyūan King shō eki?",
"role": "user"
},
{
"content": "SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = \"shō eki\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, opponents VARCHAR, league_position VARCHAR)",
"role": "system"
},
{
"content": "What date was Notts County the opponent and the league position was 1st?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_96 WHERE opponents = \"notts county\" AND league_position = \"1st\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (total_matches INTEGER, competition VARCHAR, draw VARCHAR)",
"role": "system"
},
{
"content": "How many average total matches have league cup as the competition, with a draw greater than 0?",
"role": "user"
},
{
"content": "SELECT AVG(total_matches) FROM table_name_34 WHERE competition = \"league cup\" AND draw > 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_49 (pole INTEGER, flap VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest pole with a Flap larger than 5, and a before race 155?",
"role": "user"
},
{
"content": "SELECT MIN(pole) FROM table_name_49 WHERE flap > 5 AND race < 155",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "How many totals have andy north as the player?",
"role": "user"
},
{
"content": "SELECT SUM(total) FROM table_name_96 WHERE player = \"andy north\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE furniture (name VARCHAR, furniture_id VARCHAR, market_rate VARCHAR)",
"role": "system"
},
{
"content": "Return the name and id of the furniture with the highest market rate.",
"role": "user"
},
{
"content": "SELECT name, furniture_id FROM furniture ORDER BY market_rate 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_36 (score VARCHAR, high_points VARCHAR)",
"role": "system"
},
{
"content": "What is Score, when High Points is \"Dwight Howard (25)\"?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_36 WHERE high_points = \"dwight howard (25)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)",
"role": "system"
},
{
"content": "What is the 2012 season in Esiliiga more than 4, and more than 0 titles?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 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_39 (entrant VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Name the entrant for year of 1952",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_39 WHERE year = 1952",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (time VARCHAR, react VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many total Time listings have a 0.209 React entry and a Rank that is greater than 7?",
"role": "user"
},
{
"content": "SELECT COUNT(time) FROM table_name_76 WHERE react = 0.209 AND rank > 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_name_22 (skip VARCHAR, lead VARCHAR)",
"role": "system"
},
{
"content": "Which Skip did marju velga lead?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_22 WHERE lead = \"marju velga\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (city VARCHAR, years VARCHAR)",
"role": "system"
},
{
"content": "Which city had years 1971-1974?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_97 WHERE years = \"1971-1974\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (points VARCHAR, english_translation VARCHAR, draw VARCHAR)",
"role": "system"
},
{
"content": "What's the total number of points when the English translation is Long Live Life and the draw is less than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_64 WHERE english_translation = \"long live life\" AND draw < 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_73 (bask INTEGER, indoor_track VARCHAR, swimming VARCHAR)",
"role": "system"
},
{
"content": "Which Bask has an Indoor track of 0, and a Swimming of 5?",
"role": "user"
},
{
"content": "SELECT MIN(bask) FROM table_name_73 WHERE indoor_track = \"0\" AND swimming = \"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_18 (to_par VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE TO PAR FOR NUMBER 1?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_18 WHERE place = \"1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (artist VARCHAR, butterfly VARCHAR)",
"role": "system"
},
{
"content": "Which artist's work is the butterfly Tiger Swallowtail?",
"role": "user"
},
{
"content": "SELECT artist FROM table_name_16 WHERE butterfly = \"tiger swallowtail\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team VARCHAR, head_coach VARCHAR)",
"role": "system"
},
{
"content": "Which Team has a Head Coach of michalis pamboris?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_60 WHERE head_coach = \"michalis pamboris\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (year VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "How many years was Reasons to be Pretty nominated for best play?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_83 WHERE category = \"best play\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many people attended the game on October 31?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_40 WHERE date = \"october 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_9 (date VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of the game in Vancouver?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_9 WHERE home = \"vancouver\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR)",
"role": "system"
},
{
"content": "Name the republican steve sauerberg where dates administered september 15-september 18, 2008",
"role": "user"
},
{
"content": "SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = \"September 15-September 18, 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_12 (runner_up VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the runner-up for rank of 7?",
"role": "user"
},
{
"content": "SELECT runner_up FROM table_name_12 WHERE rank = 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_name_36 (round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Which round did the bout against Jonatas Novaes end in?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_36 WHERE opponent = \"jonatas novaes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_245801_2 (duration VARCHAR, spacecraft VARCHAR)",
"role": "system"
},
{
"content": "When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration?",
"role": "user"
},
{
"content": "SELECT duration FROM table_245801_2 WHERE spacecraft = \"Salyut 7 – VE-4 – EVA 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 (nominating_festival VARCHAR, film VARCHAR)",
"role": "system"
},
{
"content": "What Nominating festival was party of the adjustment film?",
"role": "user"
},
{
"content": "SELECT nominating_festival FROM table_name_69 WHERE film = \"adjustment\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14209245_9 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the player whose college/junior/club team (league) is Seattle Thunderbirds (WHL)?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_14209245_9 WHERE college_junior_club_team__league_ = \"Seattle Thunderbirds (WHL)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10812938_4 (pick__number INTEGER)",
"role": "system"
},
{
"content": "What is the earliest pick listed in the table.",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_10812938_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_48 (crowd VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "How large of a crowd can the Brunswick Street Oval hold?",
"role": "user"
},
{
"content": "SELECT COUNT(crowd) FROM table_name_48 WHERE venue = \"brunswick street oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2527617_1 (champion VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Who is the champion of the 1994 season?",
"role": "user"
},
{
"content": "SELECT champion FROM table_2527617_1 WHERE season = 1994",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (sample_size INTEGER, date_s__administered VARCHAR)",
"role": "system"
},
{
"content": "What is the highest sample size administered on October 18?",
"role": "user"
},
{
"content": "SELECT MAX(sample_size) FROM table_name_35 WHERE date_s__administered = \"october 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_12094609_1 (evening_gown VARCHAR, preliminaries VARCHAR)",
"role": "system"
},
{
"content": " what's the evening gown where preliminaries is 8.977",
"role": "user"
},
{
"content": "SELECT evening_gown FROM table_12094609_1 WHERE preliminaries = \"8.977\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Alexander Wronski's Position?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_31 WHERE name = \"alexander wronski\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19523142_5 (group_12 VARCHAR, group_9 VARCHAR)",
"role": "system"
},
{
"content": "Who played in group 12 when Group 9 played psid jombang?",
"role": "user"
},
{
"content": "SELECT group_12 FROM table_19523142_5 WHERE group_9 = \"PSID Jombang\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342249_5 (first_elected INTEGER)",
"role": "system"
},
{
"content": "What is the earliest years any of the incumbents were first elected? ",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_1342249_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_47 (score VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the score at the Addis Ababa location?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_47 WHERE location = \"addis ababa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "What is the average round of the s position player from the college of Mississippi and has an overall less than 214?",
"role": "user"
},
{
"content": "SELECT AVG(round) FROM table_name_79 WHERE position = \"s\" AND college = \"mississippi\" AND overall < 214",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (chassis VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the chassis for the year of 1969?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_85 WHERE year = 1969",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24329520_8 (voters_in_1800 VARCHAR, borough VARCHAR)",
"role": "system"
},
{
"content": "What is the number of voters in 1800 that have boroughs named Drogheda?",
"role": "user"
},
{
"content": "SELECT COUNT(voters_in_1800) FROM table_24329520_8 WHERE borough = \"Drogheda\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, pageant VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What's the latest year the miss internet www pageant had a result of second runner-up?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_80 WHERE pageant = \"miss internet www\" AND result = \"second runner-up\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341663_14 (first_elected INTEGER, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What year was Frank Annunzio elected",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = \"Frank Annunzio\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (series_11 VARCHAR, series_1 VARCHAR)",
"role": "system"
},
{
"content": "Who in series 11 corresponds to Peter Jones in series 1?",
"role": "user"
},
{
"content": "SELECT series_11 FROM table_name_51 WHERE series_1 = \"peter jones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17257687_1 (event_2 VARCHAR, event_1 VARCHAR)",
"role": "system"
},
{
"content": "What was event 2 when event 1 was Atlasphere?",
"role": "user"
},
{
"content": "SELECT event_2 FROM table_17257687_1 WHERE event_1 = \"Atlasphere\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is \"Total\"?",
"role": "user"
},
{
"content": "SELECT MIN(bronze) FROM table_name_83 WHERE \"total\" > 10 AND silver > 0 AND rank = \"total\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (days VARCHAR, year VARCHAR, constituency VARCHAR)",
"role": "system"
},
{
"content": "What are the number of days in 1945 where the constituent was heywood and radcliffe?",
"role": "user"
},
{
"content": "SELECT days FROM table_name_18 WHERE year = \"1945\" AND constituency = \"heywood and radcliffe\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25572118_1 (winning_team VARCHAR, series VARCHAR)",
"role": "system"
},
{
"content": "When fr2.0 9 is the series who is the winning team?",
"role": "user"
},
{
"content": "SELECT winning_team FROM table_25572118_1 WHERE series = \"FR2.0 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_57 (partner VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Partner has a Date of 8 february 2009?",
"role": "user"
},
{
"content": "SELECT partner FROM table_name_57 WHERE date = \"8 february 2009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (win_percentage VARCHAR, games VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)",
"role": "system"
},
{
"content": "What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?",
"role": "user"
},
{
"content": "SELECT win_percentage FROM table_name_88 WHERE games = 80 AND Pwin_percentage = — AND term_[c_] = \"1987–1988\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (haat VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "what is the HAAT of devils lake",
"role": "user"
},
{
"content": "SELECT haat FROM table_name_94 WHERE city_of_license = \"devils lake\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (class VARCHAR, laps INTEGER)",
"role": "system"
},
{
"content": "Which class has laps under 77?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_85 WHERE laps < 77",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1458412_1 (team_s_ VARCHAR, winnings VARCHAR)",
"role": "system"
},
{
"content": "What is the total amount o teams where winnings is $1,752,299?",
"role": "user"
},
{
"content": "SELECT COUNT(team_s_) FROM table_1458412_1 WHERE winnings = \"$1,752,299\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of first prizes in USD for the Canadian Open?",
"role": "user"
},
{
"content": "SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = \"canadian open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (draw INTEGER, played INTEGER)",
"role": "system"
},
{
"content": "What is the average for Draw games where Played games is more than 18?",
"role": "user"
},
{
"content": "SELECT AVG(draw) FROM table_name_61 WHERE 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_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What country of argentina has the To par of 68?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_51 WHERE score = 68 AND country = \"argentina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (match_no INTEGER, date VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?",
"role": "user"
},
{
"content": "SELECT MAX(match_no) FROM table_name_92 WHERE date = \"2008-03-21\" AND time = \"16:00\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (entries INTEGER, front_row_starts VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?",
"role": "user"
},
{
"content": "SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = \"michael schumacher\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Which date held the match at the City Stadium, Georgetown?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_7 WHERE venue = \"city stadium, georgetown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (winner_nominee_s_ VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who were the winner and nominees in 2001?",
"role": "user"
},
{
"content": "SELECT winner_nominee_s_ FROM table_name_27 WHERE year = 2001",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_b_winner VARCHAR)",
"role": "system"
},
{
"content": "What is the group a winner for modena?",
"role": "user"
},
{
"content": "SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = \"Modena\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (chassis VARCHAR, year VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "What is the Chassis from before 1997 with a Lamborghini v12 engine?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_98 WHERE year < 1997 AND engine = \"lamborghini v12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28634206_1 (country VARCHAR)",
"role": "system"
},
{
"content": "How many times was taiwan 3rd runner-up?",
"role": "user"
},
{
"content": "SELECT MAX(3 AS rd_runner_up) FROM table_28634206_1 WHERE country = \"Taiwan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14573770_4 (fourth_place INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "How many teams named argentina?",
"role": "user"
},
{
"content": "SELECT MAX(fourth_place) FROM table_14573770_4 WHERE nation = \"Argentina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11214772_1 (runner_up VARCHAR, year VARCHAR, champion VARCHAR)",
"role": "system"
},
{
"content": " who is the runner-up where year is 2004 and champion is north carolina state",
"role": "user"
},
{
"content": "SELECT runner_up FROM table_11214772_1 WHERE year = \"2004\" AND champion = \"North Carolina State\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, engine_s_ VARCHAR)",
"role": "system"
},
{
"content": "Which year has an Engine(s) of yamaha v8?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_6 WHERE engine_s_ = \"yamaha v8\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23292220_6 (jasons_team VARCHAR, episode VARCHAR)",
"role": "system"
},
{
"content": "Name all of Jason's teams that appeared on episode 6x02?",
"role": "user"
},
{
"content": "SELECT jasons_team FROM table_23292220_6 WHERE episode = \"6x02\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Has_allergy (StuID VARCHAR)",
"role": "system"
},
{
"content": "Show all student IDs who have at least two allergies.",
"role": "user"
},
{
"content": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING COUNT(*) >= 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_67 (away_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "Which away team has a Tie no of 14?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_67 WHERE tie_no = \"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 country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)",
"role": "system"
},
{
"content": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.",
"role": "user"
},
{
"content": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 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_27987767_2 (match_points VARCHAR, losers VARCHAR)",
"role": "system"
},
{
"content": "how many match points rotherham lose",
"role": "user"
},
{
"content": "SELECT match_points FROM table_27987767_2 WHERE losers = \"Rotherham\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, game INTEGER)",
"role": "system"
},
{
"content": "Who were the opponents in games before number 54?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_41 WHERE game < 54",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (game INTEGER, december VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "December larger than 21, and a Opponent of Pittsburgh penguins had what average game?",
"role": "user"
},
{
"content": "SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = \"pittsburgh penguins\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What tournament location has south korea as the country?",
"role": "user"
},
{
"content": "SELECT tournament_location FROM table_name_43 WHERE country = \"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_name_55 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score on October 24, 2005?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_55 WHERE date = \"october 24, 2005\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24291077_4 (brisbane INTEGER)",
"role": "system"
},
{
"content": "What is the highest number of Brisbane viewers?",
"role": "user"
},
{
"content": "SELECT MAX(brisbane) FROM table_24291077_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_55 (country VARCHAR, notes VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What country has sa/b as the notes, and a time of 5:51.30?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_55 WHERE notes = \"sa/b\" AND time = \"5:51.30\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (losses INTEGER, draws VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "Name the average losses for draws larger than 6 and played more than 38",
"role": "user"
},
{
"content": "SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, to_par VARCHAR)",
"role": "system"
},
{
"content": "What Player has a To par of –2?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_20 WHERE to_par = \"–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_86 (pct VARCHAR, years VARCHAR)",
"role": "system"
},
{
"content": "What was the winning percent of Notre Dame in 1905?",
"role": "user"
},
{
"content": "SELECT pct FROM table_name_86 WHERE years = \"1905\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (episode INTEGER, segment_d VARCHAR)",
"role": "system"
},
{
"content": "What episode has a manual motorcycle transmissions section D?",
"role": "user"
},
{
"content": "SELECT SUM(episode) FROM table_name_20 WHERE segment_d = \"manual motorcycle transmissions\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (wins INTEGER, losses VARCHAR)",
"role": "system"
},
{
"content": "What is the wins average when 17 games were lost?",
"role": "user"
},
{
"content": "SELECT AVG(wins) FROM table_name_83 WHERE losses = 17",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opened INTEGER, city VARCHAR)",
"role": "system"
},
{
"content": "What is the latest opened year of the team in Glasgow, Scotland?",
"role": "user"
},
{
"content": "SELECT MAX(opened) FROM table_name_34 WHERE city = \"glasgow, 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_81 (game INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "Record of 3-3-1 had what lowest game?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_81 WHERE record = \"3-3-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_10 (active_pixels VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "What are the active pixels of the cantare model?",
"role": "user"
},
{
"content": "SELECT active_pixels FROM table_name_10 WHERE model = \"cantare\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (overall VARCHAR, pick VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "With the pick of 1 Cecil Martin has what number as the overall?",
"role": "user"
},
{
"content": "SELECT COUNT(overall) FROM table_name_38 WHERE pick = 1 AND name = \"cecil martin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (name VARCHAR, moving_to VARCHAR)",
"role": "system"
},
{
"content": "What is the name when moving to atlético minero?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_19 WHERE moving_to = \"atlético minero\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (points VARCHAR, goal_difference VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_76 WHERE goal_difference > 17 AND played > 34",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.