home / season_27_matches

bloonstone_quarry_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
Alchemist 999 573 426 57.36% 5.49% 54.29%
DartMonkey 565 319 246 56.46% 3.11% 52.37%
IceMonkey 1176 633 543 53.83% 6.47% 50.98%
MonkeyBuccaneer 1194 642 552 53.77% 6.57% 50.94%
BananaFarm 1579 841 738 53.26% 8.68% 50.80%
HeliPilot 610 324 286 53.11% 3.35% 49.15%
SpikeFactory 1626 819 807 50.37% 8.94% 47.94%
BombShooter 399 209 190 52.38% 2.19% 47.48%
MonkeyVillage 1398 691 707 49.43% 7.69% 46.81%
SuperMonkey 1355 654 701 48.27% 7.45% 45.60%
MonkeySub 765 375 390 49.02% 4.21% 45.48%
DartlingGunner 969 471 498 48.61% 5.33% 45.46%
BoomerangMonkey 498 245 253 49.20% 2.74% 44.81%
GlueGunner 826 397 429 48.06% 4.54% 44.66%
WizardMonkey 867 400 467 46.14% 4.77% 42.82%
NinjaMonkey 715 331 384 46.29% 3.93% 42.64%
TackShooter 813 371 442 45.63% 4.47% 42.21%
MortarMonkey 239 115 124 48.12% 1.31% 41.78%
EngineerMonkey 199 94 105 47.24% 1.09% 40.30%
SniperMonkey 929 402 527 43.27% 5.11% 40.09%
Druid 374 149 225 39.84% 2.06% 34.88%
MonkeyAce 91 38 53 41.76% 0.50% 31.63%

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