messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (year VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which year had J.R. Reid as a player?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_62 WHERE player = \"j.r. reid\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "The episode with the production code E0208 is directed by who?",
"role": "user"
},
{
"content": "SELECT directed_by FROM table_2618152_1 WHERE production_code = \"E0208\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, player VARCHAR, sets VARCHAR)",
"role": "system"
},
{
"content": "what's the earliest year that serena williams had more than 2 sets?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_47 WHERE player = \"serena williams\" AND sets > 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_25034983_2 (stereo VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Does the city of moline have stereo?",
"role": "user"
},
{
"content": "SELECT stereo FROM table_25034983_2 WHERE city = \"Moline\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11545282_5 (nationality VARCHAR, years_for_jazz VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the player who played during the years 1989-92; 1994-95?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_11545282_5 WHERE years_for_jazz = \"1989-92; 1994-95\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent when the Phillies played on April 28?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_77 WHERE date = \"april 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 customers (phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE complaints (customer_id VARCHAR, date_complaint_raised VARCHAR)",
"role": "system"
},
{
"content": "What is the phone number of the customer who has filed the most recent complaint?",
"role": "user"
},
{
"content": "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (bb_pop VARCHAR, riaa VARCHAR, cb_cw VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976?",
"role": "user"
},
{
"content": "SELECT bb_pop FROM table_name_93 WHERE cb_cw = \"1\" AND year > 1976 AND riaa = \"p\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (position VARCHAR, level VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What Position has a Level of tier 4 with a Season smaller than 2003?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_85 WHERE level = \"tier 4\" AND season < 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_81 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the score for the team with a record of 2-1?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_81 WHERE record = \"2-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_35 (result VARCHAR, venue VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Which result has a Venue of away, and an Opponent of marbella?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_35 WHERE venue = \"away\" AND opponent = \"marbella\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, competition VARCHAR, goal VARCHAR)",
"role": "system"
},
{
"content": "Name the result for uncaf nations cup 2009 and 6 goal",
"role": "user"
},
{
"content": "SELECT result FROM table_name_3 WHERE competition = \"uncaf nations cup 2009\" AND goal = 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_2150068_1 (launch_date__utc_ VARCHAR, diameter_m_ VARCHAR, usage VARCHAR, mass_kg_ VARCHAR)",
"role": "system"
},
{
"content": "What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?",
"role": "user"
},
{
"content": "SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = \"ado\" AND mass_kg_ = \"4\" AND diameter_m_ = \"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_85 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the date of the game at MCG?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_85 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_27690037_2 (kickoff VARCHAR, game_site VARCHAR)",
"role": "system"
},
{
"content": "Name the kickoff for rheinstadion",
"role": "user"
},
{
"content": "SELECT kickoff FROM table_27690037_2 WHERE game_site = \"Rheinstadion\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)",
"role": "system"
},
{
"content": "Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1",
"role": "user"
},
{
"content": "SELECT call_sign FROM table_name_83 WHERE frequency_mhz > 90.1 AND erp_w = 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_79 (year INTEGER, winner VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest year for TCU?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_79 WHERE winner = \"tcu\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, competition VARCHAR, lineup VARCHAR, assist_pass VARCHAR)",
"role": "system"
},
{
"content": "Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_63 WHERE lineup = \"start\" AND assist_pass = \"carli lloyd\" AND competition = \"2011 fifa women’s world cup – group stage\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (played VARCHAR, try_bonus VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "Name the played with try bonus of 6 and drawn of 0",
"role": "user"
},
{
"content": "SELECT played FROM table_name_76 WHERE try_bonus = \"6\" AND drawn = \"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_56 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Which home team competed against the away team of Melbourne?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_56 WHERE away_team = \"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_24565004_11 (period VARCHAR, appearances¹ VARCHAR)",
"role": "system"
},
{
"content": "What time period had appearances of 219?",
"role": "user"
},
{
"content": "SELECT period FROM table_24565004_11 WHERE appearances¹ = 219",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rounds INTEGER, truck_s_ VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?",
"role": "user"
},
{
"content": "SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = \"chevrolet silverado\" AND team = \"rbr enterprises\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR)",
"role": "system"
},
{
"content": "Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?",
"role": "user"
},
{
"content": "SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, date VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest attendance for December 14, 1958 after week 12?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_76 WHERE date = \"december 14, 1958\" AND week > 12",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (venue VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What venue was round 20 held at?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_11 WHERE round = 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_31 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)",
"role": "system"
},
{
"content": "What is Quantity made, when Wheel Arrangement is \"2-6-0\", and when Class is \"D-3\"?",
"role": "user"
},
{
"content": "SELECT quantity_made FROM table_name_31 WHERE wheel_arrangement = \"2-6-0\" AND class = \"d-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_3 (date VARCHAR, catalog VARCHAR, region VARCHAR)",
"role": "system"
},
{
"content": "What's the date in the United Kingdom having a catalog of reveal50cd/lp?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_3 WHERE catalog = \"reveal50cd/lp\" AND region = \"united kingdom\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, week VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "On what date did the Bills play the Houston Oilers before week 12?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_79 WHERE week < 12 AND opponent = \"houston oilers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11960610_7 (team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What team were the Bulls hosted by on December 7?",
"role": "user"
},
{
"content": "SELECT team FROM table_11960610_7 WHERE date = \"December 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_20396710_1 (club VARCHAR)",
"role": "system"
},
{
"content": "which club is listed when bonus points is bonus points",
"role": "user"
},
{
"content": "SELECT club FROM table_20396710_1 WHERE \"bonus_points\" = \"bonus_points\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the total of the ranks that did not participate?",
"role": "user"
},
{
"content": "SELECT total FROM table_name_88 WHERE rank = \"did not participate\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (time VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is time of manufacturer with grid 21?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_56 WHERE grid = 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_12 (match_report VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the match report for the game that was against Houston?",
"role": "user"
},
{
"content": "SELECT match_report FROM table_name_12 WHERE opponent = \"houston\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (returning VARCHAR, last_aired VARCHAR)",
"role": "system"
},
{
"content": "When did a show last aired in 2002 return?",
"role": "user"
},
{
"content": "SELECT returning FROM table_name_13 WHERE last_aired = 2002",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (winner VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What is the Winner of the Event in Nuevo Vallarta?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_63 WHERE city = \"nuevo vallarta\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (debut VARCHAR, position VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What round was the debut of defender Stephen Laybutt?",
"role": "user"
},
{
"content": "SELECT debut FROM table_name_11 WHERE position = \"defender\" AND name = \"stephen laybutt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11690135_1 (country VARCHAR, swimsuit VARCHAR)",
"role": "system"
},
{
"content": "Who had a swimsuit score of 9.87?",
"role": "user"
},
{
"content": "SELECT COUNT(country) FROM table_11690135_1 WHERE swimsuit = \"9.87\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, role VARCHAR, theatre VARCHAR)",
"role": "system"
},
{
"content": "Tell me the total number of years for lady cecily waynflete and opera house, kennedy center",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_51 WHERE role = \"lady cecily waynflete\" AND theatre = \"opera house, kennedy center\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (wins VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many wins does the driver with 217 points have?",
"role": "user"
},
{
"content": "SELECT wins FROM table_name_44 WHERE points = 217",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick INTEGER, college VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Pick, when College is \"Syracuse\", and when Overall is less than 18?",
"role": "user"
},
{
"content": "SELECT MAX(pick) FROM table_name_40 WHERE college = \"syracuse\" AND overall < 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR)",
"role": "system"
},
{
"content": "What winner has the sanremo to cuneo as the course?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_51 WHERE course = \"sanremo to cuneo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR, battle VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_55 WHERE result = \"bulgarian victory\" AND battle = \"battle of arcadiopolis\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (march INTEGER, score VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of March, when Score is \"2 - 2\", and when Game is greater than 67?",
"role": "user"
},
{
"content": "SELECT SUM(march) FROM table_name_56 WHERE score = \"2 - 2\" AND game > 67",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (nationality VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the center?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_72 WHERE position = \"center\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (matches VARCHAR, tally VARCHAR)",
"role": "system"
},
{
"content": "Which Matches have a Tally of 1-38?",
"role": "user"
},
{
"content": "SELECT matches FROM table_name_7 WHERE tally = \"1-38\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (code INTEGER, density__inh_km²_ VARCHAR, land_area__hectares_ VARCHAR)",
"role": "system"
},
{
"content": "How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?",
"role": "user"
},
{
"content": "SELECT SUM(code) FROM table_name_24 WHERE density__inh_km²_ = 621.68 AND land_area__hectares_ > 75.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_name_64 (kickoff_time VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was the kickoff time for week 11's game?",
"role": "user"
},
{
"content": "SELECT kickoff_time FROM table_name_64 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_46 (college VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "Which College has an Overall of 308?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_46 WHERE overall = 308",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (played INTEGER, percentage VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "How many games were played by a team that won 0.00% of their games and 0 draws?",
"role": "user"
},
{
"content": "SELECT SUM(played) FROM table_name_55 WHERE percentage = \"0.00%\" AND drawn < 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_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR)",
"role": "system"
},
{
"content": "What are the rank timeslots where ratings are 4.1?",
"role": "user"
},
{
"content": "SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = \"4.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_58 (apps INTEGER, goals INTEGER)",
"role": "system"
},
{
"content": "What is the highest Apps, when Goals are greater than 5?",
"role": "user"
},
{
"content": "SELECT MAX(apps) FROM table_name_58 WHERE goals > 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_90 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the competition on November 10?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_90 WHERE date = \"november 10\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the venue for 15 august 2006",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_89 WHERE date = \"15 august 2006\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?",
"role": "user"
},
{
"content": "SELECT MAX(laps) FROM table_name_3 WHERE grid < 4 AND time_retired = \"+ 1 lap\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (scored VARCHAR, position INTEGER)",
"role": "system"
},
{
"content": "Name the Scored which has a Position larger than 6?",
"role": "user"
},
{
"content": "SELECT COUNT(scored) FROM table_name_28 WHERE position > 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_67 (category VARCHAR, character VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "In what category was character Jacqui Mcqueen nominated before 2011?",
"role": "user"
},
{
"content": "SELECT category FROM table_name_67 WHERE character = \"jacqui mcqueen\" AND year < 2011",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (points VARCHAR, performer VARCHAR)",
"role": "system"
},
{
"content": "How many points did Nigel Connell have?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_44 WHERE performer = \"nigel connell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (developer VARCHAR, year_of_release VARCHAR)",
"role": "system"
},
{
"content": "Which developer has a year of cancelled releases?",
"role": "user"
},
{
"content": "SELECT developer FROM table_name_96 WHERE year_of_release = \"cancelled\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, competition VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score for the South American Championship dated December 13, 1925?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_40 WHERE competition = \"south american championship\" AND date = \"december 13, 1925\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)",
"role": "system"
},
{
"content": "Can one access the Faroe Islands using a Croatian identity card?",
"role": "user"
},
{
"content": "SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = \"Faroe Islands\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14876228_1 (draws INTEGER, wins VARCHAR)",
"role": "system"
},
{
"content": "Name the most draws when wins is 3",
"role": "user"
},
{
"content": "SELECT MAX(draws) FROM table_14876228_1 WHERE wins = 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_45 (draws VARCHAR, goal_difference VARCHAR, goals_for VARCHAR, losses VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21",
"role": "user"
},
{
"content": "SELECT COUNT(draws) FROM table_name_45 WHERE goals_for = 58 AND losses = 12 AND goal_difference < 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_17 (partnerships VARCHAR, versus VARCHAR, runs VARCHAR)",
"role": "system"
},
{
"content": "What is the partnership in the game with 166* runs and an opponent of Namibia?",
"role": "user"
},
{
"content": "SELECT partnerships FROM table_name_17 WHERE versus = \"namibia\" AND runs = \"166*\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?",
"role": "user"
},
{
"content": "SELECT winning_driver FROM table_name_40 WHERE winning_constructor = \"bugatti\" AND name = \"boulogne grand prix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23927423_4 (relegated_to_league VARCHAR, relegated_from_league VARCHAR)",
"role": "system"
},
{
"content": "Who was relegated to league if Barking Birmingham & Solihull Stourbridge were relegated from league?",
"role": "user"
},
{
"content": "SELECT relegated_to_league FROM table_23927423_4 WHERE relegated_from_league = \"Barking Birmingham & Solihull Stourbridge\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (distance VARCHAR, stages VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "How long was the 16 staged event in 1997?",
"role": "user"
},
{
"content": "SELECT distance FROM table_name_38 WHERE stages = \"16\" AND year = \"1997\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (third_place VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "Name the third place for anders järryd",
"role": "user"
},
{
"content": "SELECT third_place FROM table_name_75 WHERE runner_up = \"anders järryd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (weight VARCHAR, shape VARCHAR, size VARCHAR)",
"role": "system"
},
{
"content": "What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)?",
"role": "user"
},
{
"content": "SELECT weight FROM table_name_92 WHERE shape = \"scalloped\" AND size = \"20mm (across scallops)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent in which the bout ended in round 2?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_71 WHERE round = 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the time when his opponent was Cleber Luciano?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_68 WHERE opponent = \"cleber luciano\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE poker_player (People_ID VARCHAR, Final_Table_Made VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)",
"role": "system"
},
{
"content": "List the names of poker players ordered by the final tables made in ascending order.",
"role": "user"
},
{
"content": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR)",
"role": "system"
},
{
"content": "when the area (km²) is 22721, what is the pop./ km²?",
"role": "user"
},
{
"content": "SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, award VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "What year was there a Tony award category of Best Revival of a Musical?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_72 WHERE award = \"tony award\" AND category = \"best revival of a musical\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (floors VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How many floors does the Custom House Tower have?",
"role": "user"
},
{
"content": "SELECT COUNT(floors) FROM table_name_95 WHERE name = \"custom house tower\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?",
"role": "user"
},
{
"content": "SELECT runners_up FROM table_name_48 WHERE winners = \"cork city f.c.\" AND date = \"10/05/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_67 (known_for VARCHAR, entered VARCHAR, celebrity VARCHAR)",
"role": "system"
},
{
"content": "What was Freddie Starr, who entered on Day 1, known for?",
"role": "user"
},
{
"content": "SELECT known_for FROM table_name_67 WHERE entered = \"day 1\" AND celebrity = \"freddie starr\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (height_in_ft VARCHAR, no_s_ VARCHAR)",
"role": "system"
},
{
"content": "What is the height in feet of number 10?",
"role": "user"
},
{
"content": "SELECT height_in_ft FROM table_name_77 WHERE no_s_ = \"10\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Transcripts (transcript_date VARCHAR)",
"role": "system"
},
{
"content": "What is the last transcript release date?",
"role": "user"
},
{
"content": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (nationality VARCHAR, round VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_10 WHERE round < 5 AND player = \"bruce affleck\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE weather (zip_code VARCHAR, mean_visibility_miles INTEGER)",
"role": "system"
},
{
"content": "Find the zip code in which the average mean visibility is lower than 10.",
"role": "user"
},
{
"content": "SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_visibility_miles) < 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24108789_6 (points VARCHAR, reset_points VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of points for 800 reset",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_24108789_6 WHERE reset_points = 800",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (hh_principal VARCHAR, superintendent VARCHAR, maplemere_principal VARCHAR)",
"role": "system"
},
{
"content": "Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?",
"role": "user"
},
{
"content": "SELECT hh_principal FROM table_name_16 WHERE superintendent = \"james finch\" AND maplemere_principal = \"charlie taylor\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26611679_3 (average VARCHAR, games_played VARCHAR)",
"role": "system"
},
{
"content": "Name the average for 23 games played",
"role": "user"
},
{
"content": "SELECT average FROM table_26611679_3 WHERE games_played = 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_290017_1 (code VARCHAR, subdivision_name___ru____bgn_pcgn_ VARCHAR)",
"role": "system"
},
{
"content": "What cods have a subdivision name (RU) of Grodnenskaya Oblast'?",
"role": "user"
},
{
"content": "SELECT code FROM table_290017_1 WHERE subdivision_name___ru____bgn_pcgn_ = \"Grodnenskaya oblast'\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2233872_1 (COUNt VARCHAR, gp VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "How many season did the team lost in round 1 with a GP of 64?",
"role": "user"
},
{
"content": "SELECT COUNt AS season FROM table_2233872_1 WHERE gp = 64 AND result = \"lost in round 1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (relation VARCHAR, type VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Relation has a Type of tv, and a Name of ohanami?",
"role": "user"
},
{
"content": "SELECT relation FROM table_name_71 WHERE type = \"tv\" AND name = \"ohanami\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR)",
"role": "system"
},
{
"content": "Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1,200.0?",
"role": "user"
},
{
"content": "SELECT MIN(year_named) FROM table_name_84 WHERE name = \"nuptadi planitia\" AND diameter__km_ > 1 OFFSET 200.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 (tournament VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "what tournament had sam querrey as the opponent?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_51 WHERE opponent = \"sam querrey\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (fifa_club_world_championship INTEGER, name VARCHAR, uefa_champions_league VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Which FIFA Club World Championship has a UEFA Champions League of 0, and a Total smaller than 3, and a Name of geremi?",
"role": "user"
},
{
"content": "SELECT MIN(fifa_club_world_championship) FROM table_name_56 WHERE uefa_champions_league = 0 AND total < 3 AND name = \"geremi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_80 WHERE film = \"bullets over broadway\" AND category = \"best supporting actress\" AND actor = \"jennifer tilly\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2064747_1 (location_s_ VARCHAR, accreditation VARCHAR)",
"role": "system"
},
{
"content": "What schools are accredited by COE?",
"role": "user"
},
{
"content": "SELECT location_s_ FROM table_2064747_1 WHERE accreditation = \"COE\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR)",
"role": "system"
},
{
"content": "According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party?",
"role": "user"
},
{
"content": "SELECT liberal FROM table_name_37 WHERE new_democratic = \"36%\" AND dates = \"august 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_44 (result VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What is the result week 6?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_44 WHERE week = 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_61 (attendance VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance for the game against tampa bay buccaneers?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_61 WHERE opponent = \"tampa bay buccaneers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (site VARCHAR, opponent_number VARCHAR)",
"role": "system"
},
{
"content": "At which site was Northwestern an opponent?",
"role": "user"
},
{
"content": "SELECT site FROM table_name_67 WHERE opponent_number = \"northwestern\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Ben Hogan's Place?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_25 WHERE player = \"ben hogan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the country sergio garcía, who has a score of 69-70-67=206, is from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_43 WHERE score = 69 - 70 - 67 = 206 AND player = \"sergio garcía\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "Which chassis has an Alfa Romeo flat-12 engine.",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_76 WHERE engine = \"alfa romeo flat-12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is Event, when Round is \"1\", when Location is \"New Town, North Dakota , United States\" and when Time is \"4:12\"?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_9 WHERE round = 1 AND location = \"new town, north dakota , united states\" AND time = \"4:12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Which home team plays at VFL Park?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_36 WHERE venue = \"vfl park\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.