home / season_31_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
MonkeyAce 1615 938 677 58.08% 8.05% 55.67%
EngineerMonkey 1830 1056 774 57.70% 9.12% 55.44%
BananaFarm 3822 2126 1696 55.63% 19.05% 54.05%
MortarMonkey 234 137 97 58.55% 1.17% 52.23%
BoomerangMonkey 1041 562 479 53.99% 5.19% 50.96%
WizardMonkey 1512 729 783 48.21% 7.54% 45.70%
NinjaMonkey 1018 495 523 48.62% 5.07% 45.55%
BombShooter 368 178 190 48.37% 1.83% 43.26%
TackShooter 1205 555 650 46.06% 6.01% 43.24%
DartMonkey 295 142 153 48.14% 1.47% 42.43%
SuperMonkey 735 338 397 45.99% 3.66% 42.38%
IceMonkey 640 295 345 46.09% 3.19% 42.23%
SpikeFactory 694 313 381 45.10% 3.46% 41.40%
MonkeyVillage 1230 539 691 43.82% 6.13% 41.05%
DartlingGunner 547 243 304 44.42% 2.73% 40.26%
HeliPilot 542 239 303 44.10% 2.70% 39.92%
SniperMonkey 924 393 531 42.53% 4.61% 39.34%
MonkeySub 263 119 144 45.25% 1.31% 39.23%
GlueGunner 714 292 422 40.90% 3.56% 37.29%
Alchemist 329 140 189 42.55% 1.64% 37.21%
MonkeyBuccaneer 165 71 94 43.03% 0.82% 35.48%
Druid 341 132 209 38.71% 1.70% 33.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 1142.702ms