text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? ### Context: CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR) [/INST] ### Response: SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What shows for series 4 when the seat shows 1? ### Context: CREATE TABLE table_name_27 (series_4 VARCHAR, seat VARCHAR) [/INST] ### Response: SELECT series_4 FROM table_name_27 WHERE seat = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the seat number when Series 3 shows Dana Bérová? ### Context: CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR) [/INST] ### Response: SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Partner in the Algiers 2, Algeria Tournament? ### Context: CREATE TABLE table_name_2 (partner VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_2 WHERE tournament = "algiers 2, algeria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the Opponents in the Match with Partner Rushmi Chakravarthi? ### Context: CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_80 WHERE partner = "rushmi chakravarthi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of the Match with a Score of 6–4, 7–5? ### Context: CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_27 WHERE score = "6–4, 7–5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fewest loses for the club that is below 8 in position, and had played less than 30 games? ### Context: CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR) [/INST] ### Response: SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2? ### Context: CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws? ### Context: CREATE TABLE table_name_16 (goals_conceded INTEGER, draws VARCHAR, points VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total goals scored when less than 30 games have been played? ### Context: CREATE TABLE table_name_71 (goals_scored VARCHAR, games_played INTEGER) [/INST] ### Response: SELECT COUNT(goals_scored) FROM table_name_71 WHERE games_played < 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When less than 30 games have been played what is the average goals scored? ### Context: CREATE TABLE table_name_18 (goals_scored INTEGER, games_played INTEGER) [/INST] ### Response: SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the league cup app with league cup goals more than 0? ### Context: CREATE TABLE table_name_76 (league_cup_apps VARCHAR, league_cup_goals INTEGER) [/INST] ### Response: SELECT league_cup_apps FROM table_name_76 WHERE league_cup_goals > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fa cup apps with 0 league cup goals, and a total of 43 apps? ### Context: CREATE TABLE table_name_60 (fa_cup_apps VARCHAR, league_cup_goals VARCHAR, total_apps VARCHAR) [/INST] ### Response: SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps? ### Context: CREATE TABLE table_name_3 (flt_goals INTEGER, league_cup_apps VARCHAR, league_cup_goals VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MAX(flt_goals) FROM table_name_3 WHERE league_cup_goals = 0 AND position = "gk" AND league_cup_apps = "2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia? ### Context: CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_87 WHERE venue = "sam nujoma stadium, windhoek, namibia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs? ### Context: CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR) [/INST] ### Response: SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What season had Dalian Wanda as the winner with Yanbian Aodong winning 4th? ### Context: CREATE TABLE table_name_1 (season INTEGER, winners VARCHAR, fourth_placed VARCHAR) [/INST] ### Response: SELECT SUM(season) FROM table_name_1 WHERE winners = "dalian wanda" AND fourth_placed = "yanbian aodong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao? ### Context: CREATE TABLE table_name_66 (number_of_clubs INTEGER, fourth_placed VARCHAR, season VARCHAR) [/INST] ### Response: SELECT AVG(number_of_clubs) FROM table_name_66 WHERE fourth_placed = "shenzhen jianlibao" AND season < 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th? ### Context: CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR) [/INST] ### Response: SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner when the runner-up was Guangzhou Apollo? ### Context: CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT winners FROM table_name_34 WHERE runners_up = "guangzhou apollo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Byes have an Against of 972, and more than 11 wins? ### Context: CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Byes have a Lexton Plains of skipton? ### Context: CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR) [/INST] ### Response: SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = "skipton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the value for Lost when Drawn is 0, and Tries against is 41? ### Context: CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the drawn value for furnace united rfc? ### Context: CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tries against value does burry port rfc have? ### Context: CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR) [/INST] ### Response: SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms? ### Context: CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR) [/INST] ### Response: SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many wins for the year that is later than 1987 and has points less than 188? ### Context: CREATE TABLE table_name_47 (wins VARCHAR, year VARCHAR, points VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the machine that ranked 4th and has 2 wins? ### Context: CREATE TABLE table_name_59 (machine VARCHAR, rank VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT machine FROM table_name_59 WHERE rank = "4th" AND wins = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many wins were there in 1994? ### Context: CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_20 WHERE year = 1994 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rank associated with the team that has more than 2 wins and has greater than 204 points? ### Context: CREATE TABLE table_name_34 (rank VARCHAR, wins VARCHAR, points VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_34 WHERE wins > 2 AND points > 204 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many picks have a Player of pong escobal? ### Context: CREATE TABLE table_name_80 (pick INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_80 WHERE player = "pong escobal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which PBA team has a College of nu? ### Context: CREATE TABLE table_name_61 (pba_team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT pba_team FROM table_name_61 WHERE college = "nu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro? ### Context: CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR) [/INST] ### Response: SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the place of birth for the elector Laborante de Panormo? ### Context: CREATE TABLE table_name_94 (place_of_birth VARCHAR, elector VARCHAR) [/INST] ### Response: SELECT place_of_birth FROM table_name_94 WHERE elector = "laborante de panormo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano? ### Context: CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR) [/INST] ### Response: SELECT elector FROM table_name_86 WHERE cardinalatial_title = "deacon of ss. cosma e damiano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco? ### Context: CREATE TABLE table_name_14 (elevator VARCHAR, cardinalatial_title VARCHAR) [/INST] ### Response: SELECT elevator FROM table_name_14 WHERE cardinalatial_title = "deacon of ss. sergio e bacco" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1? ### Context: CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many totals have a Premier League smaller than 6, and a League Cup larger than 0? ### Context: CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which FA Cup has a Total smaller than 1? ### Context: CREATE TABLE table_name_24 (fa_cup INTEGER, total INTEGER) [/INST] ### Response: SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week is the opponent the Indianapolis Colts with an attendance of 68,932? ### Context: CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance for the week before 10 with a result of L 12-15 ### Context: CREATE TABLE table_name_86 (attendance VARCHAR, week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_86 WHERE week < 10 AND result = "l 12-15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week has a result of L 17-31 first? ### Context: CREATE TABLE table_name_17 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_17 WHERE result = "l 17-31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the game that attendance was 70,721? ### Context: CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_24 WHERE attendance = "70,721" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week was she safe for a salsa dance? ### Context: CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_8 WHERE result = "safe" AND dance = "salsa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent with the loss in Westbury, NY? ### Context: CREATE TABLE table_name_37 (opponent VARCHAR, result VARCHAR, location VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_37 WHERE result = "loss" AND location = "westbury, ny" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date where the type is type? ### Context: CREATE TABLE table_name_4 (date VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE "type" = "type" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze? ### Context: CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_2 WHERE silver < 2 AND gold = 4 AND bronze > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6? ### Context: CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the date of the circuit Winton Motor Raceway? ### Context: CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_21 WHERE circuit = "winton motor raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the city/state of Hidden Valley Raceway? ### Context: CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the date of Bahrain International Circuit? ### Context: CREATE TABLE table_name_95 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_95 WHERE circuit = "bahrain international circuit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the circuit that had an event cancelled? ### Context: CREATE TABLE table_name_11 (circuit VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_11 WHERE winner = "event cancelled" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the distance for ridge? ### Context: CREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_57 WHERE feature = "ridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the latitude when the distance is 42.5km? ### Context: CREATE TABLE table_name_70 (latitude VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT latitude FROM table_name_70 WHERE distance = "42.5km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the feature named bird ridge? ### Context: CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR) [/INST] ### Response: SELECT feature FROM table_name_60 WHERE name = "bird ridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the distance for mjåkollen? ### Context: CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_89 WHERE name = "mjåkollen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the distance for bearing 297°? ### Context: CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_27 WHERE bearing = "297°" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What platform has a year of 2007? ### Context: CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT platform_s_ FROM table_name_8 WHERE year = 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which game was released in 2011? ### Context: CREATE TABLE table_name_13 (game VARCHAR, year VARCHAR) [/INST] ### Response: SELECT game FROM table_name_13 WHERE year = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What platform came out before 2009 with the game wii sports? ### Context: CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR) [/INST] ### Response: SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = "wii sports" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality has a lane less than 6, with 1 as the rank? ### Context: CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What time has a lane less than 5, with Poland as the nationality? ### Context: CREATE TABLE table_name_63 (time VARCHAR, lane VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT time FROM table_name_63 WHERE lane < 5 AND nationality = "poland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many lanes have 1:53.70 as the time? ### Context: CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR) [/INST] ### Response: SELECT COUNT(lane) FROM table_name_62 WHERE time = "1:53.70" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many ranks have chen yin as the name, with a lane greater than 8? ### Context: CREATE TABLE table_name_22 (rank INTEGER, name VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_22 WHERE name = "chen yin" AND lane > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality has 1:55.35 as the time? ### Context: CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_96 WHERE time = "1:55.35" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many lanes have a rank greater than 8? ### Context: CREATE TABLE table_name_25 (lane INTEGER, rank INTEGER) [/INST] ### Response: SELECT SUM(lane) FROM table_name_25 WHERE rank > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where in Sweden is the home of the Swedish team? ### Context: CREATE TABLE table_name_14 (home VARCHAR, country VARCHAR) [/INST] ### Response: SELECT home FROM table_name_14 WHERE country = "sweden" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is third to Xu Xiaoming at second? ### Context: CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR) [/INST] ### Response: SELECT third FROM table_name_23 WHERE second = "xu xiaoming" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the lead for the team from Saskatoon, Saskatchewan? ### Context: CREATE TABLE table_name_84 (lead VARCHAR, home VARCHAR) [/INST] ### Response: SELECT lead FROM table_name_84 WHERE home = "saskatoon, saskatchewan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is second on the team with Euan Byers at lead? ### Context: CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR) [/INST] ### Response: SELECT second FROM table_name_38 WHERE lead = "euan byers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip? ### Context: CREATE TABLE table_name_23 (third VARCHAR, home VARCHAR, skip VARCHAR) [/INST] ### Response: SELECT third FROM table_name_23 WHERE home = "madison, wisconsin" AND skip = "craig brown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On which date was the opponent the Chicago Bears? ### Context: CREATE TABLE table_name_54 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_54 WHERE opponent = "chicago bears" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which week was on october 30, 1983? ### Context: CREATE TABLE table_name_40 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_40 WHERE date = "october 30, 1983" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Mascot for the team from leo that had a Previous Conference value of independent? ### Context: CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR) [/INST] ### Response: SELECT mascot FROM table_name_13 WHERE previous_conference = "independent" AND location = "leo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What School had 3a/2a as the value for IHSAA Class/ Football Class? ### Context: CREATE TABLE table_name_81 (school VARCHAR, ihsaa_class__football_class VARCHAR) [/INST] ### Response: SELECT school FROM table_name_81 WHERE ihsaa_class__football_class = "3a/2a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many July 1, 2013 projections have a Rank of 27? ### Context: CREATE TABLE table_name_58 (_2013_projection VARCHAR, july_1 VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = "27" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the format for the one which has a call sign of cite-fm-1? ### Context: CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What'd the total Dolphin points when there was an attendance of 52,860? ### Context: CREATE TABLE table_name_80 (dolphins_points VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(dolphins_points) FROM table_name_80 WHERE attendance = 52 OFFSET 860 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots? ### Context: CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_77 WHERE dolphins_points < 24 AND opponent = "new england patriots" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which district had SC reserved and 169 Constituents? ### Context: CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was reserved in the district that has 169 constituents? ### Context: CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? ### Context: CREATE TABLE table_name_81 (Id VARCHAR) [/INST] ### Response: SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R? ### Context: CREATE TABLE table_name_4 (Id VARCHAR) [/INST] ### Response: SELECT 1996 FROM table_name_4 WHERE 1994 = "lq" AND 1992 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments? ### Context: CREATE TABLE table_name_88 (Id VARCHAR) [/INST] ### Response: SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1995 Grand Slam Tournament if 1990 is LQ? ### Context: CREATE TABLE table_name_96 (Id VARCHAR) [/INST] ### Response: SELECT 1995 FROM table_name_96 WHERE 1990 = "lq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments? ### Context: CREATE TABLE table_name_33 (Id VARCHAR) [/INST] ### Response: SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments? ### Context: CREATE TABLE table_name_71 (Id VARCHAR) [/INST] ### Response: SELECT 1987 FROM table_name_71 WHERE 1989 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people attended the home game against the New York Jets? ### Context: CREATE TABLE table_name_61 (attendance INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_61 WHERE opponent = "new york jets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people attended the September 14, 1968 game? ### Context: CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_28 WHERE date = "september 14, 1968" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the director of the production number 9368? ### Context: CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR) [/INST] ### Response: SELECT director FROM table_name_51 WHERE production_number = "9368" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the title with chuck jones as the director and the production number 9537? ### Context: CREATE TABLE table_name_78 (title VARCHAR, director VARCHAR, production_number VARCHAR) [/INST] ### Response: SELECT title FROM table_name_78 WHERE director = "chuck jones" AND production_number = "9537" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the release date of the mm series, which has the title tom thumb in trouble? ### Context: CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR) [/INST] ### Response: SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the release date of the mm series which has the title confederate honey? ### Context: CREATE TABLE table_name_92 (release_date VARCHAR, series VARCHAR, title VARCHAR) [/INST] ### Response: SELECT release_date FROM table_name_92 WHERE series = "mm" AND title = "confederate honey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007? ### Context: CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest start in a year after 2008? ### Context: CREATE TABLE table_name_62 (start INTEGER, year INTEGER) [/INST] ### Response: SELECT MIN(start) FROM table_name_62 WHERE year > 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What finish has a start smaller than 25? ### Context: CREATE TABLE table_name_73 (finish VARCHAR, start INTEGER) [/INST] ### Response: SELECT finish FROM table_name_73 WHERE start < 25 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where did the team of Rahal Letterman in 2006 start? ### Context: CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis? ### Context: CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR) [/INST] ### Response: SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character? ### Context: CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR) [/INST] ### Response: SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What title has daffy (as duck dodgers) as the character? ### Context: CREATE TABLE table_name_98 (title VARCHAR, characters VARCHAR) [/INST] ### Response: SELECT title FROM table_name_98 WHERE characters = "daffy (as duck dodgers)" </s>