home / season_30_matches

building_site_scene_loadouts (view)

8 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Winrate

Loadout Games Wins Losses Winrate Pickrate WinRate_LowerBound_95CI
BananaFarm, MortarMonkey, TackShooter 206 127 79 61.65% 10.36% 55.01%
BananaFarm, DartMonkey, MortarMonkey 285 171 114 60.00% 14.34% 54.31%
BananaFarm, TackShooter, WizardMonkey 447 258 189 57.72% 22.48% 53.14%
BananaFarm, BoomerangMonkey, NinjaMonkey 31 21 10 67.74% 1.56% 51.29%
BananaFarm, DartMonkey, WizardMonkey 51 27 24 52.94% 2.57% 39.24%
BananaFarm, SniperMonkey, WizardMonkey 26 13 13 50.00% 1.31% 30.78%
BananaFarm, DartMonkey, SpikeFactory 29 14 15 48.28% 1.46% 30.09%
BananaFarm, SniperMonkey, TackShooter 22 11 11 50.00% 1.11% 29.11%

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 2466.499ms