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_28146944_2 (title VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "What's the title of the episode with series number 36?", "role": "user" }, { "content": "SELECT title FROM table_28146944_2 WHERE no_in_series = 36", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR)", "role": "system" }, { "content": "Who was the brother of Edward VIII?", "role": "user" }, { "content": "SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = \"brother of edward viii\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, college VARCHAR)", "role": "system" }, { "content": "Which Position has a College of colorado?", "role": "user" }, { "content": "SELECT position FROM table_name_31 WHERE college = \"colorado\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (city___town VARCHAR, icao VARCHAR)", "role": "system" }, { "content": "In which city is the ICAO gvma?", "role": "user" }, { "content": "SELECT city___town FROM table_name_36 WHERE icao = \"gvma\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1997759_1 (number VARCHAR, registration VARCHAR)", "role": "system" }, { "content": "how many number is located at registration f-bvff?", "role": "user" }, { "content": "SELECT COUNT(number) FROM table_1997759_1 WHERE registration = \"F-BVFF\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15?", "role": "user" }, { "content": "SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 AND rank > 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_39 (rank VARCHAR)", "role": "system" }, { "content": "what is the production in 2010 with rank of 8?", "role": "user" }, { "content": "SELECT 2010 FROM table_name_39 WHERE rank = \"8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (losses INTEGER, against VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is the greatest number of losses when the against is 1465 and there are more than 7 wins?", "role": "user" }, { "content": "SELECT MAX(losses) FROM table_name_80 WHERE against = 1465 AND wins > 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_1221089_1 (colors VARCHAR, institution VARCHAR)", "role": "system" }, { "content": "What are the school colors of the University of New Hampshire?", "role": "user" }, { "content": "SELECT colors FROM table_1221089_1 WHERE institution = \"University of New Hampshire\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (season VARCHAR, rating VARCHAR)", "role": "system" }, { "content": "Which season was one of the players rated +33?", "role": "user" }, { "content": "SELECT season FROM table_name_79 WHERE rating = \"+33\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "Which Team 1, has Team 2, Slovan Liberec?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_13 WHERE team_2 = \"slovan liberec\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What away team played against Footscray as the home team?", "role": "user" }, { "content": "SELECT away_team FROM table_name_50 WHERE home_team = \"footscray\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR)", "role": "system" }, { "content": "Which American Labor candidate ran against Democratic candidate Robert F. Wagner?", "role": "user" }, { "content": "SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = \"robert f. wagner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "which week had an attendance of 53,677?", "role": "user" }, { "content": "SELECT COUNT(week) FROM table_name_43 WHERE attendance = \"53,677\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "When tom snow 250cc honda is the rider what is Monday August 23rd?", "role": "user" }, { "content": "SELECT mon_23_aug FROM table_26986076_5 WHERE rider = \"Tom Snow 250cc Honda\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (overall VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "Which overall's pick number was 14?", "role": "user" }, { "content": "SELECT overall FROM table_name_65 WHERE pick__number = 14", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (elevation_groundstation INTEGER, slope_length VARCHAR, capacity_in_persons_hour VARCHAR, name_or_route VARCHAR)", "role": "system" }, { "content": "Which elevation groundstation has a capacity in persons/hour larger than 820, and a Name or route of lager 1, and a slope length smaller than 336?", "role": "user" }, { "content": "SELECT AVG(elevation_groundstation) FROM table_name_68 WHERE capacity_in_persons_hour > 820 AND name_or_route = \"lager 1\" AND slope_length < 336", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (state VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the State with Gwangju Fc as the team?", "role": "user" }, { "content": "SELECT state FROM table_name_10 WHERE team = \"gwangju fc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR)", "role": "system" }, { "content": "What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?", "role": "user" }, { "content": "SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)", "role": "system" }, { "content": "What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?", "role": "user" }, { "content": "SELECT general_classification FROM table_name_45 WHERE mountains_classification = \"david de la fuente\" AND points_classification = \"thor hushovd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (iata VARCHAR, state_territory VARCHAR, icao VARCHAR)", "role": "system" }, { "content": "What IATA has queensland as the state/territory and an ICAO of ybrk?", "role": "user" }, { "content": "SELECT iata FROM table_name_30 WHERE state_territory = \"queensland\" AND icao = \"ybrk\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (played VARCHAR, tries_for VARCHAR)", "role": "system" }, { "content": "What was the played with 38 tries?", "role": "user" }, { "content": "SELECT played FROM table_name_55 WHERE tries_for = \"38\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)", "role": "system" }, { "content": "What was the first year to have a Chassis of Jordan 193?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_89 WHERE chassis = \"jordan 193\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total VARCHAR, tally VARCHAR, matches VARCHAR)", "role": "system" }, { "content": "What are the total number of matches smaller than 2 with a tally of 1-19?", "role": "user" }, { "content": "SELECT COUNT(total) FROM table_name_84 WHERE tally = \"1-19\" AND matches < 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_25 (original_nfl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Who's the original team for Rashied Davis Category:articles with hcards?", "role": "user" }, { "content": "SELECT original_nfl_team FROM table_name_25 WHERE player = \"rashied davis 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_84 (date VARCHAR, winning_score VARCHAR)", "role": "system" }, { "content": "What is the date that has a winning score of 67-70-68-67=272?", "role": "user" }, { "content": "SELECT date FROM table_name_84 WHERE winning_score = 67 - 70 - 68 - 67 = 272", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (team VARCHAR, fin_pos VARCHAR)", "role": "system" }, { "content": "Which team had a finish position of 8?", "role": "user" }, { "content": "SELECT team FROM table_name_90 WHERE fin_pos = \"8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (udmr VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the UDMR for 18-22/04/2009?", "role": "user" }, { "content": "SELECT udmr FROM table_name_75 WHERE date = \"18-22/04/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_30 (segment_c VARCHAR, episode VARCHAR)", "role": "system" }, { "content": "Which items in segment C is episode 160?", "role": "user" }, { "content": "SELECT segment_c FROM table_name_30 WHERE episode = 160", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pick VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What was Ralph Shoaf's pick number?", "role": "user" }, { "content": "SELECT pick FROM table_name_39 WHERE name = \"ralph shoaf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (year_s__won VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "What year did the player with a t3 finish win?", "role": "user" }, { "content": "SELECT year_s__won FROM table_name_84 WHERE finish = \"t3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (average INTEGER, games VARCHAR, w_l_t VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Which Average that has a W-L-T of 5-1, and a Season smaller than 2001, and Games smaller than 6?", "role": "user" }, { "content": "SELECT AVG(average) FROM table_name_59 WHERE w_l_t = \"5-1\" AND season < 2001 AND games < 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (year INTEGER, game VARCHAR)", "role": "system" }, { "content": "What year was Portal?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_93 WHERE game = \"portal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17058151_7 (record VARCHAR, game VARCHAR)", "role": "system" }, { "content": "How many games was game 43?", "role": "user" }, { "content": "SELECT COUNT(record) FROM table_17058151_7 WHERE game = 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_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR)", "role": "system" }, { "content": "For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?", "role": "user" }, { "content": "SELECT result FROM table_name_24 WHERE home_captain = \"graham gooch\" AND date = \"3,4,5,6,7 june 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What's the 1986 if 1991 has a QF and 1998 has a 3R?", "role": "user" }, { "content": "SELECT 1986 FROM table_name_51 WHERE 1991 = \"qf\" AND 1998 = \"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_8 (round VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What round is player phil graham in?", "role": "user" }, { "content": "SELECT round FROM table_name_8 WHERE player = \"phil graham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (name VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Which is located in Nigeria?", "role": "user" }, { "content": "SELECT name FROM table_name_72 WHERE location = \"nigeria\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE book_club (Id VARCHAR)", "role": "system" }, { "content": "How many book clubs are there?", "role": "user" }, { "content": "SELECT COUNT(*) FROM book_club", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, notes VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the sum of the rank of the rower with an r note from Australia?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_6 WHERE notes = \"r\" AND country = \"australia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (lead VARCHAR, alternate VARCHAR)", "role": "system" }, { "content": "Who is the lead of the nation with Juha Pekaristo as the alternate?", "role": "user" }, { "content": "SELECT lead FROM table_name_46 WHERE alternate = \"juha pekaristo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR)", "role": "system" }, { "content": "What is the name of the plaza where the toll for heavy vehicles with 2 axles is r87.00?", "role": "user" }, { "content": "SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = \"R87.00\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2468961_4 (production_code INTEGER, original_air_date VARCHAR)", "role": "system" }, { "content": "What was the production code for the episode that debuted October 1, 1993?", "role": "user" }, { "content": "SELECT MAX(production_code) FROM table_2468961_4 WHERE original_air_date = \"October 1, 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (opponent_in_the_final VARCHAR, partnering VARCHAR)", "role": "system" }, { "content": "Which Opponent in the final has a Partnering of graydon oliver?", "role": "user" }, { "content": "SELECT opponent_in_the_final FROM table_name_88 WHERE partnering = \"graydon oliver\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (launch_failures INTEGER, launched VARCHAR, not_usable VARCHAR)", "role": "system" }, { "content": "What is the total launch failures when there are 4 launches, and the not usable is greater than 0?", "role": "user" }, { "content": "SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 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_65 (result VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the result of the game with a score of 4-1?", "role": "user" }, { "content": "SELECT result FROM table_name_65 WHERE score = \"4-1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14058433_5 (lost VARCHAR, club VARCHAR)", "role": "system" }, { "content": "what's the lost with club being colwyn bay rfc", "role": "user" }, { "content": "SELECT lost FROM table_14058433_5 WHERE club = \"Colwyn Bay RFC\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22118197_1 (result VARCHAR, portuguese_title VARCHAR)", "role": "system" }, { "content": "What was the result of the film with the Portuguese title, Um Filme Falado? ", "role": "user" }, { "content": "SELECT result FROM table_22118197_1 WHERE portuguese_title = \"Um Filme Falado\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (attendance INTEGER, loss VARCHAR)", "role": "system" }, { "content": "Which Attendance is the highest one that has a Loss of batista (4-5)?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_3 WHERE loss = \"batista (4-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_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)", "role": "system" }, { "content": "How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?", "role": "user" }, { "content": "SELECT missing FROM table_name_89 WHERE killed = \"0 off 0 men\" AND wounded = \"0 off 0 men\" AND unit = \"royal waggon train\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Place of the Player with a Score of 73-68-71=212?", "role": "user" }, { "content": "SELECT place FROM table_name_16 WHERE score = 73 - 68 - 71 = 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_75 (game_3 VARCHAR, game_1 VARCHAR)", "role": "system" }, { "content": "Which Game 3 has a Game 1 of brett kenny?", "role": "user" }, { "content": "SELECT game_3 FROM table_name_75 WHERE game_1 = \"brett kenny\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (l_100km_urban__cold_ INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR, engine_capacity VARCHAR, mpg_us_urban VARCHAR)", "role": "system" }, { "content": "What is the average L/100km urban (cold) for engine capacities over 1910, mpg in the US (urban) under 25.3, mpg in the UK (combined) over 27.2, and mpg in the UK (urban, cold) of 22.4?", "role": "user" }, { "content": "SELECT AVG(l_100km_urban__cold_) FROM table_name_27 WHERE engine_capacity > 1910 AND mpg_us_urban < 25.3 AND mpg_uk_combined > 27.2 AND mpg_uk_urban__cold_ = 22.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_30 (association VARCHAR, horse_1 VARCHAR)", "role": "system" }, { "content": "With which association did estribillo ii run as Horse 1?", "role": "user" }, { "content": "SELECT association FROM table_name_30 WHERE horse_1 = \"estribillo ii\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (weeks_on_top VARCHAR, artist VARCHAR)", "role": "system" }, { "content": "How many weeks on top was the single from Savage Garden?", "role": "user" }, { "content": "SELECT weeks_on_top FROM table_name_16 WHERE artist = \"savage garden\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR)", "role": "system" }, { "content": "what is the team when the rounds is all engine is mercedes hwa and driver is sam abay?", "role": "user" }, { "content": "SELECT team FROM table_name_54 WHERE rounds = \"all\" AND engine = \"mercedes hwa\" AND driver = \"sam abay\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_261895_1 (institution VARCHAR, founded VARCHAR)", "role": "system" }, { "content": "in 1833, how many institutions were created?", "role": "user" }, { "content": "SELECT COUNT(institution) FROM table_261895_1 WHERE founded = 1833", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (car_no VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What car number had 24 points?", "role": "user" }, { "content": "SELECT car_no FROM table_name_13 WHERE points = \"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_60 (left_team VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Tell me the left team for josh vanlandingham", "role": "user" }, { "content": "SELECT left_team FROM table_name_60 WHERE name = \"josh vanlandingham\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What was the average crowd size when the away team was South Melbourne?", "role": "user" }, { "content": "SELECT AVG(crowd) FROM table_name_63 WHERE away_team = \"south melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was being played on Nov 23, 2006?", "role": "user" }, { "content": "SELECT competition FROM table_name_79 WHERE date = \"nov 23, 2006\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (Id VARCHAR)", "role": "system" }, { "content": "What 2009 has 18.5% as the 2007?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_49 WHERE 2007 = \"18.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_18 (role VARCHAR, actor VARCHAR)", "role": "system" }, { "content": "What role is Kevin Bishop the actor?", "role": "user" }, { "content": "SELECT role FROM table_name_18 WHERE actor = \"kevin bishop\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (lane INTEGER, heat VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the highest lane for heat 6 with a time of dns?", "role": "user" }, { "content": "SELECT MAX(lane) FROM table_name_81 WHERE heat = 6 AND time = \"dns\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who is the away side at windy hill?", "role": "user" }, { "content": "SELECT away_team FROM table_name_35 WHERE venue = \"windy hill\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (swimsuit VARCHAR, evening_gown VARCHAR, interview VARCHAR)", "role": "system" }, { "content": "How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?", "role": "user" }, { "content": "SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11174272_1 (premiere VARCHAR, hk_viewers VARCHAR)", "role": "system" }, { "content": "what's the premiere with hk viewers of 2.09 million", "role": "user" }, { "content": "SELECT premiere FROM table_11174272_1 WHERE hk_viewers = \"2.09 million\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (elector VARCHAR, faction VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "Who was the Prato Elector with a faction of Italian?", "role": "user" }, { "content": "SELECT elector FROM table_name_51 WHERE faction = \"italian\" AND nationality = \"prato\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (position VARCHAR, years_in_toronto VARCHAR)", "role": "system" }, { "content": "Who has position in year 1996-97 in Toronto?", "role": "user" }, { "content": "SELECT position FROM table_name_88 WHERE years_in_toronto = \"1996-97\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23916539_3 (record VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What is the record if the location is Clarke Stadium?", "role": "user" }, { "content": "SELECT record FROM table_23916539_3 WHERE location = \"Clarke 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_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR)", "role": "system" }, { "content": "Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?", "role": "user" }, { "content": "SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = \"Anastasia Chervyakova Romina Gabdullina\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24915964_4 (field_goals VARCHAR, points VARCHAR)", "role": "system" }, { "content": "How many field goals had 597 points?", "role": "user" }, { "content": "SELECT COUNT(field_goals) FROM table_24915964_4 WHERE points = 597", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent_number VARCHAR, date VARCHAR)", "role": "system" }, { "content": "WHAT OPPONENT WAS ON OCTOBER 7?", "role": "user" }, { "content": "SELECT opponent_number FROM table_name_37 WHERE date = \"october 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_97 (high_rebounds VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Which High rebounds has a Game of 76?", "role": "user" }, { "content": "SELECT high_rebounds FROM table_name_97 WHERE game = 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 Students (date_of_latest_logon VARCHAR, family_name VARCHAR)", "role": "system" }, { "content": "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?", "role": "user" }, { "content": "SELECT date_of_latest_logon FROM Students WHERE family_name = \"Jaskolski\" OR family_name = \"Langosh\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (country VARCHAR, airport VARCHAR)", "role": "system" }, { "content": "Paris-Charles de Gaulle airport is in which country?", "role": "user" }, { "content": "SELECT country FROM table_name_46 WHERE airport = \"paris-charles de gaulle 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_65 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?", "role": "user" }, { "content": "SELECT opponent FROM table_name_65 WHERE type = \"ud\" AND round = \"10\" AND date = \"2008-06-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 Customers (Id VARCHAR)", "role": "system" }, { "content": "How many customers do we have?", "role": "user" }, { "content": "SELECT COUNT(*) FROM Customers", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_98 WHERE 2008 = \"a\" AND 2012 = \"1r\" AND 2010 = \"q2\" AND 2011 = \"2r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR)", "role": "system" }, { "content": "What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?", "role": "user" }, { "content": "SELECT actors_name FROM table_10236830_6 WHERE film_name = \"Chopin: Desire for Love\" AND nomination = \"Best Actress in a Leading Role\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (years VARCHAR, win_percentage VARCHAR)", "role": "system" }, { "content": "What year was the Win percentage 60%?", "role": "user" }, { "content": "SELECT years FROM table_name_77 WHERE win_percentage = \"60%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd VARCHAR, ground VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "How much is the crowd attending at colonial stadium where Hawthorn plays?", "role": "user" }, { "content": "SELECT crowd FROM table_name_9 WHERE ground = \"colonial stadium\" AND home_team = \"hawthorn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Treatments (cost_of_treatment VARCHAR, treatment_type_code VARCHAR); CREATE TABLE treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)", "role": "system" }, { "content": "List the cost of each treatment and the corresponding treatment type description.", "role": "user" }, { "content": "SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_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_name_35 (thickness VARCHAR, year_of_issue INTEGER)", "role": "system" }, { "content": "Which Thickness has a Year of Issue smaller than 1983?", "role": "user" }, { "content": "SELECT thickness FROM table_name_35 WHERE year_of_issue < 1983", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341586_26 (result VARCHAR, candidates VARCHAR)", "role": "system" }, { "content": "How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%?", "role": "user" }, { "content": "SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = \"Gene Taylor (R) 67.0% Ken Young (D) 33.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_53 (total_area VARCHAR, code VARCHAR, density__per_km_2_land_ VARCHAR)", "role": "system" }, { "content": "What is the total area for a code less than 1862 and a density (per km 2 land) of 21.6?", "role": "user" }, { "content": "SELECT total_area FROM table_name_53 WHERE code < 1862 AND density__per_km_2_land_ = 21.6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)", "role": "system" }, { "content": "what is the gold when the bronze is 1, total is 6 and silver is less than 3?", "role": "user" }, { "content": "SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = \"6\" AND silver < 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_72 (pick__number VARCHAR, player VARCHAR)", "role": "system" }, { "content": "How many times is the player scott deibert?", "role": "user" }, { "content": "SELECT COUNT(pick__number) FROM table_name_72 WHERE player = \"scott deibert\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What was the away team score at victoria park?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_62 WHERE venue = \"victoria park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11734041_7 (position VARCHAR, years_for_rockets VARCHAR)", "role": "system" }, { "content": "What are all the positions for the rockets in 2008?", "role": "user" }, { "content": "SELECT position FROM table_11734041_7 WHERE years_for_rockets = \"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_52 (score VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What score did John Mahaffey have?", "role": "user" }, { "content": "SELECT score FROM table_name_52 WHERE player = \"john mahaffey\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (losses INTEGER, wimmera_fl VARCHAR)", "role": "system" }, { "content": "Which Losses have a Wimmera FL of minyip murtoa?", "role": "user" }, { "content": "SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = \"minyip murtoa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which event was Ye Shiwen in?", "role": "user" }, { "content": "SELECT event FROM table_name_23 WHERE name = \"ye shiwen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2679061_6 (position VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "what is the position for pick # 103?", "role": "user" }, { "content": "SELECT position FROM table_2679061_6 WHERE pick__number = 103", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (season VARCHAR, away VARCHAR, league VARCHAR, home VARCHAR)", "role": "system" }, { "content": "What season has a regionalliga süd league, a 1-0 home, and an away of 2-3?", "role": "user" }, { "content": "SELECT season FROM table_name_38 WHERE league = \"regionalliga süd\" AND home = \"1-0\" AND away = \"2-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_67 (save VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the save of the game with a 7-6 score?", "role": "user" }, { "content": "SELECT save FROM table_name_67 WHERE score = \"7-6\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the record of game 7?", "role": "user" }, { "content": "SELECT record FROM table_name_4 WHERE game = 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_24 (weight__kg_ INTEGER, position VARCHAR)", "role": "system" }, { "content": "What is the highest weight of the position scrum half?", "role": "user" }, { "content": "SELECT MAX(weight__kg_) FROM table_name_24 WHERE position = \"scrum half\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26250176_1 (theme VARCHAR, week__number VARCHAR)", "role": "system" }, { "content": "What is the theme for Audition week?", "role": "user" }, { "content": "SELECT theme FROM table_26250176_1 WHERE week__number = \"Audition\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "When was the record 3-14-6?", "role": "user" }, { "content": "SELECT date FROM table_name_62 WHERE record = \"3-14-6\"", "role": "assistant" } ]