home / season_31_matches

cobra_command_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
BombShooter 1658 954 704 57.54% 11.50% 55.16%
SpikeFactory 1522 862 660 56.64% 10.56% 54.15%
BananaFarm 2881 1591 1290 55.22% 19.99% 53.41%
MortarMonkey 227 135 92 59.47% 1.58% 53.08%
BoomerangMonkey 651 356 295 54.69% 4.52% 50.86%
EngineerMonkey 427 228 199 53.40% 2.96% 48.66%
MonkeyAce 281 151 130 53.74% 1.95% 47.91%
DartMonkey 298 150 148 50.34% 2.07% 44.66%
SuperMonkey 462 224 238 48.48% 3.21% 43.93%
WizardMonkey 1005 455 550 45.27% 6.97% 42.20%
MonkeyVillage 732 321 411 43.85% 5.08% 40.26%
MonkeySub 229 106 123 46.29% 1.59% 39.83%
IceMonkey 401 179 222 44.64% 2.78% 39.77%
DartlingGunner 508 222 286 43.70% 3.52% 39.39%
SniperMonkey 654 281 373 42.97% 4.54% 39.17%
NinjaMonkey 547 233 314 42.60% 3.80% 38.45%
HeliPilot 389 166 223 42.67% 2.70% 37.76%
TackShooter 649 261 388 40.22% 4.50% 36.44%
Alchemist 217 93 124 42.86% 1.51% 36.27%
GlueGunner 382 136 246 35.60% 2.65% 30.80%
Druid 217 80 137 36.87% 1.51% 30.45%
MonkeyBuccaneer 75 22 53 29.33% 0.52% 19.03%

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