home / season_31_matches

salmon_pool_hero_loadouts (view)

13 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
Benjamin DartlingGunner, MonkeyVillage, SuperMonkey 54 44 10 81.48% 1.73% 71.12%
Churchill_Sentai BananaFarm, DartMonkey, SpikeFactory 35 25 10 71.43% 1.12% 56.46%
Quincy_Cyber Alchemist, MonkeyBuccaneer, SpikeFactory 67 44 23 65.67% 2.15% 54.30%
Bonnie Alchemist, MonkeyBuccaneer, SpikeFactory 357 206 151 57.70% 11.45% 52.58%
Churchill_Sentai BananaFarm, IceMonkey, MonkeySub 108 64 44 59.26% 3.46% 49.99%
Churchill BananaFarm, DartMonkey, SpikeFactory 32 20 12 62.50% 1.03% 45.73%
Obyn BananaFarm, Druid, MonkeySub 52 30 22 57.69% 1.67% 44.26%
Churchill_Sentai BananaFarm, BombShooter, MonkeySub 191 86 105 45.03% 6.13% 37.97%
Obyn DartlingGunner, Druid, SpikeFactory 23 12 11 52.17% 0.74% 31.76%
Quincy_Cyber BananaFarm, TackShooter, WizardMonkey 32 15 17 46.88% 1.03% 29.58%
StrikerJones_Biker HeliPilot, IceMonkey, MonkeyVillage 31 13 18 41.94% 0.99% 24.56%
Bonnie BoomerangMonkey, MonkeySub, SpikeFactory 26 11 15 42.31% 0.83% 23.32%
Churchill BananaFarm, IceMonkey, MonkeySub 28 11 17 39.29% 0.90% 21.20%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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