Team Dominance by Pass Success
[]
['CREATE TABLE If not exists Teams (\n    player_id INT,\n    team_name VARCHAR(100)\n)\n\n', 'CREATE TABLE if not exists Passes (\n    pass_from INT,\n    time_stamp VARCHAR(5),\n    pass_to INT\n)', 'Truncate table Teams', "insert into Teams (player_id, team_name) values ('1', 'Arsenal')", "insert into Teams (player_id, team_name) values ('2', 'Arsenal')", "insert into Teams (player_id, team_name) values ('3', 'Arsenal')", "insert into Teams (player_id, team_name) values ('4', 'Chelsea')", "insert into Teams (player_id, team_name) values ('5', 'Chelsea')", "insert into Teams (player_id, team_name) values ('6', 'Chelsea')", 'Truncate table Passes', "insert into Passes (pass_from, time_stamp, pass_to) values ('1', '00:15', '2')", "insert into Passes (pass_from, time_stamp, pass_to) values ('2', '00:45', '3')", "insert into Passes (pass_from, time_stamp, pass_to) values ('3', '01:15', '1')", "insert into Passes (pass_from, time_stamp, pass_to) values ('4', '00:30', '1')", "insert into Passes (pass_from, time_stamp, pass_to) values ('2', '46:00', '3')", "insert into Passes (pass_from, time_stamp, pass_to) values ('3', '46:15', '4')", "insert into Passes (pass_from, time_stamp, pass_to) values ('1', '46:45', '2')", "insert into Passes (pass_from, time_stamp, pass_to) values ('5', '46:30', '6')"]
{"mysql": ["CREATE TABLE If not exists Teams (\n    player_id INT,\n    team_name VARCHAR(100)\n)\n\n", "CREATE TABLE if not exists Passes (\n    pass_from INT,\n    time_stamp VARCHAR(5),\n    pass_to INT\n)"], "mssql": ["CREATE TABLE Teams (\n    player_id INT,\n    team_name VARCHAR(100)\n)\n", "\nCREATE TABLE Passes (\n    pass_from INT,\n    time_stamp VARCHAR(5),\n    pass_to INT\n)"], "oraclesql": ["CREATE TABLE Teams (\n    player_id NUMBER,\n    team_name VARCHAR2(100)\n)\n\n", "CREATE TABLE Passes (\n    pass_from NUMBER,\n    time_stamp VARCHAR2(5),\n    pass_to NUMBER\n)"], "database": true, "name": "calculate_team_dominance", "postgresql": ["CREATE TABLE IF NOT EXISTS Teams (\n    player_id INTEGER,\n    team_name VARCHAR(100)\n);\n", "CREATE TABLE IF NOT EXISTS Passes (\n    pass_from INTEGER,\n    time_stamp VARCHAR(5),\n    pass_to INTEGER\n);\n"], "pythondata": ["Teams = pd.DataFrame(columns=[\"player_id\", \"team_name\"]).astype({\"player_id\": \"int\", \"team_name\": \"string\"})\n", "Passes = pd.DataFrame(columns=[\"pass_from\", \"time_stamp\", \"pass_to\"]).astype({\"pass_from\": \"int\", \"time_stamp\": \"string\", \"pass_to\": \"int\"})\n"], "database_schema": {"Teams": {"player_id": "INT", "team_name": "VARCHAR(100)"}, "Passes": {"pass_from": "INT", "time_stamp": "VARCHAR(5)", "pass_to": "INT"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']