home / season_32_matches

star_loadouts (view)

12 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins, Losses

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, TackShooter, WizardMonkey 179 114 65 63.69% 8.69% 56.64%
BananaFarm, DartlingGunner, IceMonkey 68 45 23 66.18% 3.30% 54.93%
BananaFarm, DartlingGunner, NinjaMonkey 90 58 32 64.44% 4.37% 54.55%
BananaFarm, BombShooter, SpikeFactory 34 20 14 58.82% 1.65% 42.28%
BananaFarm, IceMonkey, MonkeySub 230 106 124 46.09% 11.17% 39.64%
GlueGunner, MonkeyVillage, TackShooter 104 51 53 49.04% 5.05% 39.43%
BananaFarm, EngineerMonkey, MonkeyAce 31 17 14 54.84% 1.50% 37.32%
BananaFarm, BombShooter, MonkeySub 78 37 41 47.44% 3.79% 36.35%
BananaFarm, Druid, MonkeySub 66 30 36 45.45% 3.20% 33.44%
DartlingGunner, MonkeyVillage, SuperMonkey 91 37 54 40.66% 4.42% 30.57%
BananaFarm, BoomerangMonkey, NinjaMonkey 32 15 17 46.88% 1.55% 29.58%
HeliPilot, IceMonkey, MonkeyVillage 23 10 13 43.48% 1.12% 23.22%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW star_loadouts AS 
WITH star AS
    (SELECT *
    FROM matches
    WHERE map = 'star')
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 star) * 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 star
                  UNION ALL
                  SELECT printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Win
                  FROM star)
            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 386.857ms