You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTCOUNT(*) FROM Python(hits) WHERE AdvEngineID <>0;
3
+
SELECTSUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM Python(hits);
4
+
SELECTAVG(UserID) FROM Python(hits);
5
+
SELECTCOUNT(DISTINCT UserID) FROM Python(hits);
6
+
SELECTCOUNT(DISTINCT SearchPhrase) FROM Python(hits);
7
+
SELECTMIN(EventDate), MAX(EventDate) FROM Python(hits);
8
+
SELECT AdvEngineID, COUNT(*) FROM Python(hits) WHERE AdvEngineID <>0GROUP BY AdvEngineID ORDER BYCOUNT(*) DESC;
9
+
SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM Python(hits) GROUP BY RegionID ORDER BY u DESCLIMIT10;
10
+
SELECT RegionID, SUM(AdvEngineID), COUNT(*) AS c, AVG(ResolutionWidth), COUNT(DISTINCT UserID) FROM Python(hits) GROUP BY RegionID ORDER BY c DESCLIMIT10;
11
+
SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM Python(hits) WHERE MobilePhoneModel <>''GROUP BY MobilePhoneModel ORDER BY u DESCLIMIT10;
12
+
SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM Python(hits) WHERE MobilePhoneModel <>''GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESCLIMIT10;
13
+
SELECT SearchPhrase, COUNT(*) AS c FROM Python(hits) WHERE SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
14
+
SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM Python(hits) WHERE SearchPhrase <>''GROUP BY SearchPhrase ORDER BY u DESCLIMIT10;
15
+
SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM Python(hits) WHERE SearchPhrase <>''GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESCLIMIT10;
16
+
SELECT UserID, COUNT(*) FROM Python(hits) GROUP BY UserID ORDER BYCOUNT(*) DESCLIMIT10;
17
+
SELECT UserID, SearchPhrase, COUNT(*) FROM Python(hits) GROUP BY UserID, SearchPhrase ORDER BYCOUNT(*) DESCLIMIT10;
18
+
SELECT UserID, SearchPhrase, COUNT(*) FROM Python(hits) GROUP BY UserID, SearchPhrase LIMIT10;
19
+
SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, COUNT(*) FROM Python(hits) GROUP BY UserID, m, SearchPhrase ORDER BYCOUNT(*) DESCLIMIT10;
20
+
SELECT UserID FROM Python(hits) WHERE UserID =435090932899640449;
21
+
SELECTCOUNT(*) FROM Python(hits) WHERE URL LIKE'%google%';
22
+
SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM Python(hits) WHERE URL LIKE'%google%'AND SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
23
+
SELECT SearchPhrase, MIN(URL), MIN(Title), COUNT(*) AS c, COUNT(DISTINCT UserID) FROM Python(hits) WHERE Title LIKE'%Google%'AND URL NOT LIKE'%.google.%'AND SearchPhrase <>''GROUP BY SearchPhrase ORDER BY c DESCLIMIT10;
24
+
SELECT*FROM Python(hits) WHERE URL LIKE'%google%'ORDER BY EventTime LIMIT10;
25
+
SELECT SearchPhrase FROM Python(hits) WHERE SearchPhrase <>''ORDER BY EventTime LIMIT10;
26
+
SELECT SearchPhrase FROM Python(hits) WHERE SearchPhrase <>''ORDER BY SearchPhrase LIMIT10;
27
+
SELECT SearchPhrase FROM Python(hits) WHERE SearchPhrase <>''ORDER BY EventTime, SearchPhrase LIMIT10;
28
+
SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM Python(hits) WHERE URL <>''GROUP BY CounterID HAVINGCOUNT(*) >100000ORDER BY l DESCLIMIT25;
29
+
SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM Python(hits) WHERE Referer <>''GROUP BY k HAVINGCOUNT(*) >100000ORDER BY l DESCLIMIT25;
SELECT SearchEngineID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM Python(hits) WHERE SearchPhrase <>''GROUP BY SearchEngineID, ClientIP ORDER BY c DESCLIMIT10;
32
+
SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM Python(hits) WHERE SearchPhrase <>''GROUP BY WatchID, ClientIP ORDER BY c DESCLIMIT10;
33
+
SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM Python(hits) GROUP BY WatchID, ClientIP ORDER BY c DESCLIMIT10;
34
+
SELECT URL, COUNT(*) AS c FROM Python(hits) GROUP BY URL ORDER BY c DESCLIMIT10;
35
+
SELECT1, URL, COUNT(*) AS c FROM Python(hits) GROUP BY1, URL ORDER BY c DESCLIMIT10;
36
+
SELECT ClientIP, ClientIP -1, ClientIP -2, ClientIP -3, COUNT(*) AS c FROM Python(hits) GROUP BY ClientIP, ClientIP -1, ClientIP -2, ClientIP -3ORDER BY c DESCLIMIT10;
37
+
SELECT URL, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND DontCountHits =0AND IsRefresh =0AND URL <>''GROUP BY URL ORDER BY PageViews DESCLIMIT10;
38
+
SELECT Title, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND DontCountHits =0AND IsRefresh =0AND Title <>''GROUP BY Title ORDER BY PageViews DESCLIMIT10;
39
+
SELECT URL, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND IsLink <>0AND IsDownload =0GROUP BY URL ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
40
+
SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID =0AND AdvEngineID =0) THEN Referer ELSE '' END AS Src, URL AS Dst, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
41
+
SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND TraficSourceID IN (-1, 6) AND RefererHash =3594120000172545465GROUP BY URLHash, EventDate ORDER BY PageViews DESCLIMIT10 OFFSET 100;
42
+
SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-01'AND EventDate <='2013-07-31'AND IsRefresh =0AND DontCountHits =0AND URLHash =2868770270353813622GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESCLIMIT10 OFFSET 10000;
43
+
SELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM Python(hits) WHERE CounterID =62AND EventDate >='2013-07-14'AND EventDate <='2013-07-15'AND IsRefresh =0AND DontCountHits =0GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT10 OFFSET 1000
0 commit comments