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_16439764_1 (time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR, max_height__ft_ VARCHAR)",
"role": "system"
},
{
"content": "Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees?",
"role": "user"
},
{
"content": "SELECT time_to_ft__m__at_25°__seconds_ FROM table_16439764_1 WHERE shell__lb_ = \"12.5\" AND max_height__ft_ > 20000.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_33 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the Place for the 66 Score?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_33 WHERE score = 66",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the total attendance of the match with a 1:2 score?",
"role": "user"
},
{
"content": "SELECT COUNT(attendance) FROM table_name_92 WHERE score = \"1:2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (baltimore_group VARCHAR, family VARCHAR)",
"role": "system"
},
{
"content": "Which Baltimore group is of the togaviridae family?",
"role": "user"
},
{
"content": "SELECT baltimore_group FROM table_name_27 WHERE family = \"togaviridae\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "When the tie no was 1, what was the score?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_44 WHERE tie_no = \"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_23183195_2 (road_record VARCHAR, overall_record VARCHAR)",
"role": "system"
},
{
"content": "What is the road record for the team with an overall record of 22-11?",
"role": "user"
},
{
"content": "SELECT road_record FROM table_23183195_2 WHERE overall_record = \"22-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_37 (season VARCHAR, prize VARCHAR)",
"role": "system"
},
{
"content": "What is Season, when Prize is \"$100,000\"?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_37 WHERE prize = \"$100,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2160215_1 (english___manga_uk__ VARCHAR, original_japanese VARCHAR)",
"role": "system"
},
{
"content": "Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese?",
"role": "user"
},
{
"content": "SELECT english___manga_uk__ FROM table_2160215_1 WHERE original_japanese = \"Kō Nishimura\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29686983_1 (circuit VARCHAR, fastest_lap VARCHAR, winning_rider VARCHAR)",
"role": "system"
},
{
"content": "what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?",
"role": "user"
},
{
"content": "SELECT circuit FROM table_29686983_1 WHERE fastest_lap = \"Sam Lowes\" AND winning_rider = \"Luca Scassa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, town VARCHAR)",
"role": "system"
},
{
"content": "What year was the structure in greensboro, north carolina considered tallest?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_16 WHERE town = \"greensboro, north carolina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2534387_10 (time__et_ VARCHAR, entries VARCHAR)",
"role": "system"
},
{
"content": "Name the time for entries being 907",
"role": "user"
},
{
"content": "SELECT time__et_ FROM table_2534387_10 WHERE entries = \"907\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (weight VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Name the Weight which has a Name of balázs hárai category:articles with hcards?",
"role": "user"
},
{
"content": "SELECT weight FROM table_name_10 WHERE name = \"balázs hárai category:articles with hcards\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What is the total of the first elected year of the incumbent from the washington 8 district?",
"role": "user"
},
{
"content": "SELECT COUNT(first_elected) FROM table_name_91 WHERE district = \"washington 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_21795650_1 (poles VARCHAR, series VARCHAR)",
"role": "system"
},
{
"content": "How many poles were there in the Italian Formula Renault 2.0 Winter Series?",
"role": "user"
},
{
"content": "SELECT poles FROM table_21795650_1 WHERE series = \"Italian Formula Renault 2.0 Winter series\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26041144_11 (player VARCHAR, average VARCHAR)",
"role": "system"
},
{
"content": "Who was the player with a 36.74 average?",
"role": "user"
},
{
"content": "SELECT player FROM table_26041144_11 WHERE average = \"36.74\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR)",
"role": "system"
},
{
"content": "What is the First issue date of the title with a Last Issue of July 2010?",
"role": "user"
},
{
"content": "SELECT first_issue FROM table_name_1 WHERE last_issue = \"july 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_82 (bronze INTEGER, silver INTEGER)",
"role": "system"
},
{
"content": "with silver count at 0, what is the lowest bronze count?",
"role": "user"
},
{
"content": "SELECT MIN(bronze) FROM table_name_82 WHERE silver < 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_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What rider is on an aprilia that went under 18 laps with a grid total of 17?",
"role": "user"
},
{
"content": "SELECT rider FROM table_name_14 WHERE manufacturer = \"aprilia\" AND laps < 18 AND grid = 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_63 (launched VARCHAR, laid_down VARCHAR)",
"role": "system"
},
{
"content": "What is Launched, when Laid Down is \"31 October 1981\"?",
"role": "user"
},
{
"content": "SELECT launched FROM table_name_63 WHERE laid_down = \"31 october 1981\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (no_result INTEGER, matches VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "How many total No Results occured when the team had less than 46 wins and more than 16 matches?",
"role": "user"
},
{
"content": "SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (crowd VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "How many people were in the crowd for a game than had carlton as the visiting team?",
"role": "user"
},
{
"content": "SELECT crowd FROM table_name_31 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_name_98 (rank INTEGER, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the average rank of one who is at 76 laps?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_98 WHERE laps = 76",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11665016_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "What is the air date for the episode written by Wendy Battles and directed by Oz Scott",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_11665016_2 WHERE written_by = \"Wendy Battles\" AND directed_by = \"Oz Scott\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "Name the brand for pick number 15",
"role": "user"
},
{
"content": "SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR)",
"role": "system"
},
{
"content": "What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?",
"role": "user"
},
{
"content": "SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = \"68th\" AND date = \"may 1, 1923\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13258876_2 (result VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game when the attendance was 48945?",
"role": "user"
},
{
"content": "SELECT result FROM table_13258876_2 WHERE attendance = 48945",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2076608_3 (enrollment VARCHAR, location_s_ VARCHAR)",
"role": "system"
},
{
"content": "Where are the Alexandria enrollment locations?",
"role": "user"
},
{
"content": "SELECT enrollment FROM table_2076608_3 WHERE location_s_ = \"Alexandria\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, opponents VARCHAR)",
"role": "system"
},
{
"content": "What was the score for the opponent lukáš dlouhý leander paes?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_75 WHERE opponents = \"lukáš dlouhý leander paes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the result of round 4?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_39 WHERE round = 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_12 (draws INTEGER, losses VARCHAR, byes VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest value for Draws, when Losses is \"0\", and when Byes is greater than 4?",
"role": "user"
},
{
"content": "SELECT MIN(draws) FROM table_name_12 WHERE losses = 0 AND byes > 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_10015132_14 (no VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which number was Patrick O'Bryant?",
"role": "user"
},
{
"content": "SELECT no FROM table_10015132_14 WHERE player = \"Patrick O'Bryant\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (decile INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest decile that Ohau School has?",
"role": "user"
},
{
"content": "SELECT MIN(decile) FROM table_name_10 WHERE name = \"ohau school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "What is the Torque of the Model 320td (diesel)?",
"role": "user"
},
{
"content": "SELECT torque FROM table_name_27 WHERE model = \"320td (diesel)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27277284_28 (model_number VARCHAR, order_part_number VARCHAR)",
"role": "system"
},
{
"content": "What is the model number for the order part numbered tmrm75dam22gg?",
"role": "user"
},
{
"content": "SELECT model_number FROM table_27277284_28 WHERE order_part_number = \"TMRM75DAM22GG\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (partner VARCHAR, surface VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the name of a partner that played on a hard surface on 18 April 2011?",
"role": "user"
},
{
"content": "SELECT partner FROM table_name_23 WHERE surface = \"hard\" AND date = \"18 april 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_23 (overall INTEGER, pick VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "What is the overall sum of the game with a pick less than 8 from the college of western michigan?",
"role": "user"
},
{
"content": "SELECT SUM(overall) FROM table_name_23 WHERE pick < 8 AND college = \"western michigan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19068566_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)",
"role": "system"
},
{
"content": "When there are 3.39 million u.s viewers what is the production code?",
"role": "user"
},
{
"content": "SELECT production_code FROM table_19068566_1 WHERE us_viewers__million_ = \"3.39\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (winning_score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Winning score on oct 22, 2000?",
"role": "user"
},
{
"content": "SELECT winning_score FROM table_name_93 WHERE date = \"oct 22, 2000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1601792_3 (station VARCHAR, language VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the station where the language is tamil malay?",
"role": "user"
},
{
"content": "SELECT station FROM table_1601792_3 WHERE language = \"Tamil Malay\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR)",
"role": "system"
},
{
"content": "What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?",
"role": "user"
},
{
"content": "SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = \"°c ()\" AND total_fat = \"100g\" AND polyunsaturated_fat = \"11g\" AND saturated_fat = \"14g\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the rank of Point Hyllie?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_52 WHERE name = \"point hyllie\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR)",
"role": "system"
},
{
"content": "Provide me with the names of all the villages (German) that has 76.3% of Slovenes in 1951.",
"role": "user"
},
{
"content": "SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = \"76.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_22 (venue VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Where did Fitzroy play as the home team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_22 WHERE home_team = \"fitzroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (h___a VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Was the semi-final round held at home or away?",
"role": "user"
},
{
"content": "SELECT h___a FROM table_name_53 WHERE round = \"semi-final\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2224692_1 (btu_gal VARCHAR, kwh_gal VARCHAR)",
"role": "system"
},
{
"content": "What's the BTU/Gal of the fuel whose kWh/Gal is 24.04?",
"role": "user"
},
{
"content": "SELECT btu_gal FROM table_2224692_1 WHERE kwh_gal = \"24.04\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, sail_number VARCHAR)",
"role": "system"
},
{
"content": "What are the LOA (metres) of boat with sail number M10?",
"role": "user"
},
{
"content": "SELECT loa__metres_ FROM table_20854943_2 WHERE sail_number = \"M10\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (result VARCHAR, match VARCHAR, arena VARCHAR, league VARCHAR)",
"role": "system"
},
{
"content": "What was the result at A Arena, the SL league, and a match number over 16?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_15 WHERE arena = \"a\" AND league = \"sl\" AND match > 16",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24784769_1 (round3 VARCHAR, total_points VARCHAR)",
"role": "system"
},
{
"content": "How many points did the team who had 325 total points have in round 3? ",
"role": "user"
},
{
"content": "SELECT round3 FROM table_24784769_1 WHERE total_points = 325",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE WINE (Name VARCHAR, Price INTEGER, YEAR VARCHAR)",
"role": "system"
},
{
"content": "What are the names of wines that are more expensive then all wines made in the year 2006?",
"role": "user"
},
{
"content": "SELECT Name FROM WINE WHERE Price > (SELECT MAX(Price) FROM WINE WHERE 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 trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)",
"role": "system"
},
{
"content": "Find each target user's name and average trust score.",
"role": "user"
},
{
"content": "SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)",
"role": "system"
},
{
"content": "What is the average population when deaths are 3 557 and crude death date is less than 11.9?",
"role": "user"
},
{
"content": "SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = \"3 557\" AND crude_death_rate__per_1000_ < 11.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_84 (circuit VARCHAR, winner VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the circuit on 19 Apr with Craig Lowndes as the winner?",
"role": "user"
},
{
"content": "SELECT circuit FROM table_name_84 WHERE winner = \"craig lowndes\" AND date = \"19 apr\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)",
"role": "system"
},
{
"content": "How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?",
"role": "user"
},
{
"content": "SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (l2_cache VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What's amount of L2 Cache on a device that has a Frequency of 1500mhz?",
"role": "user"
},
{
"content": "SELECT l2_cache FROM table_name_78 WHERE frequency = \"1500mhz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE pets (pettype VARCHAR, weight VARCHAR, pet_age VARCHAR)",
"role": "system"
},
{
"content": "Find the type and weight of the youngest pet.",
"role": "user"
},
{
"content": "SELECT pettype, weight FROM pets ORDER BY pet_age 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_9 (order VARCHAR, olympic_games VARCHAR)",
"role": "system"
},
{
"content": "What was the order of the Tokyo olympic games?",
"role": "user"
},
{
"content": "SELECT order FROM table_name_9 WHERE olympic_games = \"tokyo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (against INTEGER, status VARCHAR, opposing_teams VARCHAR)",
"role": "system"
},
{
"content": "What is the against for the opposing team of Wales with the status of Five Nations?",
"role": "user"
},
{
"content": "SELECT AVG(against) FROM table_name_52 WHERE status = \"five nations\" AND opposing_teams = \"wales\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (top_10 INTEGER, top_5 VARCHAR, wins VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 for top 5?",
"role": "user"
},
{
"content": "SELECT MIN(top_10) FROM table_name_29 WHERE wins < 4 AND points < 3260 AND top_5 > 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_43 (against INTEGER, draws INTEGER)",
"role": "system"
},
{
"content": "What's the most against when the draws are more than 0?",
"role": "user"
},
{
"content": "SELECT MAX(against) FROM table_name_43 WHERE draws > 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_35 (sample_size VARCHAR, date VARCHAR, democrat VARCHAR)",
"role": "system"
},
{
"content": "What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?",
"role": "user"
},
{
"content": "SELECT sample_size FROM table_name_35 WHERE date = \"may 2-7, 2007\" AND democrat = \"hillary clinton\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27553627_2 (episodes INTEGER, viewers__in_millions_ VARCHAR)",
"role": "system"
},
{
"content": "What episode number had 14.41 million viewers?",
"role": "user"
},
{
"content": "SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = \"14.41\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What was the To par when the Score was 67-68=135?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_68 WHERE score = 67 - 68 = 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_17366952_1 (lost VARCHAR, goal_average_1 VARCHAR)",
"role": "system"
},
{
"content": "List all losses with average goals of 1.21.",
"role": "user"
},
{
"content": "SELECT lost FROM table_17366952_1 WHERE goal_average_1 = \"1.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_53 (record VARCHAR, result VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Which Record has a Result of loss, and an Opponent of @ la clippers?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_53 WHERE result = \"loss\" AND opponent = \"@ la clippers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What was the score for the match with tie number 23?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_76 WHERE tie_no = \"23\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (president VARCHAR, media_officer VARCHAR)",
"role": "system"
},
{
"content": "Name the President has a Media Officer of pete marshall/ nazar striletski?",
"role": "user"
},
{
"content": "SELECT president FROM table_name_25 WHERE media_officer = \"pete marshall/ nazar striletski\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (year INTEGER)",
"role": "system"
},
{
"content": "Which 2nd day has a year prior to 2009?",
"role": "user"
},
{
"content": "SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the date that is Away team is Honduras?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_25 WHERE away_team = \"honduras\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "Which position has a pick less than 41 from Ohio State?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_31 WHERE pick < 41 AND school_club_team = \"ohio state\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2150068_1 (decay VARCHAR, nssdc_id VARCHAR)",
"role": "system"
},
{
"content": "What is the decay for the sattelite with an id that is 1990-081c?",
"role": "user"
},
{
"content": "SELECT decay FROM table_2150068_1 WHERE nssdc_id = \"1990-081C\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)",
"role": "system"
},
{
"content": "What is HDTV, when Language is English, and when Television Service is MTV Dance?",
"role": "user"
},
{
"content": "SELECT hdtv FROM table_name_82 WHERE language = \"english\" AND television_service = \"mtv dance\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the To Par that has Tommy Bolt with a Place of t6?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_6 WHERE place = \"t6\" AND player = \"tommy bolt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total_points VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest total for 1985-1986 when the total points are 124?",
"role": "user"
},
{
"content": "SELECT MIN(1985 AS _1986) FROM table_name_33 WHERE total_points = 124",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10020178_1 (name VARCHAR, crest_length__meters_ VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the 375 crest length?",
"role": "user"
},
{
"content": "SELECT name FROM table_10020178_1 WHERE crest_length__meters_ = 375",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (terrain VARCHAR, stage VARCHAR)",
"role": "system"
},
{
"content": "What was the terrain for stage 10 of the tour?",
"role": "user"
},
{
"content": "SELECT terrain FROM table_name_69 WHERE stage = \"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_1 (player VARCHAR, country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Country is United States, and when Score is 70-72-70=212?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_1 WHERE country = \"united states\" AND score = 70 - 72 - 70 = 212",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the match with an attendance of 2248?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_66 WHERE attendance = 2248",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (losses VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What are the losses of the playoffs season?",
"role": "user"
},
{
"content": "SELECT losses FROM table_name_56 WHERE season = \"playoffs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR)",
"role": "system"
},
{
"content": "Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes",
"role": "user"
},
{
"content": "SELECT sydney FROM table_name_53 WHERE perth = \"no\" AND adelaide = \"no\" AND melbourne = \"yes\" AND gold_coast = \"yes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20745444_1 (game INTEGER, opponent VARCHAR)",
"role": "system"
},
{
"content": "How many games were against Furman?",
"role": "user"
},
{
"content": "SELECT MAX(game) FROM table_20745444_1 WHERE opponent = \"Furman\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140117_5 (report VARCHAR, race_name VARCHAR)",
"role": "system"
},
{
"content": "What is the report for the race name V Ulster Trophy?",
"role": "user"
},
{
"content": "SELECT report FROM table_1140117_5 WHERE race_name = \"V Ulster Trophy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (result VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the game in Milwaukee?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_34 WHERE city = \"milwaukee\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)",
"role": "system"
},
{
"content": "Which papers have \"Stephanie Weirich\" as an author?",
"role": "user"
},
{
"content": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (bubbles VARCHAR, cancelable VARCHAR, attribute VARCHAR)",
"role": "system"
},
{
"content": "Which bubble have a cancelable of yes and an attribute of onpointerdown?",
"role": "user"
},
{
"content": "SELECT bubbles FROM table_name_58 WHERE cancelable = \"yes\" AND attribute = \"onpointerdown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (crowd INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the size of the crowd at the game played at Junction Oval?",
"role": "user"
},
{
"content": "SELECT AVG(crowd) FROM table_name_66 WHERE venue = \"junction oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (crowd INTEGER, home_team VARCHAR)",
"role": "system"
},
{
"content": "When the home team was Richmond, what was the largest crowd?",
"role": "user"
},
{
"content": "SELECT MAX(crowd) FROM table_name_49 WHERE home_team = \"richmond\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (location_attendance VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Where was the game played when the opponent was Oklahoma City, and what was the attendance?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_9 WHERE team = \"oklahoma city\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18734298_1 (no_in_series VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "How many series were directed by Rob Renzetti?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_series) FROM table_18734298_1 WHERE directed_by = \"Rob Renzetti\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (margin_of_victory VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the margin of victory on Mar 18, 1979?",
"role": "user"
},
{
"content": "SELECT margin_of_victory FROM table_name_69 WHERE date = \"mar 18, 1979\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "Tell me the gold for netherlands",
"role": "user"
},
{
"content": "SELECT gold FROM table_name_20 WHERE nation = \"netherlands\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What's the tournamnet name that has a 2001 of 1r and 2011?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_25 WHERE 2001 = \"1r\" AND 2011 = \"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_75 (record VARCHAR)",
"role": "system"
},
{
"content": "What is the record which shows Kickoff as kickoff?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_75 WHERE \"kickoff\" = \"kickoff\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)",
"role": "system"
},
{
"content": "What is the range (varies by payload weight) for the unknown player?",
"role": "user"
},
{
"content": "SELECT range__varies_with_payload_weight_ FROM table_name_34 WHERE payload = \"unknown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14253123_1 (area_sq_mi__km_2____rank_ VARCHAR, county_seat VARCHAR)",
"role": "system"
},
{
"content": "When Vincennes is the county seat what is the area sq mi (km 2 ) (rank) ?",
"role": "user"
},
{
"content": "SELECT area_sq_mi__km_2____rank_ FROM table_14253123_1 WHERE county_seat = \"Vincennes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What district is incumbent elmer j. holland from?",
"role": "user"
},
{
"content": "SELECT district FROM table_1341865_40 WHERE incumbent = \"Elmer J. Holland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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__number2 VARCHAR, team__number1 VARCHAR)",
"role": "system"
},
{
"content": "Which Team #2 has a Team #1 of gambrinus sika brno?",
"role": "user"
},
{
"content": "SELECT team__number2 FROM table_name_70 WHERE team__number1 = \"gambrinus sika brno\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (city_of_license VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "In which city is the network latv licensed?",
"role": "user"
},
{
"content": "SELECT city_of_license FROM table_name_93 WHERE network = \"latv\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?",
"role": "user"
},
{
"content": "SELECT MIN(total) FROM table_name_77 WHERE bronze > 1 AND silver = 0 AND gold < 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 (capacity VARCHAR, model_engine VARCHAR)",
"role": "system"
},
{
"content": "Name the capacity for the engine of 2.0 duratorq",
"role": "user"
},
{
"content": "SELECT capacity FROM table_name_84 WHERE model_engine = \"2.0 duratorq\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17641206_6 (original_title VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of original titles written by john sullivan and keith lindsay",
"role": "user"
},
{
"content": "SELECT COUNT(original_title) FROM table_17641206_6 WHERE written_by = \"John Sullivan and Keith Lindsay\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.