home / season_26_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 1256 683 573 54.38% 5.82% 51.62%
BananaFarm 1629 877 752 53.84% 7.55% 51.42%
BombShooter 608 335 273 55.10% 2.82% 51.14%
IceMonkey 1095 585 510 53.42% 5.08% 50.47%
SpikeFactory 1946 1004 942 51.59% 9.02% 49.37%
MonkeyBuccaneer 1526 782 744 51.25% 7.08% 48.74%
MortarMonkey 280 152 128 54.29% 1.30% 48.45%
MonkeyVillage 1683 852 831 50.62% 7.80% 48.24%
MonkeySub 834 430 404 51.56% 3.87% 48.17%
DartlingGunner 1202 604 598 50.25% 5.57% 47.42%
DartMonkey 774 390 384 50.39% 3.59% 46.87%
BoomerangMonkey 609 307 302 50.41% 2.82% 46.44%
HeliPilot 599 298 301 49.75% 2.78% 45.75%
GlueGunner 1057 514 543 48.63% 4.90% 45.62%
SuperMonkey 1493 717 776 48.02% 6.92% 45.49%
Druid 487 233 254 47.84% 2.26% 43.41%
WizardMonkey 958 445 513 46.45% 4.44% 43.29%
TackShooter 927 430 497 46.39% 4.30% 43.18%
SniperMonkey 1337 612 725 45.77% 6.20% 43.10%
NinjaMonkey 851 357 494 41.95% 3.95% 38.64%
MonkeyAce 165 76 89 46.06% 0.77% 38.46%
EngineerMonkey 248 99 149 39.92% 1.15% 33.82%

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