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_13833770_3 (incumbent VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "who is the the incumbent with opponent being peter king (r) 56.0% david mejias (d) 44.0%", "role": "user" }, { "content": "SELECT incumbent FROM table_13833770_3 WHERE opponent = \"Peter King (R) 56.0% David Mejias (D) 44.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_36 (location VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the Location of the match against Bob Stines?", "role": "user" }, { "content": "SELECT location FROM table_name_36 WHERE opponent = \"bob stines\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (variant__with_niqqud__ VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR)", "role": "system" }, { "content": "When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud?", "role": "user" }, { "content": "SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = \"/v/\" AND without_niqqud = \"as middle letter: וו\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (fa_cup_apps VARCHAR, league_cup_goals VARCHAR, total_apps VARCHAR)", "role": "system" }, { "content": "What is the fa cup apps with 0 league cup goals, and a total of 43 apps?", "role": "user" }, { "content": "SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = \"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_39 (total INTEGER, finish VARCHAR)", "role": "system" }, { "content": "What is the average of the total when t11 is the finish?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_39 WHERE finish = \"t11\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine_s_ VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What engine was made in 1991?", "role": "user" }, { "content": "SELECT engine_s_ FROM table_name_41 WHERE year = 1991", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, round VARCHAR)", "role": "system" }, { "content": "What is the attendance number in the final round?", "role": "user" }, { "content": "SELECT SUM(attendance) FROM table_name_29 WHERE round = \"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_1342149_38 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Which district had Paul B. Dague as the incumbent?", "role": "user" }, { "content": "SELECT district FROM table_1342149_38 WHERE incumbent = \"Paul B. Dague\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, week VARCHAR, result VARCHAR)", "role": "system" }, { "content": "How many were in attendance in a week lower than 5 with a Bye result?", "role": "user" }, { "content": "SELECT attendance FROM table_name_69 WHERE week < 5 AND result = \"bye\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, iata VARCHAR)", "role": "system" }, { "content": "What is the Country when the IATA shows cju?", "role": "user" }, { "content": "SELECT country FROM table_name_98 WHERE iata = \"cju\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (losses INTEGER, portland_dfl VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?", "role": "user" }, { "content": "SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = \"westerns\" AND draws > 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_47 (runs VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Name the Runs which has Venue of adelaide oval , adelaide?", "role": "user" }, { "content": "SELECT runs FROM table_name_47 WHERE venue = \"adelaide oval , adelaide\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23186738_10 (high_rebounds VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Who had the highest rebounds in the game where the record was 27-54?", "role": "user" }, { "content": "SELECT high_rebounds FROM table_23186738_10 WHERE record = \"27-54\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lost INTEGER, points INTEGER)", "role": "system" }, { "content": "What average lost has points greater than 108?", "role": "user" }, { "content": "SELECT AVG(lost) FROM table_name_49 WHERE points > 108", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (entrant VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "Can you tell me the Entrant that has the Laps of 17?", "role": "user" }, { "content": "SELECT entrant FROM table_name_77 WHERE laps = 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_19246_1 (connection_speed VARCHAR, launch_date__ddmmyyyy_ VARCHAR)", "role": "system" }, { "content": "What was the connection speed when launched on 07.06.2005?", "role": "user" }, { "content": "SELECT connection_speed FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = \"07.06.2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR)", "role": "system" }, { "content": "Incumbent John Sullivan has what as biggest first elected?", "role": "user" }, { "content": "SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = \"john sullivan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (builder VARCHAR, completed INTEGER)", "role": "system" }, { "content": "Which builder completed after 1889?", "role": "user" }, { "content": "SELECT builder FROM table_name_93 WHERE completed > 1889", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26815674_1 (wins INTEGER)", "role": "system" }, { "content": "What is the lowest overall amount of wins?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_26815674_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_1973729_1 (location VARCHAR, institution VARCHAR)", "role": "system" }, { "content": "Where is the Eastern Nazarene College located?", "role": "user" }, { "content": "SELECT location FROM table_1973729_1 WHERE institution = \"Eastern Nazarene College\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_170961_2 (population INTEGER, census_ranking VARCHAR)", "role": "system" }, { "content": "At census ranking 1,184 of 5,008, what was the minimum population?", "role": "user" }, { "content": "SELECT MIN(population) FROM table_170961_2 WHERE census_ranking = \"1,184 of 5,008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (head_s__of_government VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the head of government for Don Stephen Senanayake?", "role": "user" }, { "content": "SELECT head_s__of_government FROM table_name_77 WHERE name = \"don stephen senanayake\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, ground VARCHAR)", "role": "system" }, { "content": "What date was the Colonial Stadium?", "role": "user" }, { "content": "SELECT date FROM table_name_62 WHERE ground = \"colonial 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_19778010_5 (opponent VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Who was game number 8 played against?", "role": "user" }, { "content": "SELECT opponent FROM table_19778010_5 WHERE game = 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_47 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is John Crawford's Nationality?", "role": "user" }, { "content": "SELECT nationality FROM table_name_47 WHERE player = \"john crawford\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (height_in_ft VARCHAR, school_club_team_country VARCHAR)", "role": "system" }, { "content": "What is the height of the school club team members in clemson?", "role": "user" }, { "content": "SELECT height_in_ft FROM table_11734041_7 WHERE school_club_team_country = \"Clemson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, class VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "Class of 500cc, and a Wins smaller than 0 had what average year?", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_75 WHERE class = \"500cc\" AND wins < 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_9 (losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)", "role": "system" }, { "content": "What is the losing bonus of the team with 22 pays and 428 points against?", "role": "user" }, { "content": "SELECT losing_bonus FROM table_name_9 WHERE played = \"22\" AND points_against = \"428\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29615165_5 (_percentage_20_39_years VARCHAR, quartier VARCHAR)", "role": "system" }, { "content": "how many 20-39% are in pont-de-vivaux?", "role": "user" }, { "content": "SELECT COUNT(_percentage_20_39_years) FROM table_29615165_5 WHERE quartier = \"Pont-de-Vivaux\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Where was the game held that resulted in a score of 9-2?", "role": "user" }, { "content": "SELECT venue FROM table_name_15 WHERE score = \"9-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_2 (date VARCHAR, week VARCHAR)", "role": "system" }, { "content": "what was the date of the game on week 2?", "role": "user" }, { "content": "SELECT date FROM table_name_2 WHERE week = 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_4 (Id VARCHAR)", "role": "system" }, { "content": "What is the 1994 when QF is 1999?", "role": "user" }, { "content": "SELECT 1994 FROM table_name_4 WHERE 1999 = \"qf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (engine VARCHAR)", "role": "system" }, { "content": "Engine 2.5 20v d has what engine code?", "role": "user" }, { "content": "SELECT engine AS code FROM table_name_46 WHERE engine = \"2.5 20v d\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (viewers__m_ INTEGER, rating VARCHAR, episode VARCHAR)", "role": "system" }, { "content": "What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?", "role": "user" }, { "content": "SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = \"1.7\" AND episode = \"the game of life\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (author___editor___source VARCHAR, world_ranking__1_ VARCHAR, countries_sampled VARCHAR)", "role": "system" }, { "content": "Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking?", "role": "user" }, { "content": "SELECT author___editor___source FROM table_name_86 WHERE world_ranking__1_ = \"35\" AND countries_sampled > 100", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (text_symbol VARCHAR, border VARCHAR)", "role": "system" }, { "content": "Which sign has a red border?", "role": "user" }, { "content": "SELECT text_symbol FROM table_name_42 WHERE border = \"red\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, match VARCHAR)", "role": "system" }, { "content": "What was the result of the napoli-roma match?", "role": "user" }, { "content": "SELECT result FROM table_name_75 WHERE match = \"napoli-roma\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (championship VARCHAR, session VARCHAR, event VARCHAR)", "role": "system" }, { "content": "In the Indianapolis Sweepstakes race session, what is the championship?", "role": "user" }, { "content": "SELECT championship FROM table_name_72 WHERE session = \"race\" AND event = \"indianapolis sweepstakes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the place of Mark O'Meara?", "role": "user" }, { "content": "SELECT place FROM table_name_28 WHERE player = \"mark o'meara\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (name__year_commissioned_ VARCHAR, from_to VARCHAR)", "role": "system" }, { "content": "What is the name of the line from Karratha to Port Hedland?", "role": "user" }, { "content": "SELECT name__year_commissioned_ FROM table_name_74 WHERE from_to = \"karratha to port hedland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12962773_14 (no INTEGER, player VARCHAR)", "role": "system" }, { "content": "What number does aleksandar ćapin wear?", "role": "user" }, { "content": "SELECT MAX(no) FROM table_12962773_14 WHERE player = \"Aleksandar Ćapin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND 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_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What circuit did Rupert Keegan win in round 8?", "role": "user" }, { "content": "SELECT circuit FROM table_name_21 WHERE winning_driver = \"rupert keegan\" AND round = 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_1597866_3 (regular_judge VARCHAR, host VARCHAR)", "role": "system" }, { "content": "Name the regular judge when host is anja rubik", "role": "user" }, { "content": "SELECT regular_judge FROM table_1597866_3 WHERE host = \"Anja Rubik\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (surface VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which Surface has an Opponent of oleksandra kravets?", "role": "user" }, { "content": "SELECT surface FROM table_name_99 WHERE opponent = \"oleksandra kravets\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1637981_7 (kalamazoo__azo_ VARCHAR, saginaw__mbs_ VARCHAR)", "role": "system" }, { "content": "What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?", "role": "user" }, { "content": "SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE saginaw__mbs_ = \"$481.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_8 (points INTEGER, fl VARCHAR, year VARCHAR, races VARCHAR)", "role": "system" }, { "content": "What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 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_47 (catalog VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What Catalog was released in Germany?", "role": "user" }, { "content": "SELECT catalog FROM table_name_47 WHERE region = \"germany\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (capacity INTEGER, margin VARCHAR)", "role": "system" }, { "content": "What's the lowest capacity when the margin is 03:30?", "role": "user" }, { "content": "SELECT MIN(capacity) FROM table_name_77 WHERE margin = \"03:30\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2010 value with a 1r in 2012 and an A in 2005?", "role": "user" }, { "content": "SELECT 2010 FROM table_name_75 WHERE 2012 = \"1r\" AND 2005 = \"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_95 (year INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What year did she compete in tampere, finland?", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_95 WHERE venue = \"tampere, finland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What date was the game played at Lake Oval?", "role": "user" }, { "content": "SELECT date FROM table_name_80 WHERE venue = \"lake 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_99 (total INTEGER, horse VARCHAR)", "role": "system" }, { "content": "Tell me the highest total when the horse is spender s", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_99 WHERE horse = \"spender s\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)", "role": "system" }, { "content": "Find the female friends of Alice.", "role": "user" }, { "content": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Which tie number had an away team of Arsenal?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_5 WHERE away_team = \"arsenal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (no_1 VARCHAR, no_2 VARCHAR)", "role": "system" }, { "content": "What is the No. 1 of the person with a No. 2 of John?", "role": "user" }, { "content": "SELECT no_1 FROM table_name_26 WHERE no_2 = \"john\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (class VARCHAR, vessel_name VARCHAR)", "role": "system" }, { "content": "In which class would the vessel Hyundai Tenacity be placed?", "role": "user" }, { "content": "SELECT class FROM table_name_77 WHERE vessel_name = \"hyundai tenacity\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (record VARCHAR, time___et__ VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Time ( ET ) of 1:00pm, and a Result of w 34–14 has what record?", "role": "user" }, { "content": "SELECT record FROM table_name_67 WHERE time___et__ = \"1:00pm\" AND result = \"w 34–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_2597876_2 (top_10 VARCHAR, team_s_ VARCHAR, avg_finish VARCHAR)", "role": "system" }, { "content": "What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?", "role": "user" }, { "content": "SELECT top_10 FROM table_2597876_2 WHERE team_s_ = \"#10 Phil Parsons Racing\" AND avg_finish = \"22.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_90 (discs VARCHAR, region_1_release VARCHAR)", "role": "system" }, { "content": "What discs has a region 1 release date of January 22, 2008?", "role": "user" }, { "content": "SELECT discs FROM table_name_90 WHERE region_1_release = \"january 22, 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_82 (Id VARCHAR)", "role": "system" }, { "content": "What is 2010, when 2009 is \"1\"?", "role": "user" }, { "content": "SELECT 2010 FROM table_name_82 WHERE 2009 = \"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_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "What is the production code for the episode that had 9.18 million viewers (U.S.)?", "role": "user" }, { "content": "SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = \"9.18\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12002388_1 (playoffs VARCHAR, reg_season VARCHAR)", "role": "system" }, { "content": "What playoff result happened during the season in which they finished 1st, southern?", "role": "user" }, { "content": "SELECT playoffs FROM table_12002388_1 WHERE reg_season = \"1st, Southern\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR)", "role": "system" }, { "content": "What was the grid when the driver was Mark Webber?", "role": "user" }, { "content": "SELECT grid FROM table_name_96 WHERE driver = \"mark webber\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (artist VARCHAR, theme VARCHAR)", "role": "system" }, { "content": "Which artist created the silver dollar for the 400th anniversary of Quebec?", "role": "user" }, { "content": "SELECT artist FROM table_name_80 WHERE theme = \"400th anniversary of quebec\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Who is the home team of South Melbourne?", "role": "user" }, { "content": "SELECT away_team FROM table_name_12 WHERE home_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_5 (fa_cup_goals INTEGER, league_goals VARCHAR)", "role": "system" }, { "content": "What is the sum of FA Cup goals when there are 19 league goals?", "role": "user" }, { "content": "SELECT SUM(fa_cup_goals) FROM table_name_5 WHERE league_goals = \"19\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (week VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which week was there a w 23–14 result?", "role": "user" }, { "content": "SELECT week FROM table_name_1 WHERE result = \"w 23–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_1342338_5 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "In how many districts was the incumbent David Delano Glover? ", "role": "user" }, { "content": "SELECT COUNT(district) FROM table_1342338_5 WHERE incumbent = \"David Delano Glover\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (average INTEGER, sr VARCHAR, runs_scored VARCHAR)", "role": "system" }, { "content": "What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?", "role": "user" }, { "content": "SELECT MIN(average) FROM table_name_74 WHERE sr = 70.43 AND runs_scored < 293", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (date VARCHAR)", "role": "system" }, { "content": "what is the 1st prize for may 21", "role": "user" }, { "content": "SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_19 WHERE date = \"may 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_90 (cardinal_direction VARCHAR, english VARCHAR)", "role": "system" }, { "content": "What is the cardinal direction of Wednesday p.m. in English?", "role": "user" }, { "content": "SELECT cardinal_direction FROM table_name_90 WHERE english = \"wednesday p.m.\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)", "role": "system" }, { "content": "What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?", "role": "user" }, { "content": "SELECT AVG(partial_failures) FROM table_name_53 WHERE country = \"russia\" AND failures > 0 AND family = \"angara\" AND launches > 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_67 (status VARCHAR, census_ranking VARCHAR)", "role": "system" }, { "content": "What is the status of the community with a census ranking of 2,418 of 5,008?", "role": "user" }, { "content": "SELECT status FROM table_name_67 WHERE census_ranking = \"2,418 of 5,008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (city VARCHAR, prize VARCHAR)", "role": "system" }, { "content": "What city did an event have a prize of €288,180?", "role": "user" }, { "content": "SELECT city FROM table_name_96 WHERE prize = \"€288,180\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, height_in_ft VARCHAR)", "role": "system" }, { "content": "What position does the player who is 6-10 play?", "role": "user" }, { "content": "SELECT position FROM table_name_16 WHERE height_in_ft = \"6-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_12886178_5 (club VARCHAR, won VARCHAR)", "role": "system" }, { "content": "How many clubs have won 6 games?", "role": "user" }, { "content": "SELECT COUNT(club) FROM table_12886178_5 WHERE won = \"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_94 (latitude VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR)", "role": "system" }, { "content": "What is the Latitude when the Diameter (km) is 13km, and the Longitude is 72.9° e?", "role": "user" }, { "content": "SELECT latitude FROM table_name_94 WHERE diameter__km_ = \"13km\" AND longitude = \"72.9° e\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)", "role": "system" }, { "content": "Find the name and address of the department that has the highest number of students.", "role": "user" }, { "content": "SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_4 (land___sqmi__ VARCHAR, geo_id VARCHAR)", "role": "system" }, { "content": "Name the land where geo id is 3807717980", "role": "user" }, { "content": "SELECT land___sqmi__ FROM table_18600760_4 WHERE geo_id = 3807717980", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (weight VARCHAR, distance VARCHAR)", "role": "system" }, { "content": "What is the weight number when the distance was 5 ½ f?", "role": "user" }, { "content": "SELECT COUNT(weight) FROM table_name_89 WHERE distance = \"5 ½ f\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, city VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the lowest year that has chester-le-street as the city, with 345 runs as the score?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_49 WHERE city = \"chester-le-street\" AND score = \"345 runs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22860698_2 (opponents VARCHAR, championship VARCHAR)", "role": "system" }, { "content": "How many opponents have wimbledon (2) as the championship?", "role": "user" }, { "content": "SELECT COUNT(opponents) FROM table_22860698_2 WHERE championship = \"Wimbledon (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_13710464_1 (location VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Where was the game played on may 20?", "role": "user" }, { "content": "SELECT location FROM table_13710464_1 WHERE date = \"May 20\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (player VARCHAR, school_club_team_country VARCHAR)", "role": "system" }, { "content": "Which player plays for Illinois?", "role": "user" }, { "content": "SELECT player FROM table_name_1 WHERE school_club_team_country = \"illinois\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24399615_3 (viewers INTEGER, airdate VARCHAR)", "role": "system" }, { "content": "How many viewers were there for airdate is 22 october 2009?", "role": "user" }, { "content": "SELECT MAX(viewers) FROM table_24399615_3 WHERE airdate = \"22 October 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_1539201_1 (february VARCHAR)", "role": "system" }, { "content": "Name all of the february", "role": "user" }, { "content": "SELECT february FROM table_1539201_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 department (dname VARCHAR, mgr_start_date VARCHAR)", "role": "system" }, { "content": "List all department names ordered by their starting date.", "role": "user" }, { "content": "SELECT dname FROM department ORDER BY mgr_start_date", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR)", "role": "system" }, { "content": "Who won the mountains classification when Maarten Tjallingii won most corageous?", "role": "user" }, { "content": "SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = \"Maarten Tjallingii\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "How many laps were completed in the time of +7.213 with a grid number larger than 7?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_85 WHERE time_retired = \"+7.213\" AND grid > 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_58 (year VARCHAR, edition VARCHAR)", "role": "system" }, { "content": "Which Year has an Edition of 41st?", "role": "user" }, { "content": "SELECT year FROM table_name_58 WHERE edition = \"41st\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14312471_3 (away_team VARCHAR)", "role": "system" }, { "content": "Name the away team score for richmond", "role": "user" }, { "content": "SELECT away_team AS score FROM table_14312471_3 WHERE away_team = \"Richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (code INTEGER, regional_county_municipality VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?", "role": "user" }, { "content": "SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = \"le haut-saint-laurent\" AND region > 16", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (Id VARCHAR)", "role": "system" }, { "content": "Tell me the 2008 for when 2001 of wta premier 5 tournaments", "role": "user" }, { "content": "SELECT 2008 FROM table_name_87 WHERE 2001 = \"wta premier 5 tournaments\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11545282_10 (player VARCHAR, no VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Which forward player has the number 22?", "role": "user" }, { "content": "SELECT player FROM table_11545282_10 WHERE no = \"22\" AND position = \"Forward\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (league_goals VARCHAR, fa_cup_apps VARCHAR)", "role": "system" }, { "content": "How many League Goals have an FA Cup Apps of 0 (1)?", "role": "user" }, { "content": "SELECT COUNT(league_goals) FROM table_name_84 WHERE fa_cup_apps = \"0 (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_11964154_11 (high_assists VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Who had the high assists @ Dallas?", "role": "user" }, { "content": "SELECT high_assists FROM table_11964154_11 WHERE team = \"@ Dallas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?", "role": "user" }, { "content": "SELECT winning_driver FROM table_name_15 WHERE winning_team = \"a.z.k./roc-compétition a.z.k./roc-compétition\" AND date = \"2 june\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10432351_1 (mass__m___ INTEGER, radius__r___ VARCHAR)", "role": "system" }, { "content": "If a radius is 10, what is the lowest possible mass?", "role": "user" }, { "content": "SELECT MIN(mass__m___) FROM table_10432351_1 WHERE radius__r___ = 10", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (visitor VARCHAR, home VARCHAR)", "role": "system" }, { "content": "Who was the visitor team in tampa bay?", "role": "user" }, { "content": "SELECT visitor FROM table_name_26 WHERE home = \"tampa bay\"", "role": "assistant" } ]