home / season_31_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
BananaFarm 3154 1703 1451 53.99% 17.18% 52.26%
Druid 769 424 345 55.14% 4.19% 51.62%
BoomerangMonkey 762 416 346 54.59% 4.15% 51.06%
IceMonkey 1036 543 493 52.41% 5.64% 49.37%
DartlingGunner 1118 582 536 52.06% 6.09% 49.13%
MonkeySub 1195 605 590 50.63% 6.51% 47.79%
WizardMonkey 1433 713 720 49.76% 7.81% 47.17%
EngineerMonkey 614 312 302 50.81% 3.34% 46.86%
NinjaMonkey 915 451 464 49.29% 4.98% 46.05%
TackShooter 994 488 506 49.09% 5.41% 45.99%
MonkeyAce 295 151 144 51.19% 1.61% 45.48%
SpikeFactory 663 321 342 48.42% 3.61% 44.61%
DartMonkey 247 125 122 50.61% 1.35% 44.37%
SniperMonkey 908 424 484 46.70% 4.95% 43.45%
MortarMonkey 122 63 59 51.64% 0.66% 42.77%
MonkeyVillage 1165 529 636 45.41% 6.35% 42.55%
BombShooter 310 145 165 46.77% 1.69% 41.22%
MonkeyBuccaneer 391 180 211 46.04% 2.13% 41.10%
SuperMonkey 888 394 494 44.37% 4.84% 41.10%
Alchemist 344 157 187 45.64% 1.87% 40.38%
HeliPilot 512 227 285 44.34% 2.79% 40.03%
GlueGunner 525 227 298 43.24% 2.86% 39.00%

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