home / season_28_matches

sands_of_time_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
IceMonkey 942 548 394 58.17% 4.71% 55.02%
EngineerMonkey 662 383 279 57.85% 3.31% 54.09%
MonkeyAce 408 240 168 58.82% 2.04% 54.05%
BananaFarm 3704 1964 1740 53.02% 18.51% 51.42%
HeliPilot 526 286 240 54.37% 2.63% 50.12%
DartMonkey 315 175 140 55.56% 1.57% 50.07%
DartlingGunner 813 434 379 53.38% 4.06% 49.95%
MonkeySub 1619 832 787 51.39% 8.09% 48.96%
BoomerangMonkey 849 438 411 51.59% 4.24% 48.23%
Druid 1113 567 546 50.94% 5.56% 48.01%
NinjaMonkey 913 440 473 48.19% 4.56% 44.95%
BombShooter 576 278 298 48.26% 2.88% 44.18%
SuperMonkey 861 408 453 47.39% 4.30% 44.05%
WizardMonkey 1215 562 653 46.26% 6.07% 43.45%
MortarMonkey 184 92 92 50.00% 0.92% 42.78%
GlueGunner 787 362 425 46.00% 3.93% 42.52%
MonkeyVillage 1128 509 619 45.12% 5.64% 42.22%
TackShooter 1110 486 624 43.78% 5.55% 40.87%
SpikeFactory 664 296 368 44.58% 3.32% 40.80%
SniperMonkey 764 332 432 43.46% 3.82% 39.94%
MonkeyBuccaneer 427 187 240 43.79% 2.13% 39.09%
Alchemist 436 189 247 43.35% 2.18% 38.70%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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