home / season_30_matches

bloonstone_quarry_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins, Losses, Winrate

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MonkeySub 1920 1086 834 56.56% 11.26% 54.35%
IceMonkey 1851 1047 804 56.56% 10.86% 54.31%
BananaFarm 2666 1457 1209 54.65% 15.63% 52.76%
BombShooter 393 210 183 53.44% 2.30% 48.50%
MonkeyVillage 1067 542 525 50.80% 6.26% 47.80%
DartMonkey 257 136 121 52.92% 1.51% 46.82%
SpikeFactory 1054 516 538 48.96% 6.18% 45.94%
Alchemist 510 251 259 49.22% 2.99% 44.88%
BoomerangMonkey 480 232 248 48.33% 2.81% 43.86%
MonkeyBuccaneer 532 253 279 47.56% 3.12% 43.31%
DartlingGunner 756 354 402 46.83% 4.43% 43.27%
SuperMonkey 698 323 375 46.28% 4.09% 42.58%
GlueGunner 502 232 270 46.22% 2.94% 41.85%
WizardMonkey 957 427 530 44.62% 5.61% 41.47%
MortarMonkey 93 48 45 51.61% 0.55% 41.46%
HeliPilot 343 160 183 46.65% 2.01% 41.37%
NinjaMonkey 709 317 392 44.71% 4.16% 41.05%
TackShooter 768 336 432 43.75% 4.50% 40.24%
Druid 318 143 175 44.97% 1.86% 39.50%
SniperMonkey 854 329 525 38.52% 5.01% 35.26%
EngineerMonkey 232 93 139 40.09% 1.36% 33.78%
MonkeyAce 92 34 58 36.96% 0.54% 27.09%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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