home / season_28_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
DartMonkey 676 405 271 59.91% 10.35% 56.22%
MortarMonkey 778 453 325 58.23% 11.91% 54.76%
BananaFarm 1530 836 694 54.64% 23.42% 52.15%
TackShooter 968 487 481 50.31% 14.81% 47.16%
SpikeFactory 148 77 71 52.03% 2.27% 43.98%
BombShooter 75 41 34 54.67% 1.15% 43.40%
WizardMonkey 620 279 341 45.00% 9.49% 41.08%
SniperMonkey 288 130 158 45.14% 4.41% 39.39%
GlueGunner 230 104 126 45.22% 3.52% 38.79%
MonkeyBuccaneer 64 30 34 46.88% 0.98% 34.65%
BoomerangMonkey 175 72 103 41.14% 2.68% 33.85%
IceMonkey 78 34 44 43.59% 1.19% 32.58%
NinjaMonkey 160 64 96 40.00% 2.45% 32.41%
DartlingGunner 44 19 25 43.18% 0.67% 28.55%
MonkeyAce 106 39 67 36.79% 1.62% 27.61%
HeliPilot 141 49 92 34.75% 2.16% 26.89%
Alchemist 84 31 53 36.90% 1.29% 26.59%
MonkeySub 84 29 55 34.52% 1.29% 24.36%
MonkeyVillage 109 33 76 30.28% 1.67% 21.65%
EngineerMonkey 64 21 43 32.81% 0.98% 21.31%
SuperMonkey 70 21 49 30.00% 1.07% 19.26%
Druid 42 13 29 30.95% 0.64% 16.97%

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