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: What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5? ### Context: CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST] ### Response: SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.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 Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –? ### Context: CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR) [/INST] ### Response: SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 latest year that resulted in won? ### Context: CREATE TABLE table_name_17 (year INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_17 WHERE result = "won" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a pick of 50? ### Context: CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT position FROM table_name_35 WHERE pick = 50 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team had a 2008-3 2008 draft? ### Context: CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 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 average pick after Round 2? ### Context: CREATE TABLE table_name_33 (pick INTEGER, round INTEGER) [/INST] ### Response: SELECT AVG(pick) FROM table_name_33 WHERE round > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998? ### Context: CREATE TABLE table_name_15 (date VARCHAR, year VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE result = "loss" AND competition = "europe/africa group i, round robin" AND location = "murcia (esp)" AND year > 1998 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the Europe/Africa Group I, play-off competition? ### Context: CREATE TABLE table_name_23 (result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT result FROM table_name_23 WHERE competition = "europe/africa group i, play-off" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the europe/africa group i, round robin game in Murcia (esp) before 1999? ### Context: CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position did the person from Clemson school fill? ### Context: CREATE TABLE table_name_48 (position VARCHAR, school VARCHAR) [/INST] ### Response: SELECT position FROM table_name_48 WHERE school = "clemson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rudy Harris' pick number in round 4? ### Context: CREATE TABLE table_name_25 (pick INTEGER, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_25 WHERE round = "round 4" AND player = "rudy harris" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number for the kicker in round 8? ### Context: CREATE TABLE table_name_7 (pick VARCHAR, round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result from 2013? ### Context: CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_49 WHERE year = 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? ### Context: CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR) [/INST] ### Response: SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score from the Sacramento monarchs from the west and the Connecticut sun from the east? ### Context: CREATE TABLE table_name_83 (result VARCHAR, western_champion VARCHAR, eastern_champion VARCHAR) [/INST] ### Response: SELECT result FROM table_name_83 WHERE western_champion = "sacramento monarchs" AND eastern_champion = "connecticut sun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominee for Best Lead Actress? ### Context: CREATE TABLE table_name_96 (nominee VARCHAR, category VARCHAR) [/INST] ### Response: SELECT nominee FROM table_name_96 WHERE category = "best lead actress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what category is Carmen Salinas nominated? ### Context: CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR) [/INST] ### Response: SELECT category FROM table_name_81 WHERE nominee = "carmen salinas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there a category of Best Supporting Actress? ### Context: CREATE TABLE table_name_8 (year INTEGER, category VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Londongborough has a Dialcode of 01992? ### Context: CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR) [/INST] ### Response: SELECT londonborough FROM table_name_15 WHERE dialcode = "01992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Dialcode of whitechapel? ### Context: CREATE TABLE table_name_62 (dialcode VARCHAR, location VARCHAR) [/INST] ### Response: SELECT dialcode FROM table_name_62 WHERE location = "whitechapel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Post code district that is in Eden Park? ### Context: CREATE TABLE table_name_76 (postcodedistrict VARCHAR, location VARCHAR) [/INST] ### Response: SELECT postcodedistrict FROM table_name_76 WHERE location = "eden 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: Which Post Town has a Dialcode of 020 and is located in Hook? ### Context: CREATE TABLE table_name_54 (post_town VARCHAR, dialcode VARCHAR, location VARCHAR) [/INST] ### Response: SELECT post_town FROM table_name_54 WHERE dialcode = "020" AND location = "hook" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Dialcode has a location of Edmonton? ### Context: CREATE TABLE table_name_11 (dialcode VARCHAR, location VARCHAR) [/INST] ### Response: SELECT dialcode FROM table_name_11 WHERE location = "edmonton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average rank has an Earning amount that is less than $224,589? ### Context: CREATE TABLE table_name_82 (rank INTEGER, earnings__$__ INTEGER) [/INST] ### Response: SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a rank of 2? ### Context: CREATE TABLE table_name_93 (country VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT country FROM table_name_93 WHERE rank = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number on roll for Shelly Park school? ### Context: CREATE TABLE table_name_7 (roll VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(roll) FROM table_name_7 WHERE name = "shelly park 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: What week was the record 0-5? ### Context: CREATE TABLE table_name_96 (week VARCHAR, record VARCHAR) [/INST] ### Response: SELECT week FROM table_name_96 WHERE record = "0-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 was the result of the game with the attendance of 45,320? ### Context: CREATE TABLE table_name_31 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_31 WHERE attendance = "45,320" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What time was the kickoff on September 15, 1985? ### Context: CREATE TABLE table_name_68 (kickoff_ VARCHAR, a_ VARCHAR, date VARCHAR) [/INST] ### Response: SELECT kickoff_[a_] FROM table_name_68 WHERE date = "september 15, 1985" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a Long of 5 and Yards of 6? ### Context: CREATE TABLE table_name_74 (player VARCHAR, long VARCHAR, yards VARCHAR) [/INST] ### Response: SELECT player FROM table_name_74 WHERE long = "5" AND yards = "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: How many Yards did Player Rob Turner collect? ### Context: CREATE TABLE table_name_32 (yards VARCHAR, player VARCHAR) [/INST] ### Response: SELECT yards FROM table_name_32 WHERE player = "rob turner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team on March 5? ### Context: CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_52 WHERE date = "march 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 is the visitor on March 24? ### Context: CREATE TABLE table_name_62 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_62 WHERE date = "march 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 was the home team on March 24? ### Context: CREATE TABLE table_name_57 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_57 WHERE date = "march 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: what is the assisted when the solo is 6 and sack is less than 5? ### Context: CREATE TABLE table_name_79 (assisted VARCHAR, solo VARCHAR, sack VARCHAR) [/INST] ### Response: SELECT assisted FROM table_name_79 WHERE solo = 6 AND sack < 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: How many losses had a played number that was more than 34? ### Context: CREATE TABLE table_name_61 (losses VARCHAR, played INTEGER) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_61 WHERE played > 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53? ### Context: CREATE TABLE table_name_79 (goals_against INTEGER, wins VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT MAX(goals_against) FROM table_name_79 WHERE wins = 19 AND goals_for > 53 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean number of losses had a played number that was bigger than 34? ### Context: CREATE TABLE table_name_58 (losses INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(losses) FROM table_name_58 WHERE played > 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest goals for number had a played number of less than 34? ### Context: CREATE TABLE table_name_95 (goals_for INTEGER, played INTEGER) [/INST] ### Response: SELECT MIN(goals_for) FROM table_name_95 WHERE played < 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Played number had a goal difference of more than 0 when the club was Valencia CF? ### Context: CREATE TABLE table_name_29 (played VARCHAR, goal_difference VARCHAR, club VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_29 WHERE goal_difference > 0 AND club = "valencia cf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player has a college named san sebastian? ### Context: CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_97 WHERE college = "san sebastian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college has pick 45 ### Context: CREATE TABLE table_name_33 (college VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT college FROM table_name_33 WHERE pick = 45 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 air date for the seasons before 14 and series less than 183 with production code more than 709 ### Context: CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title for the production code less than 706 with series number more than 175 ### Context: CREATE TABLE table_name_78 (title VARCHAR, series__number VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least series number with production code of 717 and season number less than 17 ### Context: CREATE TABLE table_name_41 (series__number INTEGER, production_code VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri? ### Context: CREATE TABLE table_name_39 (can_yayınları VARCHAR, güzelçamlı’nin_kayıp_panteri VARCHAR) [/INST] ### Response: SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = "çevreci peri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2005 has a Güzelçamlı’s Lost Panther of green fairy? ### Context: CREATE TABLE table_name_76 (güzelçamlı’s_lost_panther VARCHAR) [/INST] ### Response: SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = "green fairy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2005 has a Güzelçamlı’s Lost Panther of the muse? ### Context: CREATE TABLE table_name_38 (güzelçamlı’s_lost_panther VARCHAR) [/INST] ### Response: SELECT MAX(2005) FROM table_name_38 WHERE güzelçamlı’s_lost_panther = "the muse" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid when the driver is pierre levegh? ### Context: CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_11 WHERE 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: what is the grid when the laps is 2? ### Context: CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_21 WHERE laps = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the time/retired when the driver is toulo de graffenried? ### Context: CREATE TABLE table_name_81 (time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_81 WHERE driver = "toulo de graffenried" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12? ### Context: CREATE TABLE table_name_36 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_36 WHERE grid < 13 AND constructor = "alfa romeo" AND laps > 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 is the grid when the laps is more than 20? ### Context: CREATE TABLE table_name_94 (grid INTEGER, laps INTEGER) [/INST] ### Response: SELECT SUM(grid) FROM table_name_94 WHERE laps > 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: What is the D 49 √ when D 47 √ is d 67 +? ### Context: CREATE TABLE table_name_37 (d_49_√ VARCHAR, d_47_√ VARCHAR) [/INST] ### Response: SELECT d_49_√ FROM table_name_37 WHERE d_47_√ = "d 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: What is the number for D 44 √ when D 47 √ is r 7? ### Context: CREATE TABLE table_name_19 (d_44_√ VARCHAR, d_47_√ VARCHAR) [/INST] ### Response: SELECT d_44_√ FROM table_name_19 WHERE d_47_√ = "r 7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 42 √ number when the D 45 √ is r 16? ### Context: CREATE TABLE table_name_6 (d_42_√ VARCHAR, d_45_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_6 WHERE d_45_√ = "r 16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 49 √ number when the D 41 √ is d 61 √? ### Context: CREATE TABLE table_name_19 (d_49_√ VARCHAR, d_41_√ VARCHAR) [/INST] ### Response: SELECT d_49_√ FROM table_name_19 WHERE d_41_√ = "d 61 √" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 42 √ figure when D 46 √ is r 6? ### Context: CREATE TABLE table_name_77 (d_42_√ VARCHAR, d_46_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = "r 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 D 50 √ when the D 47 √ is r 27 √? ### Context: CREATE TABLE table_name_93 (d_50_√ VARCHAR, d_47_√ VARCHAR) [/INST] ### Response: SELECT d_50_√ FROM table_name_93 WHERE d_47_√ = "r 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: Tell me the player for ballarat football league ### Context: CREATE TABLE table_name_94 (player VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT player FROM table_name_94 WHERE competition = "ballarat football league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player for east perth ### Context: CREATE TABLE table_name_88 (player VARCHAR, team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_88 WHERE team = "east perth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 met he score for team of waaia ### Context: CREATE TABLE table_name_67 (score VARCHAR, team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_67 WHERE team = "waaia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team for victorian football league ### Context: CREATE TABLE table_name_48 (team VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT team FROM table_name_48 WHERE competition = "victorian football league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was the debut of Scott Tunbridge? ### Context: CREATE TABLE table_name_58 (debut VARCHAR, name VARCHAR) [/INST] ### Response: SELECT debut FROM table_name_58 WHERE name = "scott tunbridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was the debut of defender Stephen Laybutt? ### Context: CREATE TABLE table_name_11 (debut VARCHAR, position VARCHAR, name VARCHAR) [/INST] ### Response: SELECT debut FROM table_name_11 WHERE position = "defender" AND name = "stephen laybutt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position had a debut in round 6? ### Context: CREATE TABLE table_name_66 (position VARCHAR, debut VARCHAR) [/INST] ### Response: SELECT position FROM table_name_66 WHERE debut = "round 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 name of the player that had a debut in round 6? ### Context: CREATE TABLE table_name_96 (name VARCHAR, debut VARCHAR) [/INST] ### Response: SELECT name FROM table_name_96 WHERE debut = "round 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 date did the player from Santo André debut? ### Context: CREATE TABLE table_name_27 (date_joined VARCHAR, from__club_ VARCHAR) [/INST] ### Response: SELECT date_joined FROM table_name_27 WHERE from__club_ = "santo andré" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue when the score is 20½–11½? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, score VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_64 WHERE score = "20½–11½" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club? ### Context: CREATE TABLE table_name_31 (winning_team VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year that the U.S. captain is ken venturi? ### Context: CREATE TABLE table_name_61 (year INTEGER, us_captain VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_61 WHERE us_captain = "ken venturi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location when the year is less than 1998 and the international captain is david graham? ### Context: CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR) [/INST] ### Response: SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did jim colbert earned ranked above 2? ### Context: CREATE TABLE table_name_64 (earnings__ VARCHAR, player VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(earnings__) AS $__ FROM table_name_64 WHERE player = "jim colbert" AND rank < 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 day did the VFL play at Junction Oval? ### Context: CREATE TABLE table_name_74 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_74 WHERE venue = "junction 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: Where did Footscray play as the home team? ### Context: CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_41 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: Who was the opponent when Footscray played as the home team? ### Context: CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_62 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: What was the attendance when the VFL played Arden Street Oval? ### Context: CREATE TABLE table_name_50 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_50 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: What was the score June 22? ### Context: CREATE TABLE table_name_82 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_82 WHERE date = "june 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: Which school has a hometown of winter park, FL? ### Context: CREATE TABLE table_name_68 (school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT school FROM table_name_68 WHERE hometown = "winter park, fl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college of the player with a height of 6-4 and went to lake howell high school? ### Context: CREATE TABLE table_name_68 (college VARCHAR, height VARCHAR, school VARCHAR) [/INST] ### Response: SELECT college FROM table_name_68 WHERE height = "6-4" AND school = "lake howell 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: What's the hometown of the player with a college of lsu? ### Context: CREATE TABLE table_name_51 (hometown VARCHAR, college VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_51 WHERE college = "lsu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 heigh of the player who went to lake howell high school? ### Context: CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR) [/INST] ### Response: SELECT height FROM table_name_72 WHERE school = "lake howell 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: What's the heigh of nolan smith? ### Context: CREATE TABLE table_name_83 (height VARCHAR, player VARCHAR) [/INST] ### Response: SELECT height FROM table_name_83 WHERE player = "nolan smith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height of the player who went to oak hill academy? ### Context: CREATE TABLE table_name_64 (height VARCHAR, school VARCHAR) [/INST] ### Response: SELECT height FROM table_name_64 WHERE school = "oak hill academy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Paul Russo have on his fastest lap? ### Context: CREATE TABLE table_name_67 (tyre VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_67 WHERE fastest_lap = "paul russo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that Stirling Moss had his fastest lap in a Maserati? ### Context: CREATE TABLE table_name_28 (date VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT date FROM table_name_28 WHERE constructor = "maserati" AND fastest_lap = "stirling moss" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 30 May? ### Context: CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_90 WHERE date = "30 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 was the fastest lap in the Belgian Grand Prix? ### Context: CREATE TABLE table_name_31 (fastest_lap VARCHAR, race VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_31 WHERE race = "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: Who was the home team when the away team was Hawthorn? ### Context: CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_15 WHERE away_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: On what date did the game at Windy Hill take place? ### Context: CREATE TABLE table_name_24 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE venue = "windy 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: What was the venue when the away team was Hawthorn? ### Context: CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_69 WHERE away_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: What was the home team when the game was at Windy Hill? ### Context: CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_36 WHERE venue = "windy 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: What position has less than 343 laps in 2010? ### Context: CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR) [/INST] ### Response: SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 panoz motor sports' lowest number of laps before 2002? ### Context: CREATE TABLE table_name_68 (laps INTEGER, team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of the games that had paul (9) for high assists? ### Context: CREATE TABLE table_name_61 (game INTEGER, high_assists VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_61 WHERE high_assists = "paul (9)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team had a high points of west (20)? ### Context: CREATE TABLE table_name_65 (team VARCHAR, high_points VARCHAR) [/INST] ### Response: SELECT team FROM table_name_65 WHERE high_points = "west (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: What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? ### Context: CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time/retired associated with a grid of 5 and under 73 laps? ### Context: CREATE TABLE table_name_46 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 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 was the free score of the skater with a total of 156.67? ### Context: CREATE TABLE table_name_80 (free VARCHAR, total VARCHAR) [/INST] ### Response: SELECT free FROM table_name_80 WHERE total = 156.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: What was the average figure score of the skater with a free score under 56.35? ### Context: CREATE TABLE table_name_19 (figures INTEGER, free INTEGER) [/INST] ### Response: SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35 </s>