home / season_28_matches

precious_space_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
BombShooter 1021 617 404 60.43% 7.41% 57.43%
MonkeySub 1764 1024 740 58.05% 12.81% 55.75%
MortarMonkey 202 120 82 59.41% 1.47% 52.63%
BananaFarm 2748 1484 1264 54.00% 19.96% 52.14%
BoomerangMonkey 742 384 358 51.75% 5.39% 48.16%
Druid 630 310 320 49.21% 4.58% 45.30%
MonkeyAce 178 93 85 52.25% 1.29% 44.91%
SpikeFactory 885 419 466 47.34% 6.43% 44.06%
MonkeyBuccaneer 355 173 182 48.73% 2.58% 43.53%
IceMonkey 217 106 111 48.85% 1.58% 42.20%
DartlingGunner 725 331 394 45.66% 5.27% 42.03%
DartMonkey 203 96 107 47.29% 1.47% 40.42%
Alchemist 422 190 232 45.02% 3.06% 40.28%
GlueGunner 382 171 211 44.76% 2.77% 39.78%
WizardMonkey 689 298 391 43.25% 5.00% 39.55%
SniperMonkey 617 264 353 42.79% 4.48% 38.88%
TackShooter 436 183 253 41.97% 3.17% 37.34%
SuperMonkey 490 202 288 41.22% 3.56% 36.87%
HeliPilot 178 75 103 42.13% 1.29% 34.88%
MonkeyVillage 369 145 224 39.30% 2.68% 34.31%
NinjaMonkey 376 146 230 38.83% 2.73% 33.90%
EngineerMonkey 141 54 87 38.30% 1.02% 30.27%

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