home / season_26_matches

building_site_scene_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MortarMonkey 647 386 261 59.66% 11.24% 55.88%
DartMonkey 676 380 296 56.21% 11.75% 52.47%
BananaFarm 1108 613 495 55.32% 19.26% 52.40%
TackShooter 641 347 294 54.13% 11.14% 50.28%
SpikeFactory 166 89 77 53.61% 2.88% 46.03%
WizardMonkey 406 206 200 50.74% 7.06% 45.88%
SniperMonkey 366 172 194 46.99% 6.36% 41.88%
IceMonkey 95 47 48 49.47% 1.65% 39.42%
GlueGunner 321 138 183 42.99% 5.58% 37.57%
EngineerMonkey 67 33 34 49.25% 1.16% 37.28%
MonkeyBuccaneer 99 45 54 45.45% 1.72% 35.65%
BoomerangMonkey 139 57 82 41.01% 2.42% 32.83%
HeliPilot 157 62 95 39.49% 2.73% 31.84%
SuperMonkey 85 35 50 41.18% 1.48% 30.71%
NinjaMonkey 145 54 91 37.24% 2.52% 29.37%
MonkeySub 74 29 45 39.19% 1.29% 28.07%
BombShooter 93 35 58 37.63% 1.62% 27.79%
Druid 63 24 39 38.10% 1.09% 26.10%
MonkeyVillage 140 47 93 33.57% 2.43% 25.75%
MonkeyAce 118 34 84 28.81% 2.05% 20.64%
Alchemist 94 28 66 29.79% 1.63% 20.54%
DartlingGunner 54 16 38 29.63% 0.94% 17.45%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW building_site_scene_towers AS 
WITH building_site_scene AS
    (SELECT *
    FROM matches
    WHERE map = 'building_site_scene')
SELECT Tower,
       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 Tower,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM building_site_scene) * 6)    AS PR
      FROM (SELECT Tower,
                   SUM(Win) + SUM(NOT Win) AS Games,
                   SUM(Win)                AS Wins,
                   SUM(NOT Win)            AS Losses
            FROM (SELECT lt1           AS Tower,
                         playerLeftWin AS Win
                  FROM building_site_scene
                  UNION ALL
                  SELECT lt2           AS Tower,
                         playerLeftWin AS Win
                  FROM building_site_scene
                  UNION ALL
                  SELECT lt3           AS Tower,
                         playerLeftWin AS Win
                  FROM building_site_scene
                  UNION ALL
                  SELECT rt1               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM building_site_scene
                  UNION ALL
                  SELECT rt2               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM building_site_scene
                  UNION ALL
                  SELECT rt3               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM building_site_scene)
            GROUP BY Tower))
WHERE Wins >= 10 AND Losses >= 10 AND LENGTH(Winrate_LowerBound_95CI) = 6
ORDER BY Winrate_LowerBound_95CI DESC;
Powered by Datasette · Queries took 1301.708ms