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_58 (team VARCHAR, conference VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What team has great plains as the conference, and concordia (ne) as the school?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_58 WHERE conference = \"great plains\" AND school = \"concordia (ne)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27021001_1 (incumbent VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?",
"role": "user"
},
{
"content": "SELECT COUNT(incumbent) FROM table_27021001_1 WHERE result = \"Sanford Bishop (D) 57% Joseph McCormick (R) 43%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21761882_4 (location VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What location was the game on October 6?",
"role": "user"
},
{
"content": "SELECT location FROM table_21761882_4 WHERE date = \"October 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_28281704_1 (country VARCHAR, stadium VARCHAR)",
"role": "system"
},
{
"content": "Name the country for lusail national stadium",
"role": "user"
},
{
"content": "SELECT country FROM table_28281704_1 WHERE stadium = \"Lusail National stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER)",
"role": "system"
},
{
"content": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.",
"role": "user"
},
{
"content": "SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_242785_3 (main_legion_base VARCHAR, notes VARCHAR)",
"role": "system"
},
{
"content": "What was the main legion base for the Romans when the notes were \"primigenia goddess of fate. xx in batavi revolt\"?",
"role": "user"
},
{
"content": "SELECT main_legion_base FROM table_242785_3 WHERE notes = \"Primigenia goddess of Fate. XX in Batavi revolt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341472_34 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the first elected for new york 1",
"role": "user"
},
{
"content": "SELECT COUNT(first_elected) FROM table_1341472_34 WHERE district = \"New York 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_99 (callsign VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "Frequency of 0 864 has what callsign?",
"role": "user"
},
{
"content": "SELECT callsign FROM table_name_99 WHERE frequency = \"0 864\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR)",
"role": "system"
},
{
"content": "How many regions have a capital of matanzas and a 2005 population under 670427?",
"role": "user"
},
{
"content": "SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = \"matanzas\" AND population__2005_ < 670427",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Documents_with_expenses (budget_type_code VARCHAR)",
"role": "system"
},
{
"content": "Show budget type codes and the number of documents in each budget type.",
"role": "user"
},
{
"content": "SELECT budget_type_code, COUNT(*) FROM Documents_with_expenses GROUP BY budget_type_code",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22757733_4 (party VARCHAR, runner_up_a VARCHAR)",
"role": "system"
},
{
"content": "which was k. annamalai´s party a?",
"role": "user"
},
{
"content": "SELECT party AS a FROM table_22757733_4 WHERE runner_up_a = \"K. Annamalai\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (pos VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What position did lap 296 come in?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_41 WHERE laps = 296",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What was the length for GT class at Portland International Raceway?",
"role": "user"
},
{
"content": "SELECT length FROM table_name_22 WHERE class = \"gt\" AND circuit = \"portland international raceway\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (at_neutral_site VARCHAR, overall_record VARCHAR)",
"role": "system"
},
{
"content": "With an overall record of MU, 15-8 what is the at neutral site?",
"role": "user"
},
{
"content": "SELECT at_neutral_site FROM table_name_87 WHERE overall_record = \"mu, 15-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_23292220_6 (episode VARCHAR, jasons_team VARCHAR)",
"role": "system"
},
{
"content": "Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.",
"role": "user"
},
{
"content": "SELECT episode FROM table_23292220_6 WHERE jasons_team = \"Duncan James and Johnny Vegas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_177766_1 (right_ascension__hm_ VARCHAR, abbreviation VARCHAR)",
"role": "system"
},
{
"content": "This constellation, abbreviated as 'oph' has how many right ascension (in hm)?",
"role": "user"
},
{
"content": "SELECT COUNT(right_ascension__hm_) FROM table_177766_1 WHERE abbreviation = \"Oph\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15187735_13 (segment_b VARCHAR, segment_a VARCHAR)",
"role": "system"
},
{
"content": "Name the segment b for pressure cookers",
"role": "user"
},
{
"content": "SELECT segment_b FROM table_15187735_13 WHERE segment_a = \"Pressure Cookers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (iata VARCHAR, airport VARCHAR)",
"role": "system"
},
{
"content": "What is the IATA of Madrid-Barajas Airport?",
"role": "user"
},
{
"content": "SELECT iata FROM table_name_8 WHERE airport = \"madrid-barajas airport\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (date VARCHAR, rank VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "When has a Rank larger than 2 and a Network of itv?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_13 WHERE rank > 2 AND network = \"itv\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent for jul 31 and score of w 5-1",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_50 WHERE date = \"jul 31\" AND score = \"w 5-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_41 (human_gene__protein_ VARCHAR, yeast_ortholog VARCHAR)",
"role": "system"
},
{
"content": "What human gene has a yeast ortholog of RAD26?",
"role": "user"
},
{
"content": "SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = \"rad26\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (date VARCHAR, sample_size VARCHAR, republican VARCHAR)",
"role": "system"
},
{
"content": "What was the date for Ron Paul as republican and a sample sized less than 472?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_20 WHERE sample_size < 472 AND republican = \"ron paul\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13557843_7 (game VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "what's the game with date being march 7",
"role": "user"
},
{
"content": "SELECT game FROM table_13557843_7 WHERE date = \"March 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_5 (brand__from_ VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "Pick # 3 works for which brand?",
"role": "user"
},
{
"content": "SELECT brand__from_ FROM table_name_5 WHERE pick__number = 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_52 (games VARCHAR, pen_min VARCHAR)",
"role": "system"
},
{
"content": "How many games were played by the player who had 22 penalty minutes?",
"role": "user"
},
{
"content": "SELECT games FROM table_name_52 WHERE pen_min = \"22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1481865_1 (number_of_episode VARCHAR, title__english_ VARCHAR)",
"role": "system"
},
{
"content": "What is the episode number where the English title is Pilot?",
"role": "user"
},
{
"content": "SELECT number_of_episode FROM table_1481865_1 WHERE title__english_ = \"Pilot\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "What candidates were featured in the 1974 election?",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (date VARCHAR, winning_driver VARCHAR)",
"role": "system"
},
{
"content": "What date was the winning driver Antonio Ascari?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_27 WHERE winning_driver = \"antonio ascari\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (high_assists VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "Who had the high assists when the game was at American Airlines Center 20,223?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_8 WHERE location_attendance = \"american airlines center 20,223\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "When the Away team was south melbourne what was the home team?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_52 WHERE away_team = \"south melbourne\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)",
"role": "system"
},
{
"content": "What is the local name given to the capital of Anguilla?",
"role": "user"
},
{
"content": "SELECT capital___endonym__ FROM table_1008653_1 WHERE country___endonym__ = \"Anguilla\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27537870_5 (december INTEGER, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "Name the least december for hsbc arena/18,017",
"role": "user"
},
{
"content": "SELECT MIN(december) FROM table_27537870_5 WHERE location_attendance = \"HSBC Arena/18,017\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE stadium (home_games INTEGER)",
"role": "system"
},
{
"content": "What are the maximum, minimum and average home games each stadium held?",
"role": "user"
},
{
"content": "SELECT MAX(home_games), MIN(home_games), AVG(home_games) FROM stadium",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24990183_5 (ws_points VARCHAR)",
"role": "system"
},
{
"content": "What was the 08-09 i/o best of the player with 1386 points?",
"role": "user"
},
{
"content": "SELECT 08 AS _09_i_o_best FROM table_24990183_5 WHERE ws_points = 1386",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "What was the largest crowd where Carlton was the away team?",
"role": "user"
},
{
"content": "SELECT MAX(crowd) FROM table_name_64 WHERE away_team = \"carlton\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19787093_1 (vehicle_category VARCHAR, till_agra VARCHAR)",
"role": "system"
},
{
"content": "What kind of vehicle is the agra 1050?",
"role": "user"
},
{
"content": "SELECT vehicle_category FROM table_19787093_1 WHERE till_agra = 1050",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (score VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What's the score in 1990?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_29 WHERE year = \"1990\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What team has 104 laps and a grid of 10?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 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_26 (location VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What location was fábio maldonado the opponent at?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_26 WHERE opponent = \"fábio maldonado\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (on_air_id VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What is the On-air ID of the broadcaster at frequency 0 801?",
"role": "user"
},
{
"content": "SELECT on_air_id FROM table_name_13 WHERE frequency = \"0 801\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "Which tournament has a value of a for 2009?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_42 WHERE 2009 = \"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_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "When the phillies 1:15 pm played on April 9, what was the attendance?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_21 WHERE opponent = \"phillies 1:15 pm\" AND date = \"april 9\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Where did they play that the score was 22-12?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_21 WHERE result = \"22-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 PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)",
"role": "system"
},
{
"content": "Find the name of persons who are friends with Bob.",
"role": "user"
},
{
"content": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17271495_1 (team VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "Name the team of darren manning",
"role": "user"
},
{
"content": "SELECT team FROM table_17271495_1 WHERE driver = \"Darren Manning\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (year INTEGER, lok_sabha VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Year, when Lok Sabha is \"4th Lok Sabha\"?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_53 WHERE lok_sabha = \"4th lok sabha\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, circumstances VARCHAR)",
"role": "system"
},
{
"content": "What was the date of natural cause situation?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_12 WHERE circumstances = \"natural cause\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (round VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "How many rounds have a position of C?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_name_95 WHERE position = \"c\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24463470_1 (unlock_order VARCHAR, unlocks VARCHAR)",
"role": "system"
},
{
"content": "How many instances is paris the unlock?",
"role": "user"
},
{
"content": "SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = \"Paris\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (round VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of rounds with a 4-0 record?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_name_57 WHERE record = \"4-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_59 (total_rebounds INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What was Peter Woolfolk's Total Rebound average?",
"role": "user"
},
{
"content": "SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = \"peter woolfolk\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR, sport VARCHAR)",
"role": "system"
},
{
"content": "What is the winner of gold that also has ↓ 1 in the sport of cycling?",
"role": "user"
},
{
"content": "SELECT gold FROM table_name_97 WHERE bronze = \"↓ 1\" AND sport = \"cycling\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (volleyball VARCHAR, golf VARCHAR, indoor_track VARCHAR)",
"role": "system"
},
{
"content": "Which Volleyball has a Golf of 2, and an Indoor track of 3?",
"role": "user"
},
{
"content": "SELECT volleyball FROM table_name_52 WHERE golf = \"2\" AND indoor_track = \"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 Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)",
"role": "system"
},
{
"content": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?",
"role": "user"
},
{
"content": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (term_start VARCHAR, term_end VARCHAR, date_of_birth VARCHAR)",
"role": "system"
},
{
"content": "When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?",
"role": "user"
},
{
"content": "SELECT term_start FROM table_name_12 WHERE term_end = \"1919\" AND date_of_birth = \"january 8, 1859\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)",
"role": "system"
},
{
"content": "What are the names of parties with at least 2 events?",
"role": "user"
},
{
"content": "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR)",
"role": "system"
},
{
"content": "Find the name and account balance of the customers who have loans with a total amount of more than 5000.",
"role": "user"
},
{
"content": "SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (wins INTEGER, position VARCHAR, poles VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest Wins with a Position of 20th, and Poles smaller than 0?",
"role": "user"
},
{
"content": "SELECT MIN(wins) FROM table_name_19 WHERE position = \"20th\" AND poles < 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_84 (shooter VARCHAR, rank_points VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Which Shooter has a Rank points of 8 and a Event of wc milan?",
"role": "user"
},
{
"content": "SELECT shooter FROM table_name_84 WHERE rank_points = \"8\" AND event = \"wc milan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13241993_3 (part_2 VARCHAR, part_1 VARCHAR)",
"role": "system"
},
{
"content": "What was the air date of part 2 of the episode whose part 1 was aired on January 31, 2008?",
"role": "user"
},
{
"content": "SELECT part_2 FROM table_13241993_3 WHERE part_1 = \"January 31, 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_14 (estd INTEGER, college_or_campus_name VARCHAR)",
"role": "system"
},
{
"content": "In what year was anna university - panruti campus established?",
"role": "user"
},
{
"content": "SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = \"anna university - panruti campus\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR)",
"role": "system"
},
{
"content": "What was the rank of the rider whose ascent time was 43:24 before the year 2002?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = \"43:24\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE stadium (country VARCHAR, opening_year INTEGER)",
"role": "system"
},
{
"content": "Which countries do not have a stadium that was opened after 2006?",
"role": "user"
},
{
"content": "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 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_1852650_1 (ending_with INTEGER, sung_by VARCHAR)",
"role": "system"
},
{
"content": "Name the most ending with for peyalvar",
"role": "user"
},
{
"content": "SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = \"Peyalvar\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (fcc_info VARCHAR, facility_id VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)",
"role": "system"
},
{
"content": "What is the FCC info for the call sign with a frequency MHz of 101.3, a ERP W over 10, and a Facility ID smaller than 87027?",
"role": "user"
},
{
"content": "SELECT fcc_info FROM table_name_52 WHERE frequency_mhz = 101.3 AND erp_w > 10 AND facility_id < 87027",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (comp VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Comp is on 2004-10-17?",
"role": "user"
},
{
"content": "SELECT comp FROM table_name_84 WHERE date = \"2004-10-17\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (design VARCHAR, denomination VARCHAR)",
"role": "system"
},
{
"content": "What stamp design has a denomination of $1.18?",
"role": "user"
},
{
"content": "SELECT design FROM table_name_33 WHERE denomination = \"$1.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_48 (season VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Which Season has 95 Points?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_48 WHERE points = \"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_39 (driver VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "Which driver had a time off course?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_39 WHERE time_retired = \"off course\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16254861_1 (language_s_ VARCHAR, year__ceremony_ VARCHAR)",
"role": "system"
},
{
"content": "How many languages for the 2001 (74th) awards?",
"role": "user"
},
{
"content": "SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = \"2001 (74th)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, resale VARCHAR, up__up_to_kbit_s_ VARCHAR)",
"role": "system"
},
{
"content": "what is the highest down (up to kbits/s) when resale is yes, up ( up to kbit/s) is 1180 and provider is 1&1?",
"role": "user"
},
{
"content": "SELECT MAX(down__up_to_kbit_s_) FROM table_name_26 WHERE resale = \"yes\" AND up__up_to_kbit_s_ = 1180 AND provider = \"1&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_22 (year INTEGER, wins VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest year associated with 0 wins and 42 points?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_22 WHERE wins > 0 AND points = 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_5 (score VARCHAR, surface VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score on a clay surface on May 29, 2006?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_5 WHERE surface = \"clay\" AND date = \"may 29, 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_23988726_2 (saif_saaeed_shaheen___qat__ VARCHAR)",
"role": "system"
},
{
"content": "When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004?",
"role": "user"
},
{
"content": "SELECT 3 AS _september_2004 FROM table_23988726_2 WHERE saif_saaeed_shaheen___qat__ = \"Daniel Lincoln ( USA )\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)",
"role": "system"
},
{
"content": "Which network's genre is music?",
"role": "user"
},
{
"content": "SELECT network FROM table_name_8 WHERE genre = \"music\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR)",
"role": "system"
},
{
"content": "What episode was directed by Karen Gaviola?",
"role": "user"
},
{
"content": "SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = \"Karen Gaviola\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (partnering VARCHAR, opponents_in_final VARCHAR)",
"role": "system"
},
{
"content": "Who is the partnering that had the opponents of Marcelo Melo André Sá?",
"role": "user"
},
{
"content": "SELECT partnering FROM table_name_29 WHERE opponents_in_final = \"marcelo melo andré sá\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of Gold medals when there are 5 bronze medals?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_82 WHERE bronze = 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_24 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Tell me the opponent for attendance of 55,527",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_24 WHERE attendance = \"55,527\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pts_ VARCHAR, b_ VARCHAR, reb_ VARCHAR, no_ VARCHAR, a_ VARCHAR)",
"role": "system"
},
{
"content": "What is the points that is more than 636 and has a value of 50?",
"role": "user"
},
{
"content": "SELECT pts_[b_] FROM table_name_82 WHERE reb_[b_] > 636 AND no_[a_] = \"50\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (uninterrupted_rank VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How many uninterrupted ranks does john dingell have?",
"role": "user"
},
{
"content": "SELECT COUNT(uninterrupted_rank) FROM table_name_87 WHERE name = \"john dingell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the top score for tsuneyuki nakajima?",
"role": "user"
},
{
"content": "SELECT MAX(score) FROM table_name_80 WHERE player = \"tsuneyuki nakajima\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_160510_1 (hanja VARCHAR, province VARCHAR)",
"role": "system"
},
{
"content": "What is the hanja for the province of \"sangju\"?",
"role": "user"
},
{
"content": "SELECT hanja FROM table_160510_1 WHERE province = \"Sangju\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (enrollment INTEGER, institution VARCHAR)",
"role": "system"
},
{
"content": "What is the average Enrollment of Dickinson College?",
"role": "user"
},
{
"content": "SELECT AVG(enrollment) FROM table_name_41 WHERE institution = \"dickinson college\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "List the names of all winners who played in both 2013 and 2016.",
"role": "user"
},
{
"content": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_286271_1 (election VARCHAR, _percentage_of_popular_vote VARCHAR)",
"role": "system"
},
{
"content": "Name the election for the percent of popular vote being 4.48%",
"role": "user"
},
{
"content": "SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = \"4.48%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gross_capacity VARCHAR, commercial_operation VARCHAR)",
"role": "system"
},
{
"content": "What is the gross capacity of the unit that started commercial operation on August 28, 1987?",
"role": "user"
},
{
"content": "SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = \"august 28, 1987\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_158282_1 (european_parliament_seats INTEGER, international_affiliation VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest number of European Parliament sets when the international affiliation is global greens, egp? ",
"role": "user"
},
{
"content": "SELECT MIN(european_parliament_seats) FROM table_158282_1 WHERE international_affiliation = \"Global Greens, EGP\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (composer_s_ VARCHAR, length VARCHAR)",
"role": "system"
},
{
"content": "Who is the composer of the song with a length of 6:24?",
"role": "user"
},
{
"content": "SELECT composer_s_ FROM table_name_85 WHERE length = \"6:24\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Visitor of boston?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_76 WHERE visitor = \"boston\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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, peak_name VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of ranks when the Peak Name is Red Shirt Table?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_51 WHERE peak_name = \"red shirt table\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (top_5 INTEGER, starts VARCHAR, year VARCHAR, team_s_ VARCHAR)",
"role": "system"
},
{
"content": "what is the lowest top 5 when the year is after 1995, team(s) is #15 billy ballew motorsports, and starts is more than 4?",
"role": "user"
},
{
"content": "SELECT MIN(top_5) FROM table_name_45 WHERE year > 1995 AND team_s_ = \"#15 billy ballew motorsports\" AND starts > 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_31 (manuals VARCHAR, opus VARCHAR)",
"role": "system"
},
{
"content": "What manuals have the opus of 135?",
"role": "user"
},
{
"content": "SELECT manuals FROM table_name_31 WHERE opus = \"135\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which 1995 has a 1993 of 3r?",
"role": "user"
},
{
"content": "SELECT 1995 FROM table_name_86 WHERE 1993 = \"3r\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (role VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the role in 1996?",
"role": "user"
},
{
"content": "SELECT role FROM table_name_80 WHERE year = \"1996\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22482077_1 (year VARCHAR)",
"role": "system"
},
{
"content": "In 2010, how many 1st venue cities were there? ",
"role": "user"
},
{
"content": "SELECT COUNT(1 AS st_venue) FROM table_22482077_1 WHERE year = 2010",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (date VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_99 WHERE location_attendance = \"madison square garden 19,763\" AND high_rebounds = \"david lee (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_26957063_3 (_percentage_similarity_to_c7orf38 INTEGER, _percentage_identity_to_c7orf38 VARCHAR)",
"role": "system"
},
{
"content": "What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?",
"role": "user"
},
{
"content": "SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, high_points VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when High Points is \"Thaddeus Young (19)\", and when Team is \"@ Orlando\"?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_2 WHERE high_points = \"thaddeus young (19)\" AND team = \"@ orlando\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (language VARCHAR, original_title VARCHAR)",
"role": "system"
},
{
"content": "Name the language for trotta",
"role": "user"
},
{
"content": "SELECT language FROM table_name_68 WHERE original_title = \"trotta\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.