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: Name the security forces with civilians being 67 ### Context: CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR) [/INST] ### Response: SELECT security_forces FROM table_name_81 WHERE civilians = "67" </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 security forces for 2009 ### Context: CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR) [/INST] ### Response: SELECT security_forces FROM table_name_82 WHERE year = "2009" </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 tyre has a chassis of p57 p61? ### Context: CREATE TABLE table_name_85 (tyre VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_85 WHERE chassis = "p57 p61" </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 laps when the grid is 1? ### Context: CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_94 WHERE grid = 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 athletes had a Swimming Time (pts) of 2:20.93 (1232)? ### Context: CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)" </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 riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)? ### Context: CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR) [/INST] ### Response: SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)" </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 owner has a description of Mark 1 pos and is dated 1956? ### Context: CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) [/INST] ### Response: SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos" </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 owner has a description of Mark 1 CK and is dated 1953? ### Context: CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) [/INST] ### Response: SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck" </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 athlete who had SEMI of 1:43.79? ### Context: CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR) [/INST] ### Response: SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.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: What were the final time for the swimmer on lane 4? ### Context: CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT final FROM table_name_1 WHERE lane = 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 final score of the game at lambeau field? ### Context: CREATE TABLE table_name_21 (final_score VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_21 WHERE stadium = "lambeau field" </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 rank is aliyya qadi with less than 1421 votes? ### Context: CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421 </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 candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd? ### Context: CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd" </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 first year that the Favorite Male Replacement category had Ben Vereen as a nominee? ### Context: CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen" </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 was Kristin Chenoweth nominated in the category of outstanding actress in a musical? ### Context: CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR) [/INST] ### Response: SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth" </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 was Aaron Tveit nominated in the Favorite Male Replacement category? ### Context: CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit" </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 sum of rank for placings of 58 ### Context: CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_39 WHERE placings = 58 </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 lowest placings for United Kingdom and rank less than 13 ### Context: CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" 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: I want to know the highest rank with placings more than 123 and points greater than 88.06 ### Context: CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06 </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 drive for an Entrant of Scuderia Ambrosiana? ### Context: CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana" </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 of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? ### Context: CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh" </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 driver for the Entract of Enrico Platé? ### Context: CREATE TABLE table_name_80 (driver VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_80 WHERE entrant = "enrico platé" </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 of the entrants had Luigi Fagioli as a driver? ### Context: CREATE TABLE table_name_79 (entrant VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli" </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 driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson? ### Context: CREATE TABLE table_name_94 (driver VARCHAR, constructor VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_94 WHERE constructor = "era" AND entrant = "t.a.s.o. mathieson" </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 chassis had Rounds of 7, and an Entrant of Ecurie Rosier? ### Context: CREATE TABLE table_name_15 (chassis VARCHAR, rounds VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_15 WHERE rounds = "7" AND entrant = "ecurie rosier" </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 winner constructor with driver riccardo patrese? ### Context: CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese" </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 round on 5 april? ### Context: CREATE TABLE table_name_42 (round INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_42 WHERE date = "5 april" </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 date was hermanos rodríguez the location? ### Context: CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez" </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 for may 3 ### Context: CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_92 WHERE date = "may 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: Name the total number in attendance for may 1 ### Context: CREATE TABLE table_name_68 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_68 WHERE date = "may 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 loss on may 29 ### Context: CREATE TABLE table_name_20 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_20 WHERE date = "may 29" </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 cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? ### Context: CREATE TABLE table_name_62 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_5 VARCHAR) [/INST] ### Response: SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 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: Which college has a Player of shabazz muhammad? ### Context: CREATE TABLE table_name_36 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_36 WHERE player = "shabazz muhammad" </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 tall is nerlens noel? ### Context: CREATE TABLE table_name_11 (height VARCHAR, player VARCHAR) [/INST] ### Response: SELECT height FROM table_name_11 WHERE player = "nerlens noel" </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 from flower mound, tx? ### Context: CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx" </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 is shabazz muhammad from? ### Context: CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad" </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 opponent for july 21? ### Context: CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_35 WHERE date = "july 21" </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 record on july 24? ### Context: CREATE TABLE table_name_95 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_95 WHERE date = "july 24" </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 constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771? ### Context: CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771" </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 average grid for damon hill with over 74 laps? ### Context: CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_29 WHERE laps > 74 AND driver = "damon hill" </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 position has a School/club team of jacksonville? ### Context: CREATE TABLE table_name_81 (pos VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT pos FROM table_name_81 WHERE school_club_team = "jacksonville" </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 rounds have a Pick of 13? ### Context: CREATE TABLE table_name_21 (round INTEGER, pick VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_21 WHERE pick = 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: How many rounds have School/club team of pan american? ### Context: CREATE TABLE table_name_91 (round INTEGER, school_club_team VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american" </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 chassis when there is 25 points? ### Context: CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_41 WHERE points = "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: How many points were there before 1979 with a ferrari 312b2 chassis? ### Context: CREATE TABLE table_name_3 (points VARCHAR, year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT points FROM table_name_3 WHERE year < 1979 AND chassis = "ferrari 312b2" </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 were there 29 (32) points? ### Context: CREATE TABLE table_name_3 (year VARCHAR, points VARCHAR) [/INST] ### Response: SELECT year FROM table_name_3 WHERE points = "29 (32)" </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 result occurs when the round is 4 leg 2? ### Context: CREATE TABLE table_name_87 (result VARCHAR, round VARCHAR) [/INST] ### Response: SELECT result FROM table_name_87 WHERE round = "4 leg 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 did fitzroy score at their home game? ### Context: CREATE TABLE table_name_98 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_98 WHERE home_team = "fitzroy" </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 played at western oval? ### Context: CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_16 WHERE venue = "western 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: Which surface had Yew-Ming Si as a partner? ### Context: CREATE TABLE table_name_83 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_83 WHERE partner = "yew-ming si" </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 result of rank 1? ### Context: CREATE TABLE table_name_73 (result VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT result FROM table_name_73 WHERE 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 type has a date of 1 june? ### Context: CREATE TABLE table_name_70 (type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT type FROM table_name_70 WHERE date = "1 june" </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 date with a hilly stage? ### Context: CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR) [/INST] ### Response: SELECT date FROM table_name_16 WHERE type = "hilly stage" </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 winner on 18 may? ### Context: CREATE TABLE table_name_21 (winner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_21 WHERE date = "18 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: What date was moena to aprica the course? ### Context: CREATE TABLE table_name_13 (date VARCHAR, course VARCHAR) [/INST] ### Response: SELECT date FROM table_name_13 WHERE course = "moena to aprica" </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 winner with a type of plain stage and a Course of nola to sora? ### Context: CREATE TABLE table_name_35 (winner VARCHAR, type VARCHAR, course VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_35 WHERE type = "plain stage" AND course = "nola to sora" </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 sign has a red border and a warning sign? ### Context: CREATE TABLE table_name_68 (text_symbol VARCHAR, border VARCHAR, type_of_sign VARCHAR) [/INST] ### Response: SELECT text_symbol FROM table_name_68 WHERE border = "red" AND type_of_sign = "warning" </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 sign had a yellow background and a triangular shape? ### Context: CREATE TABLE table_name_86 (border VARCHAR, background_colour VARCHAR, shape VARCHAR) [/INST] ### Response: SELECT border FROM table_name_86 WHERE background_colour = "yellow" AND shape = "triangular" </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 sign has a red border? ### Context: CREATE TABLE table_name_42 (text_symbol VARCHAR, border VARCHAR) [/INST] ### Response: SELECT text_symbol FROM table_name_42 WHERE border = "red" </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 color is the background of the mandatory instructions? ### Context: CREATE TABLE table_name_43 (background_colour VARCHAR, type_of_sign VARCHAR) [/INST] ### Response: SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions" </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 color of the background of the white border and sign of information? ### Context: CREATE TABLE table_name_25 (background_colour VARCHAR, border VARCHAR, type_of_sign VARCHAR) [/INST] ### Response: SELECT background_colour FROM table_name_25 WHERE border = "white" AND type_of_sign = "information" </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 average total of Italy and has a bronze larger than 1? ### Context: CREATE TABLE table_name_56 (total INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_56 WHERE nation = "italy" AND bronze > 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 amount of Gold does Russia have and have a rank larger than 1? ### Context: CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_8 WHERE nation = "russia" 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 is the sum of the ranks with a total of 1 and silver less than 0. ### Context: CREATE TABLE table_name_83 (rank INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_83 WHERE total = 1 AND silver < 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 Player is linebacker and has a pick larger than 28? ### Context: CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_69 WHERE position = "linebacker" AND pick > 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 lowest round that Melvin Johnson played? ### Context: CREATE TABLE table_name_99 (round INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_99 WHERE player = "melvin johnson" </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 runner-up at the South Florida Semi-Finalist #1? ### Context: CREATE TABLE table_name_96 (runner_up VARCHAR, semi_finalist__number1 VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_96 WHERE semi_finalist__number1 = "south florida" </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 Champion in Snellville, GA in 2006? ### Context: CREATE TABLE table_name_46 (champion VARCHAR, location VARCHAR, year VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_46 WHERE location = "snellville, ga" 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: Who won when Elon was the runner-up? ### Context: CREATE TABLE table_name_53 (champion VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_53 WHERE runner_up = "elon" </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 saw a score of 8-5? ### Context: CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT year FROM table_name_9 WHERE score = "8-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: Who was the Semi-Finalist #2 in 2007? ### Context: CREATE TABLE table_name_59 (semi_finalist__number2 VARCHAR, year VARCHAR) [/INST] ### Response: SELECT semi_finalist__number2 FROM table_name_59 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: Who was the Semi-Finalist #2 in 2001? ### Context: CREATE TABLE table_name_26 (semi_finalist__number2 VARCHAR, year VARCHAR) [/INST] ### Response: SELECT semi_finalist__number2 FROM table_name_26 WHERE year = "2001" </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 tournament is in Arizona? ### Context: CREATE TABLE table_name_70 (tournament VARCHAR, location VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_70 WHERE location = "arizona" </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 had a crowd bigger than 21,000? ### Context: CREATE TABLE table_name_60 (away_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT away_team FROM table_name_60 WHERE crowd > 21 OFFSET 000 </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 for points less than 166.96, and a Places of 166? ### Context: CREATE TABLE table_name_88 (rank INTEGER, points VARCHAR, places VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_88 WHERE points < "166".96 AND places = "166" </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 for more than 120.44 points in East Germany and a SP+FS of 3? ### Context: CREATE TABLE table_name_21 (rank VARCHAR, points VARCHAR, nation VARCHAR, sp VARCHAR, fs VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_21 WHERE points > 120.44 AND nation = "east germany" AND sp + fs = 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 rank when 233 shows for places and SP+FS smaller than 27? ### Context: CREATE TABLE table_name_94 (rank VARCHAR, places VARCHAR, sp VARCHAR, fs VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_94 WHERE places = "233" AND sp + fs < 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 average SP+FS for Denise Biellmann, and a Rank larger than 5? ### Context: CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(sp) + fs FROM table_name_14 WHERE name = "denise biellmann" AND rank > 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 number of points for east germany, and a Places of 88? ### Context: CREATE TABLE table_name_84 (points INTEGER, nation VARCHAR, places VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_84 WHERE nation = "east germany" AND places = "88" </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 years for engin 5.7l hemi v8? ### Context: CREATE TABLE table_name_82 (years VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT years FROM table_name_82 WHERE engine = "5.7l hemi v8" </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 years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8? ### Context: CREATE TABLE table_name_51 (years VARCHAR, notes VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT years FROM table_name_51 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8" </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 torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8? ### Context: CREATE TABLE table_name_69 (torque VARCHAR, notes VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT torque FROM table_name_69 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8" </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 drove the ferrari that went 57 laps? ### Context: CREATE TABLE table_name_21 (driver VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_21 WHERE constructor = "ferrari" AND laps = 57 </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 place did R. Wenzel, who was active after 1934, have? ### Context: CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR) [/INST] ### Response: SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934 </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 time for a round of n/a when the opponent is mikhail ilyukhin? ### Context: CREATE TABLE table_name_75 (time VARCHAR, round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_75 WHERE round = "n/a" AND opponent = "mikhail ilyukhin" </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 pole position of the Portuguese Grand Prix? ### Context: CREATE TABLE table_name_54 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_54 WHERE grand_prix = "portuguese grand prix" </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 pole position of the grand prix with 1 round? ### Context: CREATE TABLE table_name_93 (pole_position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_93 WHERE round = 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 pole position of the Hungarian Grand Prix? ### Context: CREATE TABLE table_name_41 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_41 WHERE grand_prix = "hungarian grand prix" </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 pole position of the Belgian Grand Prix? ### Context: CREATE TABLE table_name_27 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_27 WHERE grand_prix = "belgian grand prix" </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 grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position? ### Context: CREATE TABLE table_name_50 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_name_50 WHERE fastest_lap = "gerhard berger" AND pole_position = "michael schumacher" </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 declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s ### Context: CREATE TABLE table_name_55 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR, constellation VARCHAR, apparent_magnitude VARCHAR) [/INST] ### Response: SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s" </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 right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273 ### Context: CREATE TABLE table_name_2 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_2 WHERE object_type = "globular cluster" AND apparent_magnitude = 8.5 AND ngc_number = 6273 </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 played where St Kilda was the home team? ### Context: CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE home_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: What was the home team score with an away team of Melbourne? ### Context: CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_65 WHERE away_team = "melbourne" </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 played the home team of Footscray? ### Context: CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_56 WHERE home_team = "footscray" </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 old was the conservative party member that left the house in 2001? ### Context: CREATE TABLE table_name_43 (age_on_leaving VARCHAR, political_party VARCHAR, left_house VARCHAR) [/INST] ### Response: SELECT age_on_leaving FROM table_name_43 WHERE political_party = "conservative" AND left_house = "2001" </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 lowest Attendance for the Staples Center Arena when the Points were over 14? ### Context: CREATE TABLE table_name_21 (attendance INTEGER, points VARCHAR, arena VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_21 WHERE points > 14 AND arena = "staples center" </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 leading scorer for 12 january 2008 ### Context: CREATE TABLE table_name_40 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_40 WHERE date = "12 january 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: Name the record for 21 january 2008 ### Context: CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_4 WHERE date = "21 january 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 is the date when the away team is melbourne? ### Context: CREATE TABLE table_name_48 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE away_team = "melbourne" </s>