home / season_30_matches

garden_hero_loadouts (view)

13 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Hero, Loadout, Wins, Losses

Hero Loadout Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
Quincy_Cyber BananaFarm, DartMonkey, MortarMonkey 47 35 12 74.47% 1.41% 62.00%
Etienne DartMonkey, GlueGunner, MonkeyVillage 39 26 13 66.67% 1.17% 51.87%
Obyn BananaFarm, Druid, MonkeySub 78 48 30 61.54% 2.34% 50.74%
Benjamin DartlingGunner, MonkeyVillage, SuperMonkey 46 29 17 63.04% 1.38% 49.09%
Churchill DartMonkey, SniperMonkey, SuperMonkey 34 22 12 64.71% 1.02% 48.64%
Churchill DartMonkey, NinjaMonkey, SniperMonkey 54 33 21 61.11% 1.62% 48.11%
Churchill_Sentai DartMonkey, NinjaMonkey, SniperMonkey 28 18 10 64.29% 0.84% 46.54%
Churchill_Sentai BananaFarm, IceMonkey, MonkeySub 84 46 38 54.76% 2.51% 44.12%
Etienne DartMonkey, GlueGunner, SniperMonkey 29 16 13 55.17% 0.87% 37.07%
Jericho BananaFarm, IceMonkey, MonkeySub 31 15 16 48.39% 0.93% 30.79%
Etienne_Bee BananaFarm, BoomerangMonkey, NinjaMonkey 27 13 14 48.15% 0.81% 29.30%
Churchill_Sentai BananaFarm, DartMonkey, SpikeFactory 41 17 24 41.46% 1.23% 26.38%
Churchill_Sentai BananaFarm, DartMonkey, NinjaMonkey 40 15 25 37.50% 1.20% 22.50%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW garden_hero_loadouts AS 
WITH garden AS
    (SELECT *
    FROM matches
    WHERE map = 'garden')
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 garden) * 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 garden
                  UNION ALL
                  SELECT rHero                               AS Hero,
                         printf('%s, %s, %s', rt1, rt2, rt3) AS Loadout,
                         NOT playerLeftWin                   AS Wins
                  FROM garden)
            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 571.596ms