Created
August 13, 2019 00:30
-
-
Save kleong/af709a2215aa495d1eaae66492ba01d6 to your computer and use it in GitHub Desktop.
This file contains 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
rockset> SELECT | |
user.user.name | |
FROM | |
twitter_collection AS col, | |
UNNEST(col.entities.user_mentions AS user) AS user | |
WHERE | |
typeof(user.user.name) = 'string' | |
GROUP BY | |
user.user.name | |
ORDER BY | |
COUNT(*) DESC | |
LIMIT 5; | |
+---------------------+ | |
| name | | |
|---------------------| | |
| 방탄소년단 | | |
| Michelle Obama | | |
| H.E.R. | | |
| lego | | |
| BT21 | | |
+---------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment