home / season_30_matches

cobra_command_towers (view)

21 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MonkeyAce 316 211 105 66.77% 2.32% 61.58%
EngineerMonkey 408 267 141 65.44% 2.99% 60.83%
BombShooter 1630 918 712 56.32% 11.96% 53.91%
MortarMonkey 224 134 90 59.82% 1.64% 53.40%
BananaFarm 2971 1615 1356 54.36% 21.80% 52.57%
SpikeFactory 1354 737 617 54.43% 9.94% 51.78%
MonkeySub 374 190 184 50.80% 2.74% 45.74%
DartMonkey 330 167 163 50.61% 2.42% 45.21%
BoomerangMonkey 702 340 362 48.43% 5.15% 44.74%
MonkeyVillage 563 269 294 47.78% 4.13% 43.65%
DartlingGunner 393 189 204 48.09% 2.88% 43.15%
Druid 212 100 112 47.17% 1.56% 40.45%
WizardMonkey 939 399 540 42.49% 6.89% 39.33%
SuperMonkey 314 139 175 44.27% 2.30% 38.77%
HeliPilot 273 120 153 43.96% 2.00% 38.07%
NinjaMonkey 669 273 396 40.81% 4.91% 37.08%
IceMonkey 325 134 191 41.23% 2.39% 35.88%
SniperMonkey 616 234 382 37.99% 4.52% 34.15%
Alchemist 219 88 131 40.18% 1.61% 33.69%
TackShooter 474 172 302 36.29% 3.48% 31.96%
GlueGunner 303 113 190 37.29% 2.22% 31.85%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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