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_15001572_1 (mixed_doubles VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who won the mixed doubles in 1998?",
"role": "user"
},
{
"content": "SELECT mixed_doubles FROM table_15001572_1 WHERE year = 1998",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "When the Venue is mcg what is the Home team?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_47 WHERE venue = \"mcg\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)",
"role": "system"
},
{
"content": "What is the pressure in ultra high vacuum?",
"role": "user"
},
{
"content": "SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = \"Ultra high vacuum\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10420426_1 (poles VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of poles for arden international?",
"role": "user"
},
{
"content": "SELECT COUNT(poles) FROM table_10420426_1 WHERE team = \"Arden 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_49 (bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR)",
"role": "system"
},
{
"content": "Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?",
"role": "user"
},
{
"content": "SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = \"yes\" AND steal_intercept_ball = \"yes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (latitude VARCHAR, year_built VARCHAR)",
"role": "system"
},
{
"content": "What is the Latitude of the monument built in 1901?",
"role": "user"
},
{
"content": "SELECT latitude FROM table_name_83 WHERE year_built = 1901",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_33 WHERE competition = \"1936 summer olympics\" AND score = \"6-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_72 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is 1996 during the US Open?",
"role": "user"
},
{
"content": "SELECT 1996 FROM table_name_72 WHERE tournament = \"us 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_75 (location VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "What is the location of the 200m backstroke?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_75 WHERE event = \"200m backstroke\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (country VARCHAR, margin_of_victory VARCHAR)",
"role": "system"
},
{
"content": "Which Country has a Margin of victory of 2 strokes?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_91 WHERE margin_of_victory = \"2 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_23829490_1 (media_type VARCHAR, genre VARCHAR)",
"role": "system"
},
{
"content": "What is every media type for the World genre?",
"role": "user"
},
{
"content": "SELECT media_type FROM table_23829490_1 WHERE genre = \"World\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE enzyme (Id VARCHAR)",
"role": "system"
},
{
"content": "How many kinds of enzymes are there?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM enzyme",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Championship has a Score of 2–6, 4–6, 4–6?",
"role": "user"
},
{
"content": "SELECT championship FROM table_name_91 WHERE score = \"2–6, 4–6, 4–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_18 (team VARCHAR, run_3 VARCHAR)",
"role": "system"
},
{
"content": "Which team has run 3 of 1:20.77?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_18 WHERE run_3 = \"1:20.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_name_87 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_87 WHERE venue = \"sam nujoma stadium, windhoek, namibia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (week INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What is the week number for the date of September 14, 1980?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_96 WHERE date = \"september 14, 1980\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27277284_8 (v_core VARCHAR, model_number VARCHAR)",
"role": "system"
},
{
"content": "Name the number of v core for model number mobile athlon 64 3000+",
"role": "user"
},
{
"content": "SELECT COUNT(v_core) FROM table_27277284_8 WHERE model_number = \"Mobile Athlon 64 3000+\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (result VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is Result, when Opponent is Cincinnati Bengals?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_32 WHERE opponent = \"cincinnati bengals\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1108394_43 (brooklyn VARCHAR, queens VARCHAR)",
"role": "system"
},
{
"content": "what's the brooklyn with queens value of 16.8%",
"role": "user"
},
{
"content": "SELECT brooklyn FROM table_1108394_43 WHERE queens = \"16.8_percentage\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24898185_4 (equipment VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "When 556 is the amount of points how much equipment is there?",
"role": "user"
},
{
"content": "SELECT COUNT(equipment) FROM table_24898185_4 WHERE points = 556",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (heat VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What's the heat that was timed 2:08.54?",
"role": "user"
},
{
"content": "SELECT COUNT(heat) FROM table_name_64 WHERE time = \"2:08.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_11827596_4 (music_director VARCHAR, co_singer VARCHAR, film_name VARCHAR)",
"role": "system"
},
{
"content": "What was the number of music directors where the suresh wadkar co singer of bhayanak?",
"role": "user"
},
{
"content": "SELECT COUNT(music_director) FROM table_11827596_4 WHERE co_singer = \"Suresh Wadkar\" AND film_name = \"Bhayanak\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "When was the result l 14–24?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_71 WHERE result = \"l 14–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 Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)",
"role": "system"
},
{
"content": "What are the names of reviewers who had rated 3 star and 4 star?",
"role": "user"
},
{
"content": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 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_21 (average VARCHAR, matches VARCHAR, wickets VARCHAR, career VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of average for wickets more than 537, career of 1899/00-1925/26 and matches less than 211",
"role": "user"
},
{
"content": "SELECT COUNT(average) FROM table_name_21 WHERE wickets > 537 AND career = \"1899/00-1925/26\" AND matches < 211",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (points VARCHAR, entrant VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "In 1971, how many total points did the entrant stp march have?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_56 WHERE entrant = \"stp march\" AND year > 1971",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)",
"role": "system"
},
{
"content": "Please list the location and the winning aircraft name.",
"role": "user"
},
{
"content": "SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13812785_8 (high_points VARCHAR, high_rebounds VARCHAR)",
"role": "system"
},
{
"content": "Who had the most high points and rebounds than charles oakley (9)?",
"role": "user"
},
{
"content": "SELECT high_points FROM table_13812785_8 WHERE high_rebounds = \"Charles Oakley (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_14655985_1 (college VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "what's the college with position being placekicker",
"role": "user"
},
{
"content": "SELECT college FROM table_14655985_1 WHERE position = \"Placekicker\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (track VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What's the track for 1978?",
"role": "user"
},
{
"content": "SELECT track FROM table_name_47 WHERE year = 1978",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20823568_2 (third_place_s_ VARCHAR, total_placing_s_ VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of 3rd place entries that have exactly 8 total placings?",
"role": "user"
},
{
"content": "SELECT COUNT(third_place_s_) FROM table_20823568_2 WHERE total_placing_s_ = 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_2135222_2 (traditional VARCHAR, density VARCHAR)",
"role": "system"
},
{
"content": "What is the traditional with density of 820?",
"role": "user"
},
{
"content": "SELECT traditional FROM table_2135222_2 WHERE density = 820",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which home had a record of 2-4?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_73 WHERE record = \"2-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_3 (year INTEGER, surface VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_3 WHERE surface = \"hard\" AND opponent = \"dinara safina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (lost INTEGER, _percentage_pts VARCHAR)",
"role": "system"
},
{
"content": "If the points scored were 93.45%, what's the lowest amount of games lost?",
"role": "user"
},
{
"content": "SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12792876_2 (lost VARCHAR, points_against VARCHAR)",
"role": "system"
},
{
"content": "How many loses corresponded to giving up 714 points?",
"role": "user"
},
{
"content": "SELECT lost FROM table_12792876_2 WHERE points_against = \"714\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (laps INTEGER, bike VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the average lap for suzuki gsx-r1000 k7 and at grid 6?",
"role": "user"
},
{
"content": "SELECT AVG(laps) FROM table_name_39 WHERE bike = \"suzuki gsx-r1000 k7\" AND grid = 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_36 (goals_scored INTEGER, place VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "Name the least goals scored with place more than 8 and lost less than 8",
"role": "user"
},
{
"content": "SELECT MIN(goals_scored) FROM table_name_36 WHERE place > 8 AND lost < 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_49 (laps VARCHAR, qual VARCHAR)",
"role": "system"
},
{
"content": "What was Len Sutton's total number of completed laps when his qualifying time was 142.653?",
"role": "user"
},
{
"content": "SELECT COUNT(laps) FROM table_name_49 WHERE qual = \"142.653\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2208838_4 (played VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many games were played by the player with 927 points?",
"role": "user"
},
{
"content": "SELECT played FROM table_2208838_4 WHERE points = 927",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "what team played on may 20 on the home side",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_50 WHERE date = \"may 20\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (goals_for VARCHAR, wins VARCHAR, goal_difference VARCHAR)",
"role": "system"
},
{
"content": "What is the number of goals with less than 14 wins and a goal difference less than -4?",
"role": "user"
},
{
"content": "SELECT goals_for FROM table_name_97 WHERE wins < 14 AND goal_difference < -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_29 (country VARCHAR, killed VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What coutry had a rampaged killing 14 in 1965?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_29 WHERE killed = \"14\" AND year = 1965",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1965650_3 (pick__number INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "Name the least pick # for doug gibson",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_1965650_3 WHERE player = \"Doug Gibson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, crew VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which year's crew is varsity 8+ when the record is 7-3?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_63 WHERE crew = \"varsity 8+\" AND record = \"7-3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR)",
"role": "system"
},
{
"content": "What drawn has 416 as the points for and 533 as the points against?",
"role": "user"
},
{
"content": "SELECT drawn FROM table_name_49 WHERE points_for = \"416\" AND points_against = \"533\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)",
"role": "system"
},
{
"content": "How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?",
"role": "user"
},
{
"content": "SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = \"1\" AND flt_apps = \"0 (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_60 (year VARCHAR, team VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "How many years have toyota team tom's as the team, with Laps greater than 64?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_60 WHERE team = \"toyota team tom's\" AND laps > 64",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of tier 1 capital for allied irish banks",
"role": "user"
},
{
"content": "SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = \"Allied Irish Banks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (season INTEGER, position VARCHAR)",
"role": "system"
},
{
"content": "What is the most recent year with a finish in 2nd position?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_name_22 WHERE position = \"2nd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "List the 3 highest salaries of the players in 2001?",
"role": "user"
},
{
"content": "SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (result VARCHAR, venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Result has a Venue of kinnarps arena, and a Date of thursday, february 19?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_86 WHERE venue = \"kinnarps arena\" AND date = \"thursday, february 19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE shop (Open_Date VARCHAR, Open_Year VARCHAR, Shop_Name VARCHAR)",
"role": "system"
},
{
"content": "List the open date of open year of the shop named \"Apple\".",
"role": "user"
},
{
"content": "SELECT Open_Date, Open_Year FROM shop WHERE Shop_Name = \"Apple\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_15 WHERE score_in_the_final = \"4–6, 4–6\" AND date = \"october 21, 1990\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR)",
"role": "system"
},
{
"content": "Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.",
"role": "user"
},
{
"content": "SELECT cName FROM College WHERE enr < 13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr > 15000 AND state = \"LA\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1434788_5 (first_elected VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "When was incumbent John Thomas Wilson first elected? ",
"role": "user"
},
{
"content": "SELECT first_elected FROM table_1434788_5 WHERE incumbent = \"John Thomas Wilson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1610301_1 (headquarters VARCHAR, population__2011_ VARCHAR)",
"role": "system"
},
{
"content": "Where is the headquarters of the place whose population in 2011 was 3811738?",
"role": "user"
},
{
"content": "SELECT headquarters FROM table_1610301_1 WHERE population__2011_ = 3811738",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10942714_1 (peak VARCHAR, chinese_title VARCHAR)",
"role": "system"
},
{
"content": "How many are listed under 潮爆大狀",
"role": "user"
},
{
"content": "SELECT COUNT(peak) FROM table_10942714_1 WHERE chinese_title = \"潮爆大狀\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team VARCHAR, driver VARCHAR, engine_† VARCHAR)",
"role": "system"
},
{
"content": "Jean Alesi, drives the Acer 01A engine for which team?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_68 WHERE driver = \"jean alesi\" AND engine_† = \"acer 01a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19681738_1 (hancock__percentage VARCHAR, starky__percentage VARCHAR)",
"role": "system"
},
{
"content": "how many times was hancock % considered when starky % was 20.96%",
"role": "user"
},
{
"content": "SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = \"20.96%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, against VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is date when against is smaller than 6 and location was durban?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_75 WHERE against < 6 AND venue = \"durban\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which December 4, 1976 week has an attendance less than 57,366?",
"role": "user"
},
{
"content": "SELECT MIN(week) FROM table_name_46 WHERE date = \"december 4, 1976\" AND attendance < 57 OFFSET 366",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, score VARCHAR, december VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_16 WHERE december < 14 AND game < 28 AND score = \"6 - 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_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)",
"role": "system"
},
{
"content": "How many items were recorded marseille (32 draw) was a 2 seed?",
"role": "user"
},
{
"content": "SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 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_91 (match_report VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the match report for July 10, 2005?",
"role": "user"
},
{
"content": "SELECT match_report FROM table_name_91 WHERE date = \"july 10, 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_name_24 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the record for august 28",
"role": "user"
},
{
"content": "SELECT record FROM table_name_24 WHERE date = \"august 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_2387790_2 (avg_finish VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What was the average finish the year Bodine finished 3rd?",
"role": "user"
},
{
"content": "SELECT avg_finish FROM table_2387790_2 WHERE position = \"3rd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (lat___lon VARCHAR, us_mission VARCHAR)",
"role": "system"
},
{
"content": "What is the latitude and longitude for Surveyor 3?",
"role": "user"
},
{
"content": "SELECT lat___lon FROM table_name_87 WHERE us_mission = \"surveyor 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_11214772_1 (semi_finalist__number2 VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "what is the total number of semi-finalist #2 where runner-up is east carolina",
"role": "user"
},
{
"content": "SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = \"East Carolina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28846752_5 (innings VARCHAR, bbi VARCHAR)",
"role": "system"
},
{
"content": "how many innings had bbi 4/26?",
"role": "user"
},
{
"content": "SELECT innings FROM table_28846752_5 WHERE bbi = \"4/26\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (value VARCHAR, british_name VARCHAR)",
"role": "system"
},
{
"content": "what is the value when the british name is maxima?",
"role": "user"
},
{
"content": "SELECT value FROM table_name_40 WHERE british_name = \"maxima\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (fatalities VARCHAR, aircraft VARCHAR)",
"role": "system"
},
{
"content": "How many fatalities occurred for the Ju-52 aircraft?",
"role": "user"
},
{
"content": "SELECT fatalities FROM table_name_18 WHERE aircraft = \"ju-52\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "Which IATA is associated with China and an ICAO of ZSPD?",
"role": "user"
},
{
"content": "SELECT iata FROM table_name_59 WHERE country = \"china\" AND icao = \"zspd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13079788_3 (circuit VARCHAR, gtc_winner VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer",
"role": "user"
},
{
"content": "SELECT circuit FROM table_13079788_3 WHERE gtc_winner = \"Graeme Mundy Jamie Smyth\" AND pole_position = \"Bradley Ellis Alex Mortimer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "what is the location attendance when the high assists is by ramon sessions (8) on march 30?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_82 WHERE high_assists = \"ramon sessions (8)\" AND date = \"march 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_14855908_3 (episodes INTEGER, dvd_name VARCHAR)",
"role": "system"
},
{
"content": "How many episodes were released in the season 1 DVD?",
"role": "user"
},
{
"content": "SELECT MIN(episodes) FROM table_14855908_3 WHERE dvd_name = \"Season 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_63 (week VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Week had a Date of december 4, 1960?",
"role": "user"
},
{
"content": "SELECT week FROM table_name_63 WHERE date = \"december 4, 1960\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (russian VARCHAR)",
"role": "system"
},
{
"content": "What is the Russian word for the Greek word greek?",
"role": "user"
},
{
"content": "SELECT russian FROM table_name_70 WHERE \"greek\" = \"greek\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13998897_1 (height_m___ft__ VARCHAR, frequency_mhz VARCHAR)",
"role": "system"
},
{
"content": " how many height m ( ft ) with frequency mhz being 100.1",
"role": "user"
},
{
"content": "SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE frequency_mhz = \"100.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_23285849_10 (score VARCHAR, high_assists VARCHAR)",
"role": "system"
},
{
"content": "When chauncey billups (7) has the highest amount of assists what is the score?",
"role": "user"
},
{
"content": "SELECT score FROM table_23285849_10 WHERE high_assists = \"Chauncey Billups (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_1341707_12 (district VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Phillip Landrum was first elected in 1952 from the ninth district of Georgia.",
"role": "user"
},
{
"content": "SELECT district FROM table_1341707_12 WHERE first_elected = 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 list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"role": "system"
},
{
"content": "Find the number of students taught by TARRING LEIA.",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"TARRING\" AND T2.lastname = \"LEIA\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10707176_2 (report VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "How many reports were the for the cleveland burke lakefront airport circut?",
"role": "user"
},
{
"content": "SELECT COUNT(report) FROM table_10707176_2 WHERE circuit = \"Cleveland Burke Lakefront Airport\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27715173_6 (score VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the score for game 3?",
"role": "user"
},
{
"content": "SELECT score FROM table_27715173_6 WHERE game = 3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (finish VARCHAR, qual VARCHAR, laps VARCHAR, start VARCHAR)",
"role": "system"
},
{
"content": "Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_76 WHERE laps < 197 AND start = \"9\" AND qual = \"152.672\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12834315_5 (muzzle_device VARCHAR, colt_model_no VARCHAR)",
"role": "system"
},
{
"content": "What is the muzzle device on the colt model le1020?",
"role": "user"
},
{
"content": "SELECT muzzle_device FROM table_12834315_5 WHERE colt_model_no = \"LE1020\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (track VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Where was the race on 09-13-2008?",
"role": "user"
},
{
"content": "SELECT track FROM table_name_34 WHERE date = \"09-13-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_43 (attendance INTEGER, home VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the combined crowd in Vancouver on may 22?",
"role": "user"
},
{
"content": "SELECT SUM(attendance) FROM table_name_43 WHERE home = \"vancouver\" AND date = \"may 22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR)",
"role": "system"
},
{
"content": "Which party belongs to district 41, and is delegated by Jill P. Carter?",
"role": "user"
},
{
"content": "SELECT party FROM table_name_61 WHERE district = 41 AND delegate = \"jill p. carter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (entrant VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = \"ferrari v8\" AND points < 23",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What home team played the away team South Melbourne?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_56 WHERE away_team = \"south melbourne\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (ergative VARCHAR, nominative VARCHAR)",
"role": "system"
},
{
"content": "With a nominative of chven-i what is the ergative?",
"role": "user"
},
{
"content": "SELECT ergative FROM table_name_56 WHERE nominative = \"chven-i\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position INTEGER, losses VARCHAR, goals_against VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "What is the average position of club burgos cf, which has more than 42 goals against and more than 14 losses?",
"role": "user"
},
{
"content": "SELECT AVG(position) FROM table_name_60 WHERE goals_against > 42 AND club = \"burgos cf\" AND losses > 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_52 (race INTEGER, location___state VARCHAR)",
"role": "system"
},
{
"content": "What was the first race in Launceston, Tasmania?",
"role": "user"
},
{
"content": "SELECT MIN(race) FROM table_name_52 WHERE location___state = \"launceston, tasmania\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19526911_1 (previous_season_2007_2008 VARCHAR, website VARCHAR)",
"role": "system"
},
{
"content": "What are the previous season ranks of teams whose website is www.novavolley.narod.ru?",
"role": "user"
},
{
"content": "SELECT previous_season_2007_2008 FROM table_19526911_1 WHERE website = \"www.novavolley.narod.ru\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (round INTEGER, nationality VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which Round has a Nationality of united states, and a Player of jimmy hayes?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_name_34 WHERE nationality = \"united states\" AND player = \"jimmy hayes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (brazil_scorers VARCHAR, competition VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who were the Brazil scorers for the World Cup Competition with a 1-2 score?",
"role": "user"
},
{
"content": "SELECT brazil_scorers FROM table_name_18 WHERE competition = \"world cup\" AND score = \"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_name_24 (total INTEGER, to_par VARCHAR)",
"role": "system"
},
{
"content": "What is the Total of the Player with a To par of –13?",
"role": "user"
},
{
"content": "SELECT SUM(total) FROM table_name_24 WHERE to_par = \"–13\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "Name the grand prix for casey stoner and circuit of losail",
"role": "user"
},
{
"content": "SELECT grand_prix FROM table_name_55 WHERE motogp_winner = \"casey stoner\" AND circuit = \"losail\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the id, name of each festival and the number of artworks it has nominated.",
"role": "user"
},
{
"content": "SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.