home / season_27_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 957 573 384 59.87% 5.41% 56.77%
BananaFarm 2721 1428 1293 52.48% 15.38% 50.60%
EngineerMonkey 553 301 252 54.43% 3.13% 50.28%
BoomerangMonkey 604 327 277 54.14% 3.41% 50.17%
DartMonkey 391 211 180 53.96% 2.21% 49.02%
DartlingGunner 1055 539 516 51.09% 5.96% 48.07%
GlueGunner 831 426 405 51.26% 4.70% 47.87%
MonkeySub 903 456 447 50.50% 5.11% 47.24%
HeliPilot 591 302 289 51.10% 3.34% 47.07%
MonkeyVillage 1151 570 581 49.52% 6.51% 46.63%
SpikeFactory 659 330 329 50.08% 3.73% 46.26%
BombShooter 376 189 187 50.27% 2.13% 45.21%
MonkeyAce 384 192 192 50.00% 2.17% 45.00%
WizardMonkey 994 475 519 47.79% 5.62% 44.68%
Druid 748 357 391 47.73% 4.23% 44.15%
TackShooter 943 445 498 47.19% 5.33% 44.00%
MonkeyBuccaneer 510 243 267 47.65% 2.88% 43.31%
SuperMonkey 1059 482 577 45.51% 5.99% 42.52%
NinjaMonkey 755 341 414 45.17% 4.27% 41.62%
MortarMonkey 220 104 116 47.27% 1.24% 40.68%
Alchemist 384 175 209 45.57% 2.17% 40.59%
SniperMonkey 899 378 521 42.05% 5.08% 38.82%

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