messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the score when the record is 5-4-1?", "role": "user" }, { "content": "SELECT score FROM table_name_52 WHERE record = \"5-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_10812293_6 (high_assists VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who got high assists for the game played on February 9?", "role": "user" }, { "content": "SELECT high_assists FROM table_10812293_6 WHERE date = \"February 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_11680175_1 (bötzow VARCHAR, vehlefanz VARCHAR)", "role": "system" }, { "content": "What was the number for Bötzow where Vehlefanz is 1.800?", "role": "user" }, { "content": "SELECT bötzow FROM table_11680175_1 WHERE vehlefanz = \"1.800\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (assisted VARCHAR, solo VARCHAR, sack VARCHAR)", "role": "system" }, { "content": "what is the assisted when the solo is 6 and sack is less than 5?", "role": "user" }, { "content": "SELECT assisted FROM table_name_79 WHERE solo = 6 AND sack < 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_5 (location VARCHAR, entered_service VARCHAR, customer VARCHAR)", "role": "system" }, { "content": "What location entered service in 1999 and had a customer of Anadarko?", "role": "user" }, { "content": "SELECT location FROM table_name_5 WHERE entered_service = \"1999\" AND customer = \"anadarko\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (population VARCHAR, area__km²_ VARCHAR)", "role": "system" }, { "content": "What is the Population of the nation that has an Area (km²) of 70,273?", "role": "user" }, { "content": "SELECT population FROM table_name_31 WHERE area__km²_ = \"70,273\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (san_jose_goals INTEGER, san_jose_wins INTEGER)", "role": "system" }, { "content": "Which San Jose goals have a San Jose wins smaller than 0?", "role": "user" }, { "content": "SELECT MIN(san_jose_goals) FROM table_name_28 WHERE san_jose_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_8 (player VARCHAR, place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What Player with a Place of T10 had a Score of 80-70-72-72=294?", "role": "user" }, { "content": "SELECT player FROM table_name_8 WHERE place = \"t10\" AND score = 80 - 70 - 72 - 72 = 294", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 67?", "role": "user" }, { "content": "SELECT place FROM table_name_16 WHERE score = 67", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26847237_2 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What position does the player Todd Wise play in?", "role": "user" }, { "content": "SELECT position FROM table_26847237_2 WHERE player = \"Todd Wise\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1507806_1 (year INTEGER, runner_up VARCHAR)", "role": "system" }, { "content": "WHAT WAS THE YEAR WHEN THE RUNNER-UP WAS WILLIAM MEHLHORN?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_1507806_1 WHERE runner_up = \"William Mehlhorn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (record VARCHAR, round VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What's the record of the UCS 2 - Battle at the Barn when the round was n/a?", "role": "user" }, { "content": "SELECT record FROM table_name_7 WHERE round = \"n/a\" AND event = \"ucs 2 - battle at the barn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23338693_1 (team VARCHAR, position VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Which team has nc position for 2010 season?", "role": "user" }, { "content": "SELECT team FROM table_23338693_1 WHERE position = \"NC\" AND season = 2010", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE player (Team VARCHAR)", "role": "system" }, { "content": "What are the teams of the players, sorted in ascending alphabetical order?", "role": "user" }, { "content": "SELECT Team FROM player ORDER BY Team", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR)", "role": "system" }, { "content": "what are all the report where winning constructor is williams - renault and grand prix is south african grand prix", "role": "user" }, { "content": "SELECT report FROM table_1137704_2 WHERE winning_constructor = \"Williams - Renault\" AND grand_prix = \"South African grand_prix\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Where did Hawthorn play an away game?", "role": "user" }, { "content": "SELECT venue FROM table_name_6 WHERE away_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 table_1220125_4 (fate VARCHAR, commissioned VARCHAR)", "role": "system" }, { "content": "What is the fate for 11 april 1944?", "role": "user" }, { "content": "SELECT fate FROM table_1220125_4 WHERE commissioned = \"11 April 1944\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What's the average attendance on january 6, 2008?", "role": "user" }, { "content": "SELECT AVG(attendance) FROM table_name_34 WHERE date = \"january 6, 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_95 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the record on july 24?", "role": "user" }, { "content": "SELECT record FROM table_name_95 WHERE date = \"july 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_78 (height VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Alex Poythress height?", "role": "user" }, { "content": "SELECT height FROM table_name_78 WHERE player = \"alex poythress\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR)", "role": "system" }, { "content": "what is the 2011 performance for the US open?", "role": "user" }, { "content": "SELECT 2011 FROM table_name_2 WHERE tournament = \"us open\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26401898_2 (game_site VARCHAR, final_score VARCHAR)", "role": "system" }, { "content": "Name the game site for l 26–42", "role": "user" }, { "content": "SELECT game_site FROM table_26401898_2 WHERE final_score = \"L 26–42\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "What are all the production codes of episodes written by Michael G. Moye?", "role": "user" }, { "content": "SELECT production_code FROM table_2226817_8 WHERE written_by = \"Michael G. Moye\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (year INTEGER, theatre VARCHAR)", "role": "system" }, { "content": "Tell me the lowest year for shubert theatre", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_72 WHERE theatre = \"shubert theatre\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE AssignedTo (ssn VARCHAR, scientist VARCHAR); CREATE TABLE scientists (ssn VARCHAR, scientist VARCHAR)", "role": "system" }, { "content": "Find the number of scientists who are not assigned to any project.", "role": "user" }, { "content": "SELECT COUNT(*) FROM scientists WHERE NOT ssn IN (SELECT scientist FROM AssignedTo)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the score on 14 march 2004?", "role": "user" }, { "content": "SELECT score FROM table_name_39 WHERE date = \"14 march 2004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)", "role": "system" }, { "content": "who danced 11 and finished at more than a 2.0", "role": "user" }, { "content": "SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.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_79 (year INTEGER, index VARCHAR)", "role": "system" }, { "content": "What year is the happy planet index?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_79 WHERE index = \"happy planet index\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (race VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Whice race ended with a DNF?", "role": "user" }, { "content": "SELECT race FROM table_name_98 WHERE position = \"dnf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What country did Bart Bryant with a score of 69-70=139 belong to?", "role": "user" }, { "content": "SELECT country FROM table_name_37 WHERE score = 69 - 70 = 139 AND player = \"bart bryant\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (high_points VARCHAR, location_attendance VARCHAR)", "role": "system" }, { "content": "Who had the high points when they played in Philips Arena 14,413?", "role": "user" }, { "content": "SELECT high_points FROM table_name_48 WHERE location_attendance = \"philips arena 14,413\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_e VARCHAR, team_f VARCHAR)", "role": "system" }, { "content": "Who is team E when Jason Manning is Team F?", "role": "user" }, { "content": "SELECT team_e FROM table_name_89 WHERE team_f = \"jason manning\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20785990_2 (height VARCHAR, home_town VARCHAR)", "role": "system" }, { "content": "What is the height of the player from Gulfport, MS?", "role": "user" }, { "content": "SELECT height FROM table_20785990_2 WHERE home_town = \"Gulfport, MS\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27708484_3 (overall_goals_scored INTEGER, stadium VARCHAR)", "role": "system" }, { "content": "how many overall goals were scored at moses mabhida stadium?", "role": "user" }, { "content": "SELECT MAX(overall_goals_scored) FROM table_27708484_3 WHERE stadium = \"Moses Mabhida 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_242785_3 (notes VARCHAR, date_founded__founder VARCHAR)", "role": "system" }, { "content": "What are the notes during 57 bc caesar?", "role": "user" }, { "content": "SELECT notes FROM table_242785_3 WHERE date_founded__founder = \"57 BC Caesar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (born_died VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the Born-Died date for the Representative of Italy?", "role": "user" }, { "content": "SELECT born_died FROM table_name_16 WHERE country = \"italy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (novelty VARCHAR, authors VARCHAR)", "role": "system" }, { "content": "What is the Novelty of the dinosaur, whose naming Author was Galton?", "role": "user" }, { "content": "SELECT novelty FROM table_name_37 WHERE authors = \"galton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)", "role": "system" }, { "content": "What is the name of each course and the corresponding number of student enrollment?", "role": "user" }, { "content": "SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (surname VARCHAR, first VARCHAR)", "role": "system" }, { "content": "What is Michael's surname?", "role": "user" }, { "content": "SELECT surname FROM table_name_16 WHERE first = \"michael\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, week VARCHAR)", "role": "system" }, { "content": "what is the date on week 6", "role": "user" }, { "content": "SELECT date FROM table_name_97 WHERE week = 6", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_206217_2 (periselene__km_ VARCHAR, epoch__utc_ VARCHAR)", "role": "system" }, { "content": "How many values of periselene when epoch is November 15, 2004, 17:47:12.1?", "role": "user" }, { "content": "SELECT COUNT(periselene__km_) FROM table_206217_2 WHERE epoch__utc_ = \"November 15, 2004, 17:47:12.1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (eviction_result VARCHAR, net_vote VARCHAR)", "role": "system" }, { "content": "Which Eviction result has a Net vote of 31.86%?", "role": "user" }, { "content": "SELECT eviction_result FROM table_name_10 WHERE net_vote = \"31.86%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Where was the location when the record was 12-5?", "role": "user" }, { "content": "SELECT location FROM table_name_89 WHERE record = \"12-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_38 (driver VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Which driver has a grid value of 22?", "role": "user" }, { "content": "SELECT driver FROM table_name_38 WHERE grid = \"22\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28005100_1 (no VARCHAR, title VARCHAR)", "role": "system" }, { "content": "How many numbers are there for kam wa7ed fina?", "role": "user" }, { "content": "SELECT COUNT(no) FROM table_28005100_1 WHERE title = \"Kam Wa7ed Fina\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Name the date for w 31-28", "role": "user" }, { "content": "SELECT date FROM table_name_60 WHERE result = \"w 31-28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1875157_2 (starts INTEGER, avg_finish VARCHAR)", "role": "system" }, { "content": "What is the maximum starts that result in an average finish of 16.5?", "role": "user" }, { "content": "SELECT MAX(starts) FROM table_1875157_2 WHERE avg_finish = \"16.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_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR)", "role": "system" }, { "content": "What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?", "role": "user" }, { "content": "SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = \"13.16 (94) – 13.10 (88)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (series VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Series has a Score of 0–6?", "role": "user" }, { "content": "SELECT series FROM table_name_99 WHERE score = \"0–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_33 (date_of_release INTEGER, title VARCHAR)", "role": "system" }, { "content": "WHAT IS THE AVERAGE DATE OF RELEASE FOR THICKSKIN?", "role": "user" }, { "content": "SELECT AVG(date_of_release) FROM table_name_33 WHERE title = \"thickskin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL 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 (school_code VARCHAR, dept_name VARCHAR)", "role": "system" }, { "content": "Find the number of different departments in each school whose number of different departments is less than 5.", "role": "user" }, { "content": "SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 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_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR)", "role": "system" }, { "content": "What is the weekly rank for a share of 9 and 9.42 million viewers?", "role": "user" }, { "content": "SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (secr_numbers VARCHAR, year_made VARCHAR)", "role": "system" }, { "content": "What was the SECR number of the item made in 1861?", "role": "user" }, { "content": "SELECT secr_numbers FROM table_name_31 WHERE year_made = \"1861\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the country listed that has a place of t4 with a score of 72-70=142?", "role": "user" }, { "content": "SELECT country FROM table_name_85 WHERE place = \"t4\" AND score = 72 - 70 = 142", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gold INTEGER, rank VARCHAR, total VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What is the gold number when total is more than 1, and bronze is 0, and rank is 5?", "role": "user" }, { "content": "SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = \"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_47 (score VARCHAR, time VARCHAR)", "role": "system" }, { "content": "what is the score when the time is 2:22?", "role": "user" }, { "content": "SELECT score FROM table_name_47 WHERE time = \"2:22\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (lowest INTEGER, stadium VARCHAR, average VARCHAR)", "role": "system" }, { "content": "What's the highest lowest number of capacity that ibrox stadium has when the average is larger than 49,143?", "role": "user" }, { "content": "SELECT MAX(lowest) FROM table_name_67 WHERE stadium = \"ibrox stadium\" AND average > 49 OFFSET 143", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25421463_1 (races INTEGER)", "role": "system" }, { "content": "What is the fewest amount of races in any season? ", "role": "user" }, { "content": "SELECT MIN(races) FROM table_25421463_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_29778616_1 (price VARCHAR, manufacturer VARCHAR)", "role": "system" }, { "content": "What is the price for the manufacturer LETech?", "role": "user" }, { "content": "SELECT price FROM table_29778616_1 WHERE manufacturer = \"LETech\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)", "role": "system" }, { "content": "What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = \"drama desk award\" AND category = \"outstanding featured actress in a musical\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (date_of_attack VARCHAR, fate VARCHAR, cargo VARCHAR)", "role": "system" }, { "content": "What is the Date of attack of the ship with iron ore sunk by u-101 *?", "role": "user" }, { "content": "SELECT date_of_attack FROM table_name_39 WHERE fate = \"sunk by u-101 *\" AND cargo = \"iron ore\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (television_service VARCHAR, content VARCHAR, package_option VARCHAR)", "role": "system" }, { "content": "What is Television Service, when Content is Calcio, and when Package/Option is Option?", "role": "user" }, { "content": "SELECT television_service FROM table_name_5 WHERE content = \"calcio\" AND package_option = \"option\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_1 INTEGER, agg VARCHAR)", "role": "system" }, { "content": "What's the lowest team 1 number that had asolo fonte (veneto b) as the Agg.?", "role": "user" }, { "content": "SELECT MIN(team_1) FROM table_name_89 WHERE agg = \"asolo fonte (veneto b)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10706961_2 (rd INTEGER, pole_position VARCHAR)", "role": "system" }, { "content": "What is the highest Rd that Tom Sneva had the pole position in?", "role": "user" }, { "content": "SELECT MAX(rd) FROM table_10706961_2 WHERE pole_position = \"Tom Sneva\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (moving_from VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "The player with a rank of 9, made a move from what football club?", "role": "user" }, { "content": "SELECT moving_from FROM table_name_55 WHERE rank = 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_2 (replaced_by VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the name of the replacement manager for the Bolton Wanderers?", "role": "user" }, { "content": "SELECT replaced_by FROM table_name_2 WHERE team = \"bolton wanderers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22893781_5 (team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was he opponent on december 11?", "role": "user" }, { "content": "SELECT team FROM table_22893781_5 WHERE date = \"December 11\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (medal VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What Medal had a Name of manuel felix diaz?", "role": "user" }, { "content": "SELECT medal FROM table_name_1 WHERE name = \"manuel felix diaz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (tribunal VARCHAR, total VARCHAR)", "role": "system" }, { "content": "Which tribunal had a total of 4167?", "role": "user" }, { "content": "SELECT tribunal FROM table_name_34 WHERE total = \"4167\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?", "role": "user" }, { "content": "SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = \"rob flockhart\" AND rd__number < 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (february VARCHAR, points VARCHAR, score VARCHAR)", "role": "system" }, { "content": "How many February days have Points of 63 and a Score of 1–2?", "role": "user" }, { "content": "SELECT COUNT(february) FROM table_name_40 WHERE points = 63 AND score = \"1–2\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (area__km_2__ INTEGER, population__2000_ VARCHAR)", "role": "system" }, { "content": "What is the smallest area with 45 population?", "role": "user" }, { "content": "SELECT MIN(area__km_2__) FROM table_name_72 WHERE population__2000_ = \"45\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (date VARCHAR, description VARCHAR)", "role": "system" }, { "content": "What is the date of the British Rail class 111 tslrb description?", "role": "user" }, { "content": "SELECT date FROM table_name_40 WHERE description = \"british rail class 111 tslrb\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (Birth VARCHAR, start_of_reign VARCHAR)", "role": "system" }, { "content": "What is the date of birth of the person who started their reign in 1986?", "role": "user" }, { "content": "SELECT Birth AS name FROM table_name_61 WHERE start_of_reign = 1986", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "How much Rank has a Bronze of 21, and a Silver larger than 10?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_41 WHERE bronze = 21 AND silver > 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 (driver VARCHAR, car_model VARCHAR)", "role": "system" }, { "content": "Who is the Driver that has Car Model Commodore VS?", "role": "user" }, { "content": "SELECT driver FROM table_name_26 WHERE car_model = \"commodore vs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25839957_5 (cvt_hd VARCHAR, market VARCHAR)", "role": "system" }, { "content": "What mobile markets have cvt hd?", "role": "user" }, { "content": "SELECT cvt_hd FROM table_25839957_5 WHERE market = \"Mobile\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15261_1 (input_clock__mhz_ VARCHAR, s_spec_number VARCHAR)", "role": "system" }, { "content": "What is the input clock (mhz) for s-spec number sk096?", "role": "user" }, { "content": "SELECT input_clock__mhz_ FROM table_15261_1 WHERE s_spec_number = \"SK096\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (rank INTEGER, nationality VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the lowest rank from Great Britain with a time of 2:10.33?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_40 WHERE nationality = \"great britain\" AND time = \"2:10.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_89 (tamil_months VARCHAR, english_transliteration VARCHAR)", "role": "system" }, { "content": "What are the months in Tamil that has an english transliteration of Mun-pani?", "role": "user" }, { "content": "SELECT tamil_months FROM table_name_89 WHERE english_transliteration = \"mun-pani\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Accounts (Account_details INTEGER)", "role": "system" }, { "content": "What are the account details with the largest value or with value having char '5' in it?", "role": "user" }, { "content": "SELECT MAX(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE \"%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_31 (airport VARCHAR, iata VARCHAR)", "role": "system" }, { "content": "Which airport's IATA is pen?", "role": "user" }, { "content": "SELECT airport FROM table_name_31 WHERE iata = \"pen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (games INTEGER, team VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "How many games does team Czechoslovakia have that had a drawn greater than 0?", "role": "user" }, { "content": "SELECT MAX(games) FROM table_name_18 WHERE team = \"czechoslovakia\" AND drawn > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)", "role": "system" }, { "content": "What is the feature type name of feature AirCon?", "role": "user" }, { "content": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21063459_1 (opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Who did the team play against in the game that resulted with a loss?", "role": "user" }, { "content": "SELECT opponent FROM table_21063459_1 WHERE result = \"Loss\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE countries (CountryName VARCHAR, countryId VARCHAR); CREATE TABLE countries (CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)", "role": "system" }, { "content": "What are the name of the countries where there is not a single car maker?", "role": "user" }, { "content": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (college VARCHAR, round VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Which College has a Round of 11, and a Position of wr?", "role": "user" }, { "content": "SELECT college FROM table_name_42 WHERE round = 11 AND position = \"wr\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2114238_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)", "role": "system" }, { "content": "Which broadcast date has 6.8 million viewers?", "role": "user" }, { "content": "SELECT broadcast_date FROM table_2114238_1 WHERE viewers__in_millions_ = \"6.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_11964154_11 (high_assists VARCHAR, high_rebounds VARCHAR)", "role": "system" }, { "content": "Who had the high assists when the high rebounds were from Nick Collison (15)?", "role": "user" }, { "content": "SELECT high_assists FROM table_11964154_11 WHERE high_rebounds = \"Nick Collison (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_71 (lost INTEGER, against VARCHAR, played VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?", "role": "user" }, { "content": "SELECT MIN(lost) FROM table_name_71 WHERE played > 10 AND team = \"ypiranga-sp\" AND against > 50", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17058151_5 (game VARCHAR, location_attendance VARCHAR)", "role": "system" }, { "content": "In how many game was the attendance at Staples Center 18,997? ", "role": "user" }, { "content": "SELECT COUNT(game) FROM table_17058151_5 WHERE location_attendance = \"Staples Center 18,997\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What CFL team did Darcy Brown play for?", "role": "user" }, { "content": "SELECT cfl_team FROM table_20170644_1 WHERE player = \"Darcy Brown\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, event VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What was the venue of the 400 M Hurdles for the Olympic Games?", "role": "user" }, { "content": "SELECT venue FROM table_name_35 WHERE event = \"400 m hurdles\" AND tournament = \"olympic games\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11621747_1 (tournament VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the tournament on Jul 11?", "role": "user" }, { "content": "SELECT tournament FROM table_11621747_1 WHERE date = \"Jul 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 company (company VARCHAR, rank VARCHAR, Sales_billion VARCHAR)", "role": "system" }, { "content": "List the company name and rank for all companies in the decreasing order of their sales.", "role": "user" }, { "content": "SELECT company, rank FROM company ORDER BY Sales_billion DESC", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27631756_2 (kitmaker VARCHAR, team VARCHAR)", "role": "system" }, { "content": "How many kitmaker correspond to team ittihad kalba?", "role": "user" }, { "content": "SELECT COUNT(kitmaker) FROM table_27631756_2 WHERE team = \"Ittihad Kalba\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round INTEGER, pick INTEGER)", "role": "system" }, { "content": "What is the highest round number of a Pick after 209.", "role": "user" }, { "content": "SELECT MAX(round) FROM table_name_31 WHERE pick > 209", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE trip (start_station_id VARCHAR, start_station_name VARCHAR)", "role": "system" }, { "content": "Find the ids and names of stations from which at least 200 trips started.", "role": "user" }, { "content": "SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (miss_maja_pilipinas VARCHAR, second_runner_up VARCHAR)", "role": "system" }, { "content": "Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?", "role": "user" }, { "content": "SELECT miss_maja_pilipinas FROM table_name_55 WHERE second_runner_up = \"maria penson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR)", "role": "system" }, { "content": "What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?", "role": "user" }, { "content": "SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 2", "role": "assistant" } ]