Created
January 18, 2022 20:23
-
-
Save adamsilverstein/d485806fa9dd0f3d73bb4709ff94d9c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| has_webp, | |
| APPROX_QUANTILES(bytesImg, 1000)[OFFSET(500)] / 1024 / 1024 AS median_img_mbytes | |
| FROM ( | |
| SELECT DISTINCT | |
| url, | |
| info AS version | |
| FROM | |
| `httparchive.technologies.2021_11_01_mobile` | |
| WHERE | |
| app = 'WordPress') | |
| JOIN ( | |
| SELECT | |
| url, | |
| has_webp, | |
| bytesImg | |
| FROM ( | |
| SELECT | |
| pageid, | |
| COUNTIF(ext = 'webp') > 0 AS has_webp | |
| FROM | |
| `httparchive.summary_requests.2021_11_01_mobile` | |
| GROUP BY | |
| pageid) | |
| JOIN ( | |
| SELECT | |
| pageid, | |
| url, | |
| bytesImg | |
| FROM | |
| `httparchive.summary_pages.2021_11_01_mobile`) | |
| USING | |
| (pageid)) | |
| USING | |
| (url) | |
| GROUP BY | |
| has_webp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment