home / season_29_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 1107 691 416 62.42% 6.23% 59.57%
EngineerMonkey 1383 826 557 59.73% 7.78% 57.14%
BananaFarm 3542 1976 1566 55.79% 19.93% 54.15%
BoomerangMonkey 989 551 438 55.71% 5.56% 52.62%
BombShooter 518 271 247 52.32% 2.91% 48.02%
NinjaMonkey 1035 500 535 48.31% 5.82% 45.26%
GlueGunner 741 355 386 47.91% 4.17% 44.31%
WizardMonkey 1329 622 707 46.80% 7.48% 44.12%
MortarMonkey 207 105 102 50.72% 1.16% 43.91%
DartMonkey 332 163 169 49.10% 1.87% 43.72%
HeliPilot 342 165 177 48.25% 1.92% 42.95%
MonkeySub 511 241 270 47.16% 2.88% 42.83%
TackShooter 1055 475 580 45.02% 5.94% 42.02%
MonkeyVillage 1022 459 563 44.91% 5.75% 41.86%
IceMonkey 489 223 266 45.60% 2.75% 41.19%
SpikeFactory 693 293 400 42.28% 3.90% 38.60%
Druid 395 167 228 42.28% 2.22% 37.41%
SniperMonkey 805 319 486 39.63% 4.53% 36.25%
Alchemist 302 124 178 41.06% 1.70% 35.51%
DartlingGunner 384 148 236 38.54% 2.16% 33.67%
SuperMonkey 464 174 290 37.50% 2.61% 33.09%
MonkeyBuccaneer 127 38 89 29.92% 0.71% 21.96%

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