home / s24+_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 10473 5705 4768 54.47% 6.72% 53.52%
Alchemist 7857 4278 3579 54.45% 5.04% 53.35%
BombShooter 4378 2400 1978 54.82% 2.81% 53.35%
BananaFarm 16277 8789 7488 54.00% 10.44% 53.23%
MortarMonkey 1654 913 741 55.20% 1.06% 52.80%
MonkeySub 9770 5239 4531 53.62% 6.27% 52.63%
DartMonkey 4601 2454 2147 53.34% 2.95% 51.89%
MonkeyBuccaneer 9202 4815 4387 52.33% 5.90% 51.31%
SpikeFactory 13563 6919 6644 51.01% 8.70% 50.17%
MonkeyVillage 10941 5424 5517 49.57% 7.02% 48.64%
BoomerangMonkey 4735 2358 2377 49.80% 3.04% 48.38%
DartlingGunner 7311 3597 3714 49.20% 4.69% 48.05%
HeliPilot 3676 1782 1894 48.48% 2.36% 46.86%
GlueGunner 6201 2921 3280 47.11% 3.98% 45.86%
SuperMonkey 8755 4072 4683 46.51% 5.62% 45.47%
Druid 3651 1675 1976 45.88% 2.34% 44.26%
NinjaMonkey 6333 2860 3473 45.16% 4.06% 43.93%
WizardMonkey 8349 3746 4603 44.87% 5.36% 43.80%
TackShooter 6856 3061 3795 44.65% 4.40% 43.47%
SniperMonkey 8411 3701 4710 44.00% 5.39% 42.94%
EngineerMonkey 2019 874 1145 43.29% 1.29% 41.13%
MonkeyAce 897 372 525 41.47% 0.58% 38.25%

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