home / season_32_matches

bloonstone_quarry_hero_loadouts (view)

6 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Loadout, Games, Pickrate

Hero Loadout Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
Quincy_Cyber BananaFarm, TackShooter, WizardMonkey 33 23 10 69.70% 2.05% 54.02%
Bonnie Alchemist, MonkeyBuccaneer, SpikeFactory 73 47 26 64.38% 4.54% 53.40%
Jericho BananaFarm, IceMonkey, MonkeySub 37 25 12 67.57% 2.30% 52.48%
Churchill_Sentai BananaFarm, IceMonkey, MonkeySub 73 43 30 58.90% 4.54% 47.62%
Benjamin DartlingGunner, MonkeyVillage, SuperMonkey 128 64 64 50.00% 7.96% 41.34%
StrikerJones_Biker HeliPilot, IceMonkey, MonkeyVillage 39 19 20 48.72% 2.43% 33.03%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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