home / season_29_matches

building_site_scene_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
TackShooter 1022 567 455 55.48% 15.41% 52.43%
BananaFarm 1662 895 767 53.85% 25.07% 51.45%
MortarMonkey 825 432 393 52.36% 12.44% 48.96%
WizardMonkey 717 377 340 52.58% 10.81% 48.93%
DartMonkey 618 320 298 51.78% 9.32% 47.84%
BoomerangMonkey 162 81 81 50.00% 2.44% 42.30%
BombShooter 86 45 41 52.33% 1.30% 41.77%
NinjaMonkey 166 79 87 47.59% 2.50% 39.99%
SpikeFactory 140 61 79 43.57% 2.11% 35.36%
GlueGunner 140 59 81 42.14% 2.11% 33.96%
SniperMonkey 291 112 179 38.49% 4.39% 32.90%
MonkeyAce 101 42 59 41.58% 1.52% 31.97%
MonkeySub 117 46 71 39.32% 1.76% 30.47%
Alchemist 78 32 46 41.03% 1.18% 30.11%
IceMonkey 75 27 48 36.00% 1.13% 25.14%
EngineerMonkey 49 19 30 38.78% 0.74% 25.13%
HeliPilot 93 31 62 33.33% 1.40% 23.75%
MonkeyBuccaneer 54 19 35 35.19% 0.81% 22.45%
MonkeyVillage 83 27 56 32.53% 1.25% 22.45%
SuperMonkey 60 18 42 30.00% 0.90% 18.40%
DartlingGunner 46 14 32 30.43% 0.69% 17.14%
Druid 45 12 33 26.67% 0.68% 13.75%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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