home / season_31_matches

building_site_scene_loadouts (view)

7 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Winrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, TackShooter, WizardMonkey 554 334 220 60.29% 29.75% 56.21%
BananaFarm, DartMonkey, MortarMonkey 186 101 85 54.30% 9.99% 47.14%
MortarMonkey, SniperMonkey, TackShooter 25 15 10 60.00% 1.34% 40.80%
BananaFarm, MortarMonkey, TackShooter 136 65 71 47.79% 7.30% 39.40%
BananaFarm, SniperMonkey, TackShooter 39 20 19 51.28% 2.09% 35.59%
BananaFarm, DartMonkey, WizardMonkey 42 21 21 50.00% 2.26% 34.88%
BananaFarm, SniperMonkey, WizardMonkey 28 14 14 50.00% 1.50% 31.48%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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