home / season_25_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 783 470 313 60.03% 3.63% 56.59%
MonkeyAce 795 472 323 59.37% 3.68% 55.96%
BananaFarm 2788 1551 1237 55.63% 12.91% 53.79%
MortarMonkey 371 217 154 58.49% 1.72% 53.48%
DartMonkey 1088 588 500 54.04% 5.04% 51.08%
BoomerangMonkey 797 415 382 52.07% 3.69% 48.60%
GlueGunner 1961 972 989 49.57% 9.08% 47.35%
BombShooter 701 353 348 50.36% 3.25% 46.66%
MonkeyVillage 2059 988 1071 47.98% 9.53% 45.83%
WizardMonkey 1299 630 669 48.50% 6.01% 45.78%
NinjaMonkey 1301 619 682 47.58% 6.02% 44.86%
IceMonkey 587 287 300 48.89% 2.72% 44.85%
TackShooter 1266 602 664 47.55% 5.86% 44.80%
SniperMonkey 1197 561 636 46.87% 5.54% 44.04%
Alchemist 615 287 328 46.67% 2.85% 42.72%
SuperMonkey 922 420 502 45.55% 4.27% 42.34%
HeliPilot 493 229 264 46.45% 2.28% 42.05%
SpikeFactory 977 439 538 44.93% 4.52% 41.81%
Druid 588 258 330 43.88% 2.72% 39.87%
DartlingGunner 428 189 239 44.16% 1.98% 39.45%
MonkeySub 368 162 206 44.02% 1.70% 38.95%
MonkeyBuccaneer 216 91 125 42.13% 1.00% 35.54%

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