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_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR)", "role": "system" }, { "content": "Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?", "role": "user" }, { "content": "SELECT MAX(draw) FROM table_name_13 WHERE points = \"22\" AND goals_conceded < 26", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_5 (language VARCHAR, television_service VARCHAR, nΒ° VARCHAR)", "role": "system" }, { "content": "What language is Sky Cinema Passion television service n. 308?", "role": "user" }, { "content": "SELECT language FROM table_15887683_5 WHERE television_service = \"Sky Cinema Passion\" AND nΒ° = \"308\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (television_service VARCHAR, content VARCHAR)", "role": "system" }, { "content": "What is the Television Service offering Cartomanzia?", "role": "user" }, { "content": "SELECT television_service FROM table_name_36 WHERE content = \"cartomanzia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (last_year VARCHAR, first_year VARCHAR)", "role": "system" }, { "content": "When did the comic which came out in 1982 end?", "role": "user" }, { "content": "SELECT last_year FROM table_name_75 WHERE first_year = \"1982\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1067441_1 (province VARCHAR, density VARCHAR)", "role": "system" }, { "content": "Which province has a density of 971.4?", "role": "user" }, { "content": "SELECT province FROM table_1067441_1 WHERE density = \"971.4\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (power__kw_ VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "What is the Power (kW) for the station with the frequency of 98.7mhz?", "role": "user" }, { "content": "SELECT power__kw_ FROM table_name_26 WHERE frequency = \"98.7mhz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24192031_2 (age VARCHAR, height VARCHAR)", "role": "system" }, { "content": "How old is the person with the height of m (ft 3⁄4 in)?", "role": "user" }, { "content": "SELECT age FROM table_24192031_2 WHERE height = \"m (ft 3⁄4 in)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (best INTEGER, name VARCHAR)", "role": "system" }, { "content": "What is the total best for Bruno junqueira", "role": "user" }, { "content": "SELECT SUM(best) FROM table_name_32 WHERE name = \"bruno junqueira\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gdp__nominal_ VARCHAR, population VARCHAR)", "role": "system" }, { "content": "Which GDP (nominal) has a Population of 5,550,239?", "role": "user" }, { "content": "SELECT gdp__nominal_ FROM table_name_98 WHERE population = \"5,550,239\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?", "role": "user" }, { "content": "SELECT COUNT(heat) FROM table_name_48 WHERE lane = 2 AND rank > 75 AND nationality = \"madagascar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (podiums VARCHAR, f_laps VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What listing for Podiums has 0 F/laps and 39 points?", "role": "user" }, { "content": "SELECT podiums FROM table_name_38 WHERE f_laps = \"0\" AND points = \"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_76 (overall INTEGER, college VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Which Overall has a College of florida state, and a Round larger than 2?", "role": "user" }, { "content": "SELECT SUM(overall) FROM table_name_76 WHERE college = \"florida state\" AND round > 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_50 (tatsuhito_takaiwa VARCHAR, ryusuke_taguchi VARCHAR)", "role": "system" }, { "content": "Name for me the tatsuhito takaiwa for Ryusuke Taguchi of taguchi (14:31)", "role": "user" }, { "content": "SELECT tatsuhito_takaiwa FROM table_name_50 WHERE ryusuke_taguchi = \"taguchi (14:31)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (partner VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which Partner had an Opponent of darija jurak carmen klaschka?", "role": "user" }, { "content": "SELECT partner FROM table_name_74 WHERE opponent = \"darija jurak carmen klaschka\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14871601_1 (losses INTEGER, team VARCHAR)", "role": "system" }, { "content": "What is the largest loss for the Tacuary team?", "role": "user" }, { "content": "SELECT MAX(losses) FROM table_14871601_1 WHERE team = \"Tacuary\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20074209_1 (redskins__score_ VARCHAR, opponent__score_ VARCHAR)", "role": "system" }, { "content": "what is redskins (score) against tennessee titans 27", "role": "user" }, { "content": "SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = \"Tennessee Titans 27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result of the game against the Los Angeles Dons?", "role": "user" }, { "content": "SELECT result FROM table_name_49 WHERE opponent = \"los angeles dons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (year VARCHAR)", "role": "system" }, { "content": "what is 2001 when the year is ebitda and 2009 is less than 3,600?", "role": "user" }, { "content": "SELECT SUM(2001) FROM table_name_73 WHERE year = \"ebitda\" AND 2009 < 3 OFFSET 600", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (athlete VARCHAR, notes VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Who has a time of 7:26.85 and notes of sc/d?", "role": "user" }, { "content": "SELECT athlete FROM table_name_59 WHERE notes = \"sc/d\" AND time = \"7:26.85\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd INTEGER, home_team VARCHAR)", "role": "system" }, { "content": "What is the largest crowd for a Home team of carlton?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_96 WHERE home_team = \"carlton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (position_in_2012 VARCHAR, last_title VARCHAR, first_season VARCHAR)", "role": "system" }, { "content": "what is the position is 2012 when the last title is n/a and the first season is 2011?", "role": "user" }, { "content": "SELECT position_in_2012 FROM table_name_93 WHERE last_title = \"n/a\" AND first_season = \"2011\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)", "role": "system" }, { "content": "How many countries played in the city of ljungskile?", "role": "user" }, { "content": "SELECT COUNT(country) FROM table_28005160_2 WHERE city = \"Ljungskile\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)", "role": "system" }, { "content": "What was the score when the home team had a crowd larger than 21,188?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_32 WHERE crowd > 21 OFFSET 188", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24538140_2 (match1 VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the score for match 1 for the team Eastern Tigers?", "role": "user" }, { "content": "SELECT match1 FROM table_24538140_2 WHERE team = \"Eastern Tigers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (prefecture VARCHAR, province VARCHAR, county VARCHAR)", "role": "system" }, { "content": "Which prefecture is in Hubei province and Enshi county?", "role": "user" }, { "content": "SELECT prefecture FROM table_name_94 WHERE province = \"hubei\" AND county = \"enshi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total VARCHAR, set_2 VARCHAR, score VARCHAR, set_3 VARCHAR)", "role": "system" }, { "content": "What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?", "role": "user" }, { "content": "SELECT total FROM table_name_16 WHERE score = \"3-0\" AND set_3 = \"25-18\" AND set_2 = \"25-12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?", "role": "user" }, { "content": "SELECT opponents FROM table_name_84 WHERE surface = \"clay\" AND score = \"6–3, 7–6 (11–9)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (date VARCHAR, source VARCHAR)", "role": "system" }, { "content": "When has a Source of rasmussen reports?", "role": "user" }, { "content": "SELECT date FROM table_name_39 WHERE source = \"rasmussen reports\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "What is the time/retired for the car with over 9 laps and a grid of 6?", "role": "user" }, { "content": "SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 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_47 (attendance INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "What is the highest number in attendance against the game at Kansas City Chiefs?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_47 WHERE opponent = \"at kansas city chiefs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (enrollment INTEGER, location VARCHAR)", "role": "system" }, { "content": "What is the Enrollment at Onalaska?", "role": "user" }, { "content": "SELECT MAX(enrollment) FROM table_name_93 WHERE location = \"onalaska\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19897294_11 (no_in_season VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "What episode in the season was episode us18 in the series?", "role": "user" }, { "content": "SELECT COUNT(no_in_season) FROM table_19897294_11 WHERE no_in_series = \"US18\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the score of the game with a record of 18-22-13?", "role": "user" }, { "content": "SELECT score FROM table_name_18 WHERE record = \"18-22-13\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Customers (payment_method VARCHAR)", "role": "system" }, { "content": "Find the payment method that is used most frequently.", "role": "user" }, { "content": "SELECT payment_method FROM Customers GROUP BY payment_method 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_name_54 (tournament VARCHAR, score VARCHAR)", "role": "system" }, { "content": "what game had a score of 4–6, 6–3, 7–6(10)?", "role": "user" }, { "content": "SELECT tournament FROM table_name_54 WHERE score = \"4–6, 6–3, 7–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_name_98 (college VARCHAR, pick VARCHAR)", "role": "system" }, { "content": "What college did pick 33 attend?", "role": "user" }, { "content": "SELECT college FROM table_name_98 WHERE pick = 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_65 (athlete VARCHAR, finals VARCHAR, event VARCHAR)", "role": "system" }, { "content": "Who was the athlete in the 56kg event having a did not advance in the finals?", "role": "user" }, { "content": "SELECT athlete FROM table_name_65 WHERE finals = \"did not advance\" AND event = \"56kg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (Local VARCHAR, local_position VARCHAR, mission VARCHAR)", "role": "system" }, { "content": "What is the local mission that has ambassador as the local position, and a mission of suriname?", "role": "user" }, { "content": "SELECT Local AS mission FROM table_name_13 WHERE local_position = \"ambassador\" AND mission = \"suriname\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (week INTEGER, record VARCHAR)", "role": "system" }, { "content": "Record of 0–8 had what lowest week?", "role": "user" }, { "content": "SELECT MIN(week) FROM table_name_25 WHERE record = \"0–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_13169136_1 (year VARCHAR, champion VARCHAR)", "role": "system" }, { "content": "What year is Jiyai Shin the champion?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_13169136_1 WHERE champion = \"Jiyai Shin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668352_16 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "How many districts have John C. Calhoun as the incumbent?", "role": "user" }, { "content": "SELECT COUNT(district) FROM table_2668352_16 WHERE incumbent = \"John C. Calhoun\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR)", "role": "system" }, { "content": "How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?", "role": "user" }, { "content": "SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 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_12828723_4 (drawn VARCHAR, won VARCHAR)", "role": "system" }, { "content": "what is the drawn when the won is 12?", "role": "user" }, { "content": "SELECT drawn FROM table_12828723_4 WHERE won = \"12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11900773_5 (illustration VARCHAR, theme VARCHAR)", "role": "system" }, { "content": "Who created the illustration for the stamp that was themed 100 years of scouting?", "role": "user" }, { "content": "SELECT illustration FROM table_11900773_5 WHERE theme = \"100 Years of Scouting\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24565004_15 (appearancesΒΉ VARCHAR, goalsΒΉ VARCHAR)", "role": "system" }, { "content": "How many games had less than 7 goals scored?", "role": "user" }, { "content": "SELECT COUNT(appearancesΒΉ) FROM table_24565004_15 WHERE goalsΒΉ = 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 basketball_match (team_name VARCHAR, All_Home VARCHAR)", "role": "system" }, { "content": "List names of all teams in the basketball competition, ordered by all home scores in descending order.", "role": "user" }, { "content": "SELECT team_name FROM basketball_match ORDER BY All_Home 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_name_39 (poles INTEGER, points VARCHAR, class VARCHAR, team VARCHAR)", "role": "system" }, { "content": "How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?", "role": "user" }, { "content": "SELECT SUM(poles) FROM table_name_39 WHERE class = \"125cc\" AND team = \"matteoni racing team\" AND points > 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_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)", "role": "system" }, { "content": "Which Mac OSX had no haiku and a client that was dc++?", "role": "user" }, { "content": "SELECT mac_os_x FROM table_name_98 WHERE haiku = \"no\" AND client = \"dc++\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, country VARCHAR)", "role": "system" }, { "content": "What is the highest Total for Australia?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_78 WHERE country = \"australia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (result VARCHAR, year VARCHAR, award VARCHAR)", "role": "system" }, { "content": "What result took pace in 2009 and had an award of sopot international song festival?", "role": "user" }, { "content": "SELECT result FROM table_name_17 WHERE year = 2009 AND award = \"sopot international song festival\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (outcome VARCHAR, opponent VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?", "role": "user" }, { "content": "SELECT outcome FROM table_name_63 WHERE opponent = \"victoria azarenka\" AND score = \"6–2, 2–6, 7–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_20849830_1 (result VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the result of the game with the record of 3-1?", "role": "user" }, { "content": "SELECT result FROM table_20849830_1 WHERE record = \"3-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_22753245_1 (party VARCHAR, constituency VARCHAR)", "role": "system" }, { "content": "What is the party when the constituency is 1. Chennai North? ", "role": "user" }, { "content": "SELECT party FROM table_22753245_1 WHERE constituency = \"1. Chennai North\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, visitor VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the score of the game with Grizzlies as the visitor team on 30 December 2007?", "role": "user" }, { "content": "SELECT score FROM table_name_21 WHERE visitor = \"grizzlies\" AND date = \"30 december 2007\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16423070_4 (track_ VARCHAR, _field VARCHAR, swimming VARCHAR, volleyball VARCHAR)", "role": "system" }, { "content": "which country won swimming track & field when lexington won swimming and madison won volleyball", "role": "user" }, { "content": "SELECT track_ & _field FROM table_16423070_4 WHERE swimming = \"Lexington\" AND volleyball = \"Madison\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the bronze with more than 2 gold and less than 14 total and 4 silver?", "role": "user" }, { "content": "SELECT AVG(bronze) FROM table_name_86 WHERE gold > 2 AND total < 14 AND silver = 4", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (goals_against INTEGER, club VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the fewest goals of CD Alcoyano with more than 25 points?", "role": "user" }, { "content": "SELECT MIN(goals_against) FROM table_name_57 WHERE club = \"cd alcoyano\" AND points > 25", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the score for the away team when they played collingwood?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_57 WHERE home_team = \"collingwood\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rounds VARCHAR, motorcycle VARCHAR)", "role": "system" }, { "content": "Which round has the mv agusta f4 1000 mt?", "role": "user" }, { "content": "SELECT rounds FROM table_name_75 WHERE motorcycle = \"mv agusta f4 1000 mt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2850912_10 (nhl_team VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which team drafted Joakim Persson?", "role": "user" }, { "content": "SELECT nhl_team FROM table_2850912_10 WHERE player = \"Joakim Persson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (round INTEGER, position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the highest Round that has a Position of Tackle and the Player Fred Neilsen?", "role": "user" }, { "content": "SELECT MAX(round) FROM table_name_91 WHERE position = \"tackle\" AND player = \"fred neilsen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ticket_price_s_ VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the ticket price at Canadian National Exhibition Stadium?", "role": "user" }, { "content": "SELECT ticket_price_s_ FROM table_name_7 WHERE venue = \"canadian national exhibition 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_name_30 (circuit VARCHAR, round INTEGER)", "role": "system" }, { "content": "Which circuit had a round larger than 5?", "role": "user" }, { "content": "SELECT circuit FROM table_name_30 WHERE round > 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 catalog_contents (catalog_entry_name VARCHAR, height VARCHAR)", "role": "system" }, { "content": "What is the product with the highest height? Give me the catalog entry name.", "role": "user" }, { "content": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height 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_name_84 (winner_2nd VARCHAR, jockey VARCHAR)", "role": "system" }, { "content": "WHo is Winner/2nd that has c. symons?", "role": "user" }, { "content": "SELECT winner_2nd FROM table_name_84 WHERE jockey = \"c. symons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What did Ku Hyo-Jin rank?", "role": "user" }, { "content": "SELECT COUNT(rank) FROM table_name_46 WHERE name = \"ku hyo-jin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total_region INTEGER, year VARCHAR, broadsound VARCHAR)", "role": "system" }, { "content": "What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?", "role": "user" }, { "content": "SELECT MIN(total_region) FROM table_name_75 WHERE year > 2001 AND broadsound > 6 OFFSET 843", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (circumstances VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What were the circumstances for the Baghlan location?", "role": "user" }, { "content": "SELECT circumstances FROM table_name_62 WHERE location = \"baghlan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (category VARCHAR)", "role": "system" }, { "content": "Which car won the 1.4litre to 1.8litre award in 2001?", "role": "user" }, { "content": "SELECT 2001 FROM table_name_17 WHERE category = \"1.4litre to 1.8litre\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the date of the game when their record was 84-69?", "role": "user" }, { "content": "SELECT date FROM table_name_56 WHERE record = \"84-69\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (event VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is Event, when Date is August 20-August 27?", "role": "user" }, { "content": "SELECT event FROM table_name_72 WHERE date = \"august 20-august 27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (region INTEGER, area__km_2__ VARCHAR, population VARCHAR)", "role": "system" }, { "content": "What is the average region that has an Area (km 2 ) of 451.79, and a Population under 496,257?", "role": "user" }, { "content": "SELECT AVG(region) FROM table_name_43 WHERE area__km_2__ = 451.79 AND population < 496 OFFSET 257", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (laps INTEGER, finish VARCHAR, start VARCHAR)", "role": "system" }, { "content": "What's the smallest amount of Laps that had a finish of 7 with a start of 6?", "role": "user" }, { "content": "SELECT MIN(laps) FROM table_name_49 WHERE finish = \"7\" AND start = \"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_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)", "role": "system" }, { "content": "what is the race title when the winner is dick johnson and the circuit is sandown raceway?", "role": "user" }, { "content": "SELECT race_title FROM table_name_53 WHERE winner = \"dick johnson\" AND circuit = \"sandown raceway\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1160660_1 (date_founded VARCHAR, acronym VARCHAR)", "role": "system" }, { "content": "What year was USF founded?", "role": "user" }, { "content": "SELECT date_founded FROM table_1160660_1 WHERE acronym = \"USF\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (match VARCHAR, year VARCHAR, runs VARCHAR)", "role": "system" }, { "content": "In 2009 with 100* runs, what is the match?", "role": "user" }, { "content": "SELECT match FROM table_name_8 WHERE year = \"2009\" AND runs = \"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_25 (representative VARCHAR, state VARCHAR, years VARCHAR)", "role": "system" }, { "content": "Which Representative was from Kentucky during the years of 1855–1859?", "role": "user" }, { "content": "SELECT representative FROM table_name_25 WHERE state = \"kentucky\" AND years = \"1855–1859\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "Which province is Villa BisonΓ³ in?", "role": "user" }, { "content": "SELECT province, _community FROM table_22447251_2 WHERE hometown = \"Villa BisonΓ³\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25252080_3 (january_15_16 VARCHAR, november_3 VARCHAR)", "role": "system" }, { "content": "What number is shown for january 15-16 when november 3 is 133?", "role": "user" }, { "content": "SELECT january_15_16 FROM table_25252080_3 WHERE november_3 = \"133\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (win_percentage INTEGER, losses VARCHAR)", "role": "system" }, { "content": "What is the highest win percentage when there were 23 losses?", "role": "user" }, { "content": "SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341884_45 (first_elected VARCHAR, district VARCHAR)", "role": "system" }, { "content": "how many voted in the texas 6 section", "role": "user" }, { "content": "SELECT first_elected FROM table_1341884_45 WHERE district = \"Texas 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_12407546_2 (running VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "What is the running of marlene sanchez?", "role": "user" }, { "content": "SELECT running FROM table_12407546_2 WHERE athlete = \"Marlene Sanchez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE elimination (Team VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR, Days_held VARCHAR)", "role": "system" }, { "content": "List the names of wrestlers and the teams in elimination in descending order of days held.", "role": "user" }, { "content": "SELECT T2.Name, T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held 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_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)", "role": "system" }, { "content": "How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?", "role": "user" }, { "content": "SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (opponent VARCHAR, venue VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who played against in venue a on 17 february 1900?", "role": "user" }, { "content": "SELECT opponent FROM table_name_43 WHERE venue = \"a\" AND date = \"17 february 1900\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26202788_7 (championship VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many championships are there on the date January 9, 2005?", "role": "user" }, { "content": "SELECT COUNT(championship) FROM table_26202788_7 WHERE date = \"January 9, 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_33 (points_for VARCHAR, drawn VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Name the points for with drawn of 0 and points of 88", "role": "user" }, { "content": "SELECT points_for FROM table_name_33 WHERE drawn = \"0\" AND points = \"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_74 (moving_parts VARCHAR, technology VARCHAR)", "role": "system" }, { "content": "What are the moving parts of lead-acid?", "role": "user" }, { "content": "SELECT moving_parts FROM table_name_74 WHERE technology = \"lead-acid\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE station (local_authority VARCHAR, services VARCHAR)", "role": "system" }, { "content": "list the local authorities and services provided by all stations.", "role": "user" }, { "content": "SELECT local_authority, services FROM station", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, score VARCHAR)", "role": "system" }, { "content": "From what country did someone score 71?", "role": "user" }, { "content": "SELECT country FROM table_name_72 WHERE score = 71", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 VARCHAR, date VARCHAR)", "role": "system" }, { "content": "what is the attendance on december 14, 2003?", "role": "user" }, { "content": "SELECT attendance FROM table_name_34 WHERE date = \"december 14, 2003\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What rank is Turkmenistan, who had 0 silver's and Less than 2 golds?", "role": "user" }, { "content": "SELECT rank FROM table_name_93 WHERE silver = 0 AND gold < 2 AND nation = \"turkmenistan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE county_public_safety (Crime_rate INTEGER)", "role": "system" }, { "content": "What are the minimum and maximum crime rate of counties?", "role": "user" }, { "content": "SELECT MIN(Crime_rate), MAX(Crime_rate) FROM county_public_safety", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19534677_1 (material_collected VARCHAR, isbn VARCHAR)", "role": "system" }, { "content": "Name the total number for material collected for 978-1401221935", "role": "user" }, { "content": "SELECT COUNT(material_collected) FROM table_19534677_1 WHERE isbn = \"978-1401221935\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (time VARCHAR, heat VARCHAR, rank VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?", "role": "user" }, { "content": "SELECT COUNT(time) FROM table_name_8 WHERE rank > 29 AND athlete = \"barbara pierre\" AND heat < 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_36 (year INTEGER, length VARCHAR, album VARCHAR)", "role": "system" }, { "content": "What's the total Year with a Length of 4:45 an has an Album of Les Mots?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_36 WHERE length = \"4:45\" AND album = \"les mots\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (notes VARCHAR, time___sec__ VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Which Notes have a Time larger than 23.34, and a Rank of 8?", "role": "user" }, { "content": "SELECT notes FROM table_name_24 WHERE time___sec__ > 23.34 AND rank = 8", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)", "role": "system" }, { "content": "If the rating is 9.1, what was the total viewers?", "role": "user" }, { "content": "SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = \"9.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_78 (engine VARCHAR, displacement VARCHAR, model VARCHAR)", "role": "system" }, { "content": "Which of the engines has a displacement of 1,585 cc, with a model number of 90i?", "role": "user" }, { "content": "SELECT engine FROM table_name_78 WHERE displacement = \"1,585 cc\" AND model = \"90i\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR)", "role": "system" }, { "content": "How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?", "role": "user" }, { "content": "SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = \"1\" AND staffing = \"volunteer\" AND brigade = \"grovedale\" AND tankers < 1", "role": "assistant" } ]