home / season_26_matches

castle_ruins_hero_loadouts (view)

20 rows

✎ View and edit SQL

This data as json, CSV (advanced)

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

Hero Loadout Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
Jericho BananaFarm, EngineerMonkey, MonkeyAce 119 84 35 70.59% 2.56% 62.40%
Obyn BananaFarm, Druid, MortarMonkey 42 31 11 73.81% 0.91% 60.51%
Benjamin DartlingGunner, MonkeyVillage, SuperMonkey 47 34 13 72.34% 1.01% 59.55%
PatFusty_Snowman BananaFarm, DartlingGunner, IceMonkey 37 27 10 72.97% 0.80% 58.66%
Ezili BananaFarm, BombShooter, WizardMonkey 53 37 16 69.81% 1.14% 57.45%
Gwendolin_Science GlueGunner, HeliPilot, MonkeyVillage 115 70 45 60.87% 2.48% 51.95%
Etienne BananaFarm, DartMonkey, GlueGunner 94 54 40 57.45% 2.03% 47.45%
Obyn BananaFarm, Druid, MonkeySub 220 113 107 51.36% 4.74% 44.76%
Quincy BananaFarm, TackShooter, WizardMonkey 33 20 13 60.61% 0.71% 43.93%
Gwendolin_Science DartMonkey, GlueGunner, MonkeyVillage 41 23 18 56.10% 0.88% 40.91%
Jericho BananaFarm, TackShooter, WizardMonkey 47 25 22 53.19% 1.01% 38.93%
Etienne BananaFarm, DartMonkey, EngineerMonkey 23 13 10 56.52% 0.50% 36.26%
Gwendolin_Science GlueGunner, MonkeyVillage, TackShooter 43 21 22 48.84% 0.93% 33.90%
Benjamin BananaFarm, DartlingGunner, NinjaMonkey 22 11 11 50.00% 0.47% 29.11%
Gwendolin_Science GlueGunner, MonkeyVillage, NinjaMonkey 30 14 16 46.67% 0.65% 28.81%
Etienne BananaFarm, BoomerangMonkey, SniperMonkey 22 10 12 45.45% 0.47% 24.65%
Gwendolin_Science Alchemist, GlueGunner, NinjaMonkey 25 11 14 44.00% 0.54% 24.54%
Etienne BananaFarm, GlueGunner, TackShooter 25 10 15 40.00% 0.54% 20.80%
Etienne BombShooter, DartlingGunner, MonkeyBuccaneer 28 10 18 35.71% 0.60% 17.97%
Benjamin BananaFarm, DartlingGunner, SuperMonkey 35 11 24 31.43% 0.75% 16.05%

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