home / season_26_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 912 539 373 59.10% 4.19% 55.91%
BoomerangMonkey 719 398 321 55.35% 3.31% 51.72%
DartMonkey 742 408 334 54.99% 3.41% 51.41%
BananaFarm 2926 1537 1389 52.53% 13.45% 50.72%
DartlingGunner 1256 664 592 52.87% 5.77% 50.11%
MortarMonkey 245 137 108 55.92% 1.13% 49.70%
MonkeyAce 382 200 182 52.36% 1.76% 47.35%
MonkeyVillage 1600 781 819 48.81% 7.36% 46.36%
BombShooter 557 280 277 50.27% 2.56% 46.12%
GlueGunner 1335 650 685 48.69% 6.14% 46.01%
EngineerMonkey 555 278 277 50.09% 2.55% 45.93%
SpikeFactory 984 479 505 48.68% 4.52% 45.56%
Alchemist 753 368 385 48.87% 3.46% 45.30%
SuperMonkey 1338 638 700 47.68% 6.15% 45.01%
Druid 827 400 427 48.37% 3.80% 44.96%
NinjaMonkey 960 462 498 48.13% 4.41% 44.96%
MonkeySub 896 432 464 48.21% 4.12% 44.94%
MonkeyBuccaneer 734 354 380 48.23% 3.37% 44.61%
WizardMonkey 1143 542 601 47.42% 5.26% 44.52%
HeliPilot 675 324 351 48.00% 3.10% 44.23%
SniperMonkey 1210 553 657 45.70% 5.56% 42.90%
TackShooter 1001 451 550 45.05% 4.60% 41.97%

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