home / season_27_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 1756 1013 743 57.69% 11.93% 55.38%
MortarMonkey 381 226 155 59.32% 2.59% 54.38%
BananaFarm 2544 1405 1139 55.23% 17.28% 53.30%
MonkeySub 261 151 110 57.85% 1.77% 51.86%
SpikeFactory 1526 822 704 53.87% 10.36% 51.37%
BoomerangMonkey 569 300 269 52.72% 3.86% 48.62%
DartMonkey 655 337 318 51.45% 4.45% 47.62%
GlueGunner 788 394 394 50.00% 5.35% 46.51%
EngineerMonkey 288 147 141 51.04% 1.96% 45.27%
MonkeyAce 137 72 65 52.55% 0.93% 44.19%
WizardMonkey 840 383 457 45.60% 5.70% 42.23%
MonkeyVillage 898 408 490 45.43% 6.10% 42.18%
HeliPilot 446 200 246 44.84% 3.03% 40.23%
SuperMonkey 593 261 332 44.01% 4.03% 40.02%
DartlingGunner 479 204 275 42.59% 3.25% 38.16%
NinjaMonkey 582 243 339 41.75% 3.95% 37.75%
IceMonkey 368 156 212 42.39% 2.50% 37.34%
TackShooter 489 199 290 40.70% 3.32% 36.34%
Druid 209 89 120 42.58% 1.42% 35.88%
Alchemist 270 110 160 40.74% 1.83% 34.88%
SniperMonkey 612 227 385 37.09% 4.16% 33.26%
MonkeyBuccaneer 33 15 18 45.45% 0.22% 28.47%

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