home / season_29_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
MonkeyAce 343 219 124 63.85% 1.74% 58.76%
EngineerMonkey 549 340 209 61.93% 2.78% 57.87%
BananaFarm 3992 2147 1845 53.78% 20.24% 52.24%
MonkeySub 2211 1192 1019 53.91% 11.21% 51.83%
IceMonkey 1462 762 700 52.12% 7.41% 49.56%
Druid 953 497 456 52.15% 4.83% 48.98%
BoomerangMonkey 726 364 362 50.14% 3.68% 46.50%
BombShooter 483 245 238 50.72% 2.45% 46.27%
DartlingGunner 805 398 407 49.44% 4.08% 45.99%
DartMonkey 194 102 92 52.58% 0.98% 45.55%
MortarMonkey 162 86 76 53.09% 0.82% 45.40%
WizardMonkey 1327 634 693 47.78% 6.73% 45.09%
SpikeFactory 669 317 352 47.38% 3.39% 43.60%
GlueGunner 547 261 286 47.71% 2.77% 43.53%
NinjaMonkey 907 411 496 45.31% 4.60% 42.07%
MonkeyVillage 873 391 482 44.79% 4.43% 41.49%
TackShooter 1092 484 608 44.32% 5.54% 41.38%
MonkeyBuccaneer 359 166 193 46.24% 1.82% 41.08%
HeliPilot 320 138 182 43.13% 1.62% 37.70%
SniperMonkey 808 329 479 40.72% 4.10% 37.33%
SuperMonkey 557 225 332 40.39% 2.82% 36.32%
Alchemist 383 153 230 39.95% 1.94% 35.04%

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