home / season_27_matches

precious_space_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
BombShooter 543 333 210 61.33% 4.65% 57.23%
MonkeySub 1061 627 434 59.10% 9.09% 56.14%
BananaFarm 1925 1040 885 54.03% 16.49% 51.80%
IceMonkey 195 113 82 57.95% 1.67% 51.02%
BoomerangMonkey 558 305 253 54.66% 4.78% 50.53%
MortarMonkey 246 134 112 54.47% 2.11% 48.25%
Druid 515 267 248 51.84% 4.41% 47.53%
DartlingGunner 874 416 458 47.60% 7.49% 44.29%
MonkeyBuccaneer 404 198 206 49.01% 3.46% 44.14%
SpikeFactory 832 393 439 47.24% 7.13% 43.84%
Alchemist 448 217 231 48.44% 3.84% 43.81%
WizardMonkey 526 244 282 46.39% 4.50% 42.13%
SniperMonkey 673 303 370 45.02% 5.76% 41.26%
DartMonkey 194 93 101 47.94% 1.66% 40.91%
MonkeyVillage 394 179 215 45.43% 3.37% 40.51%
SuperMonkey 599 260 339 43.41% 5.13% 39.44%
TackShooter 369 162 207 43.90% 3.16% 38.84%
HeliPilot 240 107 133 44.58% 2.06% 38.29%
GlueGunner 445 189 256 42.47% 3.81% 37.88%
NinjaMonkey 400 162 238 40.50% 3.43% 35.69%
MonkeyAce 100 42 58 42.00% 0.86% 32.33%
EngineerMonkey 135 54 81 40.00% 1.16% 31.74%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW precious_space_towers AS 
WITH precious_space AS
    (SELECT *
    FROM matches
    WHERE map = 'precious_space')
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 precious_space) * 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 precious_space
                  UNION ALL
                  SELECT lt2           AS Tower,
                         playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT lt3           AS Tower,
                         playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt1               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt2               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt3               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space)
            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 1056.593ms