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_23259077_1 (championship VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "In which championship did John Newcombe play against Ken Rosewall in the final match?",
"role": "user"
},
{
"content": "SELECT championship FROM table_23259077_1 WHERE opponent_in_the_final = \"Ken Rosewall\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (points_for VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)",
"role": "system"
},
{
"content": "How many points did the club with a losing bonus of 2 and 300 points against have?",
"role": "user"
},
{
"content": "SELECT points_for FROM table_name_44 WHERE losing_bonus = \"2\" AND points_against = \"300\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30120566_1 (area__acres__ VARCHAR, townland VARCHAR)",
"role": "system"
},
{
"content": "How many different sizes (in acres) are noted for Rathcoola East?",
"role": "user"
},
{
"content": "SELECT COUNT(area__acres__) FROM table_30120566_1 WHERE townland = \"Rathcoola East\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (outcome VARCHAR, venue VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the Outcome of the Danish Open in 1985?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_21 WHERE venue = \"danish open\" AND year = \"1985\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, avgatt VARCHAR)",
"role": "system"
},
{
"content": "Wha is the rank for 52 574 avg. att?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_49 WHERE avgatt = \"52 574\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance on September 11, 1988?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_21 WHERE date = \"september 11, 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 cinema (Id VARCHAR)",
"role": "system"
},
{
"content": "How many cinema do we have?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM cinema",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21756039_1 (regular_season_results VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the regular season results for the year 2011-2012?",
"role": "user"
},
{
"content": "SELECT regular_season_results FROM table_21756039_1 WHERE year = \"2011-2012\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE perpetrator (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)",
"role": "system"
},
{
"content": "What are the names of perpetrators?",
"role": "user"
},
{
"content": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (crowd INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "How large was the crowd when they played at princes park?",
"role": "user"
},
{
"content": "SELECT SUM(crowd) FROM table_name_56 WHERE venue = \"princes park\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What high school team did Doug Nolan play for?",
"role": "user"
},
{
"content": "SELECT college_junior_club_team FROM table_1013129_11 WHERE player = \"Doug Nolan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19451173_1 (division_titles VARCHAR, win_pct VARCHAR)",
"role": "system"
},
{
"content": "How many division titles are there when the win pc is .558?",
"role": "user"
},
{
"content": "SELECT division_titles FROM table_19451173_1 WHERE win_pct = \".558\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 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_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_18 WHERE score > 67 AND country = \"united states\" AND to_par = \"e\" AND player = \"bunky henry\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, game VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Who is the opponent of the game with a game number less than 5 with a 2-0-0 record?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_51 WHERE game < 5 AND record = \"2-0-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_51 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Country is \"United States\", when Place is \"T10\", and when Score is \"68-71=139\"?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_51 WHERE country = \"united states\" AND place = \"t10\" AND score = 68 - 71 = 139",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29521180_35 (round_of_16 VARCHAR, athlete VARCHAR)",
"role": "system"
},
{
"content": "What was the round of 16 result for felipe saucedo?",
"role": "user"
},
{
"content": "SELECT round_of_16 FROM table_29521180_35 WHERE athlete = \"Felipe Saucedo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (year INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "Name the highest Year which has a Venue of narbonne , france?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_95 WHERE venue = \"narbonne , france\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location VARCHAR, odds VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Where was the match located when the odds were p + 1 and the score was 1/3?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_98 WHERE odds = \"p + 1\" AND score = \"1/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_56 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Where did North Melbourne play as the away team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_56 WHERE away_team = \"north 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_18 (team VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Which team has a Game of 49?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_18 WHERE game = 49",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (player VARCHAR, to_par INTEGER)",
"role": "system"
},
{
"content": "What is Player, when To Par is less than 14?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_28 WHERE to_par < 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_11044765_1 (location VARCHAR, mascot VARCHAR)",
"role": "system"
},
{
"content": "What city and state is the Lancers mascot located?",
"role": "user"
},
{
"content": "SELECT location FROM table_11044765_1 WHERE mascot = \"Lancers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE View_Unit_Status (apt_id VARCHAR, available_yn VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)",
"role": "system"
},
{
"content": "Show the apartment numbers of apartments with unit status availability of both 0 and 1.",
"role": "user"
},
{
"content": "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)",
"role": "system"
},
{
"content": "What's the diameter when longitude is 105.0e before 2003?",
"role": "user"
},
{
"content": "SELECT SUM(diameter__km_) FROM table_name_42 WHERE longitude = \"105.0e\" AND year_named < 2003",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Which result has a Venue of ulsan?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_27 WHERE venue = \"ulsan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Record of 11–10–2?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_92 WHERE record = \"11–10–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_11677691_7 (player VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "Which player is from Joliet Catholic HIgh School?",
"role": "user"
},
{
"content": "SELECT player FROM table_11677691_7 WHERE school = \"Joliet Catholic High school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (state VARCHAR, current_governor VARCHAR)",
"role": "system"
},
{
"content": "What state is susana martinez from?",
"role": "user"
},
{
"content": "SELECT state FROM table_name_72 WHERE current_governor = \"susana martinez\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year_left INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What's the highest Year Left for the School of Danville?",
"role": "user"
},
{
"content": "SELECT MAX(year_left) FROM table_name_81 WHERE school = \"danville\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Find the number of routes from the United States to Canada.",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (attendance INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance for the game that went 2:42?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_89 WHERE time = \"2:42\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (loss VARCHAR, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which loss has an Opponent of @ angels, and a Date of august 1?",
"role": "user"
},
{
"content": "SELECT loss FROM table_name_47 WHERE opponent = \"@ angels\" AND date = \"august 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_52 (record VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who won when the attendance was 8,000?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_52 WHERE attendance = \"8,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country is Nick Price from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_35 WHERE player = \"nick price\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (pick INTEGER, round VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the highest pick of scott turner, who has a round greater than 2?",
"role": "user"
},
{
"content": "SELECT MAX(pick) FROM table_name_37 WHERE round > 2 AND name = \"scott turner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Opponent has a Date of march 16?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_42 WHERE date = \"march 16\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (average INTEGER, goalkeeper VARCHAR, matches VARCHAR)",
"role": "system"
},
{
"content": "What is the average of the team who has Jacobo as a goalkeeper and has played more than 32 matches?",
"role": "user"
},
{
"content": "SELECT AVG(average) FROM table_name_14 WHERE goalkeeper = \"jacobo\" AND matches > 32",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23647668_2 (third_place VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Who was in third place in the 1980 season?",
"role": "user"
},
{
"content": "SELECT third_place FROM table_23647668_2 WHERE season = 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_name_24 (country VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Country, when Place is \"T3\", and when Score is \"67-70=137\"?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_24 WHERE place = \"t3\" AND score = 67 - 70 = 137",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (level VARCHAR, leading_scorer_1 VARCHAR)",
"role": "system"
},
{
"content": "Which Level has a Leading scorer 1 of tom greaves 8?",
"role": "user"
},
{
"content": "SELECT level FROM table_name_26 WHERE leading_scorer_1 = \"tom greaves 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_6 (first_match VARCHAR, final_position VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners?",
"role": "user"
},
{
"content": "SELECT first_match FROM table_name_6 WHERE final_position = \"winners\" AND competition = \"fifa club world cup\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)",
"role": "system"
},
{
"content": "Name the team #2 for river plate",
"role": "user"
},
{
"content": "SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = \"River Plate\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR, top_5 VARCHAR)",
"role": "system"
},
{
"content": "Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11",
"role": "user"
},
{
"content": "SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 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_33 (date VARCHAR, set_4 VARCHAR)",
"role": "system"
},
{
"content": "What date has a set 4 of 25-19?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_33 WHERE set_4 = \"25-19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (rec INTEGER, opponent VARCHAR, average VARCHAR, s_touchdown VARCHAR)",
"role": "system"
},
{
"content": "Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?",
"role": "user"
},
{
"content": "SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = \"oregon 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_33 (home VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "on january 7 what is home?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_33 WHERE date = \"january 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_49 (result VARCHAR, game_site VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "When they were playing the detroit lions at tampa stadium, what was the score?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_49 WHERE game_site = \"tampa stadium\" AND opponent = \"detroit lions\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11111116_6 (no_in_series INTEGER, us_viewers__million_ VARCHAR)",
"role": "system"
},
{
"content": "Which episode in the series drew 3.6 million U.S. viewers? ",
"role": "user"
},
{
"content": "SELECT MIN(no_in_series) FROM table_11111116_6 WHERE us_viewers__million_ = \"3.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_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR)",
"role": "system"
},
{
"content": "Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?",
"role": "user"
},
{
"content": "SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = \"november 1881\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Score of 119-115 (ot) involved what location?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_16 WHERE score = \"119-115 (ot)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24910737_1 (title VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "What is the episode title that had a US viewership of 8.16?",
"role": "user"
},
{
"content": "SELECT title FROM table_24910737_1 WHERE us_viewers__millions_ = \"8.16\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (laps INTEGER, year VARCHAR)",
"role": "system"
},
{
"content": "What was the sum of laps in 1954?",
"role": "user"
},
{
"content": "SELECT SUM(laps) FROM table_name_79 WHERE year = \"1954\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?",
"role": "user"
},
{
"content": "SELECT pole_position FROM table_name_30 WHERE fastest_lap = \"rubens barrichello\" AND round > 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR)",
"role": "system"
},
{
"content": "How many losses did the team with 0 wins and more than 72 runs allowed have?",
"role": "user"
},
{
"content": "SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the value in 2009 corresponding to Career Statistics in 2003?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_96 WHERE 2003 = \"career statistics\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What team was Temple playing on January 19?",
"role": "user"
},
{
"content": "SELECT team FROM table_29556461_7 WHERE date = \"January 19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29126507_1 (ground VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "When Richmond played as the away team, what was the ground?",
"role": "user"
},
{
"content": "SELECT ground FROM table_29126507_1 WHERE away_team = \"Richmond\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?",
"role": "user"
},
{
"content": "SELECT current_club FROM table_name_28 WHERE first_team_appearances = \"ongoing\" AND position = \"midfielder\" AND player = \"samir carruthers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "Who directed the episode with the production code 209?",
"role": "user"
},
{
"content": "SELECT directed_by FROM table_16384596_4 WHERE production_code = 209",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team__number2 VARCHAR, team__number1 VARCHAR)",
"role": "system"
},
{
"content": "with team #1 as lukoil academic what is team #2?",
"role": "user"
},
{
"content": "SELECT team__number2 FROM table_name_67 WHERE team__number1 = \"lukoil academic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28601467_1 (host_nation_s_ VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which nation hosted the competition in 2004?",
"role": "user"
},
{
"content": "SELECT host_nation_s_ FROM table_28601467_1 WHERE year = 2004",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What rank has Bill Ponsford (vic) as the player?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_82 WHERE player = \"bill ponsford (vic)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (average_score INTEGER, number VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest average for number 2?",
"role": "user"
},
{
"content": "SELECT MIN(average_score) FROM table_name_12 WHERE number = 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_24126518_2 (record VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "Name the number of record for week 11",
"role": "user"
},
{
"content": "SELECT COUNT(record) FROM table_24126518_2 WHERE week = 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (place VARCHAR, to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_26 WHERE to_par < 15 AND score = 74 - 74 - 74 - 75 = 297",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (mlb_draft VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the MLB Draft status of the person who attended Seton Hall Preparatory School?",
"role": "user"
},
{
"content": "SELECT mlb_draft FROM table_name_80 WHERE school = \"seton hall preparatory school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10610087_3 (original_air_date VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "what is the original air date of the episode no in season 9?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_10610087_3 WHERE no_in_season = 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_1876262_10 (other_mozilla VARCHAR, firefox VARCHAR)",
"role": "system"
},
{
"content": "If Firefox is 30.45%, what is the other Mozilla amount?",
"role": "user"
},
{
"content": "SELECT other_mozilla FROM table_1876262_10 WHERE firefox = \"30.45%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR)",
"role": "system"
},
{
"content": "Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?",
"role": "user"
},
{
"content": "SELECT nir_number FROM table_name_87 WHERE type = \"tso (ex-br class 488 unit 488305)\" AND br_number_s_ = \"6082 / 72605\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, total VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 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_90 (laps INTEGER, pos VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "How many laps did the 6th placed in 1998 complete?",
"role": "user"
},
{
"content": "SELECT SUM(laps) FROM table_name_90 WHERE pos = \"6th\" AND 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_58 (rank VARCHAR, matches VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_58 WHERE matches = \"427\" AND goals < 320",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What's the score on December 12, 1998?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_11 WHERE date = \"december 12, 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_51 (ngc_number INTEGER, declination___j2000__ VARCHAR)",
"role": "system"
},
{
"content": "what is the highest ngc number when the declination (j2000) is °25′26″?",
"role": "user"
},
{
"content": "SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = \"°25′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_17288869_6 (date VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the date of game 21?",
"role": "user"
},
{
"content": "SELECT date FROM table_17288869_6 WHERE game = 21",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (date_s__conducted VARCHAR, plaid_cymru VARCHAR)",
"role": "system"
},
{
"content": "Tell me the dates conducted for plaid cymru of 19%",
"role": "user"
},
{
"content": "SELECT date_s__conducted FROM table_name_69 WHERE plaid_cymru = \"19%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (finish VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "In 1937, what was the finish?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_37 WHERE year = \"1937\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, weight__kg_ VARCHAR)",
"role": "system"
},
{
"content": "What is the sum total of all the years with a bell that weighed 857 kilograms?",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = \"857\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_72 WHERE year < 2009 AND event = \"3000 m\" AND competition = \"world youth championships\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)",
"role": "system"
},
{
"content": "Which Share of seats has a European election (UK) of 2009?",
"role": "user"
},
{
"content": "SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 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_15 (rarotongan VARCHAR, tahitian VARCHAR)",
"role": "system"
},
{
"content": "What kind of Rarotongan has a Tahitian of /metua/?",
"role": "user"
},
{
"content": "SELECT rarotongan FROM table_name_15 WHERE tahitian = \"/metua/\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team_1 VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Name the team 1 for round 3",
"role": "user"
},
{
"content": "SELECT team_1 FROM table_name_64 WHERE round = \"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_26996293_1 (college VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What college did the player who played DE go to?",
"role": "user"
},
{
"content": "SELECT college FROM table_26996293_1 WHERE position = \"DE\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22883210_5 (high_points VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Who had highest points in game 5?",
"role": "user"
},
{
"content": "SELECT high_points FROM table_22883210_5 WHERE game = 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_10 (nba_draft VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the NBA Draft for the School Bishop O'Connell High School?",
"role": "user"
},
{
"content": "SELECT nba_draft FROM table_name_10 WHERE school = \"bishop o'connell high school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR)",
"role": "system"
},
{
"content": "What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony?",
"role": "user"
},
{
"content": "SELECT interregnum_ended FROM table_name_37 WHERE count_palatine_of_saxony = \"frederick augustus i, elector of saxony\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = \"6\" AND bronze > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342249_35 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What is the first electedfor district ohio 18",
"role": "user"
},
{
"content": "SELECT first_elected FROM table_1342249_35 WHERE district = \"Ohio 18\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (matches INTEGER, team VARCHAR, strike_rate VARCHAR)",
"role": "system"
},
{
"content": "What were the total number of matches played when the Deccan Chargers had a strike rate of 15.5?",
"role": "user"
},
{
"content": "SELECT MAX(matches) FROM table_name_50 WHERE team = \"deccan chargers\" AND strike_rate > 15.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 mission (Ship_ID VARCHAR, Launched_Year INTEGER); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)",
"role": "system"
},
{
"content": "Show names of ships involved in a mission launched after 1928.",
"role": "user"
},
{
"content": "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)",
"role": "system"
},
{
"content": "What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian?",
"role": "user"
},
{
"content": "SELECT television_service FROM table_name_54 WHERE package_option = \"sky famiglia\" AND language = \"italian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location VARCHAR, loser VARCHAR)",
"role": "system"
},
{
"content": "What is the location where aaron grundy was the loser?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_27 WHERE loser = \"aaron grundy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR)",
"role": "system"
},
{
"content": "when deland is the fcsl team and 2008 is the year played who is the mlb team?",
"role": "user"
},
{
"content": "SELECT mlb_team FROM table_18373863_2 WHERE years_played = \"2008\" AND fcsl_team = \"DeLand\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE teacher (Hometown VARCHAR)",
"role": "system"
},
{
"content": "Show different hometown of teachers and the number of teachers from each hometown.",
"role": "user"
},
{
"content": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (race_name VARCHAR, city_state VARCHAR)",
"role": "system"
},
{
"content": "Which race was in Sydney, New South Wales?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_name_37 WHERE city_state = \"sydney, new south wales\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (icao VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Which ICAO's city is Manchester?",
"role": "user"
},
{
"content": "SELECT icao FROM table_name_96 WHERE city = \"manchester\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)?",
"role": "user"
},
{
"content": "SELECT gold FROM table_name_2 WHERE event = \"time trial details\" AND silver = \"simon richardson great britain (gbr)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (winner VARCHAR, fourth VARCHAR)",
"role": "system"
},
{
"content": "Who was the Winner when Selby Riddle came in Fourth?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_26 WHERE fourth = \"selby riddle\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (title VARCHAR, label VARCHAR)",
"role": "system"
},
{
"content": "What title has a Label of warp records / paper bag records?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_39 WHERE label = \"warp records / paper bag records\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.