home / season_26_matches

sun_palace_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
EngineerMonkey 1021 590 431 57.79% 4.57% 54.76%
MonkeyAce 1024 572 452 55.86% 4.58% 52.82%
BananaFarm 3209 1708 1501 53.23% 14.36% 51.50%
BoomerangMonkey 745 404 341 54.23% 3.33% 50.65%
MortarMonkey 435 239 196 54.94% 1.95% 50.27%
IceMonkey 482 262 220 54.36% 2.16% 49.91%
GlueGunner 1839 946 893 51.44% 8.23% 49.16%
MonkeyVillage 1820 928 892 50.99% 8.15% 48.69%
DartMonkey 1066 549 517 51.50% 4.77% 48.50%
HeliPilot 808 414 394 51.24% 3.62% 47.79%
Druid 512 251 261 49.02% 2.29% 44.69%
BombShooter 682 326 356 47.80% 3.05% 44.05%
TackShooter 1271 592 679 46.58% 5.69% 43.84%
SuperMonkey 1091 506 585 46.38% 4.88% 43.42%
WizardMonkey 1358 625 733 46.02% 6.08% 43.37%
NinjaMonkey 1107 512 595 46.25% 4.95% 43.31%
SniperMonkey 1147 529 618 46.12% 5.13% 43.24%
DartlingGunner 588 274 314 46.60% 2.63% 42.57%
SpikeFactory 855 377 478 44.09% 3.83% 40.77%
Alchemist 608 268 340 44.08% 2.72% 40.13%
MonkeySub 385 172 213 44.68% 1.72% 39.71%
MonkeyBuccaneer 291 128 163 43.99% 1.30% 38.28%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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