home / season_27_matches

castle_ruins_hero_loadouts (view)

18 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Hero, Loadout, Games, Wins, Losses, Winrate, Pickrate, Winrate_LowerBound_95CI

Hero Loadout Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
Benjamin DartlingGunner, MonkeyVillage, SuperMonkey 77 54 23 70.13% 1.95% 59.91%
Obyn BananaFarm, Druid, MonkeySub 253 153 100 60.47% 6.40% 54.45%
Jericho BananaFarm, EngineerMonkey, MonkeyAce 154 93 61 60.39% 3.90% 52.66%
Etienne_Bee BananaFarm, BoomerangMonkey, NinjaMonkey 31 21 10 67.74% 0.78% 51.29%
PatFusty_Snowman BananaFarm, DartlingGunner, IceMonkey 45 29 16 64.44% 1.14% 50.46%
Gwendolin_Science GlueGunner, HeliPilot, MonkeyVillage 119 69 50 57.98% 3.01% 49.11%
Etienne BananaFarm, DartMonkey, GlueGunner 79 45 34 56.96% 2.00% 46.04%
Gwendolin_Science DartMonkey, GlueGunner, MonkeyVillage 40 24 16 60.00% 1.01% 44.82%
Quincy BananaFarm, TackShooter, WizardMonkey 54 29 25 53.70% 1.37% 40.40%
Adora_Fateweaver BananaFarm, EngineerMonkey, MonkeyAce 26 15 11 57.69% 0.66% 38.70%
Ezili BananaFarm, BombShooter, WizardMonkey 36 19 17 52.78% 0.91% 36.47%
Jericho BananaFarm, TackShooter, WizardMonkey 45 20 25 44.44% 1.14% 29.93%
Benjamin BananaFarm, DartlingGunner, SuperMonkey 63 26 37 41.27% 1.59% 29.11%
Etienne BananaFarm, SniperMonkey, TackShooter 22 10 12 45.45% 0.56% 24.65%
Etienne_Bee GlueGunner, MonkeyVillage, TackShooter 22 10 12 45.45% 0.56% 24.65%
Quincy BananaFarm, SniperMonkey, WizardMonkey 22 10 12 45.45% 0.56% 24.65%
Obyn Druid, MonkeySub, SpikeFactory 25 11 14 44.00% 0.63% 24.54%
Gwendolin_Science GlueGunner, MonkeyVillage, TackShooter 47 18 29 38.30% 1.19% 24.40%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW castle_ruins_hero_loadouts AS 
WITH castle_ruins AS
    (SELECT *
    FROM matches
    WHERE map = 'castle_ruins')
SELECT Hero,
       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 Hero,
             Loadout,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM castle_ruins) * 2)    AS PR
      FROM (SELECT Hero,
                   Loadout,
                   SUM(Wins) + SUM(NOT Wins) AS Games,
                   SUM(Wins)                 AS Wins,
                   SUM(NOT Wins)             AS Losses
            FROM (SELECT lHero                               AS Hero,
                         printf('%s, %s, %s', lt1, lt2, lt3) AS Loadout,
                         playerLeftWin                       AS Wins
                  FROM castle_ruins
                  UNION ALL
                  SELECT rHero                               AS Hero,
                         printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Wins
                  FROM castle_ruins)
            GROUP BY Hero,
                     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 649.417ms