home / season_30_matches

banana_depot_scene_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MortarMonkey 355 216 139 60.85% 4.33% 55.77%
BananaFarm 1921 1059 862 55.13% 23.40% 52.90%
TackShooter 1211 662 549 54.67% 14.75% 51.86%
BombShooter 890 473 417 53.15% 10.84% 49.87%
MonkeyAce 116 68 48 58.62% 1.41% 49.66%
WizardMonkey 918 465 453 50.65% 11.18% 47.42%
SpikeFactory 794 402 392 50.63% 9.67% 47.15%
EngineerMonkey 94 51 43 54.26% 1.15% 44.18%
MonkeySub 320 153 167 47.81% 3.90% 42.34%
MonkeyVillage 147 61 86 41.50% 1.79% 33.53%
NinjaMonkey 224 84 140 37.50% 2.73% 31.16%
IceMonkey 157 58 99 36.94% 1.91% 29.39%
HeliPilot 158 58 100 36.71% 1.92% 29.19%
GlueGunner 135 50 85 37.04% 1.64% 28.89%
SniperMonkey 274 87 187 31.75% 3.34% 26.24%
Druid 61 23 38 37.70% 0.74% 25.54%
DartMonkey 55 21 34 38.18% 0.67% 25.34%
BoomerangMonkey 95 29 66 30.53% 1.16% 21.27%
SuperMonkey 104 31 73 29.81% 1.27% 21.02%
Alchemist 73 22 51 30.14% 0.89% 19.61%
MonkeyBuccaneer 61 19 42 31.15% 0.74% 19.53%
DartlingGunner 45 12 33 26.67% 0.55% 13.75%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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