home / season_29_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
IceMonkey 1832 1019 813 55.62% 9.84% 53.35%
BananaFarm 2610 1428 1182 54.71% 14.02% 52.80%
MonkeySub 2078 1135 943 54.62% 11.16% 52.48%
BombShooter 549 303 246 55.19% 2.95% 51.03%
BoomerangMonkey 602 314 288 52.16% 3.23% 48.17%
MonkeyVillage 1095 558 537 50.96% 5.88% 48.00%
MonkeyBuccaneer 805 406 399 50.43% 4.32% 46.98%
MortarMonkey 142 78 64 54.93% 0.76% 46.75%
SpikeFactory 1406 686 720 48.79% 7.55% 46.18%
Alchemist 740 362 378 48.92% 3.97% 45.32%
NinjaMonkey 788 369 419 46.83% 4.23% 43.34%
DartMonkey 284 138 146 48.59% 1.53% 42.78%
GlueGunner 506 237 269 46.84% 2.72% 42.49%
WizardMonkey 1012 460 552 45.45% 5.44% 42.39%
DartlingGunner 745 342 403 45.91% 4.00% 42.33%
HeliPilot 293 137 156 46.76% 1.57% 41.04%
Druid 485 217 268 44.74% 2.61% 40.32%
SuperMonkey 691 303 388 43.85% 3.71% 40.15%
TackShooter 794 344 450 43.32% 4.26% 39.88%
EngineerMonkey 230 100 130 43.48% 1.24% 37.07%
SniperMonkey 866 347 519 40.07% 4.65% 36.81%
MonkeyAce 65 26 39 40.00% 0.35% 28.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 1213.088ms