Created
February 24, 2022 15:53
-
-
Save adamsilverstein/51bffe48d62671bad5aa2db91bcfa87b 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
| WITH picture AS ( | |
| SELECT | |
| url | |
| FROM | |
| `httparchive.pages.2022_01_01_mobile` | |
| WHERE | |
| JSON_VALUE(JSON_VALUE(payload, '$._element_count'), '$.picture') IS NOT NULL | |
| ), wordpress AS ( | |
| SELECT DISTINCT | |
| url | |
| FROM | |
| `httparchive.technologies.2022_01_01_mobile` | |
| WHERE | |
| app = 'WordPress' | |
| ), total AS ( | |
| SELECT | |
| COUNT(0) AS total | |
| FROM | |
| wordpress | |
| ) | |
| SELECT | |
| COUNT(0) AS wp_picture, | |
| (SELECT * FROM total) AS total, | |
| COUNT(0) / (SELECT * FROM total) AS pct_wp_picture | |
| FROM | |
| picture | |
| JOIN | |
| wordpress | |
| USING | |
| (url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment