home / season_25_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
BananaFarm 1803 1026 777 56.91% 14.23% 54.62%
MonkeySub 908 525 383 57.82% 7.17% 54.61%
MortarMonkey 288 172 116 59.72% 2.27% 54.06%
BoomerangMonkey 639 353 286 55.24% 5.05% 51.39%
BombShooter 647 355 292 54.87% 5.11% 51.03%
Druid 546 287 259 52.56% 4.31% 48.38%
Alchemist 503 263 240 52.29% 3.97% 47.92%
SpikeFactory 1098 555 543 50.55% 8.67% 47.59%
DartlingGunner 789 390 399 49.43% 6.23% 45.94%
MonkeyAce 115 63 52 54.78% 0.91% 45.69%
IceMonkey 229 118 111 51.53% 1.81% 45.06%
TackShooter 402 196 206 48.76% 3.17% 43.87%
MonkeyBuccaneer 383 187 196 48.83% 3.02% 43.82%
DartMonkey 392 186 206 47.45% 3.09% 42.51%
SuperMonkey 530 234 296 44.15% 4.18% 39.92%
WizardMonkey 700 303 397 43.29% 5.53% 39.62%
SniperMonkey 887 377 510 42.50% 7.00% 39.25%
GlueGunner 571 243 328 42.56% 4.51% 38.50%
HeliPilot 175 76 99 43.43% 1.38% 36.08%
MonkeyVillage 472 188 284 39.83% 3.73% 35.41%
EngineerMonkey 148 64 84 43.24% 1.17% 35.26%
NinjaMonkey 441 172 269 39.00% 3.48% 34.45%

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