diff --git "a/finetune_model.ipynb" "b/finetune_model.ipynb" --- "a/finetune_model.ipynb" +++ "b/finetune_model.ipynb" @@ -635,7 +635,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -686,9 +686,9 @@ " max_new_tokens=256,\n", " eos_token_id=tokenizer.convert_tokens_to_ids(\"<|endofsql|>\")\n", ")\n", - "query_output = tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True)\n", + "model_output = tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True)\n", "\n", - "print(\"Generated SQL:\", query_output)" + "print(\"Generated SQL:\", model_output)" ] }, { @@ -716,6 +716,2619 @@ "train_dataset.save_to_disk(\"train.hf\")\n", "val_dataset.save_to_disk(\"val.hf\")" ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "9035\n", + "How many total points did the Chicago Bulls score during the 1996 season?\n", + "\n", + "SELECT SUM(pts) AS total_points FROM ( SELECT pts_home AS pts FROM game WHERE team_abbreviation_home = 'CHI' AND season_id = '21996' UNION ALL SELECT pts_away AS pts FROM game WHERE team_abbreviation_away = 'CHI' AND season_id = '21996' );\n", + "(8458.0,)\n" + ] + } + ], + "source": [ + "import sqlite3 as sql\n", + "\n", + "prompt_length = len(input_prompt)\n", + "\n", + "print(prompt_length)\n", + "\n", + "# Create connection to sqlite3 database\n", + "connection = sql.connect('./nba-data/nba.sqlite')\n", + "cursor = connection.cursor()\n", + "\n", + "for v in val_dataset:\n", + " full_example = tokenizer.decode(v[\"input_ids\"], skip_special_tokens=True)\n", + " user_prompt = full_example[:prompt_length]\n", + " question, sql_query = full_example[prompt_length:].split(\"SQLite:\\n\")\n", + " print(question)\n", + " print(sql_query)\n", + " cursor.execute(sql_query)\n", + " rows = cursor.fetchall()\n", + " for row in rows:\n", + " print(row)\n", + " break" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n", + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(pts) AS total_points FROM ( SELECT pts_home AS pts FROM game WHERE team_abbreviation_home = 'CHI' AND season_id = '21996' UNION ALL SELECT pts_away AS pts FROM game WHERE team_abbreviation_away = 'CHI' AND season_id = '21996' );\n", + "SQLite: SELECT SUM(pts_home) FROM game WHERE team_name_home = 'Chicago Bulls' AND season_id = '1996'\n", + "['8458.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(fg3a) AS total_three_attempts FROM ( SELECT fg3a_home AS fg3a FROM game WHERE team_abbreviation_home = 'GSW' AND season_id = '22017' UNION ALL SELECT fg3a_away AS fg3a FROM game WHERE team_abbreviation_away = 'GSW' AND season_id = '22017' );\n", + "SQLite: SELECT SUM(fg3m_home) + SUM(fg3m_away) AS total_fg3m FROM game WHERE season_id = '22017'\n", + "['2369.0']\n", + "['25807.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(tov) AS total_turnovers FROM ( SELECT tov_home AS tov FROM game WHERE team_abbreviation_home = 'SAC' AND season_id = '22001' UNION ALL SELECT tov_away AS tov FROM game WHERE team_abbreviation_away = 'SAC' AND season_id = '22001' );\n", + "SQLite:\n", + "SELECT SUM(total_turnovers_home) FROM other_stats WHERE team_name_home = 'Sacramento Kings' AND season_id = '22001'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MIN(total_points) AS lowest_scoring_game FROM ( SELECT (pts_home + pts_away) AS total_points FROM game WHERE season_id = '21994' AND (team_abbreviation_home = 'IND' OR team_abbreviation_away = 'IND') );\n", + "SQLite:\n", + "SELECT * FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '1994'\n", + "['155.0']\n", + "[]\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE season_id = '22016' ORDER BY total_points DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT game_id, MAX(pts_home) AS highest_scoring_game FROM game WHERE season_id = '22016'\n", + "['0021600711', '281.0']\n", + "['0021600223', '149.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(fta) AS total_free_throws_attempted FROM ( SELECT fta_home AS fta FROM game WHERE team_abbreviation_home = 'BOS' AND season_id = '22013' UNION ALL SELECT fta_away AS fta FROM game WHERE team_abbreviation_away = 'BOS' AND season_id = '22013' );\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '22013'\n", + "['1706.0']\n", + "['41']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MIN(fg_pct) AS lowest_fg_percentage FROM ( SELECT fg_pct_home AS fg_pct FROM game WHERE team_abbreviation_home = 'NYK' AND season_id = '22005' UNION ALL SELECT fg_pct_away FROM game WHERE team_abbreviation_away = 'NYK' AND season_id = '22005' );\n", + "SQLite:\n", + "SELECT MIN(fg_pct_home) FROM game WHERE team_name_home = 'New York Knicks' AND season_id = '22005'\n", + "['0.329']\n", + "['0.329']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(reb) AS total_rebounds FROM ( SELECT reb_home AS reb FROM game WHERE team_abbreviation_home = 'HOU' AND season_id = '22010' UNION ALL SELECT reb_away AS reb FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22010' );\n", + "SQLite:\n", + "SELECT SUM(reb_home) + SUM(reb_away) AS total_rebounds FROM game WHERE season_id = '22010'\n", + "['3511.0']\n", + "['101816.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(ABS(pts_home - pts_away)) AS largest_margin FROM game WHERE season_id = '22003';\n", + "SQLite:\n", + "SELECT MAX(pts_home - pts_away) AS largest_win FROM game WHERE season_id = '22003'\n", + "['47.0']\n", + "['47.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) AS home_wins FROM game WHERE season_id = '22015' AND team_abbreviation_home = 'ORL' AND pts_home > pts_away;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Orlando Magic' AND season_id = '22015'\n", + "['23']\n", + "['41']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_abbreviation, AVG(point_diff) AS avg_point_differential FROM ( SELECT team_abbreviation_home AS team_abbreviation, (pts_home - pts_away) AS point_diff FROM game WHERE season_id = '22007' UNION ALL SELECT team_abbreviation_away, (pts_away - pts_home) FROM game WHERE season_id = '22007' ) GROUP BY team_abbreviation ORDER BY avg_point_differential ASC LIMIT 1;\n", + "SQLite:\n", + "SELECT team_abbreviation_home FROM other_stats ORDER BY (pts_paint_home - pts_paint_away) ASC LIMIT 1\n", + "['SEA', '-8.75609756097561']\n", + "['OKC']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22020' ) ORDER BY lead_changes DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT game_id FROM other_stats ORDER BY lead_changes DESC LIMIT 1\n", + "['0022000890', '26']\n", + "['0021300789']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Miami Heat';\n", + "SQLite:\n", + "SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Miami Heat'\n", + "['0.675']\n", + "['0.675']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(oreb_away) FROM game WHERE team_name_away = 'Houston Rockets' AND season_id = '22018';\n", + "SQLite:\n", + "SELECT SUM(oreb_away) FROM game WHERE team_name_away = 'Houston Rockets' AND season_id = '22018'\n", + "['419.0']\n", + "['419.0']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE season_id = '22010' AND ( (team_name_home = 'Cleveland Cavaliers' AND wl_home = 'L' AND (pts_away - pts_home) > 20) OR (team_name_away = 'Cleveland Cavaliers' AND wl_away = 'L' AND (pts_home - pts_away) > 20) );\n", + "SQLite:\n", + "SELECT COUNT(*) FROM other_stats WHERE team_name_away = 'Cleveland Cavaliers' AND season_id = '22010' AND pts_away - pts_paint_away > 20\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_home) FROM game WHERE team_abbreviation_home = 'GSW';\n", + "SQLite:\n", + "SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Golden State Warriors'\n", + "['149.0']\n", + "['155.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date FROM game WHERE team_abbreviation_home = 'NYK' AND wl_home = 'W' ORDER BY game_date DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(game_date) FROM game WHERE team_name_home = 'New York Knicks'\n", + "['2023-05-10 00:00:00']\n", + "['2023-05-10 00:00:00']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_name_away, pts_away FROM game WHERE team_abbreviation_home = 'MIA' ORDER BY pts_away DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT team_name_away FROM game WHERE pts_away = (SELECT MAX(pts_away) FROM game WHERE team_name_away = 'Miami Heat')\n", + "['Milwaukee Bucks', '144.0']\n", + "['Boston Celtics', 'New York Knicks', 'Los Angeles Lakers', 'New York Knicks', 'Los Angeles Lakers', 'Detroit Pistons', 'Los Angeles Lakers', 'Cincinnati Royals', 'San Francisco Warriors', 'New York Knicks', 'Baltimore Bullets', 'San Francisco Warriors', 'New York Knicks', 'Boston Celtics', 'St. Louis Hawks', 'Baltimore Bullets', 'San Francisco Warriors', 'St. Louis Hawks', 'Baltimore Bullets', 'Boston Celtics', 'New York Knicks', 'Baltimore Bullets', 'Philadelphia 76ers', 'Baltimore Bullets', 'Seattle SuperSonics', 'Phoenix Suns', 'Boston Celtics', 'Los Angeles Lakers', 'Milwaukee Bucks', 'Los Angeles Lakers', 'Milwaukee Bucks', 'Houston Rockets', 'West NBA All Stars West', 'San Antonio Spurs', 'New York Knicks', 'Denver Nuggets', 'Boston Celtics', 'Milwaukee Bucks', 'Philadelphia 76ers', 'Denver Nuggets', 'Denver Nuggets', 'Phoenix Suns', 'Dallas Mavericks', 'Detroit Pistons', 'Detroit Pistons', 'Chicago Bulls', 'Utah Jazz', 'Boston Celtics', 'Portland Trail Blazers', 'San Antonio Spurs', 'Sacramento Kings', 'Phoenix Suns', 'Golden State Warriors', 'East NBA All Stars East', 'East NBA All Stars East', 'Phoenix Suns', 'Portland Trail Blazers', 'New York Knicks', 'Miami Heat', 'Charlotte Hornets', 'Indiana Pacers', 'Indiana Pacers', 'Golden State Warriors', 'Philadelphia 76ers', 'Golden State Warriors', 'Phoenix Suns', 'Seattle SuperSonics', 'Boston Celtics', 'Los Angeles Lakers', 'Golden State Warriors', 'East NBA All Stars East', 'East NBA All Stars East', 'Brooklyn Nets', 'Houston Rockets', 'Washington Wizards', 'Phoenix Suns', 'Golden State Warriors', 'Golden State Warriors', 'LA Clippers', 'Denver Nuggets', 'Memphis Grizzlies', 'Denver Nuggets', 'Denver Nuggets', 'Portland Trail Blazers', 'Oklahoma City Thunder', 'Milwaukee Bucks', 'Milwaukee Bucks', 'Los Angeles Lakers', 'Washington Wizards', 'Golden State Warriors', 'Milwaukee Bucks', 'LA Clippers', 'Denver Nuggets', 'Portland Trail Blazers', 'Portland Trail Blazers', 'Philadelphia 76ers', 'Miami Heat', 'Brooklyn Nets', 'Indiana Pacers', 'Boston Celtics', 'LA Clippers', 'Atlanta Hawks', 'Minnesota Timberwolves', 'Brooklyn Nets', 'Phoenix Suns', 'Washington Wizards', 'Boston Celtics', 'Indiana Pacers', 'San Antonio Spurs', 'Minnesota Timberwolves', 'Charlotte Hornets', 'Detroit Pistons', 'Oklahoma City Thunder', 'Houston Rockets', 'Charlotte Hornets', 'Chicago Bulls', 'LA Clippers', 'Milwaukee Bucks', 'Boston Celtics', 'Los Angeles Lakers', 'Philadelphia 76ers', 'Adelaide 36ers', 'Boston Celtics']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'CHI';\n", + "SQLite:\n", + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_name_home = 'Chicago Bulls'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'BKN';\n", + "SQLite:\n", + "SELECT MAX(pts_fb_home) FROM game WHERE team_name_home = 'Brooklyn Nets'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'LAL';\n", + "SQLite:\n", + "SELECT MAX(pts_away) FROM game WHERE team_name_away = 'Los Angeles Lakers'\n", + "['153.0']\n", + "['153.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, pts_home, pts_away, game_date FROM game WHERE team_abbreviation_home = 'CHI' OR team_abbreviation_away = 'CHI' ORDER BY (pts_home + pts_away) DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(pts_home) as highest_score FROM game WHERE team_name_home = 'Chicago Bulls' OR team_name_away = 'Chicago Bulls'\n", + "['0021800928', '161.0', '168.0', '2019-03-01 00:00:00']\n", + "['161.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(ABS(pts_away - pts_home)) AS largest_margin FROM game WHERE team_abbreviation_away = 'MIA' AND pts_away > pts_home;\n", + "SQLite:\n", + "SELECT MAX(pts_away - pts_home) AS largest_win FROM game WHERE team_name_away = 'Miami Heat'\n", + "['34.0']\n", + "['34.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_fb_away) FROM other_stats WHERE team_abbreviation_away = 'HOU';\n", + "SQLite:\n", + "SELECT MAX(pts_fb_away) FROM other_stats WHERE team_name_away = 'Houston Rockets'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'MIL';\n", + "SQLite:\n", + "SELECT MAX(pts_off_to_away) FROM other_stats WHERE team_name_away = 'Milwaukee Bucks'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MIN(pts_away) FROM game WHERE team_abbreviation_away = 'GSW';\n", + "SQLite:\n", + "SELECT MIN(pts_away) FROM game WHERE team_name_away = 'Golden State Warriors'\n", + "['65.0']\n", + "['65.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'BOS' AND wl_away = 'W' AND (pts_away - pts_home) >= 20;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND wl_away = 'W' AND pts_away >= 20\n", + "['179']\n", + "['923']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_abbreviation_home, COUNT(*) AS losses FROM game WHERE team_abbreviation_away = 'LAC' AND wl_away = 'L' GROUP BY team_abbreviation_home ORDER BY losses DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT team_name_away FROM game WHERE wl_away = 'L' AND team_name_home = 'Los Angeles Clippers'\n", + "['POR', '65']\n", + "['New York Knicks', 'Denver Nuggets', 'Kansas City Kings', 'Phoenix Suns', 'Seattle SuperSonics', 'San Antonio Spurs', 'Portland Trail Blazers', 'Washington Bullets', 'Golden State Warriors', 'Seattle SuperSonics', 'Utah Jazz', 'Houston Rockets', 'Indiana Pacers', 'Golden State Warriors', 'San Antonio Spurs', 'Detroit Pistons', 'Utah Jazz', 'Phoenix Suns', 'Kansas City Kings', 'Denver Nuggets', 'Houston Rockets', 'Portland Trail Blazers', 'Chicago Bulls', 'New York Knicks', 'Milwaukee Bucks', 'Sacramento Kings', 'Dallas Mavericks', 'Golden State Warriors', 'Seattle SuperSonics', 'Utah Jazz', 'Los Angeles Lakers', 'New Jersey Nets', 'Phoenix Suns', 'Portland Trail Blazers', 'Houston Rockets', 'Cleveland Cavaliers', 'Seattle SuperSonics', 'Sacramento Kings', 'Los Angeles Lakers', 'Utah Jazz', 'Denver Nuggets', 'Dallas Mavericks', 'Phoenix Suns', 'Denver Nuggets', 'Seattle SuperSonics', 'Denver Nuggets', 'New Jersey Nets', 'Denver Nuggets', 'Sacramento Kings', 'Seattle SuperSonics', 'Utah Jazz', 'Utah Jazz', 'Golden State Warriors', 'Philadelphia 76ers', 'Sacramento Kings', 'Seattle SuperSonics', 'Houston Rockets', 'Los Angeles Lakers', 'Indiana Pacers', 'Phoenix Suns', 'Cleveland Cavaliers', 'Sacramento Kings', 'Golden State Warriors', 'Detroit Pistons', 'Houston Rockets', 'Phoenix Suns', 'Sacramento Kings', 'Indiana Pacers', 'Chicago Bulls', 'New Jersey Nets', 'Houston Rockets', 'Denver Nuggets', 'Seattle SuperSonics', 'Houston Rockets', 'Cleveland Cavaliers', 'Dallas Mavericks', 'Denver Nuggets', 'Sacramento Kings', 'San Antonio Spurs', 'Portland Trail Blazers', 'Golden State Warriors', 'Los Angeles Lakers', 'Houston Rockets', 'Denver Nuggets', 'New Jersey Nets', 'Chicago Bulls', 'Sacramento Kings', 'Cleveland Cavaliers', 'Detroit Pistons', 'Denver Nuggets', 'Indiana Pacers', 'Golden State Warriors', 'Charlotte Hornets', 'Seattle SuperSonics', 'Minnesota Timberwolves', 'Los Angeles Lakers', 'Seattle SuperSonics', 'Orlando Magic', 'Houston Rockets', 'Minnesota Timberwolves', 'Seattle SuperSonics', 'Dallas Mavericks', 'Sacramento Kings', 'Golden State Warriors', 'Phoenix Suns', 'Seattle SuperSonics', 'New Jersey Nets', 'Orlando Magic', 'Minnesota Timberwolves', 'Dallas Mavericks', 'Sacramento Kings', 'Houston Rockets', 'Milwaukee Bucks', 'Minnesota Timberwolves', 'San Antonio Spurs', 'Denver Nuggets', 'Houston Rockets', 'San Antonio Spurs', 'Charlotte Hornets', 'Phoenix Suns', 'Utah Jazz', 'Dallas Mavericks', 'Seattle SuperSonics', 'Sacramento Kings', 'Denver Nuggets', 'Cleveland Cavaliers', 'Phoenix Suns', 'Denver Nuggets', 'Indiana Pacers', 'Seattle SuperSonics', 'Charlotte Hornets', 'San Antonio Spurs', 'Minnesota Timberwolves', 'Detroit Pistons', 'Utah Jazz', 'Orlando Magic', 'Philadelphia 76ers', 'Seattle SuperSonics', 'Atlanta Hawks', 'New Jersey Nets', 'Dallas Mavericks', 'Houston Rockets', 'Phoenix Suns', 'San Antonio Spurs', 'Los Angeles Lakers', 'Miami Heat', 'Golden State Warriors', 'Dallas Mavericks', 'Sacramento Kings', 'Houston Rockets', 'Milwaukee Bucks', 'Portland Trail Blazers', 'Denver Nuggets', 'Minnesota Timberwolves', 'Utah Jazz', 'Utah Jazz', 'Sacramento Kings', 'Detroit Pistons', 'New York Knicks', 'Phoenix Suns', 'Orlando Magic', 'Charlotte Hornets', 'Indiana Pacers', 'Minnesota Timberwolves', 'Dallas Mavericks', 'Boston Celtics', 'Los Angeles Lakers', 'Seattle SuperSonics', 'Utah Jazz', 'Phoenix Suns', 'Sacramento Kings', 'Washington Bullets', 'Sacramento Kings', 'Minnesota Timberwolves', 'Utah Jazz', 'Milwaukee Bucks', 'Los Angeles Lakers', 'Atlanta Hawks', 'Dallas Mavericks', 'Denver Nuggets', 'Phoenix Suns', 'Golden State Warriors', 'Portland Trail Blazers', 'Houston Rockets', 'Portland Trail Blazers', 'Detroit Pistons', 'San Antonio Spurs', 'Dallas Mavericks', 'New Jersey Nets', 'Orlando Magic', 'Washington Bullets', 'Philadelphia 76ers', 'Minnesota Timberwolves', 'Sacramento Kings', 'Sacramento Kings', 'Charlotte Hornets', 'Dallas Mavericks', 'Golden State Warriors', 'Utah Jazz', 'Portland Trail Blazers', 'Los Angeles Lakers', 'Milwaukee Bucks', 'Golden State Warriors', 'Philadelphia 76ers', 'Cleveland Cavaliers', 'Houston Rockets', 'Boston Celtics', 'Los Angeles Lakers', 'Phoenix Suns', 'Minnesota Timberwolves', 'Golden State Warriors', 'Detroit Pistons', 'Utah Jazz', 'Dallas Mavericks', 'Phoenix Suns', 'Denver Nuggets', 'Vancouver Grizzlies', 'Dallas Mavericks', 'New Jersey Nets', 'Miami Heat', 'Sacramento Kings', 'Phoenix Suns', 'Minnesota Timberwolves', 'Denver Nuggets', 'Portland Trail Blazers', 'San Antonio Spurs', 'Sacramento Kings', 'Dallas Mavericks', 'Minnesota Timberwolves', 'Philadelphia 76ers', 'Milwaukee Bucks', 'Portland Trail Blazers', 'Utah Jazz', 'Minnesota Timberwolves', 'Milwaukee Bucks', 'Charlotte Hornets', 'San Antonio Spurs', 'Sacramento Kings', 'Phoenix Suns', 'Utah Jazz', 'Seattle SuperSonics', 'Denver Nuggets', 'Vancouver Grizzlies', 'Golden State Warriors', 'Los Angeles Lakers', 'Boston Celtics', 'Dallas Mavericks', 'Philadelphia 76ers', 'Toronto Raptors', 'Golden State Warriors', 'Sacramento Kings', 'San Antonio Spurs', 'Vancouver Grizzlies', 'Denver Nuggets', 'Sacramento Kings', 'San Antonio Spurs', 'Golden State Warriors', 'Denver Nuggets', 'Dallas Mavericks', 'Vancouver Grizzlies', 'Utah Jazz', 'Philadelphia 76ers', 'Toronto Raptors', 'Dallas Mavericks', 'Sacramento Kings', 'Sacramento Kings', 'Utah Jazz', 'Minnesota Timberwolves', 'New Jersey Nets', 'Houston Rockets', 'Vancouver Grizzlies', 'Philadelphia 76ers', 'New York Knicks', 'Vancouver Grizzlies', 'Golden State Warriors', 'Sacramento Kings', 'Boston Celtics', 'Indiana Pacers', 'New Jersey Nets', 'Atlanta Hawks', 'Denver Nuggets', 'Houston Rockets', 'Atlanta Hawks', 'New York Knicks', 'Golden State Warriors', 'Orlando Magic', 'Minnesota Timberwolves', 'Vancouver Grizzlies', 'Toronto Raptors', 'Denver Nuggets', 'Portland Trail Blazers', 'Chicago Bulls', 'Portland Trail Blazers', 'Sacramento Kings', 'Denver Nuggets', 'Golden State Warriors', 'Philadelphia 76ers', 'Houston Rockets', 'Detroit Pistons', 'Cleveland Cavaliers', 'Milwaukee Bucks', 'Minnesota Timberwolves', 'Phoenix Suns', 'Atlanta Hawks', 'Memphis Grizzlies', 'Phoenix Suns', 'Chicago Bulls', 'New York Knicks', 'Houston Rockets', 'Minnesota Timberwolves', 'Indiana Pacers', 'Miami Heat', 'Charlotte Hornets', 'Orlando Magic', 'Seattle SuperSonics', 'Detroit Pistons', 'Sacramento Kings', 'Portland Trail Blazers', 'Milwaukee Bucks', 'Cleveland Cavaliers', 'Denver Nuggets', 'Los Angeles Lakers', 'Dallas Mavericks', 'Golden State Warriors', 'Washington Wizards', 'Houston Rockets', 'Denver Nuggets', 'Memphis Grizzlies', 'Detroit Pistons', 'Houston Rockets', 'New Jersey Nets', 'Miami Heat', 'Minnesota Timberwolves', 'San Antonio Spurs', 'Denver Nuggets', 'Memphis Grizzlies', 'Sacramento Kings', 'Chicago Bulls', 'Milwaukee Bucks', 'Toronto Raptors', 'Denver Nuggets', 'Memphis Grizzlies', 'New York Knicks', 'Portland Trail Blazers', 'Atlanta Hawks', 'Orlando Magic', 'San Antonio Spurs', 'Cleveland Cavaliers', 'Dallas Mavericks', 'Phoenix Suns', 'New Orleans Hornets', 'Milwaukee Bucks', 'Philadelphia 76ers', 'Denver Nuggets', 'Los Angeles Lakers', 'Portland Trail Blazers', 'Golden State Warriors', 'Utah Jazz', 'Chicago Bulls', 'Boston Celtics', 'New York Knicks', 'Portland Trail Blazers', 'Seattle SuperSonics', 'Toronto Raptors', 'New Jersey Nets', 'Golden State Warriors', 'Cleveland Cavaliers', 'Indiana Pacers', 'Charlotte Bobcats', 'New Orleans Hornets', 'Utah Jazz', 'Philadelphia 76ers', 'Portland Trail Blazers', 'Seattle SuperSonics', 'Miami Heat', 'Dallas Mavericks', 'Los Angeles Lakers', 'Golden State Warriors', 'New York Knicks', 'Minnesota Timberwolves', 'Atlanta Hawks', 'Dallas Mavericks', 'Chicago Bulls', 'Orlando Magic', 'Portland Trail Blazers', 'Milwaukee Bucks', 'Washington Wizards', 'Utah Jazz', 'New Orleans Hornets', 'Atlanta Hawks', 'Minnesota Timberwolves', 'Milwaukee Bucks', 'Golden State Warriors', 'Toronto Raptors', 'Cleveland Cavaliers', 'Miami Heat', 'New York Knicks', 'Phoenix Suns', 'Houston Rockets', 'Orlando Magic', 'Seattle SuperSonics', 'Utah Jazz', 'Golden State Warriors', 'New Jersey Nets', 'Denver Nuggets', 'Memphis Grizzlies', 'Los Angeles Lakers', 'Charlotte Bobcats', 'New Orleans/Oklahoma City Hornets', 'San Antonio Spurs', 'Minnesota Timberwolves', 'Philadelphia 76ers', 'Washington Wizards', 'Utah Jazz', 'Denver Nuggets', 'Portland Trail Blazers', 'Dallas Mavericks', 'Denver Nuggets', 'Phoenix Suns', 'Portland Trail Blazers', 'Dallas Mavericks', 'New Orleans/Oklahoma City Hornets', 'Philadelphia 76ers', 'Memphis Grizzlies', 'Orlando Magic', 'Miami Heat', 'Boston Celtics', 'Sacramento Kings', 'New York Knicks', 'Golden State Warriors', 'Memphis Grizzlies', 'Milwaukee Bucks', 'New Jersey Nets', 'Chicago Bulls', 'Golden State Warriors', 'Charlotte Bobcats', 'Seattle SuperSonics', 'Indiana Pacers', 'Utah Jazz', 'Washington Wizards', 'Los Angeles Lakers', 'Portland Trail Blazers', 'Seattle SuperSonics', 'Portland Trail Blazers', 'Golden State Warriors', 'Seattle SuperSonics', 'New York Knicks', 'Denver Nuggets', 'Minnesota Timberwolves', 'Phoenix Suns', 'New Jersey Nets', 'Sacramento Kings', 'Atlanta Hawks', 'Memphis Grizzlies', 'Utah Jazz', 'Sacramento Kings', 'Memphis Grizzlies', 'Phoenix Suns', 'Sacramento Kings', 'Dallas Mavericks', 'Miami Heat', 'Houston Rockets', 'Milwaukee Bucks', 'Oklahoma City Thunder', 'New York Knicks', 'Golden State Warriors', 'Boston Celtics', 'New Jersey Nets', 'Washington Wizards', 'Sacramento Kings', 'Minnesota Timberwolves', 'Memphis Grizzlies', 'Denver Nuggets', 'Minnesota Timberwolves', 'Memphis Grizzlies', 'Indiana Pacers', 'Washington Wizards', 'Boston Celtics', 'Philadelphia 76ers', 'Portland Trail Blazers', 'Los Angeles Lakers', 'Miami Heat', 'New Jersey Nets', 'Chicago Bulls', 'Sacramento Kings', 'Charlotte Bobcats', 'Detroit Pistons', 'Utah Jazz', 'Milwaukee Bucks', 'Golden State Warriors', 'Los Angeles Lakers', 'Portland Trail Blazers', 'Golden State Warriors', 'Utah Jazz', 'Tel Aviv Maccabi Elite', 'New Orleans Hornets', 'Oklahoma City Thunder', 'New Orleans Hornets', 'Sacramento Kings', 'San Antonio Spurs', 'Sacramento Kings', 'Minnesota Timberwolves', 'Phoenix Suns', 'Denver Nuggets', 'Golden State Warriors', 'Miami Heat', 'Los Angeles Lakers', 'Indiana Pacers', 'Minnesota Timberwolves', 'Golden State Warriors', 'Charlotte Bobcats', 'Milwaukee Bucks', 'Houston Rockets', 'Denver Nuggets', 'Cleveland Cavaliers', 'Washington Wizards', 'Toronto Raptors', 'Oklahoma City Thunder', 'Memphis Grizzlies', 'Portland Trail Blazers', 'Houston Rockets', 'Milwaukee Bucks', 'Miami Heat', 'Los Angeles Lakers', 'New Jersey Nets', 'Dallas Mavericks', 'Toronto Raptors', 'Memphis Grizzlies', 'Oklahoma City Thunder', 'Washington Wizards', 'Denver Nuggets', 'Atlanta Hawks', 'Houston Rockets', 'Detroit Pistons', 'Memphis Grizzlies', 'New Orleans Hornets', 'Phoenix Suns', 'Portland Trail Blazers', 'Utah Jazz', 'Sacramento Kings', 'Golden State Warriors', 'Oklahoma City Thunder', 'New Orleans Hornets', 'Los Angeles Lakers', 'Memphis Grizzlies', 'Memphis Grizzlies', 'Utah Jazz', 'Golden State Warriors', 'Los Angeles Lakers', 'Memphis Grizzlies', 'Memphis Grizzlies', 'Golden State Warriors', 'Houston Rockets', 'Minnesota Timberwolves', 'Oklahoma City Thunder', 'Brooklyn Nets', 'Sacramento Kings', 'Chicago Bulls', 'New York Knicks', 'San Antonio Spurs', 'New Orleans Pelicans', 'Denver Nuggets', 'Minnesota Timberwolves', 'Utah Jazz', 'Charlotte Bobcats', 'Orlando Magic', 'Boston Celtics', 'Los Angeles Lakers', 'Dallas Mavericks', 'Washington Wizards', 'Utah Jazz', 'Toronto Raptors', 'Philadelphia 76ers', 'Portland Trail Blazers', 'Houston Rockets', 'New Orleans Pelicans', 'Atlanta Hawks', 'Phoenix Suns', 'Golden State Warriors', 'Cleveland Cavaliers', 'Detroit Pistons', 'Milwaukee Bucks', 'Los Angeles Lakers', 'Sacramento Kings', 'Denver Nuggets', 'Denver Nuggets', 'Utah Jazz', 'Golden State Warriors', 'Golden State Warriors', 'Golden State Warriors', 'Oklahoma City Thunder', 'Oklahoma City Thunder', 'Utah Jazz', 'Portland Trail Blazers', 'Phoenix Suns', 'Minnesota Timberwolves', 'Orlando Magic', 'New Orleans Pelicans', 'Phoenix Suns', 'Detroit Pistons', 'Indiana Pacers', 'Milwaukee Bucks', 'Golden State Warriors', 'Utah Jazz', 'New York Knicks', 'Philadelphia 76ers', 'Los Angeles Lakers', 'Dallas Mavericks', 'Boston Celtics', 'Brooklyn Nets', 'Denver Nuggets', 'Houston Rockets', 'San Antonio Spurs', 'Sacramento Kings', 'Minnesota Timberwolves', 'Charlotte Hornets', 'Washington Wizards', 'New Orleans Pelicans', 'Los Angeles Lakers', 'Memphis Grizzlies', 'Denver Nuggets', 'Utah Jazz', 'Phoenix Suns', 'San Antonio Spurs', 'San Antonio Spurs', 'Houston Rockets', 'Houston Rockets']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'TOR' AND pts_away = 100;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM other_stats WHERE team_name_away = 'Toronto Raptors' AND pts_away = 100\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_home + pts_away) FROM game WHERE (team_name_home = 'Golden State Warriors' AND team_name_away = 'Cleveland Cavaliers') OR (team_name_home = 'Cleveland Cavaliers' AND team_name_away = 'Golden State Warriors');\n", + "SQLite:\n", + "SELECT MAX(pts_home + pts_away) AS highest_combined_score FROM game WHERE (team_name_home = 'Golden State Warriors' AND team_name_away = 'Cleveland Cavaliers') OR (team_name_away = 'Golden State Warriors' AND team_name_home = 'Cleveland Cavaliers')\n", + "['266.0']\n", + "['266.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'BOS';\n", + "SQLite:\n", + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_name_home = 'Boston Celtics'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(fg3m_home) FROM game WHERE team_name_home = 'Brooklyn Nets';\n", + "SQLite: SELECT MAX(fg3m_home) FROM game WHERE team_name_home = 'Brooklyn Nets'\n", + "['22.0']\n", + "['22.0']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_2nd_chance_home) FROM other_stats WHERE team_abbreviation_home = 'CHI';\n", + "SQLite:\n", + "SELECT MAX(pts_2nd_chance_home) FROM game WHERE team_name_home = 'Chicago Bulls'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT season_id, COUNT(*) AS win_count FROM game WHERE (team_name_home = 'San Antonio Spurs' AND wl_home = 'W') OR (team_name_away = 'San Antonio Spurs' AND wl_away = 'W') GROUP BY season_id ORDER BY win_count DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT season_id FROM game WHERE team_name_home = 'San Antonio Spurs' OR team_name_away = 'San Antonio Spurs'\n", + "['22015', '67']\n", + "['41976', '41976', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '21977', '41977', '41977', '41977', '41977', '41977', '41977', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '21978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '41978', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '21979', '41979', '41979', '41979', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '21980', '41980', '41980', '41980', '41980', '41980', '41980', '41980', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '21981', '41981', '41981', '41981', '41981', '41981', '41981', '41981', '41981', '41981', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '21982', '41982', '41982', '41982', '41982', '41982', '41982', '41982', '41982', '41982', '41982', '41982', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21983', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '21984', '41984', '41984', '41984', '41984', '41984', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '21985', '41985', '41985', '41985', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21986', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '21987', '41987', '41987', '41987', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21988', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '21989', '41989', '41989', '41989', '41989', '41989', '41989', '41989', '41989', '41989', '41989', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '21990', '41990', '41990', '41990', '41990', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '21991', '41991', '41991', '41991', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '21992', '41992', '41992', '41992', '41992', '41992', '41992', '41992', '41992', '41992', '41992', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21993', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '21994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '41994', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21995', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21996', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '21997', '41997', '41997', '41997', '41997', '41997', '41997', '41997', '41997', '41997', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '21998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '41998', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '21999', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '22000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '42000', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22001', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '22002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '42002', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '22003', '42003', '42003', '42003', '42003', '42003', '42003', '42003', '42003', '42003', '42003', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '22004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '42004', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '22005', '12005', '12005', '12005', '12005', '12005', '12005', '12005', '12005', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '22006', '12006', '12006', '12006', '12006', '12006', '12006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '42006', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '22007', '12007', '12007', '12007', '12007', '12007', '12007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '42007', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '22008', '12008', '12008', '12008', '12008', '12008', '12008', '12008', '42008', '42008', '42008', '42008', '42008', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '22009', '12009', '12009', '12009', '12009', '12009', '12009', '12009', '42009', '42009', '42009', '42009', '42009', '42009', '42009', '42009', '42009', '42009', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '22010', '12010', '12010', '12010', '12010', '12010', '12010', '12010', '42010', '42010', '42010', '42010', '42010', '42010', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '22011', '12011', '12011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '42011', '12012', '12012', '12012', '12012', '12012', '12012', '12012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '42012', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '22013', '12013', '12013', '12013', '12013', '12013', '12013', '12013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '42013', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '22014', '12014', '12014', '12014', '12014', '12014', '12014', '12014', '42014', '42014', '42014', '42014', '42014', '42014', '42014', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '22015', '12015', '12015', '12015', '12015', '12015', '12015', '42015', '42015', '42015', '42015', '42015', '42015', '42015', '42015', '42015', '42015', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '22016', '12016', '12016', '12016', '12016', '12016', '12016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '42016', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '22017', '12017', '12017', '12017', '12017', '12017', '42017', '42017', '42017', '42017', '42017', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '22018', '42018', '42018', '42018', '42018', '42018', '42018', '42018', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22019', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '22020', '12020', '12020', '12020', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '22021', '12021', '12021', '12021', '12021', '12021', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '22022', '12022', '12022', '12022', '12022', '12022']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_home) FROM game WHERE team_abbreviation_home = 'CHI' AND season_id = '21996';\n", + "SQLite:\n", + "SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Chicago Bulls' AND season_id = '21996'\n", + "['134.0']\n", + "['134.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'BOS' AND season_id = '21984' AND wl_home = 'W';\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '1984'\n", + "['35']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT AVG(tov_home) FROM game WHERE team_abbreviation_home = 'PHI' AND season_id = '22018';\n", + "SQLite: SELECT AVG(total_turnovers_home) AS average_turnovers FROM other_stats WHERE team_name_home = 'Philadelphia 76ers' AND season_id = '22018'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'NYK' AND team_abbreviation_away = 'BKN') OR (team_abbreviation_home = 'BKN' AND team_abbreviation_away = 'NYK') AND season_id = '21972';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE (team_name_home = 'New York Knicks' AND team_name_away = 'Brooklyn Nets' AND season_id = '21972') OR (team_name_home = 'Brooklyn Nets' AND team_name_away = 'New York Knicks' AND season_id = '21972')\n", + "['21']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE season_id = '22001' ORDER BY total_points DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT game_id, SUM(pts_home + pts_away) AS total_points FROM game WHERE season_id = '22001' GROUP BY game_id ORDER BY total_points DESC LIMIT 1\n", + "['0020100682', '281.0']\n", + "['0020100682', '281.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'DET' AND season_id = '22004';\n", + "SQLite:\n", + "SELECT MAX(pts_away) FROM game WHERE team_name_away = 'Detroit Pistons' AND season_id = '22004'\n", + "['114.0']\n", + "['114.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'SAS' AND season_id = '21999' AND wl_away = 'W';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_away = 'San Antonio Spurs' AND wl_away = 'W' AND season_id = '1999'\n", + "['22']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT AVG(pf_away) FROM game WHERE team_abbreviation_away = 'IND' AND season_id = '22011';\n", + "SQLite:\n", + "SELECT AVG(pf_away) FROM game WHERE team_name_away = 'Indiana Pacers' AND season_id = '22011'\n", + "['21.393939393939394']\n", + "['21.393939393939394']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(tov_away) FROM game WHERE team_abbreviation_away = 'DAL' AND season_id = '22016';\n", + "SQLite:\n", + "SELECT MAX(total_turnovers_away) FROM other_stats WHERE season_id = '22016'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(oreb_away) FROM game WHERE team_abbreviation_away = 'SAC' AND season_id = '21990';\n", + "SQLite:\n", + "SELECT SUM(oreb_away) FROM game WHERE team_name_away = 'Sacramento Kings' AND season_id = '1990'\n", + "['517.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE (team_abbreviation_home = 'UTA' OR team_abbreviation_away = 'UTA') AND season_id = '21998' ORDER BY total_points DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(pts_home + pts_away) AS highest_scoring_game FROM game WHERE team_name_home = 'Utah Jazz' AND season_id = '1998'\n", + "['0029800077', '232.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(pts_fb_away) FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE team_abbreviation_away = 'TOR' AND season_id = '22002' );\n", + "SQLite: SELECT SUM(pts_fb_away) FROM other_stats WHERE team_name_away = 'Toronto Raptors' AND season_id = '22002'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(fg3m_away) FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22018';\n", + "SQLite:\n", + "SELECT MAX(fg3m_away) FROM game WHERE team_name_away = 'Houston Rockets' AND season_id = '22018'\n", + "['26.0']\n", + "['26.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(reb_away) FROM game WHERE team_abbreviation_away = 'NYK' AND season_id = '21995';\n", + "SQLite:\n", + "SELECT SUM(reb_away) FROM game WHERE team_name_away = 'New York Knicks' AND season_id = '1995'\n", + "['1643.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (pts_home + pts_away) >= 250 AND season_id = '22005';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE (pts_home + pts_away) >= 250 AND season_id = '22005'\n", + "['6']\n", + "['6']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(ABS(pts_away - pts_home)) FROM game WHERE team_abbreviation_away = 'BOS' AND season_id = '22010' AND wl_away = 'W';\n", + "SQLite:\n", + "SELECT MAX(pts_away - pts_home) AS largest_win FROM game WHERE team_name_away = 'Boston Celtics' AND season_id = '22010'\n", + "['31.0']\n", + "['31.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'POR' OR team_abbreviation_away = 'POR') AND season_id = '21994' AND min > 48;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Portland Trail Blazers' AND season_id = '1994'\n", + "['82']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(ast_away) FROM game WHERE team_abbreviation_away = 'PHI' AND season_id = '22001';\n", + "SQLite:\n", + "SELECT MAX(ast_away) FROM game WHERE team_name_away = 'Philadelphia 76ers' AND season_id = '22001'\n", + "['30.0']\n", + "['30.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'MIL' AND season_id = '21983' AND wl_away = 'W' AND (pts_away - pts_home) >= 20;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_away = 'Milwaukee Bucks' AND (pts_away - pts_home) >= 20 AND season_id = '1983'\n", + "['3']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'CHI' AND season_id = '21997';\n", + "SQLite:\n", + "SELECT MAX(pts_away) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '1997'\n", + "['123.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_home + pts_away) FROM game WHERE team_abbreviation_home = 'SAS' OR team_abbreviation_away = 'SAS' AND season_id = '22007';\n", + "SQLite:\n", + "SELECT MAX(pts_home + pts_away) AS highest_total_score FROM game WHERE team_name_home = 'San Antonio Spurs' AND season_id = '22007'\n", + "['301.0']\n", + "['238.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT SUM(fg3m_away) FROM game WHERE team_abbreviation_away = 'CLE' AND season_id = '22016';\n", + "SQLite: SELECT SUM(fg3m_away) FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND season_id = '22016'\n", + "['530.0']\n", + "['530.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_away - pts_home) FROM game WHERE team_abbreviation_away = 'DEN' AND season_id = '21985' AND wl_away = 'W';\n", + "SQLite:\n", + "SELECT MAX(pts_away - pts_home) AS largest_win_margin FROM game WHERE team_name_away = 'Denver Nuggets' AND season_id = '1985'\n", + "['18.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MIN(pts_home + pts_away) FROM game WHERE team_abbreviation_home = 'UTA' OR team_abbreviation_away = 'UTA' AND season_id = '22002';\n", + "SQLite:\n", + "SELECT game_id, MIN(pts_home) AS lowest_scoring_game FROM game WHERE team_name_home = 'Utah Jazz' AND season_id = '22002'\n", + "['134.0']\n", + "['0020200728', '76.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DET' AND season_id = '21990' AND wl_away = 'W' AND pts_home < 90;\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_away = 'Detroit Pistons' AND wl_away = 'W' AND pts_away < 90 AND season_id = '1990'\n", + "['6']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'BOS' AND wl_home = 'W' AND season_id = '22021';\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '22021'\n", + "['28']\n", + "['41']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'MIA';\n", + "SQLite:\n", + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_name_home = 'Miami Heat'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT pts_home FROM game WHERE team_abbreviation_home = 'GSW' AND season_id = '22005' ORDER BY game_date ASC LIMIT 1;\n", + "SQLite: SELECT pts_home FROM game WHERE team_name_home = 'Golden State Warriors' AND season_id = '22005'\n", + "['122.0']\n", + "['122.0', '85.0', '86.0', '100.0', '87.0', '100.0', '89.0', '117.0', '99.0', '113.0', '107.0', '110.0', '103.0', '105.0', '112.0', '111.0', '89.0', '96.0', '104.0', '109.0', '99.0', '93.0', '93.0', '98.0', '86.0', '109.0', '122.0', '79.0', '88.0', '108.0', '98.0', '94.0', '105.0', '98.0', '98.0', '85.0', '93.0', '93.0', '114.0', '110.0', '93.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'NYK';\n", + "SQLite:\n", + "SELECT MAX(reb_home) FROM game WHERE team_name_home = 'New York Knicks'\n", + "['75.0']\n", + "['75.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CHI' AND wl_home = 'L' AND season_id = '22015';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Chicago Bulls' AND season_id = '22015' AND wl_home = 'L'\n", + "['15']\n", + "['15']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'HOU';\n", + "SQLite:\n", + "SELECT MAX(pts_fb_home) FROM game WHERE team_name_home = 'Houston Rockets'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'CLE';\n", + "SQLite:\n", + "SELECT MAX(pts_away) FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND season_type = 'Regular'\n", + "['140.0']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'BOS' ORDER BY pts_home DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT * FROM game WHERE team_name_home = 'Boston Celtics' ORDER BY pts_home DESC LIMIT 1\n", + "['1959-02-27 00:00:00', '173.0']\n", + "['21958', '1610612738', 'BOS', 'Boston Celtics', '0025800258', '1959-02-27 00:00:00', 'BOS vs. MNL', 'W', '0', '72.0', 'None', 'None', 'None', 'None', 'None', '29.0', '37.0', '0.784', 'None', 'None', 'None', 'None', 'None', 'None', 'None', '30.0', '173.0', '34', '0', '1610612747', 'MNL', 'Minneapolis Lakers', 'MNL @ BOS', 'L', '47.0', 'None', 'None', 'None', 'None', 'None', '45.0', '58.0', '0.776', 'None', 'None', 'None', 'None', 'None', 'None', 'None', '28.0', '139.0', '-34', '0', 'Regular Season']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CHI' AND pts_home >= 120 AND wl_home = 'W';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Chicago Bulls' AND wl_home = 'W' AND pts_home >= 120\n", + "['236']\n", + "['236']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DET' AND wl_away = 'W' AND season_id = '22004';\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_away = 'Detroit Pistons' AND wl_away = 'W' AND season_id = '22004'\n", + "['22']\n", + "['22']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_home = 'MIN' AND pts_fb_home > pts_fb_away;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Minnesota Timberwolves' AND pts_fb_home > pts_fb_away\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_abbreviation_home = 'PHI';\n", + "SQLite:\n", + "SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_name_home = 'Philadelphia 76ers'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(fg_pct_home) FROM game WHERE team_abbreviation_home = 'DEN' AND season_id = '21999';\n", + "SQLite:\n", + "SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Denver Nuggets' AND season_id = '1999'\n", + "['0.631']\n", + "['None']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'LAC' AND (pts_home - pts_away) >= 30 AND wl_home = 'W') OR (team_abbreviation_away = 'LAC' AND (pts_away - pts_home) >= 30 AND wl_away = 'W');\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_home = 'Los Angeles Clippers' AND (pts_home - pts_away) >= 30\n", + "['48']\n", + "['20']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, pts_away FROM game WHERE team_abbreviation_away = 'LAL' ORDER BY pts_away DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT * FROM game WHERE team_name_away = 'Los Angeles Lakers' ORDER BY pts_away DESC LIMIT 1\n", + "['1980-01-29 00:00:00', '153.0']\n", + "['21979', '1610612739', 'CLE', 'Cleveland Cavaliers', '0027900581', '1980-01-29 00:00:00', 'CLE vs. LAL', 'W', '340', '65.0', 'None', 'None', '0.0', 'None', 'None', '24.0', '32.0', '0.75', 'None', 'None', 'None', 'None', 'None', 'None', 'None', '30.0', '154.0', '1', '0', '1610612747', 'LAL', 'Los Angeles Lakers', 'LAL @ CLE', 'L', '63.0', 'None', 'None', '0.0', 'None', 'None', '27.0', '30.0', '0.9', 'None', 'None', 'None', 'None', 'None', 'None', 'None', '38.0', '153.0', '-1', '0', 'Regular Season']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'HOU' AND pts_away >= 110 AND wl_away = 'W';\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE team_name_away = 'Houston Rockets' AND wl_away = 'W' AND pts_away >= 110\n", + "['425']\n", + "['425']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(largest_lead_away) FROM other_stats WHERE team_abbreviation_away = 'NYK';\n", + "SQLite:\n", + "SELECT MAX(largest_lead_away) FROM other_stats WHERE team_name_away = 'New York Knicks'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_abbreviation_away AS team, reb_away AS rebounds, game_date FROM game WHERE season_id = '22010' ORDER BY reb_away DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT team_abbreviation_away FROM other_stats WHERE season_id = '22010' ORDER BY reb_away DESC LIMIT 1\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22005' AND team_abbreviation_away = 'SAS' ORDER BY ABS(pts_home - pts_away) ASC LIMIT 1 );\n", + "SQLite:\n", + "SELECT COUNT(*) FROM other_stats WHERE team_name_away = 'San Antonio Spurs' AND season_id = '22005' AND lead_changes > 0\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'ORL' AND pts_fb_away > pts_fb_home;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'ORL' AND pts_fb_away > pts_fb_home\n", + "['417']\n", + "['417']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(total_turnovers_away) FROM other_stats WHERE team_abbreviation_away = 'BKN';\n", + "SQLite:\n", + "SELECT MAX(team_turnovers_away) FROM other_stats WHERE team_name_away = 'Brooklyn Nets'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(fg_pct_away) FROM game WHERE team_abbreviation_away = 'DAL' AND season_id = '22008';\n", + "SQLite:\n", + "SELECT MAX(fg_pct_away) FROM game WHERE team_name_away = 'Dallas Mavericks' AND season_id = '22008'\n", + "['0.603']\n", + "['0.603']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'POR' AND (pts_away - pts_home) >= 25 AND wl_away = 'W';\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_away = 'Portland Trail Blazers' AND wl_away = 'W' AND pts_away >= 25\n", + "['33']\n", + "['852']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'CHI' ORDER BY pts_home DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT * FROM game WHERE team_name_home = 'Chicago Bulls' ORDER BY pts_home DESC LIMIT 1\n", + "['1990-12-04 00:00:00', '155.0']\n", + "['21990', '1610612741', 'CHI', 'Chicago Bulls', '0029000213', '1990-12-04 00:00:00', 'CHI vs. PHX', 'W', '240', '67.0', '106.0', '0.632', '1.0', '3.0', '0.333', '20.0', '25.0', '0.8', '14.0', '35.0', '49.0', '45.0', '6.0', '5.0', '20.0', '21.0', '155.0', '28', '0', '1610612756', 'PHX', 'Phoenix Suns', 'PHX @ CHI', 'L', '52.0', '108.0', '0.481', '3.0', '7.0', '0.429', '20.0', '28.0', '0.714', '18.0', '22.0', '40.0', '27.0', '8.0', '3.0', '17.0', '23.0', '127.0', '-28', '0', 'Regular Season']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) = 1;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE pts_home - pts_away = 1\n", + "['3050']\n", + "['1572']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, (pts_home + pts_away) AS total_points FROM game ORDER BY total_points DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(pts_home + pts_away) AS highest_total_score FROM game\n", + "['2017-02-19 00:00:00', '374.0']\n", + "['374.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE season_id = '22006' AND ((team_abbreviation_home = 'BOS' AND wl_home = 'W') OR (team_abbreviation_away = 'BOS' AND wl_away = 'W'));\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE (team_name_home = 'Boston Celtics' AND wl_home = 'W') OR (team_name_away = 'Boston Celtics' AND wl_away = 'W')\n", + "['24']\n", + "['3625']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_abbreviation_home AS team, reb_home AS rebounds, game_date FROM game WHERE season_id = '22015' ORDER BY reb_home DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT team_name_home FROM game WHERE reb_home = (SELECT MAX(reb_home) FROM game WHERE season_id = '22015')\n", + "['MIA', '67.0', '2016-02-20 00:00:00']\n", + "['East NBA All Stars East', 'East NBA All Stars East', 'Detroit Pistons', 'St. Louis Hawks', 'St. Louis Hawks', 'St. Louis Hawks', 'San Francisco Warriors', 'San Francisco Warriors', 'Los Angeles Lakers', 'Boston Celtics', 'Atlanta Hawks', 'New York Knicks', 'Milwaukee Bucks', 'San Antonio Spurs', 'Phoenix Suns', 'Portland Trail Blazers', 'Sacramento Kings', 'Washington Bullets', 'Dallas Mavericks', 'Portland Trail Blazers', 'San Antonio Spurs', 'East NBA All Stars East', 'East NBA All Stars East', 'Los Angeles Lakers', 'Los Angeles Lakers', 'Miami Heat', 'Boston Celtics', 'Sacramento Kings', 'Boston Celtics', 'Minnesota Timberwolves', 'Houston Rockets']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'GSW' ORDER BY pts_home ASC LIMIT 1;\n", + "SQLite:\n", + "SELECT game_id, team_name_home, MIN(pts_home) AS lowest_scoring_home_game FROM game WHERE team_name_home = 'Golden State Warriors'\n", + "['1997-12-03 00:00:00', '67.0']\n", + "['0029501018', 'Golden State Warriors', '64.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'LAL' AND season_id = '22010';\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '22010'\n", + "['41']\n", + "['41']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_date, ABS(pts_home - pts_away) AS margin FROM game ORDER BY margin DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(pts_home - pts_away) AS largest_margin_of_victory FROM game\n", + "['2021-12-02 00:00:00', '73.0']\n", + "['73.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_abbreviation_away, reb_away, game_date FROM game ORDER BY reb_away DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT MAX(reb_away) FROM game\n", + "['BOS', '90.0', '1957-10-22 00:00:00']\n", + "['90.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'BOS' AND wl_away = 'W' AND (pts_away - pts_home) >= 20;\n", + "SQLite: SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND wl_away = 'W' AND pts_away >= 20\n", + "['179']\n", + "['923']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (fg_pct_home < 0.40 AND wl_home = 'W') OR (fg_pct_away < 0.40 AND wl_away = 'W');\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE (fg_pct_home < 0.40 OR fg_pct_away < 0.40) AND (wl_home = 'W' OR wl_away = 'W')\n", + "['2437']\n", + "['13011']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(pts_home) FROM game;\n", + "SQLite:\n", + "SELECT game_id, MAX(pts_home) AS highest_scoring_home_game FROM game GROUP BY game_id ORDER BY highest_scoring_home_game DESC LIMIT 1\n", + "['192.0']\n", + "['0031600001', '192.0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MIN(fg_pct_away) FROM game;\n", + "SQLite:\n", + "SELECT MIN(fg_pct_away) FROM game\n", + "['0.156']\n", + "['0.156']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (pts_home < 80 AND wl_home = 'W') OR (pts_away < 80 AND wl_away = 'W');\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE wl_home = 'W' AND pts_home < 80\n", + "['1364']\n", + "['857']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE (fg_pct_home > 0.55 AND wl_home = 'L') OR (fg_pct_away > 0.55 AND wl_away = 'L');\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE fg_pct_home > 55 AND wl_home = 'L'\n", + "['714']\n", + "['0']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) > 40;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE pts_home > 40 OR pts_away > 40\n", + "['307']\n", + "['65696']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(stl_away) FROM game;\n", + "SQLite:\n", + "SELECT MAX(stl_away) FROM game\n", + "['27.0']\n", + "['27.0']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE pts_home >= 120 AND pts_away >= 120;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE pts_home >= 120 AND pts_away >= 120\n", + "['3043']\n", + "['3043']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT COUNT(*) FROM game WHERE ast_home >= 30 OR ast_away >= 30;\n", + "SQLite:\n", + "SELECT COUNT(*) FROM game WHERE ast_home >= 30 OR ast_away >= 30\n", + "['11305']\n", + "['11305']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT game_id, (tov_home + tov_away + stl_home + stl_away) AS total FROM game ORDER BY total DESC LIMIT 1;\n", + "SQLite:\n", + "SELECT game_id FROM other_stats ORDER BY (team_turnovers_home + team_turnovers_away) DESC LIMIT 1\n", + "['0028500026', '102.0']\n", + "['0029700562']\n", + "Statement valid? True\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_name_home = 'Golden State Warriors' AND game.season_id = '22018';\n", + "SQLite:\n", + "SELECT MAX(largest_lead_home) FROM other_stats WHERE team_name_home = 'Golden State Warriors' AND season_id = '22018'\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n", + "Setting `pad_token_id` to `eos_token_id`:32022 for open-end generation.\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SELECT team_name_home, MAX(pts_fb_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.season_id = '22020';\n", + "SQLite:\n", + "SELECT team_abbreviation_home FROM other_stats WHERE pts_fb_home = (SELECT MAX(pts_fb_home) FROM other_stats WHERE season_id = '22000')\n", + "Statement valid? False\n", + "SQLite matched? False\n", + "Result matched? False\n", + "\n", + "\n", + "SELECT MAX(ast_home) FROM game WHERE team_name_home = 'Indiana Pacers';\n", + "SQLite:\n", + "SELECT MAX(ast_home) FROM game WHERE team_name_home = 'Indiana Pacers'\n", + "['44.0']\n", + "['44.0']\n", + "Statement valid? True\n", + "SQLite matched? True\n", + "Result matched? True\n", + "\n", + "\n", + "Percent valid: 0.7904761904761904\n", + "Percent SQLite matched: 0.09523809523809523\n", + "Percent result matched: 0.4095238095238095\n" + ] + } + ], + "source": [ + "import math\n", + "import random\n", + "\n", + "def compare_result(sample_query, model_output):\n", + " # Clean model output to only have the query output\n", + " if model_output[0:8] == \"SQLite:\\n\":\n", + " query = model_output[8:]\n", + " elif model_output[0:8] == \"SQLite: \":\n", + " query = model_output[8:]\n", + " elif model_output[0:7] == \"SQLite:\":\n", + " query = model_output[7:]\n", + " elif model_output[0:5] == \"SQL:\\n\":\n", + " query = model_output[5:]\n", + " elif model_output[0:5] == \"SQL: \":\n", + " query = model_output[5:]\n", + " elif model_output[0:4] == \"SQL:\":\n", + " query = model_output[4:]\n", + " else:\n", + " query = model_output\n", + "\n", + " # Clean any excess text after the query semicolon\n", + " for i in range(len(query)):\n", + " if query[i] == \";\":\n", + " query = query[:i+1]\n", + " break\n", + "\n", + " # Get sample and model result\n", + " cursor.execute(sample_query)\n", + " sample_result = [str(item) for tup in cursor.fetchall() for item in tup]\n", + "\n", + " try:\n", + " cursor.execute(query)\n", + " except:\n", + " return False, False, False\n", + " model_result = [str(item) for tup in cursor.fetchall() for item in tup]\n", + "\n", + " print(sample_result)\n", + " print(model_result)\n", + "\n", + " # Strip all whitespace before comparing queries since there may be differences in spacing, newlines, tabs, etc.\n", + " query = query.replace(\" \", \"\").replace(\"\\n\", \"\").replace(\"\\t\", \"\")\n", + " sample_query = sample_query.replace(\" \", \"\").replace(\"\\n\", \"\").replace(\"\\t\", \"\")\n", + " query_match = (query == sample_query)\n", + "\n", + " # If the queries match, the results clearly also match\n", + " if query_match:\n", + " return True, True, True\n", + "\n", + " # Try to execute query, if it fails, then this is a failure of the model\n", + " try:\n", + " for r in sample_result:\n", + " for res in model_result:\n", + " try:\n", + " if math.isclose(float(r), float(res), abs_tol=0.5):\n", + " return True, False, True\n", + " except:\n", + " if r in res or res in r:\n", + " return True, False, True\n", + " return True, False, False\n", + " except:\n", + " return True, False, False\n", + " \n", + "num_valid = 0\n", + "num_sql_matched = 0\n", + "num_result_matched = 0\n", + "\n", + "for v in val_dataset:\n", + " # Obtain sample natural language question and sql_query\n", + " #v = val_dataset[random.randint(0, len(val_dataset) - 1)]\n", + " full_example = tokenizer.decode(v[\"input_ids\"], skip_special_tokens=True)\n", + " user_prompt = full_example[:prompt_length]\n", + " question, sql_query = full_example[prompt_length:].split(\"SQLite:\\n\")\n", + " #print(question)\n", + " #print(sql_query)\n", + "\n", + " # Obtain model output\n", + " input_text = \"How many points to the Los Angeles Lakers average at home?\"\n", + " message = [{'role': 'user', 'content': input_prompt + question}]\n", + " inputs = tokenizer.apply_chat_template(message, add_generation_prompt=True, return_tensors=\"pt\").to(model.device)\n", + "\n", + " # Generate SQL query\n", + " outputs = model.generate(\n", + " inputs,\n", + " max_new_tokens=256,\n", + " eos_token_id=tokenizer.convert_tokens_to_ids(\"<|endofsql|>\")\n", + " )\n", + " model_output = tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True)\n", + "\n", + " print(sql_query)\n", + " print(model_output.split(\";\")[0])\n", + " #print()\n", + " #print(model_output)\n", + " result = compare_result(sql_query, model_output)\n", + " print(\"Statement valid? \" + str(result[0]))\n", + " print(\"SQLite matched? \" + str(result[1]))\n", + " print(\"Result matched? \" + str(result[2]))\n", + " print()\n", + " print()\n", + "\n", + " if result[0]:\n", + " num_valid += 1\n", + " if result[1]:\n", + " num_sql_matched += 1\n", + " if result[2]:\n", + " num_result_matched += 1\n", + "\n", + "print(\"Percent valid: \" + str(num_valid / len(val_dataset)))\n", + "print(\"Percent SQLite matched: \" + str(num_sql_matched / len(val_dataset)))\n", + "print(\"Percent result matched: \" + str(num_result_matched / len(val_dataset)))\n", + "\n", + "# break" + ] } ], "metadata": {