home / season_29_matches

pirate_cove_loadouts (view)

14 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins, Losses, Winrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, TackShooter, WizardMonkey 1143 637 506 55.73% 37.45% 52.85%
BananaFarm, MortarMonkey, TackShooter 402 231 171 57.46% 13.17% 52.63%
BananaFarm, GlueGunner, TackShooter 94 58 36 61.70% 3.08% 51.87%
BananaFarm, BombShooter, MonkeySub 98 60 38 61.22% 3.21% 51.58%
MortarMonkey, SniperMonkey, TackShooter 31 20 11 64.52% 1.02% 47.67%
BananaFarm, Druid, MonkeySub 53 31 22 58.49% 1.74% 45.22%
BananaFarm, EngineerMonkey, MonkeyAce 36 21 15 58.33% 1.18% 42.23%
BananaFarm, NinjaMonkey, WizardMonkey 40 21 19 52.50% 1.31% 37.02%
BananaFarm, IceMonkey, TackShooter 45 23 22 51.11% 1.47% 36.51%
BananaFarm, BombShooter, WizardMonkey 34 18 16 52.94% 1.11% 36.16%
EngineerMonkey, TackShooter, WizardMonkey 26 14 12 53.85% 0.85% 34.68%
GlueGunner, MonkeyVillage, TackShooter 32 16 16 50.00% 1.05% 32.68%
BananaFarm, IceMonkey, NinjaMonkey 24 12 12 50.00% 0.79% 30.00%
BananaFarm, MonkeySub, TackShooter 47 15 32 31.91% 1.54% 18.59%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW pirate_cove_loadouts AS 
WITH pirate_cove AS
    (SELECT *
    FROM matches
    WHERE map = 'pirate_cove')
SELECT Loadout,
       Games,
       Wins,
       Losses,
       printf('%.2f%%', WR * 100)                                          AS Winrate,
       printf('%.2f%%', PR * 100)                                          AS Pickrate,
       printf('%.2f%%', (WR - 1.96 * SQRT((WR * (1 - WR)) / Games)) * 100) AS WinRate_LowerBound_95CI
FROM (SELECT Loadout,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM pirate_cove) * 2)    AS PR
      FROM (SELECT Loadout,
                   SUM(Win) + SUM(NOT Win) AS Games,
                   SUM(Win)                AS Wins,
                   SUM(NOT Win)            AS Losses
            FROM (SELECT printf('%s, %s, %s', lt1, lt2, lt3) AS Loadout,
                         playerLeftWin                       AS Win
                  FROM pirate_cove
                  UNION ALL
                  SELECT printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Win
                  FROM pirate_cove)
            GROUP BY Loadout)
      WHERE Wins >= 10
        AND Losses >= 10)
WHERE Wins >= 10 AND Losses >= 10 AND LENGTH(WinRate_LowerBound_95CI) = 6
ORDER BY WinRate_LowerBound_95CI DESC;
Powered by Datasette · Queries took 1257.078ms