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: Tell me the sum of rank for australia when points are less than 79 ### Context: CREATE TABLE table_name_58 (rank INTEGER, nationality VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_58 WHERE nationality = "australia" AND points < 79 </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 ships for the nation with grand total of 20? ### Context: CREATE TABLE table_name_13 (s_motor_ship___s_naval_trawler VARCHAR, grand_total VARCHAR) [/INST] ### Response: SELECT s_motor_ship___s_naval_trawler FROM table_name_13 WHERE grand_total = 20 </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 escorts does the nation with 6 cruisers have? ### Context: CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR) [/INST] ### Response: SELECT escorts FROM table_name_74 WHERE cruisers = "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: Which address has 44 floors? ### Context: CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT street_address FROM table_name_70 WHERE floors = 44 </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 for the person with 73.28 bodyweight and fewer snatches than 75? ### Context: CREATE TABLE table_name_22 (total__kg_ INTEGER, bodyweight VARCHAR, snatch VARCHAR) [/INST] ### Response: SELECT AVG(total__kg_) FROM table_name_22 WHERE bodyweight = 73.28 AND snatch < 75 </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 person has a bodyweight of 73.6? ### Context: CREATE TABLE table_name_15 (name VARCHAR, bodyweight VARCHAR) [/INST] ### Response: SELECT name FROM table_name_15 WHERE bodyweight = 73.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 is the total for the player with more snatches than 87.5 and bodyweight more than 74.8? ### Context: CREATE TABLE table_name_7 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR) [/INST] ### Response: SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.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 is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5? ### Context: CREATE TABLE table_name_91 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST] ### Response: SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.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: Name the home team when the away team was essendon ### Context: CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon" </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: Name the away team score for home team of university ### Context: CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_36 WHERE home_team = "university" </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: Name the venue for geelong away team ### Context: CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_54 WHERE away_team = "geelong" </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: Name the venue when the away team was richmond ### Context: CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_6 WHERE away_team = "richmond" </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: Name the away team score for geelong away team ### Context: CREATE TABLE table_name_25 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_25 WHERE away_team = "geelong" </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 the venue was brunswick street oval what was the home teams score? ### Context: CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_32 WHERE venue = "brunswick street oval" </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 draws feature artist wendy fierce? ### Context: CREATE TABLE table_name_18 (draw INTEGER, artist VARCHAR) [/INST] ### Response: SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce" </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 song is later than place 2 and has a draw number of 1? ### Context: CREATE TABLE table_name_77 (song VARCHAR, place VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT song FROM table_name_77 WHERE place > 2 AND draw = 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 day did Collingwood play as the home team? ### Context: CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_64 WHERE home_team = "collingwood" </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 away team at Princes Park? ### Context: CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_26 WHERE venue = "princes park" </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 Hawthorn's away opponent? ### Context: CREATE TABLE table_name_68 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_68 WHERE home_team = "hawthorn" </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: Name the record that has a stream of l1 and score of l 95–111 ### Context: CREATE TABLE table_name_45 (record VARCHAR, streak VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_45 WHERE streak = "l1" AND score = "l 95–111" </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: Name the attendance for when the washington wizards was visiting ### Context: CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards" </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 smallest grid for driver of juan pablo montoya? ### Context: CREATE TABLE table_name_92 (grid INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya" </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 driver has a ime/Retired of +1 lap, and a Constructor of bar - honda? ### Context: CREATE TABLE table_name_35 (driver VARCHAR, time_retired VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_35 WHERE time_retired = "+1 lap" AND constructor = "bar - honda" </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 Chinese title with a premiere rating of 31? ### Context: CREATE TABLE table_name_91 (chinese_title VARCHAR, premiere VARCHAR) [/INST] ### Response: SELECT chinese_title FROM table_name_91 WHERE premiere = 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 is the premiere rating for a Chinese title of ι‡Žθ »ε₯Άε₯Άε€§ζˆ°ζˆˆεΈ«ε₯Ά, and a Peak smaller than 41? ### Context: CREATE TABLE table_name_59 (premiere INTEGER, chinese_title VARCHAR, peak VARCHAR) [/INST] ### Response: SELECT SUM(premiere) FROM table_name_59 WHERE chinese_title = "ι‡Žθ »ε₯Άε₯Άε€§ζˆ°ζˆˆεΈ«ε₯Ά" AND peak < 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 premiere rating associated with an average of 35 ranked above 1? ### Context: CREATE TABLE table_name_7 (premiere INTEGER, average VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(premiere) FROM table_name_7 WHERE average = 35 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: When was there a game at Arden Street Oval? ### Context: CREATE TABLE table_name_21 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_21 WHERE venue = "arden street oval" </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 big was the crowd when Richmond was the away team? ### Context: CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_28 WHERE away_team = "richmond" </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 away team plays at Arden Street Oval? ### Context: CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_89 WHERE venue = "arden street oval" </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 fans were at Essendon? ### Context: CREATE TABLE table_name_48 (crowd VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_48 WHERE home_team = "essendon" </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 11 July 2003, which athlete performed? ### Context: CREATE TABLE table_name_53 (athlete VARCHAR, date VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_53 WHERE date = "11 july 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 was the away team that played luton town? ### Context: CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_27 WHERE home_team = "luton town" </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: Name the D 45 √ when it has D 41√ of r 20 ### Context: CREATE TABLE table_name_62 (d_45_√ VARCHAR, d_41_√ VARCHAR) [/INST] ### Response: SELECT d_45_√ FROM table_name_62 WHERE d_41_√ = "r 20" </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: Name the D 41 √ when it has D 43 √ of r 18 ### Context: CREATE TABLE table_name_35 (d_41_√ VARCHAR, d_43_√ VARCHAR) [/INST] ### Response: SELECT d_41_√ FROM table_name_35 WHERE d_43_√ = "r 18" </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: Name the D 49 √ for when D 46 √ of i 1 @ ### Context: CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR) [/INST] ### Response: SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 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: Name the D 43 √ when it has D 46 √ of d 26 ### Context: CREATE TABLE table_name_89 (d_43_√ VARCHAR, d_46_√ VARCHAR) [/INST] ### Response: SELECT d_43_√ FROM table_name_89 WHERE d_46_√ = "d 26" </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: Name the D 44 √ for when it has D 41 √ of r 41 + ### Context: CREATE TABLE table_name_93 (d_44_√ VARCHAR, d_41_√ VARCHAR) [/INST] ### Response: SELECT d_44_√ FROM table_name_93 WHERE d_41_√ = "r 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: Name the D 42 √ for when it has D 49 √ of r 12 ### Context: CREATE TABLE table_name_58 (d_42_√ VARCHAR, d_49_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_58 WHERE d_49_√ = "r 12" </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 were the goals in the game with the 26-28 final score? ### Context: CREATE TABLE table_name_5 (goals VARCHAR, score VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_5 WHERE score = "26-28" </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 of the game on 19/3/00? ### Context: CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_60 WHERE date = "19/3/00" </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 competition was on 17/9/00? ### Context: CREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_47 WHERE date = "17/9/00" </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 competition ended with a score of 58-4? ### Context: CREATE TABLE table_name_64 (competition VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_64 WHERE score = "58-4" </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 was the game that had a final score of 30-20? ### Context: CREATE TABLE table_name_92 (venue VARCHAR, score VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_92 WHERE score = "30-20" </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 was the game at the boulevard that ended with an 8-8 score? ### Context: CREATE TABLE table_name_72 (date VARCHAR, venue VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_72 WHERE venue = "the boulevard" AND score = "8-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: Name the report for 6 may ### Context: CREATE TABLE table_name_82 (report VARCHAR, date VARCHAR) [/INST] ### Response: SELECT report FROM table_name_82 WHERE date = "6 may" </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: Tell me the report with winner of louis wagner ### Context: CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner" </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: Name the report with cuban race ### Context: CREATE TABLE table_name_16 (report VARCHAR, name VARCHAR) [/INST] ### Response: SELECT report FROM table_name_16 WHERE name = "cuban race" </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: Name the circuit for darracq and name of cuban race ### Context: CREATE TABLE table_name_63 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_63 WHERE winning_constructor = "darracq" AND name = "cuban race" </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: Name the winning driver for havana ### Context: CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_15 WHERE circuit = "havana" </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 home team's score when st kilda is away? ### Context: CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_23 WHERE away_team = "st kilda" </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: No Decision listed above has a visitor of Montreal. ### Context: CREATE TABLE table_name_62 (decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_62 WHERE visitor = "montreal" </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 December 4, Tampa Bay has a record of 12-13-2. ### Context: CREATE TABLE table_name_42 (record VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4" </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 are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance? ### Context: CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR) [/INST] ### Response: SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = "skyteam (2012)" </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 airlines have the star alliance and are in brazil? ### Context: CREATE TABLE table_name_13 (rank VARCHAR, alliance VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil" </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 percentage of Slovenes in 1951 in the village that had 10.1% in 1991? ### Context: CREATE TABLE table_name_22 (percent_of_slovenes_1951 VARCHAR, percent_of_slovenes_1991 VARCHAR) [/INST] ### Response: SELECT percent_of_slovenes_1951 FROM table_name_22 WHERE percent_of_slovenes_1991 = "10.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 was Rut's Slovenes percentage in 1991? ### Context: CREATE TABLE table_name_76 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR) [/INST] ### Response: SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = "rut" </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 status of the Hamaoka-3 unit? ### Context: CREATE TABLE table_name_33 (status VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT status FROM table_name_33 WHERE unit = "hamaoka-3" </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 gross capacity of the unit that started commercial operation on August 28, 1987? ### Context: CREATE TABLE table_name_17 (gross_capacity VARCHAR, commercial_operation VARCHAR) [/INST] ### Response: SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = "august 28, 1987" </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 was commercial operation where construction started June 10, 1971? ### Context: CREATE TABLE table_name_27 (commercial_operation VARCHAR, construction_start VARCHAR) [/INST] ### Response: SELECT commercial_operation FROM table_name_27 WHERE construction_start = "june 10, 1971" </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 gross capacity where the reactor is ABWR type? ### Context: CREATE TABLE table_name_54 (gross_capacity VARCHAR, reactor_type VARCHAR) [/INST] ### Response: SELECT gross_capacity FROM table_name_54 WHERE reactor_type = "abwr" </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 was the Hamaoka-4 unit commercial operation date? ### Context: CREATE TABLE table_name_42 (commercial_operation VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT commercial_operation FROM table_name_42 WHERE unit = "hamaoka-4" </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 status of the unit with a net capacity of 1212 MW? ### Context: CREATE TABLE table_name_50 (status VARCHAR, net_capacity VARCHAR) [/INST] ### Response: SELECT status FROM table_name_50 WHERE net_capacity = "1212 mw" </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 school did player Rodney Purvis belong to? ### Context: CREATE TABLE table_name_32 (school VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school FROM table_name_32 WHERE player = "rodney purvis" </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 NBA draft status for Northeast High School? ### Context: CREATE TABLE table_name_7 (nba_draft VARCHAR, school VARCHAR) [/INST] ### Response: SELECT nba_draft FROM table_name_7 WHERE school = "northeast high school" </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 players college was Baylor? ### Context: CREATE TABLE table_name_82 (player VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_82 WHERE college = "baylor" </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 college for Alex Poythress? ### Context: CREATE TABLE table_name_64 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_64 WHERE player = "alex poythress" </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 Alex Poythress height? ### Context: CREATE TABLE table_name_78 (height VARCHAR, player VARCHAR) [/INST] ### Response: SELECT height FROM table_name_78 WHERE player = "alex poythress" </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 Allison Fouch score in the year larger than 2000? ### Context: CREATE TABLE table_name_62 (winning_score VARCHAR, year VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_62 WHERE year > 2000 AND champion = "allison fouch" </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 release dates have a Country of west germany, and a Release format of vinyl? ### Context: CREATE TABLE table_name_89 (release_date VARCHAR, country VARCHAR, release_format VARCHAR) [/INST] ### Response: SELECT COUNT(release_date) FROM table_name_89 WHERE country = "west germany" AND release_format = "vinyl" </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 label is from Spain? ### Context: CREATE TABLE table_name_31 (label VARCHAR, country VARCHAR) [/INST] ### Response: SELECT label FROM table_name_31 WHERE country = "spain" </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 save when the loss was santiago (2–2)? ### Context: CREATE TABLE table_name_76 (save VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT save FROM table_name_76 WHERE loss = "santiago (2–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: Which season was 2nd position? ### Context: CREATE TABLE table_name_84 (season VARCHAR, position VARCHAR) [/INST] ### Response: SELECT season FROM table_name_84 WHERE position = "2nd" </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 value for played when the division is nbl div2 with 12th position? ### Context: CREATE TABLE table_name_51 (played VARCHAR, division VARCHAR, position VARCHAR) [/INST] ### Response: SELECT played FROM table_name_51 WHERE division = "nbl div2" AND position = "12th" </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 points when the division is ebl div1 with 22 played? ### Context: CREATE TABLE table_name_68 (points VARCHAR, division VARCHAR, played VARCHAR) [/INST] ### Response: SELECT points FROM table_name_68 WHERE division = "ebl div1" AND played = "22" </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 value for played when points is 8 and position is 11th? ### Context: CREATE TABLE table_name_2 (played VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT played FROM table_name_2 WHERE position = "11th" AND points = "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: Who was driving with a Grid of 13? ### Context: CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_45 WHERE grid = 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: For Laps smaller than 6, what does the Grid add up to? ### Context: CREATE TABLE table_name_5 (grid INTEGER, laps INTEGER) [/INST] ### Response: SELECT SUM(grid) FROM table_name_5 WHERE laps < 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 is the report status of Hockenheimring circuit? ### Context: CREATE TABLE table_name_5 (report VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT report FROM table_name_5 WHERE circuit = "hockenheimring" </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 winning driver of the race with Clay Regazzoni as the fastest lap and Jackie stewart as the pole position? ### Context: CREATE TABLE table_name_29 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_29 WHERE fastest_lap = "clay regazzoni" AND pole_position = "jackie stewart" </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 race had Jacky Ickx as the winner and Clay Regazzoni with the fastest lap? ### Context: CREATE TABLE table_name_53 (race VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT race FROM table_name_53 WHERE winning_driver = "jacky ickx" AND fastest_lap = "clay regazzoni" </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 time does it take for jean alesi and grids lesser than 5? ### Context: CREATE TABLE table_name_53 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_53 WHERE grid < 5 AND driver = "jean alesi" </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 low grid for gerhard berger for laps over 56? ### Context: CREATE TABLE table_name_18 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_18 WHERE driver = "gerhard berger" AND laps > 56 </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: If the grid is 13 who is driving? ### Context: CREATE TABLE table_name_42 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_42 WHERE grid = 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 is the purse total for the royal caribbean golf classic? ### Context: CREATE TABLE table_name_5 (purse__ INTEGER, tournament VARCHAR) [/INST] ### Response: SELECT SUM(purse__) AS $__ FROM table_name_5 WHERE tournament = "royal caribbean golf classic" </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 title is 3:38 long? ### Context: CREATE TABLE table_name_52 (title VARCHAR, length VARCHAR) [/INST] ### Response: SELECT title FROM table_name_52 WHERE length = "3: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: Which title is 3:43 long? ### Context: CREATE TABLE table_name_37 (title VARCHAR, length VARCHAR) [/INST] ### Response: SELECT title FROM table_name_37 WHERE length = "3: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 Dance has the Visual Arts of Bryon Kim? ### Context: CREATE TABLE table_name_28 (dance VARCHAR, visual_arts VARCHAR) [/INST] ### Response: SELECT dance FROM table_name_28 WHERE visual_arts = "bryon kim" </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: In 2004, what is the Dance? ### Context: CREATE TABLE table_name_55 (dance VARCHAR, year VARCHAR) [/INST] ### Response: SELECT dance FROM table_name_55 WHERE year = 2004 </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 artist had 1 draw? ### Context: CREATE TABLE table_name_52 (artist VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_52 WHERE draw = 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: Name the IATA for jeddah ### Context: CREATE TABLE table_name_28 (iata VARCHAR, city VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_28 WHERE city = "jeddah" </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: Name the IATA for jessore ### Context: CREATE TABLE table_name_80 (iata VARCHAR, city VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_80 WHERE city = "jessore" </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: Name the city for thailand ### Context: CREATE TABLE table_name_97 (city VARCHAR, country VARCHAR) [/INST] ### Response: SELECT city FROM table_name_97 WHERE country = "thailand" </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: Name the IATA of wmkk ### Context: CREATE TABLE table_name_20 (iata VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_20 WHERE icao = "wmkk" </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 did the away team carlton play? ### Context: CREATE TABLE table_name_88 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_88 WHERE away_team = "carlton" </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 constructor is from ITA with a rank less than 13? ### Context: CREATE TABLE table_name_20 (constructor VARCHAR, country VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_20 WHERE country = "ita" AND rank < 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: Who was the opponent in the Week 4 game? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_25 WHERE week = 4 </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 are the co-drivers before 2010 with under 326 laps? ### Context: CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT co_drivers FROM table_name_76 WHERE year < 2010 AND laps < 326 </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 are the co-drivers the risi competizione gt2 class that went under 329 laps and recorded a DNF? ### Context: CREATE TABLE table_name_45 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR, laps VARCHAR, class VARCHAR) [/INST] ### Response: SELECT co_drivers FROM table_name_45 WHERE laps < 329 AND class = "gt2" AND team = "risi competizione" AND pos = "dnf" </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: Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto ### Context: CREATE TABLE table_name_24 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto" </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: I want to know the driver when grid is greater than 13 and laps is less than 60 with time/retired of accident ### Context: CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_41 WHERE grid > 13 AND laps < 60 AND time_retired = "accident" </s>