-
Notifications
You must be signed in to change notification settings - Fork 2
/
sql_notebook_fossgis2019.html
117 lines (104 loc) · 224 KB
/
sql_notebook_fossgis2019.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<meta charset="utf-8">
<title>Franchise Notebook 2019-06-08</title>
<!--
_______ ______ _______ __ _ _______ _ _ _____ _______ _______
|______ |_____/ |_____| | \ | | |_____| | |______ |______
| | \_ | | | \_| |_____ | | __|__ ______| |______
_______ _____
|______ | __| |
______| |____\| |_____
__ _ _____ _______ _______ ______ _____ _____ _ _
| \ | | | | |______ |_____] | | | | |____/
| \_| |_____| | |______ |_____] |_____| |_____| | \_
-->
<style>
body {
font-family: sans-serif;
padding: 100px;
background: #f7f7f7;
}
iframe {
position: absolute;
top: -10000px;
left: -10000px;
}
a {
font-size: large;
}
#click {
background: #2257d9;
padding: 20px;
color: white;
text-decoration: none;
border-radius: 3px;
}
/*https://projects.lukehaas.me/css-loaders/*/
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
margin: 60px auto;
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 1.1em solid rgba(34,87,217, 0.2);
border-right: 1.1em solid rgba(34,87,217, 0.2);
border-bottom: 1.1em solid rgba(34,87,217, 0.2);
border-left: 1.1em solid #2257d9;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation: load8 1.1s infinite linear;
animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes load8 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
<div class="loader" id="loader">Loading Franchise...</div>
<center><a id="click" style="display:none" href="https://franchise.cloud/app/" target="_blank">Click here to open Franchise SQL Notebook</a></center>
<script type="text/javascript">
const DATA = "{\"state\":{\"config\":{},\"connect\":{\"active\":\"postgres\",\"status\":\"unconfigured\"},\"trash\":{\"open\":false,\"cells\":[]},\"deltas\":{\"open\":false,\"changes\":[]},\"notebook\":{\"layout\":[{\"rowId\":\"n7qb46d\",\"items\":[{\"query\":\"-- one table is enough for this workshop\\nCREATE TABLE parkplatz (\\n id INTEGER PRIMARY KEY,\\n name TEXT,\\n count SMALLINT,\\n free SMALLINT,\\n time TIMESTAMP WITH TIME ZONE\\n);\",\"id\":\"h73fiya\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[],\"values\":[]}}]},{\"rowId\":\"08hbves\",\"items\":[{\"query\":\"-- download the ParkenDD Open Data set: http://ubahn.draco.uberspace.de/opendata/dump/parken_dump.csv\\n-- import with COPY - replaye <user> with your user name (for Windows 'C:\\\\<user>\\\\Downloads\\\\parken_dump.csv')\\nCOPY parkplatz FROM '/home/flydix/Downloads/parken_dump.csv'\\nWITH CSV header DELIMITER ',' ENCODING 'latin1';\",\"id\":\"1crr97s\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[],\"values\":[]}}]},{\"rowId\":\"0hwnc16\",\"items\":[{\"query\":\"-- check if all data has been imported. Should be (at least) 1535037 rows.\\nSELECT count(1) FROM parkplatz;\",\"id\":\"pistpfv\",\"error\":null,\"suggestedName\":\"query1\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"count\"],\"values\":[[\"1535037\"]]}}]},{\"rowId\":\"pf8h8cq\",\"items\":[{\"query\":\"-- lets see how the data looks like. There are different sampling methods:\\n-- show the first 25 records read from disc\\nSELECT * FROM parkplatz LIMIT 25;\\n\\n-- show 25 random rows\\nSELECT * FROM parkplatz ORDER BY random() LIMIT 25;\\n\\n-- use TABLESAMPLE - 1% of the table with bernoulli sampling\\nSELECT * FROM parkplatz TABLESAMPLE BERNOULLI(0.01);\",\"id\":\"oo02qe4\",\"error\":null,\"suggestedName\":\"query2\",\"loading\":false,\"result\":{\"columns\":[\"id\",\"name\",\"count\",\"free\",\"time\"],\"values\":[[11518,\"Frauenkirche Neumarkt\",250,176,\"2014-04-16T23:15:05.000Z\"],[44225,\"Langebrück\",50,1,\"2014-04-28T09:45:03.000Z\"],[50188,\"Parkhaus Mitte\",280,242,\"2014-04-30T11:45:03.000Z\"],[56822,\"Sarrasanistraße\",55,10,\"2014-05-02T19:45:04.000Z\"],[59341,\"Parkhaus Mitte\",280,211,\"2014-05-03T17:00:04.000Z\"],[73609,\"An der Frauenkirche\",120,76,\"2014-05-08T18:15:04.000Z\"],[79343,\"Parkhaus Mitte\",280,221,\"2014-05-10T18:15:03.000Z\"],[79723,\"Frauenkirche Neumarkt\",250,106,\"2014-05-10T21:30:03.000Z\"],[86271,\"Semperoper\",400,336,\"2014-05-13T06:00:06.000Z\"],[97425,\"Parkhaus Mitte\",280,225,\"2014-05-17T04:00:04.000Z\"],[98838,\"Pirnaischer Platz\",156,2,\"2014-05-17T15:45:07.000Z\"],[136089,\"World Trade Center\",220,186,\"2014-05-30T10:30:05.000Z\"],[147467,\"City Center\",300,122,\"2014-06-03T07:30:05.000Z\"],[148186,\"Altmarkt\",400,274,\"2014-06-03T13:30:04.000Z\"],[189742,\"Cossebaude\",38,14,\"2014-06-18T05:30:05.000Z\"],[190820,\"Wiesentorstraße\",120,76,\"2014-06-18T14:15:03.000Z\"],[192761,\"Langebrück\",50,17,\"2014-06-19T07:00:07.000Z\"],[193074,\"Terrassenufer Bus\",22,3,\"2014-06-19T09:30:11.000Z\"],[216308,\"Pirnaischer Platz\",156,71,\"2014-06-27T13:30:04.000Z\"],[226162,\"Wiener Platz/Hbf.\",300,127,\"2014-07-01T00:30:04.000Z\"],[232057,\"World Trade Center\",220,220,\"2014-07-03T02:30:07.000Z\"],[234485,\"Pennrich\",50,47,\"2014-07-03T22:30:04.000Z\"],[242983,\"Wiesentorstraße\",120,80,\"2014-07-06T22:45:04.000Z\"],[246430,\"Sarrasanistraße\",55,23,\"2014-07-08T05:30:04.000Z\"],[247224,\"Wöhrl - Florentinum\",255,193,\"2014-07-08T12:00:04.000Z\"],[252446,\"Prohlis\",67,50,\"2014-07-10T07:45:04.000Z\"],[261288,\"Lindengasse\",75,58,\"2014-07-13T10:00:12.000Z\"],[262272,\"Wöhrl - Florentinum\",255,249,\"2014-07-13T18:30:04.000Z\"],[270442,\"Terrassenufer\",69,13,\"2014-07-16T15:00:04.000Z\"],[284901,\"Terrassenufer Bus\",22,26,\"2014-07-21T17:00:04.000Z\"],[290421,\"Altmarkt\",400,216,\"2014-07-23T15:45:09.000Z\"],[299545,\"An der Frauenkirche\",120,12,\"2014-07-26T20:15:04.000Z\"],[300368,\"Cossebaude\",38,32,\"2014-07-27T03:15:04.000Z\"],[304950,\"Ferdinandplatz\",140,126,\"2014-07-28T18:15:04.000Z\"],[311142,\"Langebrück\",50,46,\"2014-07-30T22:00:06.000Z\"],[332256,\"World Trade Center\",220,167,\"2014-08-07T08:15:07.000Z\"],[333311,\"Altmarkt - Galerie\",480,236,\"2014-08-07T16:45:04.000Z\"],[334201,\"Centrum-Galerie\",1050,711,\"2014-08-08T00:15:04.000Z\"],[338564,\"An der Frauenkirche\",120,3,\"2014-08-09T12:15:03.000Z\"],[341335,\"Centrum-Galerie\",1050,612,\"2014-08-10T11:15:04.000Z\"],[345411,\"Terrassenufer\",69,43,\"2014-08-11T21:15:04.000Z\"],[353625,\"World Trade Center\",220,217,\"2014-08-14T20:45:06.000Z\"],[365136,\"Prohlis\",67,44,\"2014-08-19T08:45:05.000Z\"],[365362,\"Parkhaus Mitte\",280,239,\"2014-08-19T10:45:04.000Z\"],[370525,\"Sarrasanistraße\",55,20,\"2014-08-21T06:30:07.000Z\"],[375019,\"Centrum-Galerie\",1050,538,\"2014-08-22T20:30:06.000Z\"],[375442,\"Prohlis\",67,62,\"2014-08-23T00:00:05.000Z\"],[382161,\"Frauenkirche Neumarkt\",250,199,\"2014-08-25T09:30:05.000Z\"],[383440,\"Lindengasse\",75,60,\"2014-08-25T19:45:08.000Z\"],[393356,\"Sarrasanistraße\",55,23,\"2014-08-29T07:30:04.000Z\"],[414044,\"Terrassenufer\",69,4,\"2014-09-05T13:45:15.000Z\"],[433914,\"Kongresszentrum\",250,186,\"2014-09-12T12:45:05.000Z\"],[437462,\"Wöhrl - Florentinum\",255,154,\"2014-09-13T17:45:05.000Z\"],[454770,\"Kongresszentrum\",250,204,\"2014-09-19T19:30:04.000Z\"],[464257,\"Lindengasse\",75,60,\"2014-09-23T04:00:04.000Z\"],[466223,\"Terrassenufer Bus\",22,18,\"2014-09-23T20:00:09.000Z\"],[475028,\"Altmarkt\",400,373,\"2014-09-26T22:30:06.000Z\"],[481745,\"Lindengasse\",75,64,\"2014-09-29T07:45:04.000Z\"],[498012,\"Hauptstraße\",150,29,\"2014-10-05T01:15:03.000Z\"],[499814,\"Ferdinandplatz\",140,128,\"2014-10-05T16:30:05.000Z\"],[506564,\"Theresienstraße\",140,146,\"2014-10-08T02:15:04.000Z\"],[516617,\"Langebrück\",50,19,\"2014-10-11T14:15:04.000Z\"],[517855,\"Parkhaus Mitte\",280,238,\"2014-10-12T00:45:04.000Z\"],[520456,\"Lindengasse\",75,62,\"2014-10-12T23:15:05.000Z\"],[548875,\"Wöhrl - Florentinum\",255,245,\"2014-10-22T21:15:04.000Z\"],[549322,\"Altmarkt\",400,361,\"2014-10-23T01:15:04.000Z\"],[565470,\"Altmarkt\",400,209,\"2014-10-28T16:45:05.000Z\"],[570354,\"Reitbahnstraße\",285,3,\"2014-10-30T10:00:06.000Z\"],[572175,\"City Center\",300,132,\"2014-10-31T01:00:05.000Z\"],[575786,\"Prohlis\",67,62,\"2014-11-01T08:15:05.000Z\"],[624237,\"Sarrasanistraße\",55,7,\"2014-11-22T09:15:04.000Z\"],[625904,\"Semperoper\",340,325,\"2014-11-22T23:00:12.000Z\"],[632148,\"Sarrasanistraße\",55,22,\"2014-11-25T04:15:10.000Z\"],[655269,\"Theresienstraße\",140,85,\"2014-12-03T07:00:12.000Z\"],[668981,\"City Center\",300,340,\"2014-12-08T02:15:05.000Z\"],[678379,\"Centrum-Galerie\",1050,39,\"2014-12-11T10:30:08.000Z\"],[684122,\"City Center\",300,261,\"2014-12-13T11:00:06.000Z\"],[688564,\"Kaditz\",190,188,\"2014-12-15T00:45:07.000Z\"],[702030,\"Ferdinandplatz\",140,32,\"2014-12-19T17:45:05.000Z\"],[703350,\"Theresienstraße\",140,105,\"2014-12-20T05:00:05.000Z\"],[707791,\"Taschenbergpalais\",98,0,\"2014-12-21T18:15:04.000Z\"],[718409,\"Parkhaus Mitte\",280,270,\"2014-12-25T11:45:05.000Z\"],[730735,\"Theresienstraße\",140,132,\"2014-12-29T21:00:09.000Z\"],[743585,\"Ferdinandplatz\",140,139,\"2015-01-03T08:00:06.000Z\"],[768480,\"Terrassenufer Bus\",22,18,\"2015-01-11T17:30:06.000Z\"],[785815,\"Haus am Zwinger\",171,113,\"2015-01-17T15:30:06.000Z\"],[790829,\"Semperoper\",400,323,\"2015-01-19T09:30:08.000Z\"],[791373,\"Bühlau\",1,0,\"2015-01-19T13:45:05.000Z\"],[794094,\"Centrum-Galerie\",1050,433,\"2015-01-20T12:45:05.000Z\"],[820926,\"Terrassenufer Bus\",22,18,\"2015-01-29T14:15:05.000Z\"],[841659,\"Semperoper\",400,304,\"2015-02-05T16:45:05.000Z\"],[851818,\"Altmarkt\",400,394,\"2015-02-09T04:00:05.000Z\"],[854758,\"Kaditz\",190,190,\"2015-02-10T04:15:05.000Z\"],[859713,\"Cossebaude\",38,33,\"2015-02-11T20:00:06.000Z\"],[875576,\"Altmarkt - Galerie\",480,155,\"2015-02-17T11:00:05.000Z\"],[889031,\"Bühlau\",1,1,\"2015-02-21T22:00:05.000Z\"],[898035,\"Ferdinandplatz\",140,146,\"2015-02-25T00:30:05.000Z\"],[912079,\"Pennrich\",50,52,\"2015-03-01T19:00:05.000Z\"],[916836,\"Parkhaus Mitte\",280,261,\"2015-03-03T10:00:07.000Z\"],[917452,\"Langebrück\",50,31,\"2015-03-03T14:30:05.000Z\"],[943114,\"Lindengasse\",75,60,\"2015-03-12T05:30:06.000Z\"],[964146,\"Haus am Zwinger\",171,29,\"2015-03-19T09:30:07.000Z\"],[969487,\"Wiesentorstraße\",120,95,\"2015-03-21T08:15:05.000Z\"],[971313,\"Wöhrl - Florentinum\",240,216,\"2015-03-21T22:45:04.000Z\"],[972916,\"City Center\",300,337,\"2015-03-22T12:15:05.000Z\"],[981874,\"Hauptstraße\",150,15,\"2015-03-25T13:30:05.000Z\"],[987012,\"Centrum-Galerie\",1050,791,\"2015-03-27T07:15:05.000Z\"],[999322,\"Lindengasse\",75,60,\"2015-03-31T11:45:05.000Z\"],[1000167,\"Altmarkt\",400,216,\"2015-03-31T18:30:10.000Z\"],[1004648,\"Wiesentorstraße\",120,51,\"2015-04-02T07:00:06.000Z\"],[1014465,\"Parkhaus Mitte\",280,206,\"2015-04-05T15:45:07.000Z\"],[1020290,\"An der Frauenkirche\",120,96,\"2015-04-07T16:45:05.000Z\"],[1020641,\"Taschenbergpalais\",98,72,\"2015-04-07T19:30:08.000Z\"],[1036611,\"Centrum-Galerie\",1050,841,\"2015-04-13T05:15:05.000Z\"],[1037249,\"Kongresszentrum\",250,149,\"2015-04-13T10:30:07.000Z\"],[1039479,\"World Trade Center\",220,216,\"2015-04-14T05:00:07.000Z\"],[1043439,\"Cossebaude\",38,20,\"2015-04-15T12:45:22.000Z\"],[1044280,\"Semperoper\",400,326,\"2015-04-15T19:30:05.000Z\"],[1057358,\"An der Frauenkirche\",120,126,\"2015-04-20T06:15:05.000Z\"],[1073004,\"Wöhrl - Florentinum\",260,198,\"2015-04-23T16:40:05.000Z\"],[1078735,\"Pirnaischer Platz\",156,69,\"2015-04-24T07:35:05.000Z\"],[1082532,\"Semperoper\",400,312,\"2015-04-24T17:30:07.000Z\"],[1086325,\"Flutrinne\",1200,1200,\"2015-04-25T03:20:05.000Z\"],[1090050,\"Kongresszentrum\",250,97,\"2015-04-25T13:05:06.000Z\"],[1093669,\"World Trade Center\",220,180,\"2015-04-25T22:40:05.000Z\"],[1102649,\"Langebrück\",50,18,\"2015-04-26T22:00:06.000Z\"],[1112735,\"Haus am Zwinger\",171,31,\"2015-04-28T00:20:06.000Z\"],[1121465,\"Prohlis\",67,67,\"2015-04-28T23:30:06.000Z\"],[1123808,\"Pennrich\",50,50,\"2015-04-29T06:20:05.000Z\"],[1130085,\"Prohlis\",67,60,\"2015-04-29T23:10:05.000Z\"],[1139443,\"Reitbahnstraße\",285,146,\"2015-05-01T01:30:05.000Z\"],[1143875,\"Theresienstraße\",140,74,\"2015-05-01T14:20:06.000Z\"],[1146296,\"Kongresszentrum\",250,164,\"2015-05-01T21:20:06.000Z\"],[1152787,\"World Trade Center\",220,195,\"2015-05-02T15:30:08.000Z\"],[1157713,\"Frauenkirche Neumarkt\",250,189,\"2015-05-03T05:35:05.000Z\"],[1164511,\"Theresienstraße\",140,128,\"2015-05-04T01:05:07.000Z\"],[1176969,\"World Trade Center\",220,141,\"2015-05-05T12:35:05.000Z\"],[1183773,\"Parkhaus Mitte\",280,206,\"2015-05-06T07:45:07.000Z\"],[1185658,\"An der Frauenkirche\",120,75,\"2015-05-06T12:50:07.000Z\"],[1194527,\"Reitbahnstraße\",285,33,\"2015-05-07T12:50:05.000Z\"],[1196636,\"Wiener Platz/Hbf.\",350,155,\"2015-05-07T18:20:05.000Z\"],[1211786,\"Reitbahnstraße\",285,0,\"2015-05-09T11:00:06.000Z\"],[1222291,\"Prohlis\",67,1,\"2015-05-10T15:35:05.000Z\"],[1225536,\"Schießgasse\",255,155,\"2015-05-11T00:40:04.000Z\"],[1230548,\"Centrum-Galerie\",1050,409,\"2015-05-11T14:30:06.000Z\"],[1232922,\"City Center\",300,133,\"2015-05-11T21:05:05.000Z\"],[1237285,\"Sarrasanistraße\",55,0,\"2015-05-12T09:15:08.000Z\"],[1248330,\"Terrassenufer Bus\",22,9,\"2015-05-13T14:50:05.000Z\"],[1284462,\"Prohlis\",67,39,\"2015-05-18T22:40:05.000Z\"],[1291076,\"Kongresszentrum\",250,177,\"2015-05-19T16:20:05.000Z\"],[1298039,\"Pennrich\",50,46,\"2015-05-20T11:15:05.000Z\"],[1304353,\"Wiesentorstraße\",120,99,\"2015-05-21T04:25:05.000Z\"],[1308922,\"An der Frauenkirche\",120,87,\"2015-05-21T16:35:04.000Z\"],[1314138,\"Cossebaude\",38,30,\"2015-05-22T06:55:04.000Z\"],[1339700,\"Haus am Zwinger\",171,113,\"2015-05-25T02:40:05.000Z\"],[1341582,\"Pennrich\",50,48,\"2015-05-25T07:30:08.000Z\"],[1347334,\"Sarrasanistraße\",55,19,\"2015-05-25T22:30:05.000Z\"],[1358716,\"Wöhrl - Florentinum\",260,160,\"2015-05-27T09:00:06.000Z\"],[1360814,\"Parkhaus Mitte\",280,220,\"2015-05-27T15:30:08.000Z\"],[1373496,\"Bühlau\",1,0,\"2015-05-29T08:35:08.000Z\"],[1375083,\"Wiener Platz/Hbf.\",350,214,\"2015-05-29T13:20:09.000Z\"],[1379506,\"Ferdinandplatz\",140,140,\"2015-05-30T03:25:05.000Z\"],[1393201,\"Parkhaus Mitte\",280,225,\"2015-05-31T19:55:05.000Z\"],[1409190,\"Haus am Zwinger\",171,41,\"2015-06-02T18:05:05.000Z\"],[1411824,\"Pennrich\",50,50,\"2015-06-03T01:50:05.000Z\"],[1423310,\"Pirnaischer Platz\",156,74,\"2015-06-04T09:30:05.000Z\"],[1429524,\"Wiener Platz/Hbf.\",350,275,\"2015-06-05T02:40:05.000Z\"],[1444216,\"Haus am Zwinger\",171,109,\"2015-06-06T19:25:05.000Z\"],[1454819,\"Semperoper\",400,336,\"2015-06-08T02:55:05.000Z\"],[1457304,\"Pennrich\",50,42,\"2015-06-08T09:55:04.000Z\"],[1469293,\"Prohlis\",67,60,\"2015-06-09T19:20:06.000Z\"],[1470272,\"Reitbahnstraße\",285,62,\"2015-06-09T22:10:06.000Z\"],[1476247,\"Wöhrl - Florentinum\",260,165,\"2015-06-10T14:40:27.000Z\"],[1508998,\"Lindengasse\",75,54,\"2015-06-14T11:35:05.000Z\"],[1511866,\"Frauenkirche Neumarkt\",250,172,\"2015-06-14T19:55:05.000Z\"],[1516685,\"Terrassenufer Bus\",22,9,\"2015-06-15T10:30:12.000Z\"]]}}]},{\"rowId\":\"17p0yf3\",\"items\":[{\"query\":\"/*************************\\n* Recipe 1: DISTINCT\\n*************************/\\n\\n-- now you know, that the data shows free parking spots in official parking places in Dresden\\n-- it's a simple time series data set, so each parking place appears multiple times\\n-- use DISTINCT to see all the different parking places\\nSELECT DISTINCT name FROM parkplatz;\",\"id\":\"abqktoe\",\"error\":null,\"suggestedName\":\"query3\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"name\"],\"values\":[[\"Frauenkirche Neumarkt\"],[\"Parkhaus Mitte\"],[\"Pennrich\"],[\"Centrum-Galerie\"],[\"Kaditz\"],[\"Schießgasse\"],[\"Terrassenufer Bus\"],[\"Lindengasse\"],[\"Sarrasanistraße\"],[\"Haus am Zwinger\"],[\"Hauptstraße\"],[\"Altmarkt\"],[\"Langebrück\"],[\"Wöhrl - Florentinum\"],[\"Prohlis\"],[\"Reitbahnstraße\"],[\"Cossebaude\"],[\"Terrassenufer\"],[\"Wiener Platz/Hbf.\"],[\"An der Frauenkirche\"],[\"Theresienstraße\"],[\"Altmarkt - Galerie\"],[\"Semperoper\"],[\"Karstadt\"],[\"Ferdinandplatz\"],[\"Wiesentorstraße\"],[\"Pirnaischer Platz\"],[\"City Center\"],[\"World Trade Center\"],[\"Kongresszentrum\"],[\"Bühlau\"],[\"Taschenbergpalais\"],[\"Flutrinne\"]]}}]},{\"rowId\":\"q4x2v8w\",\"items\":[{\"query\":\"-- how many different parking places are there\\nSELECT count(DISTINCT name) FROM parkplatz;\\n\",\"id\":\"wpbotot\",\"error\":null,\"suggestedName\":\"query4\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"count\"],\"values\":[[\"33\"]]}}]},{\"rowId\":\"uhpwmm4\",\"items\":[{\"query\":\"-- btw ever heard of the comparison operation IS DISTINCT FROM?\\n-- it does not apply here, but it's worth a short explanation\\n-- regard it as a NULL-safe comparison operation.\\n\\n-- this here is true\\nSELECT 1 = 1;\\n\\n-- and thats false\\nSELECT 1 != 1;\\n\\n-- this is also false, right?\\nSELECT 1 = NULL;\",\"id\":\"7g6sk39\",\"loading\":false}]},{\"rowId\":\"39i44w2\",\"items\":[{\"query\":\"-- IS DISTINCT FROM to the rescue\\n-- execute these examples one after another\\nSELECT 1 IS DISTINCT FROM NULL;\\n--SELECT 1 IS NOT DISTINCT FROM NULL;\\n--SELECT NULL IS DISTINCT FROM NULL;\",\"id\":\"dper0ja\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"?column?\"],\"values\":[[false]]}}]},{\"rowId\":\"jc86oe7\",\"items\":[{\"query\":\"-- back to the data,\\n-- lets get highest occupancy values for each day at the parking place 'Altmarkt'\\n SELECT date(time),\\n min(free) AS occupancy\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\nGROUP BY date(time)\\nORDER BY date(time);\",\"id\":\"7zb2fsw\",\"error\":null,\"suggestedName\":\"query5\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"date\",\"occupancy\"],\"values\":[[\"2014-04-13\",157],[\"2014-04-14\",169],[\"2014-04-15\",169],[\"2014-04-16\",180],[\"2014-04-17\",197],[\"2014-04-18\",14],[\"2014-04-19\",0],[\"2014-04-20\",76],[\"2014-04-21\",209],[\"2014-04-22\",92],[\"2014-04-23\",79],[\"2014-04-24\",111],[\"2014-04-25\",125],[\"2014-04-26\",14],[\"2014-04-27\",62],[\"2014-04-28\",62],[\"2014-04-29\",229],[\"2014-04-30\",234],[\"2014-05-01\",147],[\"2014-05-02\",0],[\"2014-05-03\",0],[\"2014-05-04\",299],[\"2014-05-05\",222],[\"2014-05-06\",250],[\"2014-05-07\",242],[\"2014-05-08\",211],[\"2014-05-09\",188],[\"2014-05-10\",44],[\"2014-05-11\",218],[\"2014-05-12\",197],[\"2014-05-13\",245],[\"2014-05-14\",215],[\"2014-05-15\",221],[\"2014-05-16\",192],[\"2014-05-17\",0],[\"2014-05-18\",203],[\"2014-05-19\",263],[\"2014-05-20\",256],[\"2014-05-21\",259],[\"2014-05-22\",270],[\"2014-05-23\",212],[\"2014-05-24\",0],[\"2014-05-25\",336],[\"2014-05-26\",261],[\"2014-05-27\",244],[\"2014-05-28\",246],[\"2014-05-29\",229],[\"2014-05-30\",0],[\"2014-05-31\",0],[\"2014-06-01\",314],[\"2014-06-02\",262],[\"2014-06-03\",246],[\"2014-06-04\",247],[\"2014-06-05\",270],[\"2014-06-06\",247],[\"2014-06-07\",10],[\"2014-06-08\",216],[\"2014-06-09\",280],[\"2014-06-10\",209],[\"2014-06-11\",210],[\"2014-06-12\",185],[\"2014-06-13\",171],[\"2014-06-14\",0],[\"2014-06-15\",309],[\"2014-06-16\",240],[\"2014-06-17\",225],[\"2014-06-18\",205],[\"2014-06-19\",193],[\"2014-06-20\",144],[\"2014-06-21\",39],[\"2014-06-22\",328],[\"2014-06-23\",257],[\"2014-06-24\",191],[\"2014-06-25\",230],[\"2014-06-26\",229],[\"2014-06-27\",150],[\"2014-06-28\",30],[\"2014-06-29\",302],[\"2014-06-30\",280],[\"2014-07-01\",249],[\"2014-07-02\",234],[\"2014-07-03\",230],[\"2014-07-04\",245],[\"2014-07-05\",103],[\"2014-07-06\",313],[\"2014-07-07\",297],[\"2014-07-08\",244],[\"2014-07-09\",243],[\"2014-07-10\",223],[\"2014-07-11\",85],[\"2014-07-12\",4],[\"2014-07-13\",306],[\"2014-07-14\",237],[\"2014-07-15\",188],[\"2014-07-16\",161],[\"2014-07-17\",222],[\"2014-07-18\",209],[\"2014-07-19\",104],[\"2014-07-20\",267],[\"2014-07-21\",182],[\"2014-07-22\",187],[\"2014-07-23\",146],[\"2014-07-24\",179],[\"2014-07-25\",168],[\"2014-07-26\",4],[\"2014-07-27\",243],[\"2014-07-28\",212],[\"2014-07-29\",193],[\"2014-07-30\",157],[\"2014-07-31\",145],[\"2014-08-01\",126],[\"2014-08-02\",0],[\"2014-08-03\",220],[\"2014-08-04\",120],[\"2014-08-05\",122],[\"2014-08-06\",80],[\"2014-08-07\",151],[\"2014-08-08\",145],[\"2014-08-09\",0],[\"2014-08-10\",242],[\"2014-08-11\",136],[\"2014-08-12\",89],[\"2014-08-13\",85],[\"2014-08-14\",76],[\"2014-08-15\",27],[\"2014-08-16\",0],[\"2014-08-17\",0],[\"2014-08-18\",140],[\"2014-08-19\",117],[\"2014-08-20\",127],[\"2014-08-21\",147],[\"2014-08-22\",179],[\"2014-08-23\",0],[\"2014-08-24\",83],[\"2014-08-25\",83],[\"2014-08-26\",93],[\"2014-08-27\",168],[\"2014-08-28\",138],[\"2014-08-29\",192],[\"2014-08-30\",110],[\"2014-08-31\",301],[\"2014-09-01\",201],[\"2014-09-02\",137],[\"2014-09-03\",207],[\"2014-09-04\",179],[\"2014-09-05\",197],[\"2014-09-06\",58],[\"2014-09-07\",260],[\"2014-09-08\",244],[\"2014-09-09\",191],[\"2014-09-10\",178],[\"2014-09-11\",204],[\"2014-09-12\",187],[\"2014-09-13\",0],[\"2014-09-14\",205],[\"2014-09-15\",162],[\"2014-09-16\",195],[\"2014-09-17\",212],[\"2014-09-18\",214],[\"2014-09-19\",189],[\"2014-09-20\",0],[\"2014-09-21\",259],[\"2014-09-22\",221],[\"2014-09-23\",213],[\"2014-09-24\",183],[\"2014-09-25\",209],[\"2014-09-26\",180],[\"2014-09-27\",2],[\"2014-09-28\",217],[\"2014-09-29\",206],[\"2014-09-30\",233],[\"2014-10-01\",184],[\"2014-10-02\",218],[\"2014-10-03\",71],[\"2014-10-04\",0],[\"2014-10-05\",97],[\"2014-10-06\",207],[\"2014-10-07\",213],[\"2014-10-08\",183],[\"2014-10-09\",216],[\"2014-10-10\",208],[\"2014-10-11\",0],[\"2014-10-12\",318],[\"2014-10-13\",237],[\"2014-10-14\",213],[\"2014-10-15\",187],[\"2014-10-16\",224],[\"2014-10-17\",179],[\"2014-10-18\",0],[\"2014-10-19\",191],[\"2014-10-20\",208],[\"2014-10-21\",211],[\"2014-10-22\",123],[\"2014-10-23\",159],[\"2014-10-24\",165],[\"2014-10-25\",0],[\"2014-10-26\",265],[\"2014-10-27\",175],[\"2014-10-28\",63],[\"2014-10-29\",105]]}}]},{\"rowId\":\"htlkv9o\",\"items\":[{\"query\":\"-- alright. Now when was that? Adding the time column in the SELECT part doesn't work\\n-- we cannot add time to GROUP BY or use an aggregation function for it. We want the value from a single row\\n SELECT date(time),\\n min(free) AS occupancy,\\n time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\nGROUP BY date(time)\\nORDER BY date(time);\",\"id\":\"k94ctj5\",\"error\":\"Spalte »parkplatz.time« muss in der GROUP-BY-Klausel erscheinen oder in einer Aggregatfunktion verwendet werden\",\"suggestedName\":\"query6\",\"loading\":false}]},{\"rowId\":\"rggsc5\",\"items\":[{\"query\":\"-- can it be done with a subquery? Yes... but doesn't feel like a good query. Scanning the table twice ...\\n-- in the result we also see that one day can occur multiple times when the highest occupancy is the same\\n-- maybe this is the result you want, but if you really want only one row per day you query can get more complex\\n SELECT date(time), FREE AS occupancy, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n and (DATE(TIME), FREE) in (\\n SELECT date(time), min(free)\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n GROUP BY date(time)\\n )\\nORDER BY date(time);\",\"id\":\"snfe2h\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"date\",\"occupancy\",\"time\"],\"values\":[[\"2014-04-13\",157,\"2014-04-13 15:15:04+02\"],[\"2014-04-14\",169,\"2014-04-14 14:15:05+02\"],[\"2014-04-15\",169,\"2014-04-15 14:30:05+02\"],[\"2014-04-16\",180,\"2014-04-16 13:00:05+02\"],[\"2014-04-17\",197,\"2014-04-17 13:45:04+02\"],[\"2014-04-18\",14,\"2014-04-18 16:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 11:30:05+02\"],[\"2014-04-19\",0,\"2014-04-19 11:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 12:00:06+02\"],[\"2014-04-19\",0,\"2014-04-19 12:15:04+02\"],[\"2014-04-19\",0,\"2014-04-19 12:30:04+02\"],[\"2014-04-19\",0,\"2014-04-19 12:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 13:00:04+02\"],[\"2014-04-19\",0,\"2014-04-19 13:15:04+02\"],[\"2014-04-19\",0,\"2014-04-19 13:30:04+02\"],[\"2014-04-19\",0,\"2014-04-19 13:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 14:00:05+02\"],[\"2014-04-19\",0,\"2014-04-19 14:15:04+02\"],[\"2014-04-19\",0,\"2014-04-19 14:30:04+02\"],[\"2014-04-19\",0,\"2014-04-19 14:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 15:00:05+02\"],[\"2014-04-19\",0,\"2014-04-19 15:15:04+02\"],[\"2014-04-19\",0,\"2014-04-19 15:30:04+02\"],[\"2014-04-19\",0,\"2014-04-19 15:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 16:15:04+02\"],[\"2014-04-19\",0,\"2014-04-19 16:45:04+02\"],[\"2014-04-20\",76,\"2014-04-20 13:15:04+02\"],[\"2014-04-21\",209,\"2014-04-21 13:30:06+02\"],[\"2014-04-22\",92,\"2014-04-22 13:45:04+02\"],[\"2014-04-23\",79,\"2014-04-23 13:30:03+02\"],[\"2014-04-24\",111,\"2014-04-24 13:30:04+02\"],[\"2014-04-24\",111,\"2014-04-24 13:45:03+02\"],[\"2014-04-25\",125,\"2014-04-25 13:45:03+02\"],[\"2014-04-26\",14,\"2014-04-26 13:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 00:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 00:45:04+02\"],[\"2014-04-27\",62,\"2014-04-27 01:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 01:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 01:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 02:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 03:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 03:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 03:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 04:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 05:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 05:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 05:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 05:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 06:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 06:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 06:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 06:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 08:00:09+02\"],[\"2014-04-27\",62,\"2014-04-27 08:15:05+02\"],[\"2014-04-27\",62,\"2014-04-27 08:30:07+02\"],[\"2014-04-27\",62,\"2014-04-27 08:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 10:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 10:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 10:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 10:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 11:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 12:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 12:30:07+02\"],[\"2014-04-27\",62,\"2014-04-27 12:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 13:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 14:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 14:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 14:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 15:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 15:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 15:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 15:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 16:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 16:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 17:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 17:45:05+02\"],[\"2014-04-27\",62,\"2014-04-27 18:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 18:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 19:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 19:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 20:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 20:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 20:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 20:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 21:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 21:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 21:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 22:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 23:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 23:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 23:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 00:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 00:15:09+02\"],[\"2014-04-27\",62,\"2014-04-27 01:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 02:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 02:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 02:30:05+02\"],[\"2014-04-27\",62,\"2014-04-27 03:45:04+02\"],[\"2014-04-27\",62,\"2014-04-27 04:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 04:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 04:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 07:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 07:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 07:30:07+02\"],[\"2014-04-27\",62,\"2014-04-27 07:45:10+02\"],[\"2014-04-27\",62,\"2014-04-27 09:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 09:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 09:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 09:45:05+02\"],[\"2014-04-27\",62,\"2014-04-27 11:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 11:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 11:45:04+02\"],[\"2014-04-27\",62,\"2014-04-27 12:00:03+02\"],[\"2014-04-27\",62,\"2014-04-27 13:15:05+02\"],[\"2014-04-27\",62,\"2014-04-27 13:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 13:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 14:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 16:30:04+02\"],[\"2014-04-27\",62,\"2014-04-27 16:45:05+02\"],[\"2014-04-27\",62,\"2014-04-27 17:00:05+02\"],[\"2014-04-27\",62,\"2014-04-27 17:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 18:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 18:45:04+02\"],[\"2014-04-27\",62,\"2014-04-27 19:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 19:15:03+02\"],[\"2014-04-27\",62,\"2014-04-27 21:45:03+02\"],[\"2014-04-27\",62,\"2014-04-27 22:00:04+02\"],[\"2014-04-27\",62,\"2014-04-27 22:15:04+02\"],[\"2014-04-27\",62,\"2014-04-27 22:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 23:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 00:00:04+02\"],[\"2014-04-28\",62,\"2014-04-28 00:15:03+02\"],[\"2014-04-28\",62,\"2014-04-28 00:30:05+02\"],[\"2014-04-28\",62,\"2014-04-28 00:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 02:00:03+02\"],[\"2014-04-28\",62,\"2014-04-28 02:15:04+02\"],[\"2014-04-28\",62,\"2014-04-28 02:30:04+02\"],[\"2014-04-28\",62,\"2014-04-28 02:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 05:15:04+02\"],[\"2014-04-28\",62,\"2014-04-28 05:30:04+02\"],[\"2014-04-28\",62,\"2014-04-28 05:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 06:00:04+02\"],[\"2014-04-28\",62,\"2014-04-28 07:15:04+02\"],[\"2014-04-28\",62,\"2014-04-28 01:00:05+02\"],[\"2014-04-28\",62,\"2014-04-28 01:15:03+02\"],[\"2014-04-28\",62,\"2014-04-28 01:30:03+02\"],[\"2014-04-28\",62,\"2014-04-28 01:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 03:00:04+02\"],[\"2014-04-28\",62,\"2014-04-28 03:15:04+02\"],[\"2014-04-28\",62,\"2014-04-28 03:30:03+02\"],[\"2014-04-28\",62,\"2014-04-28 03:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 04:00:05+02\"],[\"2014-04-28\",62,\"2014-04-28 04:15:03+02\"],[\"2014-04-28\",62,\"2014-04-28 04:30:05+02\"],[\"2014-04-28\",62,\"2014-04-28 04:45:03+02\"],[\"2014-04-28\",62,\"2014-04-28 05:00:05+02\"],[\"2014-04-28\",62,\"2014-04-28 06:15:04+02\"],[\"2014-04-28\",62,\"2014-04-28 06:30:03+02\"],[\"2014-04-28\",62,\"2014-04-28 06:45:04+02\"],[\"2014-04-28\",62,\"2014-04-28 07:00:04+02\"],[\"2014-04-29\",229,\"2014-04-29 14:30:07+02\"],[\"2014-04-30\",234,\"2014-04-30 13:15:03+02\"],[\"2014-05-01\",147,\"2014-05-01 15:15:04+02\"],[\"2014-05-02\",0,\"2014-05-02 12:30:04+02\"],[\"2014-05-02\",0,\"2014-05-02 12:45:04+02\"],[\"2014-05-02\",0,\"2014-05-02 14:15:03+02\"],[\"2014-05-02\",0,\"2014-05-02 14:30:04+02\"],[\"2014-05-02\",0,\"2014-05-02 14:45:04+02\"],[\"2014-05-02\",0,\"2014-05-02 15:00:04+02\"],[\"2014-05-02\",0,\"2014-05-02 13:00:04+02\"],[\"2014-05-02\",0,\"2014-05-02 13:30:03+02\"],[\"2014-05-02\",0,\"2014-05-02 13:45:04+02\"],[\"2014-05-02\",0,\"2014-05-02 14:00:04+02\"],[\"2014-05-02\",0,\"2014-05-02 15:15:03+02\"],[\"2014-05-02\",0,\"2014-05-02 15:30:05+02\"],[\"2014-05-03\",0,\"2014-05-03 13:15:03+02\"],[\"2014-05-03\",0,\"2014-05-03 13:30:04+02\"],[\"2014-05-03\",0,\"2014-05-03 13:45:03+02\"],[\"2014-05-03\",0,\"2014-05-03 14:00:04+02\"],[\"2014-05-03\",0,\"2014-05-03 12:15:04+02\"],[\"2014-05-03\",0,\"2014-05-03 12:30:03+02\"],[\"2014-05-03\",0,\"2014-05-03 12:45:03+02\"],[\"2014-05-03\",0,\"2014-05-03 13:00:04+02\"],[\"2014-05-03\",0,\"2014-05-03 14:15:03+02\"],[\"2014-05-03\",0,\"2014-05-03 14:30:04+02\"],[\"2014-05-03\",0,\"2014-05-03 14:45:04+02\"],[\"2014-05-03\",0,\"2014-05-03 15:00:05+02\"],[\"2014-05-03\",0,\"2014-05-03 15:45:03+02\"],[\"2014-05-03\",0,\"2014-05-03 16:00:05+02\"],[\"2014-05-03\",0,\"2014-05-03 16:15:03+02\"],[\"2014-05-04\",299,\"2014-05-04 13:00:04+02\"],[\"2014-05-05\",222,\"2014-05-05 18:00:04+02\"],[\"2014-05-06\",250,\"2014-05-06 13:00:05+02\"],[\"2014-05-07\",242,\"2014-05-07 12:15:03+02\"],[\"2014-05-08\",211,\"2014-05-08 13:30:04+02\"],[\"2014-05-09\",188,\"2014-05-09 15:00:04+02\"],[\"2014-05-10\",44,\"2014-05-10 13:30:04+02\"],[\"2014-05-11\",218,\"2014-05-11 14:30:04+02\"],[\"2014-05-12\",197,\"2014-05-12 13:15:04+02\"],[\"2014-05-13\",245,\"2014-05-13 15:15:04+02\"]]}}]},{\"rowId\":\"kmf362p\",\"items\":[{\"query\":\"-- Or you start using DISTINCT ON if you want the first row of each group (here: day) sorted by free parking places. ---\\n-- Think of it as a Top-1k query (for spatial tasks this could be \\\"find the nearest neighbour\\\")\\n SELECT DISTINCT ON (date(time)) -- determines the group (no comma after the brackets)\\n date(time), free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\nORDER BY date(time), free; -- determines which row is picked\",\"id\":\"x4lhng7\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"date\",\"free\",\"time\"],\"values\":[[\"2014-04-13\",157,\"2014-04-13 15:15:04+02\"],[\"2014-04-14\",169,\"2014-04-14 14:15:05+02\"],[\"2014-04-15\",169,\"2014-04-15 14:30:05+02\"],[\"2014-04-16\",180,\"2014-04-16 13:00:05+02\"],[\"2014-04-17\",197,\"2014-04-17 13:45:04+02\"],[\"2014-04-18\",14,\"2014-04-18 16:45:04+02\"],[\"2014-04-19\",0,\"2014-04-19 13:15:04+02\"],[\"2014-04-20\",76,\"2014-04-20 13:15:04+02\"],[\"2014-04-21\",209,\"2014-04-21 13:30:06+02\"],[\"2014-04-22\",92,\"2014-04-22 13:45:04+02\"],[\"2014-04-23\",79,\"2014-04-23 13:30:03+02\"],[\"2014-04-24\",111,\"2014-04-24 13:30:04+02\"],[\"2014-04-25\",125,\"2014-04-25 13:45:03+02\"],[\"2014-04-26\",14,\"2014-04-26 13:30:03+02\"],[\"2014-04-27\",62,\"2014-04-27 19:00:04+02\"],[\"2014-04-28\",62,\"2014-04-28 03:00:04+02\"],[\"2014-04-29\",229,\"2014-04-29 14:30:07+02\"],[\"2014-04-30\",234,\"2014-04-30 13:15:03+02\"],[\"2014-05-01\",147,\"2014-05-01 15:15:04+02\"],[\"2014-05-02\",0,\"2014-05-02 15:15:03+02\"],[\"2014-05-03\",0,\"2014-05-03 13:30:04+02\"],[\"2014-05-04\",299,\"2014-05-04 13:00:04+02\"],[\"2014-05-05\",222,\"2014-05-05 18:00:04+02\"],[\"2014-05-06\",250,\"2014-05-06 13:00:05+02\"],[\"2014-05-07\",242,\"2014-05-07 12:15:03+02\"],[\"2014-05-08\",211,\"2014-05-08 13:30:04+02\"],[\"2014-05-09\",188,\"2014-05-09 15:00:04+02\"],[\"2014-05-10\",44,\"2014-05-10 13:30:04+02\"],[\"2014-05-11\",218,\"2014-05-11 14:30:04+02\"],[\"2014-05-12\",197,\"2014-05-12 13:15:04+02\"],[\"2014-05-13\",245,\"2014-05-13 15:15:04+02\"],[\"2014-05-14\",215,\"2014-05-14 14:00:05+02\"],[\"2014-05-15\",221,\"2014-05-15 18:00:05+02\"],[\"2014-05-16\",192,\"2014-05-16 19:15:03+02\"],[\"2014-05-17\",0,\"2014-05-17 14:30:03+02\"],[\"2014-05-18\",203,\"2014-05-18 16:45:03+02\"],[\"2014-05-19\",263,\"2014-05-19 19:00:04+02\"],[\"2014-05-20\",256,\"2014-05-20 12:45:03+02\"],[\"2014-05-21\",259,\"2014-05-21 13:15:03+02\"],[\"2014-05-22\",270,\"2014-05-22 14:00:06+02\"],[\"2014-05-23\",212,\"2014-05-23 19:00:04+02\"],[\"2014-05-24\",0,\"2014-05-24 11:15:03+02\"],[\"2014-05-25\",336,\"2014-05-25 13:15:03+02\"],[\"2014-05-26\",261,\"2014-05-26 18:00:04+02\"],[\"2014-05-27\",244,\"2014-05-27 19:45:05+02\"],[\"2014-05-28\",246,\"2014-05-28 12:30:05+02\"],[\"2014-05-29\",229,\"2014-05-29 16:30:04+02\"],[\"2014-05-30\",0,\"2014-05-30 13:45:04+02\"],[\"2014-05-31\",0,\"2014-05-31 14:00:04+02\"],[\"2014-06-01\",314,\"2014-06-01 00:00:05+02\"],[\"2014-06-02\",262,\"2014-06-02 14:00:05+02\"],[\"2014-06-03\",246,\"2014-06-03 13:30:03+02\"],[\"2014-06-04\",247,\"2014-06-04 13:15:04+02\"],[\"2014-06-05\",270,\"2014-06-05 12:30:05+02\"],[\"2014-06-06\",247,\"2014-06-06 18:30:04+02\"],[\"2014-06-07\",10,\"2014-06-07 14:15:04+02\"],[\"2014-06-08\",216,\"2014-06-08 12:45:04+02\"],[\"2014-06-09\",280,\"2014-06-09 23:45:03+02\"],[\"2014-06-10\",209,\"2014-06-10 14:15:04+02\"],[\"2014-06-11\",210,\"2014-06-11 13:00:12+02\"],[\"2014-06-12\",185,\"2014-06-12 14:30:03+02\"],[\"2014-06-13\",171,\"2014-06-13 12:15:04+02\"],[\"2014-06-14\",0,\"2014-06-14 14:30:04+02\"],[\"2014-06-15\",309,\"2014-06-15 19:15:04+02\"],[\"2014-06-16\",240,\"2014-06-16 12:45:04+02\"],[\"2014-06-17\",225,\"2014-06-17 18:00:04+02\"],[\"2014-06-18\",205,\"2014-06-18 13:00:04+02\"],[\"2014-06-19\",193,\"2014-06-19 14:45:04+02\"],[\"2014-06-20\",144,\"2014-06-20 14:00:05+02\"],[\"2014-06-21\",39,\"2014-06-21 14:45:04+02\"],[\"2014-06-22\",328,\"2014-06-22 13:00:04+02\"],[\"2014-06-23\",257,\"2014-06-23 13:45:03+02\"],[\"2014-06-24\",191,\"2014-06-24 12:15:04+02\"],[\"2014-06-25\",230,\"2014-06-25 18:15:03+02\"],[\"2014-06-26\",229,\"2014-06-26 15:30:03+02\"],[\"2014-06-27\",150,\"2014-06-27 19:45:04+02\"],[\"2014-06-28\",30,\"2014-06-28 14:45:03+02\"],[\"2014-06-29\",302,\"2014-06-29 03:00:04+02\"],[\"2014-06-30\",280,\"2014-06-30 15:00:04+02\"],[\"2014-07-01\",249,\"2014-07-01 14:15:03+02\"],[\"2014-07-02\",234,\"2014-07-02 14:00:11+02\"],[\"2014-07-03\",230,\"2014-07-03 15:30:05+02\"],[\"2014-07-04\",245,\"2014-07-04 12:00:04+02\"],[\"2014-07-05\",103,\"2014-07-05 14:45:04+02\"],[\"2014-07-06\",313,\"2014-07-06 13:30:04+02\"],[\"2014-07-07\",297,\"2014-07-07 14:15:04+02\"],[\"2014-07-08\",244,\"2014-07-08 13:15:04+02\"],[\"2014-07-09\",243,\"2014-07-09 13:00:04+02\"],[\"2014-07-10\",223,\"2014-07-10 18:15:04+02\"],[\"2014-07-11\",85,\"2014-07-11 20:30:05+02\"],[\"2014-07-12\",4,\"2014-07-12 15:30:05+02\"],[\"2014-07-13\",306,\"2014-07-13 16:30:05+02\"],[\"2014-07-14\",237,\"2014-07-14 14:00:05+02\"],[\"2014-07-15\",188,\"2014-07-15 14:45:04+02\"],[\"2014-07-16\",161,\"2014-07-16 13:45:05+02\"],[\"2014-07-17\",222,\"2014-07-17 14:15:04+02\"],[\"2014-07-18\",209,\"2014-07-18 13:30:04+02\"],[\"2014-07-19\",104,\"2014-07-19 16:30:05+02\"],[\"2014-07-20\",267,\"2014-07-20 09:45:05+02\"],[\"2014-07-21\",182,\"2014-07-21 13:30:05+02\"],[\"2014-07-22\",187,\"2014-07-22 12:30:05+02\"],[\"2014-07-23\",146,\"2014-07-23 13:30:15+02\"],[\"2014-07-24\",179,\"2014-07-24 14:15:05+02\"],[\"2014-07-25\",168,\"2014-07-25 15:30:09+02\"],[\"2014-07-26\",4,\"2014-07-26 14:45:04+02\"],[\"2014-07-27\",243,\"2014-07-27 12:45:07+02\"],[\"2014-07-28\",212,\"2014-07-28 13:15:04+02\"],[\"2014-07-29\",193,\"2014-07-29 13:30:08+02\"],[\"2014-07-30\",157,\"2014-07-30 13:45:04+02\"],[\"2014-07-31\",145,\"2014-07-31 13:45:08+02\"],[\"2014-08-01\",126,\"2014-08-01 13:45:04+02\"],[\"2014-08-02\",0,\"2014-08-02 13:45:07+02\"],[\"2014-08-03\",220,\"2014-08-03 13:45:04+02\"],[\"2014-08-04\",120,\"2014-08-04 14:00:09+02\"],[\"2014-08-05\",122,\"2014-08-05 14:00:05+02\"],[\"2014-08-06\",80,\"2014-08-06 13:45:04+02\"],[\"2014-08-07\",151,\"2014-08-07 14:15:04+02\"],[\"2014-08-08\",145,\"2014-08-08 14:00:06+02\"],[\"2014-08-09\",0,\"2014-08-09 13:00:04+02\"],[\"2014-08-10\",242,\"2014-08-10 00:00:04+02\"],[\"2014-08-11\",136,\"2014-08-11 15:30:04+02\"],[\"2014-08-12\",89,\"2014-08-12 13:15:04+02\"],[\"2014-08-13\",85,\"2014-08-13 14:30:04+02\"],[\"2014-08-14\",76,\"2014-08-14 13:00:05+02\"],[\"2014-08-15\",27,\"2014-08-15 14:30:07+02\"],[\"2014-08-16\",0,\"2014-08-16 15:15:04+02\"],[\"2014-08-17\",0,\"2014-08-17 15:00:05+02\"],[\"2014-08-18\",140,\"2014-08-18 14:00:13+02\"],[\"2014-08-19\",117,\"2014-08-19 13:30:07+02\"],[\"2014-08-20\",127,\"2014-08-20 14:00:05+02\"],[\"2014-08-21\",147,\"2014-08-21 13:30:05+02\"],[\"2014-08-22\",179,\"2014-08-22 16:15:05+02\"],[\"2014-08-23\",0,\"2014-08-23 14:15:03+02\"],[\"2014-08-24\",83,\"2014-08-24 21:15:04+02\"],[\"2014-08-25\",83,\"2014-08-25 02:00:05+02\"],[\"2014-08-26\",93,\"2014-08-26 14:00:12+02\"],[\"2014-08-27\",168,\"2014-08-27 13:45:05+02\"],[\"2014-08-28\",138,\"2014-08-28 14:00:04+02\"],[\"2014-08-29\",192,\"2014-08-29 16:15:04+02\"],[\"2014-08-30\",110,\"2014-08-30 13:45:09+02\"],[\"2014-08-31\",301,\"2014-08-31 16:45:03+02\"],[\"2014-09-01\",201,\"2014-09-01 14:00:09+02\"],[\"2014-09-02\",137,\"2014-09-02 17:45:06+02\"],[\"2014-09-03\",207,\"2014-09-03 15:00:13+02\"],[\"2014-09-04\",179,\"2014-09-04 18:00:04+02\"],[\"2014-09-05\",197,\"2014-09-05 14:15:04+02\"],[\"2014-09-06\",58,\"2014-09-06 14:30:04+02\"],[\"2014-09-07\",260,\"2014-09-07 12:30:03+02\"],[\"2014-09-08\",244,\"2014-09-08 19:45:05+02\"],[\"2014-09-09\",191,\"2014-09-09 13:30:04+02\"],[\"2014-09-10\",178,\"2014-09-10 13:00:06+02\"],[\"2014-09-11\",204,\"2014-09-11 16:45:07+02\"],[\"2014-09-12\",187,\"2014-09-12 17:45:03+02\"],[\"2014-09-13\",0,\"2014-09-13 14:30:07+02\"],[\"2014-09-14\",205,\"2014-09-14 15:00:05+02\"],[\"2014-09-15\",162,\"2014-09-15 14:30:04+02\"],[\"2014-09-16\",195,\"2014-09-16 13:30:04+02\"],[\"2014-09-17\",212,\"2014-09-17 12:45:04+02\"],[\"2014-09-18\",214,\"2014-09-18 12:45:04+02\"],[\"2014-09-19\",189,\"2014-09-19 13:00:05+02\"],[\"2014-09-20\",0,\"2014-09-20 16:45:05+02\"],[\"2014-09-21\",259,\"2014-09-21 16:30:12+02\"],[\"2014-09-22\",221,\"2014-09-22 13:30:07+02\"],[\"2014-09-23\",213,\"2014-09-23 13:45:04+02\"],[\"2014-09-24\",183,\"2014-09-24 11:45:05+02\"],[\"2014-09-25\",209,\"2014-09-25 13:15:06+02\"],[\"2014-09-26\",180,\"2014-09-26 13:15:06+02\"],[\"2014-09-27\",2,\"2014-09-27 13:45:05+02\"],[\"2014-09-28\",217,\"2014-09-28 14:30:04+02\"],[\"2014-09-29\",206,\"2014-09-29 14:45:08+02\"],[\"2014-09-30\",233,\"2014-09-30 13:00:06+02\"],[\"2014-10-01\",184,\"2014-10-01 13:45:04+02\"],[\"2014-10-02\",218,\"2014-10-02 14:00:06+02\"],[\"2014-10-03\",71,\"2014-10-03 15:30:09+02\"],[\"2014-10-04\",0,\"2014-10-04 15:30:04+02\"],[\"2014-10-05\",97,\"2014-10-05 14:00:05+02\"],[\"2014-10-06\",207,\"2014-10-06 13:30:04+02\"],[\"2014-10-07\",213,\"2014-10-07 13:00:05+02\"],[\"2014-10-08\",183,\"2014-10-08 17:30:06+02\"],[\"2014-10-09\",216,\"2014-10-09 13:30:08+02\"],[\"2014-10-10\",208,\"2014-10-10 13:00:07+02\"],[\"2014-10-11\",0,\"2014-10-11 14:45:06+02\"],[\"2014-10-12\",318,\"2014-10-12 17:00:05+02\"],[\"2014-10-13\",237,\"2014-10-13 14:00:08+02\"],[\"2014-10-14\",213,\"2014-10-14 14:30:05+02\"],[\"2014-10-15\",187,\"2014-10-15 13:15:04+02\"],[\"2014-10-16\",224,\"2014-10-16 12:45:05+02\"],[\"2014-10-17\",179,\"2014-10-17 14:15:04+02\"],[\"2014-10-18\",0,\"2014-10-18 15:30:04+02\"],[\"2014-10-19\",191,\"2014-10-19 13:15:04+02\"],[\"2014-10-20\",208,\"2014-10-20 12:45:06+02\"],[\"2014-10-21\",211,\"2014-10-21 14:00:06+02\"],[\"2014-10-22\",123,\"2014-10-22 13:30:06+02\"],[\"2014-10-23\",159,\"2014-10-23 14:15:04+02\"],[\"2014-10-24\",165,\"2014-10-24 15:15:06+02\"],[\"2014-10-25\",0,\"2014-10-25 15:45:05+02\"],[\"2014-10-26\",265,\"2014-10-26 13:30:06+01\"],[\"2014-10-27\",175,\"2014-10-27 13:45:04+01\"],[\"2014-10-28\",63,\"2014-10-28 13:15:05+01\"],[\"2014-10-29\",105,\"2014-10-29 12:45:06+01\"]]}}]},{\"rowId\":\"3a4uikf\",\"items\":[{\"query\":\"/*************************\\n* Recipe 2: LATERAL Joins\\n*************************/\\n\\n-- if we are interested in a Top-nk search per group we have to use a subquery\\n-- Top 5 timestamps with highest occupancy per day\\n-- we want is something like a FOR EACH loop which should do this\\n\\n/*\\nFOR (date IN calendar_dates): -- (this line is not SQL)\\n SELECT date(time), free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND date(time) = <date>\\nORDER BY free\\n LIMIT 5;\\n*/\\n\\n-- Postgres has a the generate_series function which can be used for iterations. It also works for dates.\\n-- The bounds are the min and max dates available in the data set\\nSELECT generate_series('2014-04-13', '2015-06-17', '1 day'::interval) AS day;\\n\",\"id\":\"js9sbgs\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"day\"],\"values\":[[\"2014-04-13 00:00:00+02\"],[\"2014-04-14 00:00:00+02\"],[\"2014-04-15 00:00:00+02\"],[\"2014-04-16 00:00:00+02\"],[\"2014-04-17 00:00:00+02\"],[\"2014-04-18 00:00:00+02\"],[\"2014-04-19 00:00:00+02\"],[\"2014-04-20 00:00:00+02\"],[\"2014-04-21 00:00:00+02\"],[\"2014-04-22 00:00:00+02\"],[\"2014-04-23 00:00:00+02\"],[\"2014-04-24 00:00:00+02\"],[\"2014-04-25 00:00:00+02\"],[\"2014-04-26 00:00:00+02\"],[\"2014-04-27 00:00:00+02\"],[\"2014-04-28 00:00:00+02\"],[\"2014-04-29 00:00:00+02\"],[\"2014-04-30 00:00:00+02\"],[\"2014-05-01 00:00:00+02\"],[\"2014-05-02 00:00:00+02\"],[\"2014-05-03 00:00:00+02\"],[\"2014-05-04 00:00:00+02\"],[\"2014-05-05 00:00:00+02\"],[\"2014-05-06 00:00:00+02\"],[\"2014-05-07 00:00:00+02\"],[\"2014-05-08 00:00:00+02\"],[\"2014-05-09 00:00:00+02\"],[\"2014-05-10 00:00:00+02\"],[\"2014-05-11 00:00:00+02\"],[\"2014-05-12 00:00:00+02\"],[\"2014-05-13 00:00:00+02\"],[\"2014-05-14 00:00:00+02\"],[\"2014-05-15 00:00:00+02\"],[\"2014-05-16 00:00:00+02\"],[\"2014-05-17 00:00:00+02\"],[\"2014-05-18 00:00:00+02\"],[\"2014-05-19 00:00:00+02\"],[\"2014-05-20 00:00:00+02\"],[\"2014-05-21 00:00:00+02\"],[\"2014-05-22 00:00:00+02\"],[\"2014-05-23 00:00:00+02\"],[\"2014-05-24 00:00:00+02\"],[\"2014-05-25 00:00:00+02\"],[\"2014-05-26 00:00:00+02\"],[\"2014-05-27 00:00:00+02\"],[\"2014-05-28 00:00:00+02\"],[\"2014-05-29 00:00:00+02\"],[\"2014-05-30 00:00:00+02\"],[\"2014-05-31 00:00:00+02\"],[\"2014-06-01 00:00:00+02\"],[\"2014-06-02 00:00:00+02\"],[\"2014-06-03 00:00:00+02\"],[\"2014-06-04 00:00:00+02\"],[\"2014-06-05 00:00:00+02\"],[\"2014-06-06 00:00:00+02\"],[\"2014-06-07 00:00:00+02\"],[\"2014-06-08 00:00:00+02\"],[\"2014-06-09 00:00:00+02\"],[\"2014-06-10 00:00:00+02\"],[\"2014-06-11 00:00:00+02\"],[\"2014-06-12 00:00:00+02\"],[\"2014-06-13 00:00:00+02\"],[\"2014-06-14 00:00:00+02\"],[\"2014-06-15 00:00:00+02\"],[\"2014-06-16 00:00:00+02\"],[\"2014-06-17 00:00:00+02\"],[\"2014-06-18 00:00:00+02\"],[\"2014-06-19 00:00:00+02\"],[\"2014-06-20 00:00:00+02\"],[\"2014-06-21 00:00:00+02\"],[\"2014-06-22 00:00:00+02\"],[\"2014-06-23 00:00:00+02\"],[\"2014-06-24 00:00:00+02\"],[\"2014-06-25 00:00:00+02\"],[\"2014-06-26 00:00:00+02\"],[\"2014-06-27 00:00:00+02\"],[\"2014-06-28 00:00:00+02\"],[\"2014-06-29 00:00:00+02\"],[\"2014-06-30 00:00:00+02\"],[\"2014-07-01 00:00:00+02\"],[\"2014-07-02 00:00:00+02\"],[\"2014-07-03 00:00:00+02\"],[\"2014-07-04 00:00:00+02\"],[\"2014-07-05 00:00:00+02\"],[\"2014-07-06 00:00:00+02\"],[\"2014-07-07 00:00:00+02\"],[\"2014-07-08 00:00:00+02\"],[\"2014-07-09 00:00:00+02\"],[\"2014-07-10 00:00:00+02\"],[\"2014-07-11 00:00:00+02\"],[\"2014-07-12 00:00:00+02\"],[\"2014-07-13 00:00:00+02\"],[\"2014-07-14 00:00:00+02\"],[\"2014-07-15 00:00:00+02\"],[\"2014-07-16 00:00:00+02\"],[\"2014-07-17 00:00:00+02\"],[\"2014-07-18 00:00:00+02\"],[\"2014-07-19 00:00:00+02\"],[\"2014-07-20 00:00:00+02\"],[\"2014-07-21 00:00:00+02\"],[\"2014-07-22 00:00:00+02\"],[\"2014-07-23 00:00:00+02\"],[\"2014-07-24 00:00:00+02\"],[\"2014-07-25 00:00:00+02\"],[\"2014-07-26 00:00:00+02\"],[\"2014-07-27 00:00:00+02\"],[\"2014-07-28 00:00:00+02\"],[\"2014-07-29 00:00:00+02\"],[\"2014-07-30 00:00:00+02\"],[\"2014-07-31 00:00:00+02\"],[\"2014-08-01 00:00:00+02\"],[\"2014-08-02 00:00:00+02\"],[\"2014-08-03 00:00:00+02\"],[\"2014-08-04 00:00:00+02\"],[\"2014-08-05 00:00:00+02\"],[\"2014-08-06 00:00:00+02\"],[\"2014-08-07 00:00:00+02\"],[\"2014-08-08 00:00:00+02\"],[\"2014-08-09 00:00:00+02\"],[\"2014-08-10 00:00:00+02\"],[\"2014-08-11 00:00:00+02\"],[\"2014-08-12 00:00:00+02\"],[\"2014-08-13 00:00:00+02\"],[\"2014-08-14 00:00:00+02\"],[\"2014-08-15 00:00:00+02\"],[\"2014-08-16 00:00:00+02\"],[\"2014-08-17 00:00:00+02\"],[\"2014-08-18 00:00:00+02\"],[\"2014-08-19 00:00:00+02\"],[\"2014-08-20 00:00:00+02\"],[\"2014-08-21 00:00:00+02\"],[\"2014-08-22 00:00:00+02\"],[\"2014-08-23 00:00:00+02\"],[\"2014-08-24 00:00:00+02\"],[\"2014-08-25 00:00:00+02\"],[\"2014-08-26 00:00:00+02\"],[\"2014-08-27 00:00:00+02\"],[\"2014-08-28 00:00:00+02\"],[\"2014-08-29 00:00:00+02\"],[\"2014-08-30 00:00:00+02\"],[\"2014-08-31 00:00:00+02\"],[\"2014-09-01 00:00:00+02\"],[\"2014-09-02 00:00:00+02\"],[\"2014-09-03 00:00:00+02\"],[\"2014-09-04 00:00:00+02\"],[\"2014-09-05 00:00:00+02\"],[\"2014-09-06 00:00:00+02\"],[\"2014-09-07 00:00:00+02\"],[\"2014-09-08 00:00:00+02\"],[\"2014-09-09 00:00:00+02\"],[\"2014-09-10 00:00:00+02\"],[\"2014-09-11 00:00:00+02\"],[\"2014-09-12 00:00:00+02\"],[\"2014-09-13 00:00:00+02\"],[\"2014-09-14 00:00:00+02\"],[\"2014-09-15 00:00:00+02\"],[\"2014-09-16 00:00:00+02\"],[\"2014-09-17 00:00:00+02\"],[\"2014-09-18 00:00:00+02\"],[\"2014-09-19 00:00:00+02\"],[\"2014-09-20 00:00:00+02\"],[\"2014-09-21 00:00:00+02\"],[\"2014-09-22 00:00:00+02\"],[\"2014-09-23 00:00:00+02\"],[\"2014-09-24 00:00:00+02\"],[\"2014-09-25 00:00:00+02\"],[\"2014-09-26 00:00:00+02\"],[\"2014-09-27 00:00:00+02\"],[\"2014-09-28 00:00:00+02\"],[\"2014-09-29 00:00:00+02\"],[\"2014-09-30 00:00:00+02\"],[\"2014-10-01 00:00:00+02\"],[\"2014-10-02 00:00:00+02\"],[\"2014-10-03 00:00:00+02\"],[\"2014-10-04 00:00:00+02\"],[\"2014-10-05 00:00:00+02\"],[\"2014-10-06 00:00:00+02\"],[\"2014-10-07 00:00:00+02\"],[\"2014-10-08 00:00:00+02\"],[\"2014-10-09 00:00:00+02\"],[\"2014-10-10 00:00:00+02\"],[\"2014-10-11 00:00:00+02\"],[\"2014-10-12 00:00:00+02\"],[\"2014-10-13 00:00:00+02\"],[\"2014-10-14 00:00:00+02\"],[\"2014-10-15 00:00:00+02\"],[\"2014-10-16 00:00:00+02\"],[\"2014-10-17 00:00:00+02\"],[\"2014-10-18 00:00:00+02\"],[\"2014-10-19 00:00:00+02\"],[\"2014-10-20 00:00:00+02\"],[\"2014-10-21 00:00:00+02\"],[\"2014-10-22 00:00:00+02\"],[\"2014-10-23 00:00:00+02\"],[\"2014-10-24 00:00:00+02\"],[\"2014-10-25 00:00:00+02\"],[\"2014-10-26 00:00:00+02\"],[\"2014-10-27 00:00:00+01\"],[\"2014-10-28 00:00:00+01\"],[\"2014-10-29 00:00:00+01\"]]}}]},{\"rowId\":\"udwdj6n\",\"items\":[{\"query\":\"-- it would be cool if we could put generate_series in the WHERE clause, but it doesn't work\\n SELECT date(time), free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND date(time) = generate_series('2014-04-13', '2015-06-17', '1 day'::interval)\\nORDER BY free\\n LIMIT 5;\",\"id\":\"4wxn08s\",\"error\":\"Funktionen mit Ergebnismenge sind in WHERE nicht erlaubt\",\"loading\":false}]},{\"rowId\":\"9gubye4\",\"items\":[{\"query\":\"-- a correlated sub query in SELECT doesn't work either. Only one column (and row) is allowed there.\\nSELECT g.day, (\\n SELECT free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND date(time) = g.DAY\\n ORDER BY free\\n LIMIT 5\\n )\\n FROM generate_series('2014-04-13', '2015-06-17', '1 day'::interval) AS g(day); \",\"id\":\"zpp4i0c\",\"error\":\"Unteranfrage darf nur eine Spalte zurückgeben\",\"loading\":false}]},{\"rowId\":\"h8u6r0i\",\"items\":[{\"query\":\"-- then we do it with a JOIN and a table expression sub query, because it can have multiple columns and rows\\n-- but, they can not contain cross references from other (neighbouring) tables\\nSELECT g.day, free, time\\n FROM generate_series('2014-04-13', '2015-06-17', '1 day'::interval) AS g(day)\\n JOIN (\\n SELECT free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND date(time) = g.day\\n ORDER BY free\\n LIMIT 5\\n ) t\\n ON g.day = t.date;\\n\",\"id\":\"2isrf2p\",\"error\":\"ungültiger Verweis auf FROM-Klausel-Eintrag für Tabelle »g«\",\"loading\":false}]},{\"rowId\":\"uo0djzx\",\"items\":[{\"query\":\"-- the solution is called LATERAL. By adding LATERAL we can use cross-references\\n-- the sub query is now correlated and executed for each date\\nSELECT g.day, free, time\\n FROM generate_series('2014-04-13', '2015-06-17', '1 day'::interval) AS g(day)\\n JOIN LATERAL (\\n SELECT free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND date(time) = g.DAY\\n ORDER BY free\\n LIMIT 5\\n ) t\\n ON (true); -- use this for LATERAL JOINs as the actual filter is in the sub query\",\"id\":\"0kezm7a\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"day\",\"free\",\"time\"],\"values\":[[\"2014-04-13 00:00:00+02\",157,\"2014-04-13 15:15:04+02\"],[\"2014-04-13 00:00:00+02\",159,\"2014-04-13 15:00:05+02\"],[\"2014-04-13 00:00:00+02\",162,\"2014-04-13 14:45:06+02\"],[\"2014-04-13 00:00:00+02\",166,\"2014-04-13 15:30:04+02\"],[\"2014-04-13 00:00:00+02\",167,\"2014-04-13 14:30:04+02\"],[\"2014-04-14 00:00:00+02\",169,\"2014-04-14 14:15:05+02\"],[\"2014-04-14 00:00:00+02\",179,\"2014-04-14 14:00:05+02\"],[\"2014-04-14 00:00:00+02\",179,\"2014-04-14 14:30:04+02\"],[\"2014-04-14 00:00:00+02\",180,\"2014-04-14 12:30:04+02\"],[\"2014-04-14 00:00:00+02\",180,\"2014-04-14 14:45:04+02\"],[\"2014-04-15 00:00:00+02\",169,\"2014-04-15 14:30:05+02\"],[\"2014-04-15 00:00:00+02\",170,\"2014-04-15 14:00:08+02\"],[\"2014-04-15 00:00:00+02\",171,\"2014-04-15 14:45:05+02\"],[\"2014-04-15 00:00:00+02\",172,\"2014-04-15 14:15:04+02\"],[\"2014-04-15 00:00:00+02\",174,\"2014-04-15 15:00:05+02\"],[\"2014-04-16 00:00:00+02\",180,\"2014-04-16 13:00:05+02\"],[\"2014-04-16 00:00:00+02\",182,\"2014-04-16 13:30:05+02\"],[\"2014-04-16 00:00:00+02\",186,\"2014-04-16 12:45:05+02\"],[\"2014-04-16 00:00:00+02\",187,\"2014-04-16 12:30:05+02\"],[\"2014-04-16 00:00:00+02\",187,\"2014-04-16 13:15:04+02\"],[\"2014-04-17 00:00:00+02\",197,\"2014-04-17 13:45:04+02\"],[\"2014-04-17 00:00:00+02\",200,\"2014-04-17 14:45:04+02\"],[\"2014-04-17 00:00:00+02\",200,\"2014-04-17 14:00:06+02\"],[\"2014-04-17 00:00:00+02\",201,\"2014-04-17 14:30:05+02\"],[\"2014-04-17 00:00:00+02\",204,\"2014-04-17 12:45:06+02\"],[\"2014-04-18 00:00:00+02\",14,\"2014-04-18 16:45:04+02\"],[\"2014-04-18 00:00:00+02\",18,\"2014-04-18 16:15:04+02\"],[\"2014-04-18 00:00:00+02\",18,\"2014-04-18 16:30:05+02\"],[\"2014-04-18 00:00:00+02\",27,\"2014-04-18 16:00:05+02\"],[\"2014-04-18 00:00:00+02\",28,\"2014-04-18 17:00:05+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:15:04+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:00:06+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 11:30:05+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 11:45:04+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:30:04+02\"],[\"2014-04-20 00:00:00+02\",76,\"2014-04-20 13:15:04+02\"],[\"2014-04-20 00:00:00+02\",78,\"2014-04-20 12:45:03+02\"],[\"2014-04-20 00:00:00+02\",80,\"2014-04-20 13:00:06+02\"],[\"2014-04-20 00:00:00+02\",83,\"2014-04-20 13:30:04+02\"],[\"2014-04-20 00:00:00+02\",84,\"2014-04-20 12:30:05+02\"],[\"2014-04-21 00:00:00+02\",209,\"2014-04-21 13:30:06+02\"],[\"2014-04-21 00:00:00+02\",213,\"2014-04-21 13:15:04+02\"],[\"2014-04-21 00:00:00+02\",217,\"2014-04-21 13:45:04+02\"],[\"2014-04-21 00:00:00+02\",219,\"2014-04-21 13:00:05+02\"],[\"2014-04-21 00:00:00+02\",224,\"2014-04-21 14:00:05+02\"],[\"2014-04-22 00:00:00+02\",92,\"2014-04-22 13:45:04+02\"],[\"2014-04-22 00:00:00+02\",96,\"2014-04-22 15:00:13+02\"],[\"2014-04-22 00:00:00+02\",96,\"2014-04-22 14:45:04+02\"],[\"2014-04-22 00:00:00+02\",97,\"2014-04-22 14:00:08+02\"],[\"2014-04-22 00:00:00+02\",99,\"2014-04-22 13:00:06+02\"],[\"2014-04-23 00:00:00+02\",79,\"2014-04-23 13:30:03+02\"],[\"2014-04-23 00:00:00+02\",83,\"2014-04-23 13:15:04+02\"],[\"2014-04-23 00:00:00+02\",84,\"2014-04-23 14:00:04+02\"],[\"2014-04-23 00:00:00+02\",87,\"2014-04-23 13:00:04+02\"],[\"2014-04-23 00:00:00+02\",87,\"2014-04-23 13:45:04+02\"],[\"2014-04-24 00:00:00+02\",111,\"2014-04-24 13:45:03+02\"],[\"2014-04-24 00:00:00+02\",111,\"2014-04-24 13:30:04+02\"],[\"2014-04-24 00:00:00+02\",112,\"2014-04-24 14:00:06+02\"],[\"2014-04-24 00:00:00+02\",118,\"2014-04-24 14:15:04+02\"],[\"2014-04-24 00:00:00+02\",120,\"2014-04-24 13:15:03+02\"],[\"2014-04-25 00:00:00+02\",125,\"2014-04-25 13:45:03+02\"],[\"2014-04-25 00:00:00+02\",126,\"2014-04-25 14:30:04+02\"],[\"2014-04-25 00:00:00+02\",129,\"2014-04-25 14:45:04+02\"],[\"2014-04-25 00:00:00+02\",130,\"2014-04-25 14:00:04+02\"],[\"2014-04-25 00:00:00+02\",130,\"2014-04-25 13:30:04+02\"],[\"2014-04-26 00:00:00+02\",14,\"2014-04-26 13:30:03+02\"],[\"2014-04-26 00:00:00+02\",18,\"2014-04-26 14:00:05+02\"],[\"2014-04-26 00:00:00+02\",27,\"2014-04-26 13:45:04+02\"],[\"2014-04-26 00:00:00+02\",30,\"2014-04-26 13:15:03+02\"],[\"2014-04-26 00:00:00+02\",33,\"2014-04-26 13:00:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:15:09+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:30:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:45:04+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 01:00:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:00:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:15:03+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:30:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:45:03+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 01:00:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:00:04+02\"],[\"2014-04-29 00:00:00+02\",229,\"2014-04-29 14:30:07+02\"],[\"2014-04-29 00:00:00+02\",230,\"2014-04-29 14:45:04+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 13:15:04+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 13:30:03+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 14:15:03+02\"],[\"2014-04-30 00:00:00+02\",234,\"2014-04-30 13:15:03+02\"],[\"2014-04-30 00:00:00+02\",238,\"2014-04-30 13:30:04+02\"],[\"2014-04-30 00:00:00+02\",241,\"2014-04-30 12:45:04+02\"],[\"2014-04-30 00:00:00+02\",242,\"2014-04-30 13:00:06+02\"],[\"2014-04-30 00:00:00+02\",246,\"2014-04-30 13:45:03+02\"],[\"2014-05-01 00:00:00+02\",147,\"2014-05-01 15:15:04+02\"],[\"2014-05-01 00:00:00+02\",149,\"2014-05-01 15:00:05+02\"],[\"2014-05-01 00:00:00+02\",150,\"2014-05-01 15:30:06+02\"],[\"2014-05-01 00:00:00+02\",152,\"2014-05-01 14:15:03+02\"],[\"2014-05-01 00:00:00+02\",156,\"2014-05-01 14:45:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:30:03+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 12:30:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:00:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 12:45:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:45:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:45:03+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 13:00:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:15:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:30:03+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 13:15:03+02\"],[\"2014-05-04 00:00:00+02\",299,\"2014-05-04 13:00:04+02\"],[\"2014-05-04 00:00:00+02\",300,\"2014-05-04 13:15:04+02\"],[\"2014-05-04 00:00:00+02\",302,\"2014-05-04 12:45:04+02\"],[\"2014-05-04 00:00:00+02\",306,\"2014-05-04 12:30:03+02\"],[\"2014-05-04 00:00:00+02\",307,\"2014-05-04 12:15:04+02\"],[\"2014-05-05 00:00:00+02\",222,\"2014-05-05 18:00:04+02\"],[\"2014-05-05 00:00:00+02\",223,\"2014-05-05 17:45:04+02\"],[\"2014-05-05 00:00:00+02\",226,\"2014-05-05 18:15:03+02\"],[\"2014-05-05 00:00:00+02\",226,\"2014-05-05 17:15:04+02\"],[\"2014-05-05 00:00:00+02\",229,\"2014-05-05 17:30:03+02\"],[\"2014-05-06 00:00:00+02\",250,\"2014-05-06 13:00:05+02\"],[\"2014-05-06 00:00:00+02\",252,\"2014-05-06 12:45:04+02\"],[\"2014-05-06 00:00:00+02\",254,\"2014-05-06 12:30:03+02\"],[\"2014-05-06 00:00:00+02\",257,\"2014-05-06 12:15:04+02\"],[\"2014-05-06 00:00:00+02\",258,\"2014-05-06 18:15:04+02\"],[\"2014-05-07 00:00:00+02\",242,\"2014-05-07 12:15:03+02\"],[\"2014-05-07 00:00:00+02\",246,\"2014-05-07 12:30:04+02\"],[\"2014-05-07 00:00:00+02\",247,\"2014-05-07 12:00:03+02\"],[\"2014-05-07 00:00:00+02\",248,\"2014-05-07 11:45:03+02\"],[\"2014-05-07 00:00:00+02\",251,\"2014-05-07 13:00:05+02\"],[\"2014-05-08 00:00:00+02\",211,\"2014-05-08 13:30:04+02\"],[\"2014-05-08 00:00:00+02\",216,\"2014-05-08 13:15:04+02\"],[\"2014-05-08 00:00:00+02\",219,\"2014-05-08 13:45:04+02\"],[\"2014-05-08 00:00:00+02\",220,\"2014-05-08 17:45:03+02\"],[\"2014-05-08 00:00:00+02\",222,\"2014-05-08 12:30:07+02\"],[\"2014-05-09 00:00:00+02\",188,\"2014-05-09 15:00:04+02\"],[\"2014-05-09 00:00:00+02\",193,\"2014-05-09 14:45:03+02\"],[\"2014-05-09 00:00:00+02\",199,\"2014-05-09 15:15:03+02\"],[\"2014-05-09 00:00:00+02\",199,\"2014-05-09 16:30:05+02\"],[\"2014-05-09 00:00:00+02\",200,\"2014-05-09 17:00:04+02\"],[\"2014-05-10 00:00:00+02\",44,\"2014-05-10 13:30:04+02\"],[\"2014-05-10 00:00:00+02\",47,\"2014-05-10 16:15:04+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 14:00:05+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 13:00:04+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 13:45:04+02\"],[\"2014-05-11 00:00:00+02\",218,\"2014-05-11 14:30:04+02\"],[\"2014-05-11 00:00:00+02\",222,\"2014-05-11 15:00:04+02\"],[\"2014-05-11 00:00:00+02\",222,\"2014-05-11 14:45:03+02\"],[\"2014-05-11 00:00:00+02\",235,\"2014-05-11 15:15:04+02\"],[\"2014-05-11 00:00:00+02\",237,\"2014-05-11 13:00:03+02\"],[\"2014-05-12 00:00:00+02\",197,\"2014-05-12 13:15:04+02\"],[\"2014-05-12 00:00:00+02\",199,\"2014-05-12 13:30:04+02\"],[\"2014-05-12 00:00:00+02\",203,\"2014-05-12 13:00:04+02\"],[\"2014-05-12 00:00:00+02\",204,\"2014-05-12 13:45:03+02\"],[\"2014-05-12 00:00:00+02\",208,\"2014-05-12 14:00:04+02\"],[\"2014-05-13 00:00:00+02\",245,\"2014-05-13 15:15:04+02\"],[\"2014-05-13 00:00:00+02\",245,\"2014-05-13 18:30:05+02\"],[\"2014-05-13 00:00:00+02\",246,\"2014-05-13 14:00:05+02\"],[\"2014-05-13 00:00:00+02\",248,\"2014-05-13 14:45:05+02\"],[\"2014-05-13 00:00:00+02\",249,\"2014-05-13 15:30:04+02\"],[\"2014-05-14 00:00:00+02\",215,\"2014-05-14 14:00:05+02\"],[\"2014-05-14 00:00:00+02\",218,\"2014-05-14 13:45:04+02\"],[\"2014-05-14 00:00:00+02\",219,\"2014-05-14 13:15:05+02\"],[\"2014-05-14 00:00:00+02\",220,\"2014-05-14 13:30:06+02\"],[\"2014-05-14 00:00:00+02\",221,\"2014-05-14 14:15:03+02\"],[\"2014-05-15 00:00:00+02\",221,\"2014-05-15 18:00:05+02\"],[\"2014-05-15 00:00:00+02\",223,\"2014-05-15 19:00:05+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:30:04+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:15:03+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:45:04+02\"],[\"2014-05-16 00:00:00+02\",192,\"2014-05-16 19:15:03+02\"],[\"2014-05-16 00:00:00+02\",195,\"2014-05-16 19:00:04+02\"],[\"2014-05-16 00:00:00+02\",196,\"2014-05-16 18:30:05+02\"],[\"2014-05-16 00:00:00+02\",196,\"2014-05-16 19:30:05+02\"],[\"2014-05-16 00:00:00+02\",199,\"2014-05-16 19:45:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:00:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:15:03+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 12:45:03+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 12:30:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:30:05+02\"],[\"2014-05-18 00:00:00+02\",203,\"2014-05-18 16:45:03+02\"],[\"2014-05-18 00:00:00+02\",211,\"2014-05-18 16:30:03+02\"],[\"2014-05-18 00:00:00+02\",211,\"2014-05-18 17:00:06+02\"],[\"2014-05-18 00:00:00+02\",214,\"2014-05-18 16:15:03+02\"],[\"2014-05-18 00:00:00+02\",219,\"2014-05-18 16:00:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:00:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:15:03+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 15:45:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 15:30:05+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:30:09+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 12:30:04+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 13:00:05+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 12:45:03+02\"],[\"2014-05-20 00:00:00+02\",257,\"2014-05-20 12:15:04+02\"],[\"2014-05-20 00:00:00+02\",257,\"2014-05-20 13:30:03+02\"],[\"2014-05-21 00:00:00+02\",259,\"2014-05-21 13:15:03+02\"],[\"2014-05-21 00:00:00+02\",260,\"2014-05-21 12:15:03+02\"],[\"2014-05-21 00:00:00+02\",263,\"2014-05-21 13:00:05+02\"],[\"2014-05-21 00:00:00+02\",263,\"2014-05-21 13:30:04+02\"],[\"2014-05-21 00:00:00+02\",264,\"2014-05-21 12:00:05+02\"],[\"2014-05-22 00:00:00+02\",270,\"2014-05-22 14:00:06+02\"],[\"2014-05-22 00:00:00+02\",271,\"2014-05-22 17:45:03+02\"],[\"2014-05-22 00:00:00+02\",274,\"2014-05-22 17:30:05+02\"],[\"2014-05-22 00:00:00+02\",274,\"2014-05-22 13:30:05+02\"],[\"2014-05-22 00:00:00+02\",275,\"2014-05-22 14:15:03+02\"]]}}]},{\"rowId\":\"po3hcli\",\"items\":[{\"query\":\"-- This was very slow, right? As said, the sub query is executed for each date.\\n-- we better make sure to have an index on the time column\\nCREATE INDEX time_idx ON parkplatz (time);\",\"id\":\"2hwo5cr\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[],\"values\":[]}}]},{\"rowId\":\"qqe3088\",\"items\":[{\"query\":\"-- Tu use this index we shall not manipulate the column in the WHERE clause (e.g. date(time))\\n-- Instead we are filtering by an interval (note that BETWEEN is inclusive at both bounds)\\nSELECT g.day, free, time\\n FROM generate_series('2014-04-13', '2015-06-17', '1 day'::interval) AS g(day)\\n JOIN LATERAL (\\n SELECT free, time\\n FROM parkplatz\\n WHERE name = 'Altmarkt'\\n AND time BETWEEN g.day AND g.day + INTERVAL '1 day'\\n ORDER BY free\\n LIMIT 5\\n ) t\\n ON (true);\\n\\n-- now, it's fast. But don't use LATERAL whenever you think of FOR EACH loops\\n-- normal JOINs do them as well. When working with LIMIT or with functions returning many rows, go for LATERAL\",\"id\":\"snuhbwg\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"day\",\"free\",\"time\"],\"values\":[[\"2014-04-13 00:00:00+02\",157,\"2014-04-13 15:15:04+02\"],[\"2014-04-13 00:00:00+02\",159,\"2014-04-13 15:00:05+02\"],[\"2014-04-13 00:00:00+02\",162,\"2014-04-13 14:45:06+02\"],[\"2014-04-13 00:00:00+02\",166,\"2014-04-13 15:30:04+02\"],[\"2014-04-13 00:00:00+02\",167,\"2014-04-13 14:30:04+02\"],[\"2014-04-14 00:00:00+02\",169,\"2014-04-14 14:15:05+02\"],[\"2014-04-14 00:00:00+02\",179,\"2014-04-14 14:00:05+02\"],[\"2014-04-14 00:00:00+02\",179,\"2014-04-14 14:30:04+02\"],[\"2014-04-14 00:00:00+02\",180,\"2014-04-14 12:30:04+02\"],[\"2014-04-14 00:00:00+02\",180,\"2014-04-14 14:45:04+02\"],[\"2014-04-15 00:00:00+02\",169,\"2014-04-15 14:30:05+02\"],[\"2014-04-15 00:00:00+02\",170,\"2014-04-15 14:00:08+02\"],[\"2014-04-15 00:00:00+02\",171,\"2014-04-15 14:45:05+02\"],[\"2014-04-15 00:00:00+02\",172,\"2014-04-15 14:15:04+02\"],[\"2014-04-15 00:00:00+02\",174,\"2014-04-15 15:00:05+02\"],[\"2014-04-16 00:00:00+02\",180,\"2014-04-16 13:00:05+02\"],[\"2014-04-16 00:00:00+02\",182,\"2014-04-16 13:30:05+02\"],[\"2014-04-16 00:00:00+02\",186,\"2014-04-16 12:45:05+02\"],[\"2014-04-16 00:00:00+02\",187,\"2014-04-16 12:30:05+02\"],[\"2014-04-16 00:00:00+02\",187,\"2014-04-16 13:15:04+02\"],[\"2014-04-17 00:00:00+02\",197,\"2014-04-17 13:45:04+02\"],[\"2014-04-17 00:00:00+02\",200,\"2014-04-17 14:45:04+02\"],[\"2014-04-17 00:00:00+02\",200,\"2014-04-17 14:00:06+02\"],[\"2014-04-17 00:00:00+02\",201,\"2014-04-17 14:30:05+02\"],[\"2014-04-17 00:00:00+02\",204,\"2014-04-17 12:45:06+02\"],[\"2014-04-18 00:00:00+02\",14,\"2014-04-18 16:45:04+02\"],[\"2014-04-18 00:00:00+02\",18,\"2014-04-18 16:15:04+02\"],[\"2014-04-18 00:00:00+02\",18,\"2014-04-18 16:30:05+02\"],[\"2014-04-18 00:00:00+02\",27,\"2014-04-18 16:00:05+02\"],[\"2014-04-18 00:00:00+02\",28,\"2014-04-18 17:00:05+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:15:04+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:00:06+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 11:30:05+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 11:45:04+02\"],[\"2014-04-19 00:00:00+02\",0,\"2014-04-19 12:30:04+02\"],[\"2014-04-20 00:00:00+02\",76,\"2014-04-20 13:15:04+02\"],[\"2014-04-20 00:00:00+02\",78,\"2014-04-20 12:45:03+02\"],[\"2014-04-20 00:00:00+02\",80,\"2014-04-20 13:00:06+02\"],[\"2014-04-20 00:00:00+02\",83,\"2014-04-20 13:30:04+02\"],[\"2014-04-20 00:00:00+02\",84,\"2014-04-20 12:30:05+02\"],[\"2014-04-21 00:00:00+02\",209,\"2014-04-21 13:30:06+02\"],[\"2014-04-21 00:00:00+02\",213,\"2014-04-21 13:15:04+02\"],[\"2014-04-21 00:00:00+02\",217,\"2014-04-21 13:45:04+02\"],[\"2014-04-21 00:00:00+02\",219,\"2014-04-21 13:00:05+02\"],[\"2014-04-21 00:00:00+02\",224,\"2014-04-21 14:00:05+02\"],[\"2014-04-22 00:00:00+02\",92,\"2014-04-22 13:45:04+02\"],[\"2014-04-22 00:00:00+02\",96,\"2014-04-22 15:00:13+02\"],[\"2014-04-22 00:00:00+02\",96,\"2014-04-22 14:45:04+02\"],[\"2014-04-22 00:00:00+02\",97,\"2014-04-22 14:00:08+02\"],[\"2014-04-22 00:00:00+02\",99,\"2014-04-22 13:00:06+02\"],[\"2014-04-23 00:00:00+02\",79,\"2014-04-23 13:30:03+02\"],[\"2014-04-23 00:00:00+02\",83,\"2014-04-23 13:15:04+02\"],[\"2014-04-23 00:00:00+02\",84,\"2014-04-23 14:00:04+02\"],[\"2014-04-23 00:00:00+02\",87,\"2014-04-23 13:00:04+02\"],[\"2014-04-23 00:00:00+02\",87,\"2014-04-23 13:45:04+02\"],[\"2014-04-24 00:00:00+02\",111,\"2014-04-24 13:45:03+02\"],[\"2014-04-24 00:00:00+02\",111,\"2014-04-24 13:30:04+02\"],[\"2014-04-24 00:00:00+02\",112,\"2014-04-24 14:00:06+02\"],[\"2014-04-24 00:00:00+02\",118,\"2014-04-24 14:15:04+02\"],[\"2014-04-24 00:00:00+02\",120,\"2014-04-24 13:15:03+02\"],[\"2014-04-25 00:00:00+02\",125,\"2014-04-25 13:45:03+02\"],[\"2014-04-25 00:00:00+02\",126,\"2014-04-25 14:30:04+02\"],[\"2014-04-25 00:00:00+02\",129,\"2014-04-25 14:45:04+02\"],[\"2014-04-25 00:00:00+02\",130,\"2014-04-25 14:00:04+02\"],[\"2014-04-25 00:00:00+02\",130,\"2014-04-25 13:30:04+02\"],[\"2014-04-26 00:00:00+02\",14,\"2014-04-26 13:30:03+02\"],[\"2014-04-26 00:00:00+02\",18,\"2014-04-26 14:00:05+02\"],[\"2014-04-26 00:00:00+02\",27,\"2014-04-26 13:45:04+02\"],[\"2014-04-26 00:00:00+02\",30,\"2014-04-26 13:15:03+02\"],[\"2014-04-26 00:00:00+02\",33,\"2014-04-26 13:00:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:15:09+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:30:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:45:04+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 01:00:03+02\"],[\"2014-04-27 00:00:00+02\",62,\"2014-04-27 00:00:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:15:03+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:30:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:45:03+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 01:00:05+02\"],[\"2014-04-28 00:00:00+02\",62,\"2014-04-28 00:00:04+02\"],[\"2014-04-29 00:00:00+02\",229,\"2014-04-29 14:30:07+02\"],[\"2014-04-29 00:00:00+02\",230,\"2014-04-29 14:45:04+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 13:15:04+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 13:30:03+02\"],[\"2014-04-29 00:00:00+02\",231,\"2014-04-29 14:15:03+02\"],[\"2014-04-30 00:00:00+02\",234,\"2014-04-30 13:15:03+02\"],[\"2014-04-30 00:00:00+02\",238,\"2014-04-30 13:30:04+02\"],[\"2014-04-30 00:00:00+02\",241,\"2014-04-30 12:45:04+02\"],[\"2014-04-30 00:00:00+02\",242,\"2014-04-30 13:00:06+02\"],[\"2014-04-30 00:00:00+02\",246,\"2014-04-30 13:45:03+02\"],[\"2014-05-01 00:00:00+02\",147,\"2014-05-01 15:15:04+02\"],[\"2014-05-01 00:00:00+02\",149,\"2014-05-01 15:00:05+02\"],[\"2014-05-01 00:00:00+02\",150,\"2014-05-01 15:30:06+02\"],[\"2014-05-01 00:00:00+02\",152,\"2014-05-01 14:15:03+02\"],[\"2014-05-01 00:00:00+02\",156,\"2014-05-01 14:45:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:30:03+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 12:30:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:00:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 12:45:04+02\"],[\"2014-05-02 00:00:00+02\",0,\"2014-05-02 13:45:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:45:03+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 13:00:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:15:04+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 12:30:03+02\"],[\"2014-05-03 00:00:00+02\",0,\"2014-05-03 13:15:03+02\"],[\"2014-05-04 00:00:00+02\",299,\"2014-05-04 13:00:04+02\"],[\"2014-05-04 00:00:00+02\",300,\"2014-05-04 13:15:04+02\"],[\"2014-05-04 00:00:00+02\",302,\"2014-05-04 12:45:04+02\"],[\"2014-05-04 00:00:00+02\",306,\"2014-05-04 12:30:03+02\"],[\"2014-05-04 00:00:00+02\",307,\"2014-05-04 12:15:04+02\"],[\"2014-05-05 00:00:00+02\",222,\"2014-05-05 18:00:04+02\"],[\"2014-05-05 00:00:00+02\",223,\"2014-05-05 17:45:04+02\"],[\"2014-05-05 00:00:00+02\",226,\"2014-05-05 18:15:03+02\"],[\"2014-05-05 00:00:00+02\",226,\"2014-05-05 17:15:04+02\"],[\"2014-05-05 00:00:00+02\",229,\"2014-05-05 17:30:03+02\"],[\"2014-05-06 00:00:00+02\",250,\"2014-05-06 13:00:05+02\"],[\"2014-05-06 00:00:00+02\",252,\"2014-05-06 12:45:04+02\"],[\"2014-05-06 00:00:00+02\",254,\"2014-05-06 12:30:03+02\"],[\"2014-05-06 00:00:00+02\",257,\"2014-05-06 12:15:04+02\"],[\"2014-05-06 00:00:00+02\",258,\"2014-05-06 18:15:04+02\"],[\"2014-05-07 00:00:00+02\",242,\"2014-05-07 12:15:03+02\"],[\"2014-05-07 00:00:00+02\",246,\"2014-05-07 12:30:04+02\"],[\"2014-05-07 00:00:00+02\",247,\"2014-05-07 12:00:03+02\"],[\"2014-05-07 00:00:00+02\",248,\"2014-05-07 11:45:03+02\"],[\"2014-05-07 00:00:00+02\",251,\"2014-05-07 13:00:05+02\"],[\"2014-05-08 00:00:00+02\",211,\"2014-05-08 13:30:04+02\"],[\"2014-05-08 00:00:00+02\",216,\"2014-05-08 13:15:04+02\"],[\"2014-05-08 00:00:00+02\",219,\"2014-05-08 13:45:04+02\"],[\"2014-05-08 00:00:00+02\",220,\"2014-05-08 17:45:03+02\"],[\"2014-05-08 00:00:00+02\",222,\"2014-05-08 12:30:07+02\"],[\"2014-05-09 00:00:00+02\",188,\"2014-05-09 15:00:04+02\"],[\"2014-05-09 00:00:00+02\",193,\"2014-05-09 14:45:03+02\"],[\"2014-05-09 00:00:00+02\",199,\"2014-05-09 15:15:03+02\"],[\"2014-05-09 00:00:00+02\",199,\"2014-05-09 16:30:05+02\"],[\"2014-05-09 00:00:00+02\",200,\"2014-05-09 17:00:04+02\"],[\"2014-05-10 00:00:00+02\",44,\"2014-05-10 13:30:04+02\"],[\"2014-05-10 00:00:00+02\",47,\"2014-05-10 16:15:04+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 14:00:05+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 13:00:04+02\"],[\"2014-05-10 00:00:00+02\",48,\"2014-05-10 13:45:04+02\"],[\"2014-05-11 00:00:00+02\",218,\"2014-05-11 14:30:04+02\"],[\"2014-05-11 00:00:00+02\",222,\"2014-05-11 15:00:04+02\"],[\"2014-05-11 00:00:00+02\",222,\"2014-05-11 14:45:03+02\"],[\"2014-05-11 00:00:00+02\",235,\"2014-05-11 15:15:04+02\"],[\"2014-05-11 00:00:00+02\",237,\"2014-05-11 13:00:03+02\"],[\"2014-05-12 00:00:00+02\",197,\"2014-05-12 13:15:04+02\"],[\"2014-05-12 00:00:00+02\",199,\"2014-05-12 13:30:04+02\"],[\"2014-05-12 00:00:00+02\",203,\"2014-05-12 13:00:04+02\"],[\"2014-05-12 00:00:00+02\",204,\"2014-05-12 13:45:03+02\"],[\"2014-05-12 00:00:00+02\",208,\"2014-05-12 14:00:04+02\"],[\"2014-05-13 00:00:00+02\",245,\"2014-05-13 15:15:04+02\"],[\"2014-05-13 00:00:00+02\",245,\"2014-05-13 18:30:05+02\"],[\"2014-05-13 00:00:00+02\",246,\"2014-05-13 14:00:05+02\"],[\"2014-05-13 00:00:00+02\",248,\"2014-05-13 14:45:05+02\"],[\"2014-05-13 00:00:00+02\",249,\"2014-05-13 15:30:04+02\"],[\"2014-05-14 00:00:00+02\",215,\"2014-05-14 14:00:05+02\"],[\"2014-05-14 00:00:00+02\",218,\"2014-05-14 13:45:04+02\"],[\"2014-05-14 00:00:00+02\",219,\"2014-05-14 13:15:05+02\"],[\"2014-05-14 00:00:00+02\",220,\"2014-05-14 13:30:06+02\"],[\"2014-05-14 00:00:00+02\",221,\"2014-05-14 14:15:03+02\"],[\"2014-05-15 00:00:00+02\",221,\"2014-05-15 18:00:05+02\"],[\"2014-05-15 00:00:00+02\",223,\"2014-05-15 19:00:05+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:30:04+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:15:03+02\"],[\"2014-05-15 00:00:00+02\",224,\"2014-05-15 18:45:04+02\"],[\"2014-05-16 00:00:00+02\",192,\"2014-05-16 19:15:03+02\"],[\"2014-05-16 00:00:00+02\",195,\"2014-05-16 19:00:04+02\"],[\"2014-05-16 00:00:00+02\",196,\"2014-05-16 18:30:05+02\"],[\"2014-05-16 00:00:00+02\",196,\"2014-05-16 19:30:05+02\"],[\"2014-05-16 00:00:00+02\",199,\"2014-05-16 19:45:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:00:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:15:03+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 12:45:03+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 12:30:04+02\"],[\"2014-05-17 00:00:00+02\",0,\"2014-05-17 13:30:05+02\"],[\"2014-05-18 00:00:00+02\",203,\"2014-05-18 16:45:03+02\"],[\"2014-05-18 00:00:00+02\",211,\"2014-05-18 16:30:03+02\"],[\"2014-05-18 00:00:00+02\",211,\"2014-05-18 17:00:06+02\"],[\"2014-05-18 00:00:00+02\",214,\"2014-05-18 16:15:03+02\"],[\"2014-05-18 00:00:00+02\",219,\"2014-05-18 16:00:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:00:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:15:03+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 15:45:04+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 15:30:05+02\"],[\"2014-05-19 00:00:00+02\",263,\"2014-05-19 16:30:09+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 12:30:04+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 13:00:05+02\"],[\"2014-05-20 00:00:00+02\",256,\"2014-05-20 12:45:03+02\"],[\"2014-05-20 00:00:00+02\",257,\"2014-05-20 12:15:04+02\"],[\"2014-05-20 00:00:00+02\",257,\"2014-05-20 13:30:03+02\"],[\"2014-05-21 00:00:00+02\",259,\"2014-05-21 13:15:03+02\"],[\"2014-05-21 00:00:00+02\",260,\"2014-05-21 12:15:03+02\"],[\"2014-05-21 00:00:00+02\",263,\"2014-05-21 13:00:05+02\"],[\"2014-05-21 00:00:00+02\",263,\"2014-05-21 13:30:04+02\"],[\"2014-05-21 00:00:00+02\",264,\"2014-05-21 12:00:05+02\"],[\"2014-05-22 00:00:00+02\",270,\"2014-05-22 14:00:06+02\"],[\"2014-05-22 00:00:00+02\",271,\"2014-05-22 17:45:03+02\"],[\"2014-05-22 00:00:00+02\",274,\"2014-05-22 17:30:05+02\"],[\"2014-05-22 00:00:00+02\",274,\"2014-05-22 13:30:05+02\"],[\"2014-05-22 00:00:00+02\",275,\"2014-05-22 14:15:03+02\"]]}}]},{\"rowId\":\"2d8k9ux\",\"items\":[{\"query\":\"/**********************\\n * Recipe 3: FILTER\\n *********************/\\n \\n-- What do we got so far? Most often the highest occupancy is (not surprisingly) during the afternoon\\n-- In how many measurements were parking places fully occupied?\\n-- We could filter with WHERE but what if want show more aggregations, e.g. total count of measurements\\n SELECT name,\\n count(CASE WHEN free = 0 THEN 1 ELSE NULL END) AS n_full,\\n count(1) AS n_observations\\n FROM parkplatz\\nGROUP BY name;\",\"id\":\"k391km9\",\"error\":null,\"suggestedName\":\"query7\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"name\",\"n_full\",\"n_observations\"],\"values\":[[\"Altmarkt\",\"1076\",\"51147\"],[\"Altmarkt - Galerie\",\"1300\",\"26435\"],[\"An der Frauenkirche\",\"1551\",\"51147\"],[\"Bühlau\",\"20027\",\"28145\"],[\"Centrum-Galerie\",\"1753\",\"51147\"],[\"City Center\",\"7\",\"51147\"],[\"Cossebaude\",\"25\",\"51086\"],[\"Ferdinandplatz\",\"1234\",\"51147\"],[\"Flutrinne\",\"62\",\"6790\"],[\"Frauenkirche Neumarkt\",\"780\",\"51147\"],[\"Hauptstraße\",\"0\",\"51147\"],[\"Haus am Zwinger\",\"3545\",\"51147\"],[\"Kaditz\",\"106\",\"51086\"],[\"Karstadt\",\"1\",\"22298\"],[\"Kongresszentrum\",\"481\",\"51147\"],[\"Langebrück\",\"4\",\"51085\"],[\"Lindengasse\",\"179\",\"51147\"],[\"Parkhaus Mitte\",\"29\",\"51147\"],[\"Pennrich\",\"0\",\"51085\"],[\"Pirnaischer Platz\",\"2290\",\"49963\"],[\"Prohlis\",\"28\",\"51085\"],[\"Reitbahnstraße\",\"4571\",\"49277\"],[\"Sarrasanistraße\",\"2570\",\"50744\"],[\"Schießgasse\",\"7793\",\"44035\"],[\"Semperoper\",\"19\",\"51147\"],[\"Taschenbergpalais\",\"6911\",\"51147\"],[\"Terrassenufer\",\"7722\",\"48155\"],[\"Terrassenufer Bus\",\"2358\",\"42002\"],[\"Theresienstraße\",\"40\",\"51147\"],[\"Wiener Platz/Hbf.\",\"244\",\"51147\"],[\"Wiesentorstraße\",\"750\",\"51147\"],[\"Wöhrl - Florentinum\",\"355\",\"42267\"],[\"World Trade Center\",\"139\",\"51147\"]]}}]},{\"rowId\":\"7wbd2wb\",\"items\":[{\"query\":\"-- maybe you didn't know yet, that you can put CASE inside count\\n-- however, this is a bit verbose and can be shorten with FILTER\\n SELECT name,\\n count(1) FILTER (WHERE free = 0) AS n_full,\\n count(1) AS n_observations\\n FROM parkplatz\\nGROUP BY name;\",\"id\":\"njv2wf5\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"n_voll\",\"n_messungen\"],\"values\":[[\"Altmarkt\",\"1076\",\"51147\"],[\"Altmarkt - Galerie\",\"1300\",\"26435\"],[\"An der Frauenkirche\",\"1551\",\"51147\"],[\"Bühlau\",\"20027\",\"28145\"],[\"Centrum-Galerie\",\"1753\",\"51147\"],[\"City Center\",\"7\",\"51147\"],[\"Cossebaude\",\"25\",\"51086\"],[\"Ferdinandplatz\",\"1234\",\"51147\"],[\"Flutrinne\",\"62\",\"6790\"],[\"Frauenkirche Neumarkt\",\"780\",\"51147\"],[\"Hauptstraße\",\"0\",\"51147\"],[\"Haus am Zwinger\",\"3545\",\"51147\"],[\"Kaditz\",\"106\",\"51086\"],[\"Karstadt\",\"1\",\"22298\"],[\"Kongresszentrum\",\"481\",\"51147\"],[\"Langebrück\",\"4\",\"51085\"],[\"Lindengasse\",\"179\",\"51147\"],[\"Parkhaus Mitte\",\"29\",\"51147\"],[\"Pennrich\",\"0\",\"51085\"],[\"Pirnaischer Platz\",\"2290\",\"49963\"],[\"Prohlis\",\"28\",\"51085\"],[\"Reitbahnstraße\",\"4571\",\"49277\"],[\"Sarrasanistraße\",\"2570\",\"50744\"],[\"Schießgasse\",\"7793\",\"44035\"],[\"Semperoper\",\"19\",\"51147\"],[\"Taschenbergpalais\",\"6911\",\"51147\"],[\"Terrassenufer\",\"7722\",\"48155\"],[\"Terrassenufer Bus\",\"2358\",\"42002\"],[\"Theresienstraße\",\"40\",\"51147\"],[\"Wiener Platz/Hbf.\",\"244\",\"51147\"],[\"Wiesentorstraße\",\"750\",\"51147\"],[\"Wöhrl - Florentinum\",\"355\",\"42267\"],[\"World Trade Center\",\"139\",\"51147\"]]}}]},{\"rowId\":\"xhrqirl\",\"items\":[{\"query\":\"-- how does the ration change over the year\\n SELECT extract(month from time)::int AS month,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\nGROUP BY month\\nORDER BY month;\",\"id\":\"ipfmno7\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"month\",\"occ_ratio\"],\"values\":[[1,4],[2,4],[3,5],[4,4],[5,6],[6,3],[7,3],[8,5],[9,2],[10,3],[11,3],[12,8]]}}]},{\"rowId\":\"dcm4b3b\",\"items\":[{\"query\":\"/**************************\\n * Recipe 4: GROUPING SETS\\n **************************/\\n \\n-- can we combine the results from the previous queires?\\n SELECT name, extract(month FROM time)::int AS month,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\nGROUP BY 1, 2 -- we can also use numbers which reference the positions in the SELECT clause\\nORDER BY 1, 2;\",\"id\":\"xuwf3z9\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"monat\",\"belegt_in_prozent\"],\"values\":[[\"Altmarkt\",1,0],[\"Altmarkt\",2,1],[\"Altmarkt\",3,2],[\"Altmarkt\",4,0],[\"Altmarkt\",5,3],[\"Altmarkt\",6,0],[\"Altmarkt\",7,0],[\"Altmarkt\",8,1],[\"Altmarkt\",9,1],[\"Altmarkt\",10,1],[\"Altmarkt\",11,4],[\"Altmarkt\",12,12],[\"Altmarkt - Galerie\",1,9],[\"Altmarkt - Galerie\",2,3],[\"Altmarkt - Galerie\",3,1],[\"Altmarkt - Galerie\",4,1],[\"Altmarkt - Galerie\",5,4],[\"Altmarkt - Galerie\",6,1],[\"Altmarkt - Galerie\",7,1],[\"Altmarkt - Galerie\",8,3],[\"Altmarkt - Galerie\",9,0],[\"Altmarkt - Galerie\",10,0],[\"Altmarkt - Galerie\",11,9],[\"Altmarkt - Galerie\",12,44],[\"An der Frauenkirche\",1,1],[\"An der Frauenkirche\",2,1],[\"An der Frauenkirche\",3,1],[\"An der Frauenkirche\",4,2],[\"An der Frauenkirche\",5,4],[\"An der Frauenkirche\",6,1],[\"An der Frauenkirche\",7,1],[\"An der Frauenkirche\",8,11],[\"An der Frauenkirche\",9,1],[\"An der Frauenkirche\",10,2],[\"An der Frauenkirche\",11,3],[\"An der Frauenkirche\",12,12],[\"Bühlau\",1,83],[\"Bühlau\",2,83],[\"Bühlau\",3,92],[\"Bühlau\",4,64],[\"Bühlau\",5,67],[\"Bühlau\",6,54],[\"Centrum-Galerie\",1,4],[\"Centrum-Galerie\",2,2],[\"Centrum-Galerie\",3,2],[\"Centrum-Galerie\",4,1],[\"Centrum-Galerie\",5,3],[\"Centrum-Galerie\",6,1],[\"Centrum-Galerie\",7,2],[\"Centrum-Galerie\",8,8],[\"Centrum-Galerie\",9,1],[\"Centrum-Galerie\",10,4],[\"Centrum-Galerie\",11,5],[\"Centrum-Galerie\",12,13],[\"City Center\",1,0],[\"City Center\",2,0],[\"City Center\",3,0],[\"City Center\",4,0],[\"City Center\",5,0],[\"City Center\",6,0],[\"City Center\",7,0],[\"City Center\",8,0],[\"City Center\",9,0],[\"City Center\",10,0],[\"City Center\",11,0],[\"City Center\",12,0],[\"Cossebaude\",1,0],[\"Cossebaude\",2,0],[\"Cossebaude\",3,0],[\"Cossebaude\",4,0],[\"Cossebaude\",5,0],[\"Cossebaude\",6,0],[\"Cossebaude\",7,0],[\"Cossebaude\",8,0],[\"Cossebaude\",9,0],[\"Cossebaude\",10,1],[\"Cossebaude\",11,0],[\"Cossebaude\",12,0],[\"Ferdinandplatz\",1,2],[\"Ferdinandplatz\",2,1],[\"Ferdinandplatz\",3,2],[\"Ferdinandplatz\",4,3],[\"Ferdinandplatz\",5,3],[\"Ferdinandplatz\",6,0],[\"Ferdinandplatz\",7,1],[\"Ferdinandplatz\",8,1],[\"Ferdinandplatz\",9,1],[\"Ferdinandplatz\",10,2],[\"Ferdinandplatz\",11,3],[\"Ferdinandplatz\",12,11],[\"Flutrinne\",1,1],[\"Flutrinne\",2,0],[\"Flutrinne\",3,5],[\"Flutrinne\",4,1],[\"Flutrinne\",5,0],[\"Flutrinne\",6,0],[\"Flutrinne\",7,0],[\"Flutrinne\",8,0],[\"Flutrinne\",9,0],[\"Flutrinne\",10,6],[\"Flutrinne\",11,0],[\"Flutrinne\",12,0],[\"Frauenkirche Neumarkt\",1,0],[\"Frauenkirche Neumarkt\",2,0],[\"Frauenkirche Neumarkt\",3,0],[\"Frauenkirche Neumarkt\",4,0],[\"Frauenkirche Neumarkt\",5,1],[\"Frauenkirche Neumarkt\",6,0],[\"Frauenkirche Neumarkt\",7,9],[\"Frauenkirche Neumarkt\",8,5],[\"Frauenkirche Neumarkt\",9,0],[\"Frauenkirche Neumarkt\",10,0],[\"Frauenkirche Neumarkt\",11,1],[\"Frauenkirche Neumarkt\",12,4],[\"Hauptstraße\",1,0],[\"Hauptstraße\",2,0],[\"Hauptstraße\",3,0],[\"Hauptstraße\",4,0],[\"Hauptstraße\",5,0],[\"Hauptstraße\",6,0],[\"Hauptstraße\",7,0],[\"Hauptstraße\",8,0],[\"Hauptstraße\",9,0],[\"Hauptstraße\",10,0],[\"Hauptstraße\",11,0],[\"Hauptstraße\",12,0],[\"Haus am Zwinger\",1,0],[\"Haus am Zwinger\",2,7],[\"Haus am Zwinger\",3,2],[\"Haus am Zwinger\",4,2],[\"Haus am Zwinger\",5,17],[\"Haus am Zwinger\",6,9],[\"Haus am Zwinger\",7,0],[\"Haus am Zwinger\",8,0],[\"Haus am Zwinger\",9,0],[\"Haus am Zwinger\",10,8],[\"Haus am Zwinger\",11,7],[\"Haus am Zwinger\",12,4],[\"Kaditz\",1,0],[\"Kaditz\",2,0],[\"Kaditz\",3,0],[\"Kaditz\",4,0],[\"Kaditz\",5,1],[\"Kaditz\",6,0],[\"Kaditz\",7,0],[\"Kaditz\",8,0],[\"Kaditz\",9,0],[\"Kaditz\",10,0],[\"Kaditz\",11,0],[\"Kaditz\",12,0],[\"Karstadt\",1,0],[\"Karstadt\",2,0],[\"Karstadt\",3,0],[\"Karstadt\",4,0],[\"Karstadt\",5,0],[\"Karstadt\",6,0],[\"Karstadt\",7,0],[\"Karstadt\",8,0],[\"Karstadt\",9,0],[\"Karstadt\",10,0],[\"Karstadt\",11,0],[\"Karstadt\",12,0],[\"Kongresszentrum\",1,1],[\"Kongresszentrum\",2,0],[\"Kongresszentrum\",3,2],[\"Kongresszentrum\",4,1],[\"Kongresszentrum\",5,1],[\"Kongresszentrum\",6,2],[\"Kongresszentrum\",7,0],[\"Kongresszentrum\",8,0],[\"Kongresszentrum\",9,0],[\"Kongresszentrum\",10,0],[\"Kongresszentrum\",11,4],[\"Kongresszentrum\",12,1],[\"Langebrück\",1,0],[\"Langebrück\",2,0],[\"Langebrück\",3,0],[\"Langebrück\",4,0],[\"Langebrück\",5,0],[\"Langebrück\",6,0],[\"Langebrück\",7,0],[\"Langebrück\",8,0],[\"Langebrück\",9,0],[\"Langebrück\",10,0],[\"Langebrück\",11,0],[\"Langebrück\",12,0],[\"Lindengasse\",1,0],[\"Lindengasse\",2,0],[\"Lindengasse\",3,1],[\"Lindengasse\",4,0],[\"Lindengasse\",5,0],[\"Lindengasse\",6,0],[\"Lindengasse\",7,0],[\"Lindengasse\",8,0],[\"Lindengasse\",9,0],[\"Lindengasse\",10,0],[\"Lindengasse\",11,1],[\"Lindengasse\",12,1],[\"Parkhaus Mitte\",1,0],[\"Parkhaus Mitte\",2,0]]}}]},{\"rowId\":\"r06m1fq\",\"items\":[{\"query\":\"-- not exactly the same. We could use UNION ALL to combine the two queries\\n-- the category column in the second query has to be converted to text and needs some extra treatment\\nSELECT * FROM (\\n SELECT name AS category,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\n GROUP BY 1\\n ORDER BY 1\\n ) p\\nUNION ALL (\\n SELECT lpad(extract(month from time)::text, 2, '0') AS category,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\n GROUP BY 1\\n ORDER BY 1\\n);\",\"id\":\"s5mmn4d\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"category\",\"occ_ratio\"],\"values\":[[\"Altmarkt\",2],[\"Altmarkt - Galerie\",5],[\"An der Frauenkirche\",3],[\"Bühlau\",71],[\"Centrum-Galerie\",3],[\"City Center\",0],[\"Cossebaude\",0],[\"Ferdinandplatz\",2],[\"Flutrinne\",1],[\"Frauenkirche Neumarkt\",2],[\"Hauptstraße\",0],[\"Haus am Zwinger\",7],[\"Kaditz\",0],[\"Karstadt\",0],[\"Kongresszentrum\",1],[\"Langebrück\",0],[\"Lindengasse\",0],[\"Parkhaus Mitte\",0],[\"Pennrich\",0],[\"Pirnaischer Platz\",5],[\"Prohlis\",0],[\"Reitbahnstraße\",9],[\"Sarrasanistraße\",5],[\"Schießgasse\",18],[\"Semperoper\",0],[\"Taschenbergpalais\",14],[\"Terrassenufer\",16],[\"Terrassenufer Bus\",6],[\"Theresienstraße\",0],[\"Wiener Platz/Hbf.\",0],[\"Wiesentorstraße\",1],[\"Wöhrl - Florentinum\",1],[\"World Trade Center\",0],[\"01\",4],[\"02\",4],[\"03\",5],[\"04\",4],[\"05\",6],[\"06\",3],[\"07\",3],[\"08\",5],[\"09\",2],[\"10\",3],[\"11\",3],[\"12\",8]]}}]},{\"rowId\":\"nrno3sb\",\"items\":[{\"query\":\"-- or use GROUPING SETS right away\\n SELECT name, extract(month from time)::int AS month,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\nGROUP BY GROUPING SETS (name, extract(month from time), ()) -- empty brackets will provide total ratio\\nORDER BY name, month, occ_ratio DESC;\",\"id\":\"ftcesvo\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"month\",\"occ_ratio\"],\"values\":[[\"Altmarkt\",null,2],[\"Altmarkt - Galerie\",null,5],[\"An der Frauenkirche\",null,3],[\"Bühlau\",null,71],[\"Centrum-Galerie\",null,3],[\"City Center\",null,0],[\"Cossebaude\",null,0],[\"Ferdinandplatz\",null,2],[\"Flutrinne\",null,1],[\"Frauenkirche Neumarkt\",null,2],[\"Hauptstraße\",null,0],[\"Haus am Zwinger\",null,7],[\"Kaditz\",null,0],[\"Karstadt\",null,0],[\"Kongresszentrum\",null,1],[\"Langebrück\",null,0],[\"Lindengasse\",null,0],[\"Parkhaus Mitte\",null,0],[\"Pennrich\",null,0],[\"Pirnaischer Platz\",null,5],[\"Prohlis\",null,0],[\"Reitbahnstraße\",null,9],[\"Sarrasanistraße\",null,5],[\"Schießgasse\",null,18],[\"Semperoper\",null,0],[\"Taschenbergpalais\",null,14],[\"Terrassenufer\",null,16],[\"Terrassenufer Bus\",null,6],[\"Theresienstraße\",null,0],[\"Wiener Platz/Hbf.\",null,0],[\"Wiesentorstraße\",null,1],[\"Wöhrl - Florentinum\",null,1],[\"World Trade Center\",null,0],[null,1,4],[null,2,4],[null,3,5],[null,4,4],[null,5,6],[null,6,3],[null,7,3],[null,8,5],[null,9,2],[null,10,3],[null,11,3],[null,12,8],[null,null,4]]}}]},{\"rowId\":\"hvn9q1r\",\"items\":[{\"query\":\"-- if you are interested in combinations of month and parking places use ROLLUP\\n-- ROLLUP groups hierarchically from left to right in the GROUP BY block, so not all combinations\\n-- note, for each parking place you will get the total ratio\\n SELECT name, extract(month from time)::int AS month,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS occ_ratio\\n FROM parkplatz\\nGROUP BY ROLLUP (name, extract(month from time))\\nORDER BY 1, 2, 3 DESC;\",\"id\":\"t0x7qjx\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"month\",\"occ_ratio\"],\"values\":[[\"Altmarkt\",1,0],[\"Altmarkt\",2,1],[\"Altmarkt\",3,2],[\"Altmarkt\",4,0],[\"Altmarkt\",5,3],[\"Altmarkt\",6,0],[\"Altmarkt\",7,0],[\"Altmarkt\",8,1],[\"Altmarkt\",9,1],[\"Altmarkt\",10,1],[\"Altmarkt\",11,4],[\"Altmarkt\",12,12],[\"Altmarkt\",null,2],[\"Altmarkt - Galerie\",1,9],[\"Altmarkt - Galerie\",2,3],[\"Altmarkt - Galerie\",3,1],[\"Altmarkt - Galerie\",4,1],[\"Altmarkt - Galerie\",5,4],[\"Altmarkt - Galerie\",6,1],[\"Altmarkt - Galerie\",7,1],[\"Altmarkt - Galerie\",8,3],[\"Altmarkt - Galerie\",9,0],[\"Altmarkt - Galerie\",10,0],[\"Altmarkt - Galerie\",11,9],[\"Altmarkt - Galerie\",12,44],[\"Altmarkt - Galerie\",null,5],[\"An der Frauenkirche\",1,1],[\"An der Frauenkirche\",2,1],[\"An der Frauenkirche\",3,1],[\"An der Frauenkirche\",4,2],[\"An der Frauenkirche\",5,4],[\"An der Frauenkirche\",6,1],[\"An der Frauenkirche\",7,1],[\"An der Frauenkirche\",8,11],[\"An der Frauenkirche\",9,1],[\"An der Frauenkirche\",10,2],[\"An der Frauenkirche\",11,3],[\"An der Frauenkirche\",12,12],[\"An der Frauenkirche\",null,3],[\"Bühlau\",1,83],[\"Bühlau\",2,83],[\"Bühlau\",3,92],[\"Bühlau\",4,64],[\"Bühlau\",5,67],[\"Bühlau\",6,54],[\"Bühlau\",null,71],[\"Centrum-Galerie\",1,4],[\"Centrum-Galerie\",2,2],[\"Centrum-Galerie\",3,2],[\"Centrum-Galerie\",4,1],[\"Centrum-Galerie\",5,3],[\"Centrum-Galerie\",6,1],[\"Centrum-Galerie\",7,2],[\"Centrum-Galerie\",8,8],[\"Centrum-Galerie\",9,1],[\"Centrum-Galerie\",10,4],[\"Centrum-Galerie\",11,5],[\"Centrum-Galerie\",12,13],[\"Centrum-Galerie\",null,3],[\"City Center\",1,0],[\"City Center\",2,0],[\"City Center\",3,0],[\"City Center\",4,0],[\"City Center\",5,0],[\"City Center\",6,0],[\"City Center\",7,0],[\"City Center\",8,0],[\"City Center\",9,0],[\"City Center\",10,0],[\"City Center\",11,0],[\"City Center\",12,0],[\"City Center\",null,0],[\"Cossebaude\",1,0],[\"Cossebaude\",2,0],[\"Cossebaude\",3,0],[\"Cossebaude\",4,0],[\"Cossebaude\",5,0],[\"Cossebaude\",6,0],[\"Cossebaude\",7,0],[\"Cossebaude\",8,0],[\"Cossebaude\",9,0],[\"Cossebaude\",10,1],[\"Cossebaude\",11,0],[\"Cossebaude\",12,0],[\"Cossebaude\",null,0],[\"Ferdinandplatz\",1,2],[\"Ferdinandplatz\",2,1],[\"Ferdinandplatz\",3,2],[\"Ferdinandplatz\",4,3],[\"Ferdinandplatz\",5,3],[\"Ferdinandplatz\",6,0],[\"Ferdinandplatz\",7,1],[\"Ferdinandplatz\",8,1],[\"Ferdinandplatz\",9,1],[\"Ferdinandplatz\",10,2],[\"Ferdinandplatz\",11,3],[\"Ferdinandplatz\",12,11],[\"Ferdinandplatz\",null,2],[\"Flutrinne\",1,1],[\"Flutrinne\",2,0],[\"Flutrinne\",3,5],[\"Flutrinne\",4,1],[\"Flutrinne\",5,0],[\"Flutrinne\",6,0],[\"Flutrinne\",7,0],[\"Flutrinne\",8,0],[\"Flutrinne\",9,0],[\"Flutrinne\",10,6],[\"Flutrinne\",11,0],[\"Flutrinne\",12,0],[\"Flutrinne\",null,1],[\"Frauenkirche Neumarkt\",1,0],[\"Frauenkirche Neumarkt\",2,0],[\"Frauenkirche Neumarkt\",3,0],[\"Frauenkirche Neumarkt\",4,0],[\"Frauenkirche Neumarkt\",5,1],[\"Frauenkirche Neumarkt\",6,0],[\"Frauenkirche Neumarkt\",7,9],[\"Frauenkirche Neumarkt\",8,5],[\"Frauenkirche Neumarkt\",9,0],[\"Frauenkirche Neumarkt\",10,0],[\"Frauenkirche Neumarkt\",11,1],[\"Frauenkirche Neumarkt\",12,4],[\"Frauenkirche Neumarkt\",null,2],[\"Hauptstraße\",1,0],[\"Hauptstraße\",2,0],[\"Hauptstraße\",3,0],[\"Hauptstraße\",4,0],[\"Hauptstraße\",5,0],[\"Hauptstraße\",6,0],[\"Hauptstraße\",7,0],[\"Hauptstraße\",8,0],[\"Hauptstraße\",9,0],[\"Hauptstraße\",10,0],[\"Hauptstraße\",11,0],[\"Hauptstraße\",12,0],[\"Hauptstraße\",null,0],[\"Haus am Zwinger\",1,0],[\"Haus am Zwinger\",2,7],[\"Haus am Zwinger\",3,2],[\"Haus am Zwinger\",4,2],[\"Haus am Zwinger\",5,17],[\"Haus am Zwinger\",6,9],[\"Haus am Zwinger\",7,0],[\"Haus am Zwinger\",8,0],[\"Haus am Zwinger\",9,0],[\"Haus am Zwinger\",10,8],[\"Haus am Zwinger\",11,7],[\"Haus am Zwinger\",12,4],[\"Haus am Zwinger\",null,7],[\"Kaditz\",1,0],[\"Kaditz\",2,0],[\"Kaditz\",3,0],[\"Kaditz\",4,0],[\"Kaditz\",5,1],[\"Kaditz\",6,0],[\"Kaditz\",7,0],[\"Kaditz\",8,0],[\"Kaditz\",9,0],[\"Kaditz\",10,0],[\"Kaditz\",11,0],[\"Kaditz\",12,0],[\"Kaditz\",null,0],[\"Karstadt\",1,0],[\"Karstadt\",2,0],[\"Karstadt\",3,0],[\"Karstadt\",4,0],[\"Karstadt\",5,0],[\"Karstadt\",6,0],[\"Karstadt\",7,0],[\"Karstadt\",8,0],[\"Karstadt\",9,0],[\"Karstadt\",10,0],[\"Karstadt\",11,0],[\"Karstadt\",12,0],[\"Karstadt\",null,0],[\"Kongresszentrum\",1,1],[\"Kongresszentrum\",2,0],[\"Kongresszentrum\",3,2],[\"Kongresszentrum\",4,1],[\"Kongresszentrum\",5,1],[\"Kongresszentrum\",6,2],[\"Kongresszentrum\",7,0],[\"Kongresszentrum\",8,0],[\"Kongresszentrum\",9,0],[\"Kongresszentrum\",10,0],[\"Kongresszentrum\",11,4],[\"Kongresszentrum\",12,1],[\"Kongresszentrum\",null,1],[\"Langebrück\",1,0],[\"Langebrück\",2,0],[\"Langebrück\",3,0],[\"Langebrück\",4,0],[\"Langebrück\",5,0],[\"Langebrück\",6,0],[\"Langebrück\",7,0],[\"Langebrück\",8,0],[\"Langebrück\",9,0],[\"Langebrück\",10,0],[\"Langebrück\",11,0]]}}]},{\"rowId\":\"4frj9mp\",\"items\":[{\"query\":\"-- to add also the total ratio for each month use CUBE. This will combine every column from the GROUP BY\\n SELECT name, extract(month from time)::int AS monat,\\n (count(1) FILTER (WHERE free = 0) / count(1)::numeric * 100)::int AS belegt_in_prozent\\n FROM parkplatz\\nGROUP BY CUBE (name, extract(month from time))\\nORDER BY name, monat, belegt_in_prozent DESC;\",\"id\":\"ga0uowa\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"monat\",\"belegt_in_prozent\"],\"values\":[[\"Altmarkt\",1,0],[\"Altmarkt\",2,1],[\"Altmarkt\",3,2],[\"Altmarkt\",4,0],[\"Altmarkt\",5,3],[\"Altmarkt\",6,0],[\"Altmarkt\",7,0],[\"Altmarkt\",8,1],[\"Altmarkt\",9,1],[\"Altmarkt\",10,1],[\"Altmarkt\",11,4],[\"Altmarkt\",12,12],[\"Altmarkt\",null,2],[\"Altmarkt - Galerie\",1,9],[\"Altmarkt - Galerie\",2,3],[\"Altmarkt - Galerie\",3,1],[\"Altmarkt - Galerie\",4,1],[\"Altmarkt - Galerie\",5,4],[\"Altmarkt - Galerie\",6,1],[\"Altmarkt - Galerie\",7,1],[\"Altmarkt - Galerie\",8,3],[\"Altmarkt - Galerie\",9,0],[\"Altmarkt - Galerie\",10,0],[\"Altmarkt - Galerie\",11,9],[\"Altmarkt - Galerie\",12,44],[\"Altmarkt - Galerie\",null,5],[\"An der Frauenkirche\",1,1],[\"An der Frauenkirche\",2,1],[\"An der Frauenkirche\",3,1],[\"An der Frauenkirche\",4,2],[\"An der Frauenkirche\",5,4],[\"An der Frauenkirche\",6,1],[\"An der Frauenkirche\",7,1],[\"An der Frauenkirche\",8,11],[\"An der Frauenkirche\",9,1],[\"An der Frauenkirche\",10,2],[\"An der Frauenkirche\",11,3],[\"An der Frauenkirche\",12,12],[\"An der Frauenkirche\",null,3],[\"Bühlau\",1,83],[\"Bühlau\",2,83],[\"Bühlau\",3,92],[\"Bühlau\",4,64],[\"Bühlau\",5,67],[\"Bühlau\",6,54],[\"Bühlau\",null,71],[\"Centrum-Galerie\",1,4],[\"Centrum-Galerie\",2,2],[\"Centrum-Galerie\",3,2],[\"Centrum-Galerie\",4,1],[\"Centrum-Galerie\",5,3],[\"Centrum-Galerie\",6,1],[\"Centrum-Galerie\",7,2],[\"Centrum-Galerie\",8,8],[\"Centrum-Galerie\",9,1],[\"Centrum-Galerie\",10,4],[\"Centrum-Galerie\",11,5],[\"Centrum-Galerie\",12,13],[\"Centrum-Galerie\",null,3],[\"City Center\",1,0],[\"City Center\",2,0],[\"City Center\",3,0],[\"City Center\",4,0],[\"City Center\",5,0],[\"City Center\",6,0],[\"City Center\",7,0],[\"City Center\",8,0],[\"City Center\",9,0],[\"City Center\",10,0],[\"City Center\",11,0],[\"City Center\",12,0],[\"City Center\",null,0],[\"Cossebaude\",1,0],[\"Cossebaude\",2,0],[\"Cossebaude\",3,0],[\"Cossebaude\",4,0],[\"Cossebaude\",5,0],[\"Cossebaude\",6,0],[\"Cossebaude\",7,0],[\"Cossebaude\",8,0],[\"Cossebaude\",9,0],[\"Cossebaude\",10,1],[\"Cossebaude\",11,0],[\"Cossebaude\",12,0],[\"Cossebaude\",null,0],[\"Ferdinandplatz\",1,2],[\"Ferdinandplatz\",2,1],[\"Ferdinandplatz\",3,2],[\"Ferdinandplatz\",4,3],[\"Ferdinandplatz\",5,3],[\"Ferdinandplatz\",6,0],[\"Ferdinandplatz\",7,1],[\"Ferdinandplatz\",8,1],[\"Ferdinandplatz\",9,1],[\"Ferdinandplatz\",10,2],[\"Ferdinandplatz\",11,3],[\"Ferdinandplatz\",12,11],[\"Ferdinandplatz\",null,2],[\"Flutrinne\",1,1],[\"Flutrinne\",2,0],[\"Flutrinne\",3,5],[\"Flutrinne\",4,1],[\"Flutrinne\",5,0],[\"Flutrinne\",6,0],[\"Flutrinne\",7,0],[\"Flutrinne\",8,0],[\"Flutrinne\",9,0],[\"Flutrinne\",10,6],[\"Flutrinne\",11,0],[\"Flutrinne\",12,0],[\"Flutrinne\",null,1],[\"Frauenkirche Neumarkt\",1,0],[\"Frauenkirche Neumarkt\",2,0],[\"Frauenkirche Neumarkt\",3,0],[\"Frauenkirche Neumarkt\",4,0],[\"Frauenkirche Neumarkt\",5,1],[\"Frauenkirche Neumarkt\",6,0],[\"Frauenkirche Neumarkt\",7,9],[\"Frauenkirche Neumarkt\",8,5],[\"Frauenkirche Neumarkt\",9,0],[\"Frauenkirche Neumarkt\",10,0],[\"Frauenkirche Neumarkt\",11,1],[\"Frauenkirche Neumarkt\",12,4],[\"Frauenkirche Neumarkt\",null,2],[\"Hauptstraße\",1,0],[\"Hauptstraße\",2,0],[\"Hauptstraße\",3,0],[\"Hauptstraße\",4,0],[\"Hauptstraße\",5,0],[\"Hauptstraße\",6,0],[\"Hauptstraße\",7,0],[\"Hauptstraße\",8,0],[\"Hauptstraße\",9,0],[\"Hauptstraße\",10,0],[\"Hauptstraße\",11,0],[\"Hauptstraße\",12,0],[\"Hauptstraße\",null,0],[\"Haus am Zwinger\",1,0],[\"Haus am Zwinger\",2,7],[\"Haus am Zwinger\",3,2],[\"Haus am Zwinger\",4,2],[\"Haus am Zwinger\",5,17],[\"Haus am Zwinger\",6,9],[\"Haus am Zwinger\",7,0],[\"Haus am Zwinger\",8,0],[\"Haus am Zwinger\",9,0],[\"Haus am Zwinger\",10,8],[\"Haus am Zwinger\",11,7],[\"Haus am Zwinger\",12,4],[\"Haus am Zwinger\",null,7],[\"Kaditz\",1,0],[\"Kaditz\",2,0],[\"Kaditz\",3,0],[\"Kaditz\",4,0],[\"Kaditz\",5,1],[\"Kaditz\",6,0],[\"Kaditz\",7,0],[\"Kaditz\",8,0],[\"Kaditz\",9,0],[\"Kaditz\",10,0],[\"Kaditz\",11,0],[\"Kaditz\",12,0],[\"Kaditz\",null,0],[\"Karstadt\",1,0],[\"Karstadt\",2,0],[\"Karstadt\",3,0],[\"Karstadt\",4,0],[\"Karstadt\",5,0],[\"Karstadt\",6,0],[\"Karstadt\",7,0],[\"Karstadt\",8,0],[\"Karstadt\",9,0],[\"Karstadt\",10,0],[\"Karstadt\",11,0],[\"Karstadt\",12,0],[\"Karstadt\",null,0],[\"Kongresszentrum\",1,1],[\"Kongresszentrum\",2,0],[\"Kongresszentrum\",3,2],[\"Kongresszentrum\",4,1],[\"Kongresszentrum\",5,1],[\"Kongresszentrum\",6,2],[\"Kongresszentrum\",7,0],[\"Kongresszentrum\",8,0],[\"Kongresszentrum\",9,0],[\"Kongresszentrum\",10,0],[\"Kongresszentrum\",11,4],[\"Kongresszentrum\",12,1],[\"Kongresszentrum\",null,1],[\"Langebrück\",1,0],[\"Langebrück\",2,0],[\"Langebrück\",3,0],[\"Langebrück\",4,0],[\"Langebrück\",5,0],[\"Langebrück\",6,0],[\"Langebrück\",7,0],[\"Langebrück\",8,0],[\"Langebrück\",9,0],[\"Langebrück\",10,0],[\"Langebrück\",11,0]]}}]},{\"rowId\":\"a02462t\",\"items\":[{\"query\":\"/********************************\\n * Recipe 5 - BOOL_OR & BOOL_AND\\n ********************************/\\n\\n-- Has there been any time all parking places in the old city center of Dresden were fully occupied?\\n-- bool_or = at least 1 is fully occupied, bool_and = all are occupied\\nSELECT time, partly_occ, full_occ\\n FROM (\\n SELECT time, bool_or(free = 0) AS partly_occ, bool_and(free = 0) AS full_occ\\n FROM parkplatz\\n WHERE name IN (\\n 'Altmarkt', 'Altmarkt - Galerie', 'An der Frauenkirche', 'Frauenkirche Neumarkt',\\n 'Haus am Zwinger', 'Pirnaischer Platz', 'Schießgasse', 'Taschenbergpalais', 'Terrassenufer'\\n )\\n GROUP BY time\\n ) b\\nWHERE partly_occ OR full_occ\\nORDER BY full_occ DESC, time\\nLIMIT 100;\\n\\n-- turns out, yes. February 5th seems to quite busy in 2014 and 2015.\",\"id\":\"bf9agfx\",\"error\":null,\"suggestedName\":\"query8\",\"loading\":false,\"result\":{\"nameable\":true,\"columns\":[\"time\",\"partly_occ\",\"full_occ\"],\"values\":[[\"2014-05-02 12:45:04+02\",true,true],[\"2014-05-02 13:00:04+02\",true,true],[\"2014-11-29 15:15:04+01\",true,true],[\"2014-11-29 15:30:07+01\",true,true],[\"2014-11-29 15:45:04+01\",true,true],[\"2014-11-29 16:30:05+01\",true,true],[\"2014-11-29 16:45:05+01\",true,true],[\"2014-11-29 17:00:12+01\",true,true],[\"2014-11-29 17:15:05+01\",true,true],[\"2014-12-06 15:15:06+01\",true,true],[\"2014-12-06 15:45:05+01\",true,true],[\"2014-12-06 17:00:09+01\",true,true],[\"2014-12-13 14:45:05+01\",true,true],[\"2014-12-13 15:00:05+01\",true,true],[\"2014-12-13 15:15:05+01\",true,true],[\"2014-12-13 15:30:06+01\",true,true],[\"2014-12-13 15:45:07+01\",true,true],[\"2014-12-13 16:15:04+01\",true,true],[\"2014-12-20 13:45:05+01\",true,true],[\"2014-12-20 14:00:07+01\",true,true],[\"2014-12-20 14:15:04+01\",true,true],[\"2014-12-20 14:30:05+01\",true,true],[\"2014-12-20 14:45:05+01\",true,true],[\"2014-12-20 15:00:09+01\",true,true],[\"2014-12-20 15:15:05+01\",true,true],[\"2014-12-20 16:00:06+01\",true,true],[\"2014-12-20 16:15:05+01\",true,true],[\"2014-12-20 16:45:06+01\",true,true],[\"2014-12-20 17:30:06+01\",true,true],[\"2014-12-20 17:45:05+01\",true,true],[\"2014-12-21 15:45:05+01\",true,true],[\"2014-12-21 16:00:05+01\",true,true],[\"2014-12-21 16:15:04+01\",true,true],[\"2014-12-21 16:45:06+01\",true,true],[\"2014-12-22 13:15:05+01\",true,true],[\"2015-05-02 13:00:05+02\",true,true],[\"2015-05-02 13:10:07+02\",true,true],[\"2015-05-02 13:25:06+02\",true,true],[\"2015-05-02 13:30:05+02\",true,true],[\"2015-05-02 13:35:04+02\",true,true],[\"2015-05-02 13:40:07+02\",true,true],[\"2015-05-02 13:50:06+02\",true,true],[\"2015-05-02 14:00:05+02\",true,true],[\"2015-05-02 14:05:05+02\",true,true],[\"2014-04-13 10:15:04+02\",true,false],[\"2014-04-13 10:30:05+02\",true,false],[\"2014-04-13 10:33:53+02\",true,false],[\"2014-04-13 10:45:04+02\",true,false],[\"2014-04-13 11:00:04+02\",true,false],[\"2014-04-13 11:15:04+02\",true,false],[\"2014-04-13 11:30:05+02\",true,false],[\"2014-04-13 11:45:04+02\",true,false],[\"2014-04-13 12:00:06+02\",true,false],[\"2014-04-13 12:15:04+02\",true,false],[\"2014-04-13 12:30:04+02\",true,false],[\"2014-04-13 12:45:04+02\",true,false],[\"2014-04-13 13:00:06+02\",true,false],[\"2014-04-13 13:15:04+02\",true,false],[\"2014-04-13 13:30:05+02\",true,false],[\"2014-04-13 13:45:04+02\",true,false],[\"2014-04-13 14:00:08+02\",true,false],[\"2014-04-13 14:15:03+02\",true,false],[\"2014-04-13 14:30:04+02\",true,false],[\"2014-04-13 14:45:06+02\",true,false],[\"2014-04-13 15:00:05+02\",true,false],[\"2014-04-13 15:15:04+02\",true,false],[\"2014-04-13 15:30:04+02\",true,false],[\"2014-04-13 15:45:03+02\",true,false],[\"2014-04-13 16:00:05+02\",true,false],[\"2014-04-13 16:15:04+02\",true,false],[\"2014-04-13 16:30:04+02\",true,false],[\"2014-04-13 16:45:08+02\",true,false],[\"2014-04-13 19:00:09+02\",true,false],[\"2014-04-13 19:15:04+02\",true,false],[\"2014-04-13 19:30:05+02\",true,false],[\"2014-04-13 19:45:06+02\",true,false],[\"2014-04-13 20:00:04+02\",true,false],[\"2014-04-13 20:15:03+02\",true,false],[\"2014-04-13 20:30:05+02\",true,false],[\"2014-04-13 20:45:04+02\",true,false],[\"2014-04-13 21:00:04+02\",true,false],[\"2014-04-14 13:00:04+02\",true,false],[\"2014-04-14 13:45:04+02\",true,false],[\"2014-04-14 15:00:05+02\",true,false],[\"2014-04-14 19:15:04+02\",true,false],[\"2014-04-14 19:30:06+02\",true,false],[\"2014-04-14 19:45:05+02\",true,false],[\"2014-04-14 20:00:09+02\",true,false],[\"2014-04-14 20:15:04+02\",true,false],[\"2014-04-14 20:30:05+02\",true,false],[\"2014-04-15 11:15:04+02\",true,false],[\"2014-04-15 11:30:04+02\",true,false],[\"2014-04-15 11:45:04+02\",true,false],[\"2014-04-15 12:00:06+02\",true,false],[\"2014-04-15 12:15:05+02\",true,false],[\"2014-04-15 12:30:04+02\",true,false],[\"2014-04-15 12:45:04+02\",true,false],[\"2014-04-15 13:00:05+02\",true,false],[\"2014-04-15 13:15:05+02\",true,false],[\"2014-04-15 13:30:05+02\",true,false]]}}]},{\"rowId\":\"gu8rmj9\",\"items\":[{\"query\":\"/******************************\\n * Recipe 6 - WINDOW FUNCTIONS\\n ******************************/\\n\\n-- Goal: Compare each row with the total average\\n-- Can be done with a subquery, e.g. Common Table Expression (CTE)\\nWITH avg_total AS (\\n SELECT avg(free)::int\\n FROM parkplatz\\n)\\nSELECT name, time, free, avg\\n FROM parkplatz, avg_total\\n LIMIT 100;\\n\\n/* Execution plan (without LIMIT)\\n\\\"Nested Loop (cost=14481.42..29299.50 rows=1535037 width=28) (actual time=117.245..409.789 rows=1535037 loops=1)\\\"\\n\\\" CTE avg_total\\\"\\n\\\" -> Finalize Aggregate (cost=14481.42..14481.42 rows=1 width=4) (actual time=117.228..117.229 rows=1 loops=1)\\\"\\n\\\" -> Gather (cost=14481.11..14481.41 rows=3 width=32) (actual time=117.172..117.283 rows=4 loops=1)\\\"\\n\\\" Workers Planned: 3\\\"\\n\\\" Workers Launched: 3\\\"\\n\\\" -> Partial Aggregate (cost=13481.11..13481.11 rows=1 width=32) (actual time=105.114..105.114 rows=1 loops=4)\\\"\\n\\\" -> Parallel Seq Scan on parkplatz parkplatz_1 (cost=0.00..12243.17 rows=495173 width=2) (actual time=0.010..52.985 rows=383759 loops=4)\\\"\\n\\\" -> CTE Scan on avg_total (cost=0.00..0.00 rows=1 width=4) (actual time=117.231..117.232 rows=1 loops=1)\\\"\\n\\\" -> Seq Scan on parkplatz (cost=0.00..13283.04 rows=1535037 width=24) (actual time=0.011..124.015 rows=1535037 loops=1)\\\"\\n\\\"Planning Time: 0.093 ms\\\"\\n\\\"Execution Time: 461.564 ms\\\"\\n*/\",\"id\":\"0ef2xju\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"avg\"],\"values\":[[\"Altmarkt\",\"2014-04-13 01:38:23+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 01:38:23+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:38:23+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 01:38:23+02\",143,134],[\"Schießgasse\",\"2014-04-13 01:38:23+02\",131,134],[\"Taschenbergpalais\",\"2014-04-13 01:38:23+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 01:38:23+02\",213,134],[\"Parkhaus Mitte\",\"2014-04-13 01:38:23+02\",247,134],[\"Semperoper\",\"2014-04-13 01:38:23+02\",337,134],[\"World Trade Center\",\"2014-04-13 01:38:23+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 01:38:23+02\",729,134],[\"Ferdinandplatz\",\"2014-04-13 01:38:23+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 01:38:23+02\",98,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:38:23+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 01:38:23+02\",252,134],[\"City Center\",\"2014-04-13 01:38:23+02\",345,134],[\"Lindengasse\",\"2014-04-13 01:38:23+02\",68,134],[\"Pirnaischer Platz\",\"2014-04-13 01:38:23+02\",121,134],[\"Terrassenufer\",\"2014-04-13 01:38:23+02\",41,134],[\"Hauptstraße\",\"2014-04-13 01:38:23+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 01:38:23+02\",9,134],[\"Theresienstraße\",\"2014-04-13 01:38:23+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 01:38:23+02\",75,134],[\"Altmarkt\",\"2014-04-13 01:45:04+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 01:45:04+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:45:04+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 01:45:04+02\",143,134],[\"Schießgasse\",\"2014-04-13 01:45:04+02\",131,134],[\"Taschenbergpalais\",\"2014-04-13 01:45:04+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 01:45:04+02\",213,134],[\"Parkhaus Mitte\",\"2014-04-13 01:45:04+02\",247,134],[\"Semperoper\",\"2014-04-13 01:45:04+02\",337,134],[\"World Trade Center\",\"2014-04-13 01:45:04+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 01:45:04+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 01:45:04+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 01:45:04+02\",97,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:45:04+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 01:45:04+02\",252,134],[\"City Center\",\"2014-04-13 01:45:04+02\",345,134],[\"Lindengasse\",\"2014-04-13 01:45:04+02\",68,134],[\"Pirnaischer Platz\",\"2014-04-13 01:45:04+02\",122,134],[\"Terrassenufer\",\"2014-04-13 01:45:04+02\",42,134],[\"Hauptstraße\",\"2014-04-13 01:45:04+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 01:45:04+02\",9,134],[\"Theresienstraße\",\"2014-04-13 01:45:04+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 01:45:04+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:00:05+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 02:00:05+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:00:05+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:00:05+02\",144,134],[\"Schießgasse\",\"2014-04-13 02:00:05+02\",132,134],[\"Taschenbergpalais\",\"2014-04-13 02:00:05+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:00:05+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:00:05+02\",247,134],[\"Semperoper\",\"2014-04-13 02:00:05+02\",337,134],[\"World Trade Center\",\"2014-04-13 02:00:05+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 02:00:05+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 02:00:05+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 02:00:05+02\",100,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:00:05+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 02:00:05+02\",252,134],[\"City Center\",\"2014-04-13 02:00:05+02\",345,134],[\"Lindengasse\",\"2014-04-13 02:00:05+02\",69,134],[\"Pirnaischer Platz\",\"2014-04-13 02:00:05+02\",122,134],[\"Terrassenufer\",\"2014-04-13 02:00:05+02\",43,134],[\"Hauptstraße\",\"2014-04-13 02:00:05+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 02:00:05+02\",9,134],[\"Theresienstraße\",\"2014-04-13 02:00:05+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 02:00:05+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:15:05+02\",355,134],[\"An der Frauenkirche\",\"2014-04-13 02:15:05+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:15:05+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:15:05+02\",146,134],[\"Schießgasse\",\"2014-04-13 02:15:05+02\",136,134],[\"Taschenbergpalais\",\"2014-04-13 02:15:05+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:15:05+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:15:05+02\",247,134],[\"Semperoper\",\"2014-04-13 02:15:05+02\",337,134],[\"World Trade Center\",\"2014-04-13 02:15:05+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 02:15:05+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 02:15:05+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 02:15:05+02\",104,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:15:05+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 02:15:05+02\",252,134],[\"City Center\",\"2014-04-13 02:15:05+02\",345,134],[\"Lindengasse\",\"2014-04-13 02:15:05+02\",69,134],[\"Pirnaischer Platz\",\"2014-04-13 02:15:05+02\",123,134],[\"Terrassenufer\",\"2014-04-13 02:15:05+02\",43,134],[\"Hauptstraße\",\"2014-04-13 02:15:05+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 02:15:05+02\",8,134],[\"Theresienstraße\",\"2014-04-13 02:15:05+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 02:15:05+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:30:04+02\",355,134],[\"An der Frauenkirche\",\"2014-04-13 02:30:04+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:30:04+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:30:04+02\",147,134],[\"Schießgasse\",\"2014-04-13 02:30:04+02\",144,134],[\"Taschenbergpalais\",\"2014-04-13 02:30:04+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:30:04+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:30:04+02\",247,134]]}}]},{\"rowId\":\"1bqcgmy\",\"items\":[{\"query\":\"-- the same query using a window function with a window spanning the complete result -> OVER ()\\n-- take a look at the plan: It's smaller but took longer (can be different for each machine, of course)\\nSELECT name, time, free, \\n avg(free) OVER ()::int\\n FROM parkplatz\\n LIMIT 100;\\n\\n/* Execution plan (without LIMIT)\\n\\\"WindowAgg (cost=0.00..22493.26 rows=1535037 width=28) (actual time=528.436..891.795 rows=1535037 loops=1)\\\"\\n\\\" -> Seq Scan on parkplatz (cost=0.00..13283.04 rows=1535037 width=24) (actual time=0.009..126.173 rows=1535037 loops=1)\\\"\\n\\\"Planning Time: 0.045 ms\\\"\\n\\\"Execution Time: 945.679 ms\\\"\\n*/\",\"id\":\"5zhfha3\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"avg\"],\"values\":[[\"Altmarkt\",\"2014-04-13 01:38:23+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 01:38:23+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:38:23+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 01:38:23+02\",143,134],[\"Schießgasse\",\"2014-04-13 01:38:23+02\",131,134],[\"Taschenbergpalais\",\"2014-04-13 01:38:23+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 01:38:23+02\",213,134],[\"Parkhaus Mitte\",\"2014-04-13 01:38:23+02\",247,134],[\"Semperoper\",\"2014-04-13 01:38:23+02\",337,134],[\"World Trade Center\",\"2014-04-13 01:38:23+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 01:38:23+02\",729,134],[\"Ferdinandplatz\",\"2014-04-13 01:38:23+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 01:38:23+02\",98,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:38:23+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 01:38:23+02\",252,134],[\"City Center\",\"2014-04-13 01:38:23+02\",345,134],[\"Lindengasse\",\"2014-04-13 01:38:23+02\",68,134],[\"Pirnaischer Platz\",\"2014-04-13 01:38:23+02\",121,134],[\"Terrassenufer\",\"2014-04-13 01:38:23+02\",41,134],[\"Hauptstraße\",\"2014-04-13 01:38:23+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 01:38:23+02\",9,134],[\"Theresienstraße\",\"2014-04-13 01:38:23+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 01:38:23+02\",75,134],[\"Altmarkt\",\"2014-04-13 01:45:04+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 01:45:04+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:45:04+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 01:45:04+02\",143,134],[\"Schießgasse\",\"2014-04-13 01:45:04+02\",131,134],[\"Taschenbergpalais\",\"2014-04-13 01:45:04+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 01:45:04+02\",213,134],[\"Parkhaus Mitte\",\"2014-04-13 01:45:04+02\",247,134],[\"Semperoper\",\"2014-04-13 01:45:04+02\",337,134],[\"World Trade Center\",\"2014-04-13 01:45:04+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 01:45:04+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 01:45:04+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 01:45:04+02\",97,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:45:04+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 01:45:04+02\",252,134],[\"City Center\",\"2014-04-13 01:45:04+02\",345,134],[\"Lindengasse\",\"2014-04-13 01:45:04+02\",68,134],[\"Pirnaischer Platz\",\"2014-04-13 01:45:04+02\",122,134],[\"Terrassenufer\",\"2014-04-13 01:45:04+02\",42,134],[\"Hauptstraße\",\"2014-04-13 01:45:04+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 01:45:04+02\",9,134],[\"Theresienstraße\",\"2014-04-13 01:45:04+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 01:45:04+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:00:05+02\",354,134],[\"An der Frauenkirche\",\"2014-04-13 02:00:05+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:00:05+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:00:05+02\",144,134],[\"Schießgasse\",\"2014-04-13 02:00:05+02\",132,134],[\"Taschenbergpalais\",\"2014-04-13 02:00:05+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:00:05+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:00:05+02\",247,134],[\"Semperoper\",\"2014-04-13 02:00:05+02\",337,134],[\"World Trade Center\",\"2014-04-13 02:00:05+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 02:00:05+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 02:00:05+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 02:00:05+02\",100,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:00:05+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 02:00:05+02\",252,134],[\"City Center\",\"2014-04-13 02:00:05+02\",345,134],[\"Lindengasse\",\"2014-04-13 02:00:05+02\",69,134],[\"Pirnaischer Platz\",\"2014-04-13 02:00:05+02\",122,134],[\"Terrassenufer\",\"2014-04-13 02:00:05+02\",43,134],[\"Hauptstraße\",\"2014-04-13 02:00:05+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 02:00:05+02\",9,134],[\"Theresienstraße\",\"2014-04-13 02:00:05+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 02:00:05+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:15:05+02\",355,134],[\"An der Frauenkirche\",\"2014-04-13 02:15:05+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:15:05+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:15:05+02\",146,134],[\"Schießgasse\",\"2014-04-13 02:15:05+02\",136,134],[\"Taschenbergpalais\",\"2014-04-13 02:15:05+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:15:05+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:15:05+02\",247,134],[\"Semperoper\",\"2014-04-13 02:15:05+02\",337,134],[\"World Trade Center\",\"2014-04-13 02:15:05+02\",213,134],[\"Centrum-Galerie\",\"2014-04-13 02:15:05+02\",730,134],[\"Ferdinandplatz\",\"2014-04-13 02:15:05+02\",142,134],[\"Reitbahnstraße\",\"2014-04-13 02:15:05+02\",104,134],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:15:05+02\",179,134],[\"Wöhrl - Florentinum\",\"2014-04-13 02:15:05+02\",252,134],[\"City Center\",\"2014-04-13 02:15:05+02\",345,134],[\"Lindengasse\",\"2014-04-13 02:15:05+02\",69,134],[\"Pirnaischer Platz\",\"2014-04-13 02:15:05+02\",123,134],[\"Terrassenufer\",\"2014-04-13 02:15:05+02\",43,134],[\"Hauptstraße\",\"2014-04-13 02:15:05+02\",18,134],[\"Sarrasanistraße\",\"2014-04-13 02:15:05+02\",8,134],[\"Theresienstraße\",\"2014-04-13 02:15:05+02\",137,134],[\"Wiesentorstraße\",\"2014-04-13 02:15:05+02\",75,134],[\"Altmarkt\",\"2014-04-13 02:30:04+02\",355,134],[\"An der Frauenkirche\",\"2014-04-13 02:30:04+02\",123,134],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:30:04+02\",216,134],[\"Haus am Zwinger\",\"2014-04-13 02:30:04+02\",147,134],[\"Schießgasse\",\"2014-04-13 02:30:04+02\",144,134],[\"Taschenbergpalais\",\"2014-04-13 02:30:04+02\",15,134],[\"Kongresszentrum\",\"2014-04-13 02:30:04+02\",214,134],[\"Parkhaus Mitte\",\"2014-04-13 02:30:04+02\",247,134]]}}]},{\"rowId\":\"40a4epp\",\"items\":[{\"query\":\"-- Yes, it doesn't make too much sense to compare each with the total avg\\n-- Every parking place is different. How to compare with the avg per parking place?\\n-- Again first the CTE version\\nWITH avg_total AS (\\n SELECT name AS pp_name, avg(free)::int\\n FROM parkplatz\\nGROUP BY name\\n)\\nSELECT name, time, free, avg\\n FROM parkplatz, avg_total\\n WHERE name = pp_name\\n LIMIT 1000;\\n\\n/* Execution Plan (without LIMIT)\\n\\\"Hash Join (cost=15732.53..36307.00 rows=1535037 width=28) (actual time=204.879..689.744 rows=1535037 loops=1)\\\"\\n\\\" Hash Cond: (parkplatz.name = avg_total.pp_name)\\\"\\n\\\" CTE avg_total\\\"\\n\\\" -> Finalize GroupAggregate (cost=15719.94..15732.35 rows=33 width=18) (actual time=204.690..204.822 rows=33 loops=1)\\\"\\n\\\" Group Key: parkplatz_1.name\\\"\\n\\\" -> Gather Merge (cost=15719.94..15731.66 rows=99 width=46) (actual time=204.671..204.854 rows=132 loops=1)\\\"\\n\\\" Workers Planned: 3\\\"\\n\\\" Workers Launched: 3\\\"\\n\\\" -> Sort (cost=14719.90..14719.99 rows=33 width=46) (actual time=189.679..189.682 rows=33 loops=4)\\\"\\n\\\" Sort Key: parkplatz_1.name\\\"\\n\\\" Sort Method: quicksort Memory: 29kB\\\"\\n\\\" Worker 0: Sort Method: quicksort Memory: 29kB\\\"\\n\\\" Worker 1: Sort Method: quicksort Memory: 29kB\\\"\\n\\\" Worker 2: Sort Method: quicksort Memory: 29kB\\\"\\n\\\" -> Partial HashAggregate (cost=14719.04..14719.07 rows=33 width=46) (actual time=189.601..189.610 rows=33 loops=4)\\\"\\n\\\" Group Key: parkplatz_1.name\\\"\\n\\\" -> Parallel Seq Scan on parkplatz parkplatz_1 (cost=0.00..12243.17 rows=495173 width=16) (actual time=0.012..50.195 rows=383759 loops=4)\\\"\\n\\\" -> Seq Scan on parkplatz (cost=0.00..13283.04 rows=1535037 width=24) (actual time=0.010..111.865 rows=1535037 loops=1)\\\"\\n\\\" -> Hash (cost=0.07..0.07 rows=33 width=36) (actual time=204.861..204.861 rows=33 loops=1)\\\"\\n\\\" Buckets: 1024 Batches: 1 Memory Usage: 10kB\\\"\\n\\\" -> CTE Scan on avg_total (cost=0.00..0.07 rows=33 width=36) (actual time=204.693..204.846 rows=33 loops=1)\\\"\\n\\\"Planning Time: 0.142 ms\\\"\\n\\\"Execution Time: 739.273 ms\\\"\\n*/\",\"id\":\"6corgmr\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"avg\"],\"values\":[[\"Altmarkt\",\"2014-04-13 01:38:23+02\",354,273],[\"An der Frauenkirche\",\"2014-04-13 01:38:23+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:38:23+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 01:38:23+02\",143,90],[\"Schießgasse\",\"2014-04-13 01:38:23+02\",131,85],[\"Taschenbergpalais\",\"2014-04-13 01:38:23+02\",15,37],[\"Kongresszentrum\",\"2014-04-13 01:38:23+02\",213,169],[\"Parkhaus Mitte\",\"2014-04-13 01:38:23+02\",247,230],[\"Semperoper\",\"2014-04-13 01:38:23+02\",337,298],[\"World Trade Center\",\"2014-04-13 01:38:23+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 01:38:23+02\",729,610],[\"Ferdinandplatz\",\"2014-04-13 01:38:23+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 01:38:23+02\",98,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:38:23+02\",179,189],[\"Wöhrl - Florentinum\",\"2014-04-13 01:38:23+02\",252,197],[\"City Center\",\"2014-04-13 01:38:23+02\",345,190],[\"Lindengasse\",\"2014-04-13 01:38:23+02\",68,57],[\"Pirnaischer Platz\",\"2014-04-13 01:38:23+02\",121,84],[\"Terrassenufer\",\"2014-04-13 01:38:23+02\",41,31],[\"Hauptstraße\",\"2014-04-13 01:38:23+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 01:38:23+02\",9,18],[\"Theresienstraße\",\"2014-04-13 01:38:23+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 01:38:23+02\",75,79],[\"Altmarkt\",\"2014-04-13 01:45:04+02\",354,273],[\"An der Frauenkirche\",\"2014-04-13 01:45:04+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:45:04+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 01:45:04+02\",143,90],[\"Schießgasse\",\"2014-04-13 01:45:04+02\",131,85],[\"Taschenbergpalais\",\"2014-04-13 01:45:04+02\",15,37],[\"Kongresszentrum\",\"2014-04-13 01:45:04+02\",213,169],[\"Parkhaus Mitte\",\"2014-04-13 01:45:04+02\",247,230],[\"Semperoper\",\"2014-04-13 01:45:04+02\",337,298],[\"World Trade Center\",\"2014-04-13 01:45:04+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 01:45:04+02\",730,610],[\"Ferdinandplatz\",\"2014-04-13 01:45:04+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 01:45:04+02\",97,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:45:04+02\",179,189],[\"Wöhrl - Florentinum\",\"2014-04-13 01:45:04+02\",252,197],[\"City Center\",\"2014-04-13 01:45:04+02\",345,190],[\"Lindengasse\",\"2014-04-13 01:45:04+02\",68,57],[\"Pirnaischer Platz\",\"2014-04-13 01:45:04+02\",122,84],[\"Terrassenufer\",\"2014-04-13 01:45:04+02\",42,31],[\"Hauptstraße\",\"2014-04-13 01:45:04+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 01:45:04+02\",9,18],[\"Theresienstraße\",\"2014-04-13 01:45:04+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 01:45:04+02\",75,79],[\"Altmarkt\",\"2014-04-13 02:00:05+02\",354,273],[\"An der Frauenkirche\",\"2014-04-13 02:00:05+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:00:05+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 02:00:05+02\",144,90],[\"Schießgasse\",\"2014-04-13 02:00:05+02\",132,85],[\"Taschenbergpalais\",\"2014-04-13 02:00:05+02\",15,37],[\"Kongresszentrum\",\"2014-04-13 02:00:05+02\",214,169],[\"Parkhaus Mitte\",\"2014-04-13 02:00:05+02\",247,230],[\"Semperoper\",\"2014-04-13 02:00:05+02\",337,298],[\"World Trade Center\",\"2014-04-13 02:00:05+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 02:00:05+02\",730,610],[\"Ferdinandplatz\",\"2014-04-13 02:00:05+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 02:00:05+02\",100,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:00:05+02\",179,189],[\"Wöhrl - Florentinum\",\"2014-04-13 02:00:05+02\",252,197],[\"City Center\",\"2014-04-13 02:00:05+02\",345,190],[\"Lindengasse\",\"2014-04-13 02:00:05+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 02:00:05+02\",122,84],[\"Terrassenufer\",\"2014-04-13 02:00:05+02\",43,31],[\"Hauptstraße\",\"2014-04-13 02:00:05+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 02:00:05+02\",9,18],[\"Theresienstraße\",\"2014-04-13 02:00:05+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 02:00:05+02\",75,79],[\"Altmarkt\",\"2014-04-13 02:15:05+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 02:15:05+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:15:05+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 02:15:05+02\",146,90],[\"Schießgasse\",\"2014-04-13 02:15:05+02\",136,85],[\"Taschenbergpalais\",\"2014-04-13 02:15:05+02\",15,37],[\"Kongresszentrum\",\"2014-04-13 02:15:05+02\",214,169],[\"Parkhaus Mitte\",\"2014-04-13 02:15:05+02\",247,230],[\"Semperoper\",\"2014-04-13 02:15:05+02\",337,298],[\"World Trade Center\",\"2014-04-13 02:15:05+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 02:15:05+02\",730,610],[\"Ferdinandplatz\",\"2014-04-13 02:15:05+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 02:15:05+02\",104,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:15:05+02\",179,189],[\"Wöhrl - Florentinum\",\"2014-04-13 02:15:05+02\",252,197],[\"City Center\",\"2014-04-13 02:15:05+02\",345,190],[\"Lindengasse\",\"2014-04-13 02:15:05+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 02:15:05+02\",123,84],[\"Terrassenufer\",\"2014-04-13 02:15:05+02\",43,31],[\"Hauptstraße\",\"2014-04-13 02:15:05+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 02:15:05+02\",8,18],[\"Theresienstraße\",\"2014-04-13 02:15:05+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 02:15:05+02\",75,79],[\"Altmarkt\",\"2014-04-13 02:30:04+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 02:30:04+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:30:04+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 02:30:04+02\",147,90],[\"Schießgasse\",\"2014-04-13 02:30:04+02\",144,85],[\"Taschenbergpalais\",\"2014-04-13 02:30:04+02\",15,37],[\"Kongresszentrum\",\"2014-04-13 02:30:04+02\",214,169],[\"Parkhaus Mitte\",\"2014-04-13 02:30:04+02\",247,230],[\"Semperoper\",\"2014-04-13 02:30:04+02\",337,298],[\"World Trade Center\",\"2014-04-13 02:30:04+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 02:30:04+02\",730,610],[\"Ferdinandplatz\",\"2014-04-13 02:30:04+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 02:30:04+02\",103,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:30:04+02\",180,189],[\"Wöhrl - Florentinum\",\"2014-04-13 02:30:04+02\",253,197],[\"City Center\",\"2014-04-13 02:30:04+02\",345,190],[\"Lindengasse\",\"2014-04-13 02:30:04+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 02:30:04+02\",123,84],[\"Terrassenufer\",\"2014-04-13 02:30:04+02\",44,31],[\"Hauptstraße\",\"2014-04-13 02:30:04+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 02:30:04+02\",8,18],[\"Theresienstraße\",\"2014-04-13 02:30:04+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 02:30:04+02\",75,79],[\"Altmarkt\",\"2014-04-13 02:45:04+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 02:45:04+02\",123,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:45:04+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 02:45:04+02\",147,90],[\"Schießgasse\",\"2014-04-13 02:45:04+02\",145,85],[\"Taschenbergpalais\",\"2014-04-13 02:45:04+02\",14,37],[\"Kongresszentrum\",\"2014-04-13 02:45:04+02\",214,169],[\"Parkhaus Mitte\",\"2014-04-13 02:45:04+02\",247,230],[\"Semperoper\",\"2014-04-13 02:45:04+02\",337,298],[\"World Trade Center\",\"2014-04-13 02:45:04+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 02:45:04+02\",731,610],[\"Ferdinandplatz\",\"2014-04-13 02:45:04+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 02:45:04+02\",110,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:45:04+02\",180,189],[\"City Center\",\"2014-04-13 02:45:04+02\",345,190],[\"Lindengasse\",\"2014-04-13 02:45:04+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 02:45:04+02\",123,84],[\"Terrassenufer\",\"2014-04-13 02:45:04+02\",45,31],[\"Hauptstraße\",\"2014-04-13 02:45:04+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 02:45:04+02\",9,18],[\"Theresienstraße\",\"2014-04-13 02:45:04+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 02:45:04+02\",75,79],[\"Altmarkt\",\"2014-04-13 03:00:04+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 03:00:04+02\",124,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 03:00:04+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 03:00:04+02\",149,90],[\"Schießgasse\",\"2014-04-13 03:00:04+02\",152,85],[\"Taschenbergpalais\",\"2014-04-13 03:00:04+02\",14,37],[\"Kongresszentrum\",\"2014-04-13 03:00:04+02\",215,169],[\"Parkhaus Mitte\",\"2014-04-13 03:00:04+02\",247,230],[\"Semperoper\",\"2014-04-13 03:00:04+02\",337,298],[\"World Trade Center\",\"2014-04-13 03:00:04+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 03:00:04+02\",732,610],[\"Ferdinandplatz\",\"2014-04-13 03:00:04+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 03:00:04+02\",114,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 03:00:04+02\",182,189],[\"City Center\",\"2014-04-13 03:00:04+02\",345,190],[\"Lindengasse\",\"2014-04-13 03:00:04+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 03:00:04+02\",123,84],[\"Terrassenufer\",\"2014-04-13 03:00:04+02\",46,31],[\"Hauptstraße\",\"2014-04-13 03:00:04+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 03:00:04+02\",9,18],[\"Theresienstraße\",\"2014-04-13 03:00:04+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 03:00:04+02\",75,79],[\"Altmarkt\",\"2014-04-13 03:15:04+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 03:15:04+02\",124,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 03:15:04+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 03:15:04+02\",150,90],[\"Schießgasse\",\"2014-04-13 03:15:04+02\",156,85],[\"Taschenbergpalais\",\"2014-04-13 03:15:04+02\",14,37],[\"Kongresszentrum\",\"2014-04-13 03:15:04+02\",215,169],[\"Parkhaus Mitte\",\"2014-04-13 03:15:04+02\",247,230],[\"Semperoper\",\"2014-04-13 03:15:04+02\",337,298],[\"World Trade Center\",\"2014-04-13 03:15:04+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 03:15:04+02\",732,610],[\"Ferdinandplatz\",\"2014-04-13 03:15:04+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 03:15:04+02\",118,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 03:15:04+02\",182,189],[\"City Center\",\"2014-04-13 03:15:04+02\",345,190],[\"Lindengasse\",\"2014-04-13 03:15:04+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 03:15:04+02\",125,84],[\"Terrassenufer\",\"2014-04-13 03:15:04+02\",49,31],[\"Hauptstraße\",\"2014-04-13 03:15:04+02\",18,18],[\"Sarrasanistraße\",\"2014-04-13 03:15:04+02\",9,18],[\"Theresienstraße\",\"2014-04-13 03:15:04+02\",137,100],[\"Wiesentorstraße\",\"2014-04-13 03:15:04+02\",75,79],[\"Altmarkt\",\"2014-04-13 03:30:05+02\",355,273],[\"An der Frauenkirche\",\"2014-04-13 03:30:05+02\",124,86],[\"Frauenkirche Neumarkt\",\"2014-04-13 03:30:05+02\",216,149],[\"Haus am Zwinger\",\"2014-04-13 03:30:05+02\",150,90],[\"Schießgasse\",\"2014-04-13 03:30:05+02\",161,85],[\"Taschenbergpalais\",\"2014-04-13 03:30:05+02\",14,37],[\"Kongresszentrum\",\"2014-04-13 03:30:05+02\",215,169],[\"Parkhaus Mitte\",\"2014-04-13 03:30:05+02\",247,230],[\"Semperoper\",\"2014-04-13 03:30:05+02\",337,298],[\"World Trade Center\",\"2014-04-13 03:30:05+02\",213,192],[\"Centrum-Galerie\",\"2014-04-13 03:30:05+02\",732,610],[\"Ferdinandplatz\",\"2014-04-13 03:30:05+02\",142,104],[\"Reitbahnstraße\",\"2014-04-13 03:30:05+02\",123,115],[\"Wiener Platz/Hbf.\",\"2014-04-13 03:30:05+02\",182,189],[\"City Center\",\"2014-04-13 03:30:05+02\",345,190],[\"Lindengasse\",\"2014-04-13 03:30:05+02\",69,57],[\"Pirnaischer Platz\",\"2014-04-13 03:30:05+02\",125,84],[\"Terrassenufer\",\"2014-04-13 03:30:05+02\",50,31],[\"Hauptstraße\",\"2014-04-13 03:30:05+02\",18,18]]}}]},{\"rowId\":\"sxm3gq2\",\"items\":[{\"query\":\"-- grouping can also be applied for windows -> OVER (PARTITION BY ...)\\nSELECT name, time, free, \\n avg(free) OVER (PARTITION BY name)::int\\n FROM parkplatz\\n LIMIT 1000;\\n\\n/* Execution Plan (without LIMIT)\\n\\\"WindowAgg (cost=171006.88..187892.28 rows=1535037 width=28) (actual time=1368.839..2165.924 rows=1535037 loops=1)\\\"\\n\\\" -> Sort (cost=171006.88..174844.47 rows=1535037 width=24) (actual time=1351.581..1523.866 rows=1535037 loops=1)\\\"\\n\\\" Sort Key: name\\\"\\n\\\" Sort Method: external merge Disk: 57520kB\\\"\\n\\\" -> Seq Scan on parkplatz (cost=0.00..13283.04 rows=1535037 width=24) (actual time=0.016..209.663 rows=1535037 loops=1)\\\"\\n\\\"Planning Time: 0.084 ms\\\"\\n\\\"Execution Time: 2223.882 ms\\\"\\n*/\",\"id\":\"dmzv3oo\",\"loading\":false}]},{\"rowId\":\"0sqgk95\",\"items\":[{\"query\":\"-- the historical data can be used to build up prediction models for free parking spots\\n-- as input these models could be fed with data from the last 2 hours, smoothened by moving average of 15 minutes\\n-- so, first get the data from the last two hours. There should ideally be 24 observations per parking place\\nSELECT name, time, avg(free) OVER (PARTITION BY name)::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\\n\",\"id\":\"9f5lf7d\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:45:08+02\",233],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",233],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",233],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",233],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",233],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",233],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",233],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",233],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",233],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",233],[\"Altmarkt\",\"2015-06-17 16:20:17+02\",233],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",233],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",233],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",233],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",233],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",233],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",233],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",233],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",233],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",233],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",233],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",233],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",280],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",81],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",270],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",270],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",270],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",270],[\"City Center\",\"2015-06-17 17:15:08+02\",105],[\"City Center\",\"2015-06-17 16:50:37+02\",105],[\"City Center\",\"2015-06-17 18:15:09+02\",105],[\"City Center\",\"2015-06-17 16:25:12+02\",105],[\"City Center\",\"2015-06-17 17:25:06+02\",105],[\"City Center\",\"2015-06-17 16:30:07+02\",105],[\"City Center\",\"2015-06-17 17:30:18+02\",105],[\"City Center\",\"2015-06-17 17:10:07+02\",105],[\"City Center\",\"2015-06-17 18:05:18+02\",105],[\"City Center\",\"2015-06-17 18:10:06+02\",105],[\"City Center\",\"2015-06-17 18:00:06+02\",105],[\"City Center\",\"2015-06-17 17:05:05+02\",105],[\"City Center\",\"2015-06-17 17:20:05+02\",105],[\"City Center\",\"2015-06-17 16:45:08+02\",105],[\"City Center\",\"2015-06-17 17:35:06+02\",105],[\"City Center\",\"2015-06-17 17:00:07+02\",105],[\"City Center\",\"2015-06-17 16:40:29+02\",105],[\"City Center\",\"2015-06-17 17:55:06+02\",105],[\"City Center\",\"2015-06-17 17:40:18+02\",105],[\"City Center\",\"2015-06-17 16:20:17+02\",105],[\"City Center\",\"2015-06-17 17:45:19+02\",105],[\"City Center\",\"2015-06-17 17:50:06+02\",105],[\"City Center\",\"2015-06-17 16:55:05+02\",105],[\"City Center\",\"2015-06-17 16:35:04+02\",105],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",27],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",27],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",27],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",27],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",27],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",27],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",27],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",27],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",27],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",27],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",27],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",27],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",27],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",27],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",27],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",27],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",27],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",27],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",27],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",27],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",27],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",65],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",118],[\"Hauptstraße\",\"2015-06-17 17:30:18+02\",33],[\"Hauptstraße\",\"2015-06-17 17:45:19+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 17:55:06+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 17:05:05+02\",33],[\"Hauptstraße\",\"2015-06-17 17:20:05+02\",33],[\"Hauptstraße\",\"2015-06-17 18:10:06+02\",33]]}}]},{\"rowId\":\"jzs9ht5\",\"items\":[{\"query\":\"-- but, the window needs some framing so that the avg for each row is only from the previous 15 minutes\\n-- therefore, the window needs sorting to know what are the previous 3 rows -> OVER (... ORDER BY ...)\\nSELECT name, time, avg(free) OVER (PARTITION BY name ORDER BY time)::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\\n\\n-- you see that the values are already changing, but why?\",\"id\":\"710injl\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",228],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",232],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",232],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",234],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",235],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",236],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",236],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",236],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",237],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",237],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",237],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",236],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",236],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",235],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",235],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",234],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",234],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",233],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",278],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",280],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",81],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",317],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",315],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",313],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",309],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",305],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",302],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",299],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",296],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",292],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",290],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",288],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",285],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",282],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",280],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",279],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",277],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",276],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",274],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",273],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",272],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",271],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",270],[\"City Center\",\"2015-06-17 16:20:17+02\",94],[\"City Center\",\"2015-06-17 16:25:12+02\",95],[\"City Center\",\"2015-06-17 16:30:07+02\",96],[\"City Center\",\"2015-06-17 16:35:04+02\",97],[\"City Center\",\"2015-06-17 16:40:29+02\",98],[\"City Center\",\"2015-06-17 16:45:08+02\",99],[\"City Center\",\"2015-06-17 16:50:37+02\",100],[\"City Center\",\"2015-06-17 16:55:05+02\",101],[\"City Center\",\"2015-06-17 17:00:07+02\",101],[\"City Center\",\"2015-06-17 17:05:05+02\",102],[\"City Center\",\"2015-06-17 17:10:07+02\",103],[\"City Center\",\"2015-06-17 17:15:08+02\",103],[\"City Center\",\"2015-06-17 17:20:05+02\",103],[\"City Center\",\"2015-06-17 17:25:06+02\",104],[\"City Center\",\"2015-06-17 17:30:18+02\",104],[\"City Center\",\"2015-06-17 17:35:06+02\",104],[\"City Center\",\"2015-06-17 17:40:18+02\",104],[\"City Center\",\"2015-06-17 17:45:19+02\",104],[\"City Center\",\"2015-06-17 17:50:06+02\",104],[\"City Center\",\"2015-06-17 17:55:06+02\",104],[\"City Center\",\"2015-06-17 18:00:06+02\",104],[\"City Center\",\"2015-06-17 18:05:18+02\",104],[\"City Center\",\"2015-06-17 18:10:06+02\",104],[\"City Center\",\"2015-06-17 18:15:09+02\",105],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",26],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",26],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",26],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",26],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",26],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",26],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",26],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",27],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",27],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",69],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",68],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",68],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",65],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",118],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33]]}}]},{\"rowId\":\"ey0h0a3\",\"items\":[{\"query\":\"-- because ORDER BY activates a framing to the window\\n-- essentially: avg from all previous rows up to the CURRENT ROW\\n-- it can also be written like this:\\nSELECT name, time,\\n avg(free) OVER (\\n PARTITION BY name ORDER BY time\\n RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\\n )::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\",\"id\":\"euucb5v\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",228],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",232],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",232],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",234],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",235],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",236],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",236],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",236],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",237],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",237],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",237],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",236],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",236],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",235],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",235],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",234],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",234],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",233],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",233],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",278],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",280],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",79],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",81],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",317],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",315],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",313],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",309],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",305],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",302],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",299],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",296],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",292],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",290],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",288],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",285],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",282],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",280],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",279],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",277],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",276],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",274],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",273],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",272],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",271],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",270],[\"City Center\",\"2015-06-17 16:20:17+02\",94],[\"City Center\",\"2015-06-17 16:25:12+02\",95],[\"City Center\",\"2015-06-17 16:30:07+02\",96],[\"City Center\",\"2015-06-17 16:35:04+02\",97],[\"City Center\",\"2015-06-17 16:40:29+02\",98],[\"City Center\",\"2015-06-17 16:45:08+02\",99],[\"City Center\",\"2015-06-17 16:50:37+02\",100],[\"City Center\",\"2015-06-17 16:55:05+02\",101],[\"City Center\",\"2015-06-17 17:00:07+02\",101],[\"City Center\",\"2015-06-17 17:05:05+02\",102],[\"City Center\",\"2015-06-17 17:10:07+02\",103],[\"City Center\",\"2015-06-17 17:15:08+02\",103],[\"City Center\",\"2015-06-17 17:20:05+02\",103],[\"City Center\",\"2015-06-17 17:25:06+02\",104],[\"City Center\",\"2015-06-17 17:30:18+02\",104],[\"City Center\",\"2015-06-17 17:35:06+02\",104],[\"City Center\",\"2015-06-17 17:40:18+02\",104],[\"City Center\",\"2015-06-17 17:45:19+02\",104],[\"City Center\",\"2015-06-17 17:50:06+02\",104],[\"City Center\",\"2015-06-17 17:55:06+02\",104],[\"City Center\",\"2015-06-17 18:00:06+02\",104],[\"City Center\",\"2015-06-17 18:05:18+02\",104],[\"City Center\",\"2015-06-17 18:10:06+02\",104],[\"City Center\",\"2015-06-17 18:15:09+02\",105],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",26],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",26],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",26],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",26],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",26],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",26],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",26],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",26],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",27],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",27],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",69],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",68],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",68],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",65],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",118],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33]]}}]},{\"rowId\":\"uioh8sj\",\"items\":[{\"query\":\"-- frame clauses start either with ROWS or RANGE\\n-- this is how to frame the window to the 3 preceding rows (3 * 5 min = 15 minutes)\\n-- now, it's a moving average\\nSELECT name, time,\\n avg(free) OVER (\\n PARTITION BY name ORDER BY time\\n ROWS BETWEEN 3 PRECEDING AND CURRENT ROW\\n )::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\",\"id\":\"5a8jx23\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",228],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",232],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",232],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",234],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",236],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",238],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",239],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",239],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",239],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",239],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",239],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",239],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",235],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",232],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",231],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",229],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",227],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",227],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",226],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",227],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",229],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",231],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",232],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",271],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",281],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",285],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",287],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",289],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",290],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",291],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",295],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",80],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",84],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",84],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",86],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",317],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",315],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",311],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",305],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",297],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",289],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",281],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",275],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",270],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",266],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",264],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",259],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",255],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",252],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",249],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",250],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",251],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",251],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",249],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",247],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",246],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",245],[\"City Center\",\"2015-06-17 16:20:17+02\",94],[\"City Center\",\"2015-06-17 16:25:12+02\",95],[\"City Center\",\"2015-06-17 16:30:07+02\",96],[\"City Center\",\"2015-06-17 16:35:04+02\",97],[\"City Center\",\"2015-06-17 16:40:29+02\",99],[\"City Center\",\"2015-06-17 16:45:08+02\",101],[\"City Center\",\"2015-06-17 16:50:37+02\",102],[\"City Center\",\"2015-06-17 16:55:05+02\",104],[\"City Center\",\"2015-06-17 17:00:07+02\",106],[\"City Center\",\"2015-06-17 17:05:05+02\",107],[\"City Center\",\"2015-06-17 17:10:07+02\",108],[\"City Center\",\"2015-06-17 17:15:08+02\",108],[\"City Center\",\"2015-06-17 17:20:05+02\",108],[\"City Center\",\"2015-06-17 17:25:06+02\",107],[\"City Center\",\"2015-06-17 17:30:18+02\",107],[\"City Center\",\"2015-06-17 17:35:06+02\",105],[\"City Center\",\"2015-06-17 17:40:18+02\",104],[\"City Center\",\"2015-06-17 17:45:19+02\",104],[\"City Center\",\"2015-06-17 17:50:06+02\",104],[\"City Center\",\"2015-06-17 17:55:06+02\",105],[\"City Center\",\"2015-06-17 18:00:06+02\",106],[\"City Center\",\"2015-06-17 18:05:18+02\",107],[\"City Center\",\"2015-06-17 18:10:06+02\",108],[\"City Center\",\"2015-06-17 18:15:09+02\",109],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",26],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",27],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",27],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",28],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",28],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",28],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",27],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",27],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",28],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",28],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",69],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",67],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",63],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",63],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",65],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",120],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",120],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",118],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33]]}}]},{\"rowId\":\"azxrbhm\",\"items\":[{\"query\":\"-- the moving average can also look forward by including n folling rows\\n-- we could a moving average of 20 minutes, 10 minutes to each side\\n-- since PostgreSQL 11 the middle value can also be excluded\\nSELECT name, time,\\n avg(free) OVER (\\n PARTITION BY name\\n ORDER BY time\\n ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING\\n EXCLUDE CURRENT ROW\\n )::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\",\"id\":\"5e49rjj\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",235],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",233],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",235],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",238],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",238],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",237],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",239],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",241],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",238],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",238],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",236],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",233],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",231],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",230],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",228],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",227],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",227],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",227],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",229],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",230],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",231],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",232],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",270],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",278],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",282],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",283],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",285],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",287],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",290],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",292],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",295],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",295],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",294],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",80],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",80],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",80],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",84],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",85],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",86],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",85],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",317],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",314],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",313],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",307],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",299],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",293],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",286],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",278],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",273],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",268],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",266],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",260],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",255],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",255],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",253],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",249],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",250],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",250],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",248],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",248],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",248],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",246],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",245],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",246],[\"City Center\",\"2015-06-17 16:20:17+02\",97],[\"City Center\",\"2015-06-17 16:25:12+02\",97],[\"City Center\",\"2015-06-17 16:30:07+02\",98],[\"City Center\",\"2015-06-17 16:35:04+02\",100],[\"City Center\",\"2015-06-17 16:40:29+02\",102],[\"City Center\",\"2015-06-17 16:45:08+02\",103],[\"City Center\",\"2015-06-17 16:50:37+02\",105],[\"City Center\",\"2015-06-17 16:55:05+02\",106],[\"City Center\",\"2015-06-17 17:00:07+02\",107],[\"City Center\",\"2015-06-17 17:05:05+02\",108],[\"City Center\",\"2015-06-17 17:10:07+02\",108],[\"City Center\",\"2015-06-17 17:15:08+02\",107],[\"City Center\",\"2015-06-17 17:20:05+02\",107],[\"City Center\",\"2015-06-17 17:25:06+02\",106],[\"City Center\",\"2015-06-17 17:30:18+02\",104],[\"City Center\",\"2015-06-17 17:35:06+02\",105],[\"City Center\",\"2015-06-17 17:40:18+02\",104],[\"City Center\",\"2015-06-17 17:45:19+02\",104],[\"City Center\",\"2015-06-17 17:50:06+02\",106],[\"City Center\",\"2015-06-17 17:55:06+02\",107],[\"City Center\",\"2015-06-17 18:00:06+02\",108],[\"City Center\",\"2015-06-17 18:05:18+02\",108],[\"City Center\",\"2015-06-17 18:10:06+02\",109],[\"City Center\",\"2015-06-17 18:15:09+02\",110],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",26],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",27],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",28],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",27],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",28],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",27],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",28],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",28],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",28],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",28],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",69],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",67],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",67],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",65],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",63],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",64],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",120],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",117],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33]]}}]},{\"rowId\":\"0vlsk5j\",\"items\":[{\"query\":\"-- can we be sure that the 3 prededing rows always cover an interval of 15 minutes?\\n-- what if values are missing? This could include older observations.\\n-- what if the frequency of observations changes to 1 minute? Our prediction model might not like this.\\n-- Since PostgreSQL 11 frame clauses can consider temporal intervals with RANGE\\nSELECT name, time,\\n avg(free) OVER (\\n PARTITION BY name\\n ORDER BY time\\n RANGE BETWEEN interval '15 minutes' PRECEDING\\n AND CURRENT ROW\\n )::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz - interval '2 hours';\",\"id\":\"fjpr4q2\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",228],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",232],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",232],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",234],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",237],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",239],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",240],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",239],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",239],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",239],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",240],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",238],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",237],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",235],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",231],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",229],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",228],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",227],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",227],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",226],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",227],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",230],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",231],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",272],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",276],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",274],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",277],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",278],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",279],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",283],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",285],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",287],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",289],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",289],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",291],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",297],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",78],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",79],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",80],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",80],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",81],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",82],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",83],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",84],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",84],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",86],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",319],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",317],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",315],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",309],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",301],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",292],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",289],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",281],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",275],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",267],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",264],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",264],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",259],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",252],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",248],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",249],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",251],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",251],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",251],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",249],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",246],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",246],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",246],[\"City Center\",\"2015-06-17 16:20:17+02\",94],[\"City Center\",\"2015-06-17 16:25:12+02\",95],[\"City Center\",\"2015-06-17 16:30:07+02\",96],[\"City Center\",\"2015-06-17 16:35:04+02\",97],[\"City Center\",\"2015-06-17 16:40:29+02\",99],[\"City Center\",\"2015-06-17 16:45:08+02\",101],[\"City Center\",\"2015-06-17 16:50:37+02\",103],[\"City Center\",\"2015-06-17 16:55:05+02\",104],[\"City Center\",\"2015-06-17 17:00:07+02\",106],[\"City Center\",\"2015-06-17 17:05:05+02\",107],[\"City Center\",\"2015-06-17 17:10:07+02\",108],[\"City Center\",\"2015-06-17 17:15:08+02\",108],[\"City Center\",\"2015-06-17 17:20:05+02\",108],[\"City Center\",\"2015-06-17 17:25:06+02\",107],[\"City Center\",\"2015-06-17 17:30:18+02\",106],[\"City Center\",\"2015-06-17 17:35:06+02\",104],[\"City Center\",\"2015-06-17 17:40:18+02\",103],[\"City Center\",\"2015-06-17 17:45:19+02\",103],[\"City Center\",\"2015-06-17 17:50:06+02\",104],[\"City Center\",\"2015-06-17 17:55:06+02\",105],[\"City Center\",\"2015-06-17 18:00:06+02\",106],[\"City Center\",\"2015-06-17 18:05:18+02\",108],[\"City Center\",\"2015-06-17 18:10:06+02\",108],[\"City Center\",\"2015-06-17 18:15:09+02\",109],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",25],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",25],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",26],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",26],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",27],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",27],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",28],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",28],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",27],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",27],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",27],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",28],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",28],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",28],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",70],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",68],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",66],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",66],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",63],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",67],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",63],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",63],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",64],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",64],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",120],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",120],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",119],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",117],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33]]}}]},{\"rowId\":\"lzzbk8z\",\"items\":[{\"query\":\"/***********************************\\n * Recipe 7 - More WINDOW FUNCTIONS\\n ***********************************/\\n\\n-- you see that window framed by RANGE produces a different result than framed by ROWS\\n-- we could use another window function to check what is the first values of the window\\n-- when reusing the same window it makes sense to specify it only once\\nSELECT name, time, FREE,\\n first_value(free) OVER w,\\n avg(free) OVER w::int\\n FROM parkplatz\\n WHERE time >= '2015-06-17 18:15:09+02'::timestamptz -\\n interval '2 hours'\\nWINDOW w AS (\\n PARTITION BY name ORDER BY time\\n RANGE BETWEEN interval '15 minutes' PRECEDING\\n AND CURRENT ROW\\n );\",\"id\":\"zxmoqtk\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"first_value\",\"avg\"],\"values\":[[\"Altmarkt\",\"2015-06-17 16:20:17+02\",228,228,228],[\"Altmarkt\",\"2015-06-17 16:25:12+02\",235,228,232],[\"Altmarkt\",\"2015-06-17 16:30:07+02\",234,228,232],[\"Altmarkt\",\"2015-06-17 16:35:04+02\",237,228,234],[\"Altmarkt\",\"2015-06-17 16:40:29+02\",239,234,237],[\"Altmarkt\",\"2015-06-17 16:45:08+02\",242,237,239],[\"Altmarkt\",\"2015-06-17 16:50:37+02\",239,239,240],[\"Altmarkt\",\"2015-06-17 16:55:05+02\",234,239,239],[\"Altmarkt\",\"2015-06-17 17:00:07+02\",242,242,239],[\"Altmarkt\",\"2015-06-17 17:05:05+02\",241,239,239],[\"Altmarkt\",\"2015-06-17 17:10:07+02\",237,242,240],[\"Altmarkt\",\"2015-06-17 17:15:08+02\",235,241,238],[\"Altmarkt\",\"2015-06-17 17:20:05+02\",234,241,237],[\"Altmarkt\",\"2015-06-17 17:25:06+02\",232,237,235],[\"Altmarkt\",\"2015-06-17 17:30:18+02\",228,234,231],[\"Altmarkt\",\"2015-06-17 17:35:06+02\",228,232,229],[\"Altmarkt\",\"2015-06-17 17:40:18+02\",227,228,228],[\"Altmarkt\",\"2015-06-17 17:45:19+02\",225,228,227],[\"Altmarkt\",\"2015-06-17 17:50:06+02\",226,228,227],[\"Altmarkt\",\"2015-06-17 17:55:06+02\",226,227,226],[\"Altmarkt\",\"2015-06-17 18:00:06+02\",230,225,227],[\"Altmarkt\",\"2015-06-17 18:05:18+02\",233,226,230],[\"Altmarkt\",\"2015-06-17 18:10:06+02\",233,226,231],[\"Altmarkt\",\"2015-06-17 18:15:09+02\",233,233,233],[\"Altmarkt - Galerie\",\"2015-06-17 16:20:17+02\",280,280,280],[\"Altmarkt - Galerie\",\"2015-06-17 16:25:12+02\",270,280,275],[\"Altmarkt - Galerie\",\"2015-06-17 16:30:07+02\",270,280,273],[\"Altmarkt - Galerie\",\"2015-06-17 16:35:04+02\",270,280,273],[\"Altmarkt - Galerie\",\"2015-06-17 16:40:29+02\",275,270,272],[\"Altmarkt - Galerie\",\"2015-06-17 16:45:08+02\",278,270,274],[\"Altmarkt - Galerie\",\"2015-06-17 16:50:37+02\",279,275,277],[\"Altmarkt - Galerie\",\"2015-06-17 16:55:05+02\",275,275,277],[\"Altmarkt - Galerie\",\"2015-06-17 17:00:07+02\",272,278,276],[\"Altmarkt - Galerie\",\"2015-06-17 17:05:05+02\",277,279,276],[\"Altmarkt - Galerie\",\"2015-06-17 17:10:07+02\",273,272,274],[\"Altmarkt - Galerie\",\"2015-06-17 17:15:08+02\",273,277,274],[\"Altmarkt - Galerie\",\"2015-06-17 17:20:05+02\",274,277,274],[\"Altmarkt - Galerie\",\"2015-06-17 17:25:06+02\",279,273,275],[\"Altmarkt - Galerie\",\"2015-06-17 17:30:18+02\",277,274,277],[\"Altmarkt - Galerie\",\"2015-06-17 17:35:06+02\",277,279,278],[\"Altmarkt - Galerie\",\"2015-06-17 17:40:18+02\",283,277,279],[\"Altmarkt - Galerie\",\"2015-06-17 17:45:19+02\",288,277,283],[\"Altmarkt - Galerie\",\"2015-06-17 17:50:06+02\",290,277,285],[\"Altmarkt - Galerie\",\"2015-06-17 17:55:06+02\",288,283,287],[\"Altmarkt - Galerie\",\"2015-06-17 18:00:06+02\",289,288,289],[\"Altmarkt - Galerie\",\"2015-06-17 18:05:18+02\",291,288,289],[\"Altmarkt - Galerie\",\"2015-06-17 18:10:06+02\",297,288,291],[\"Altmarkt - Galerie\",\"2015-06-17 18:15:09+02\",304,291,297],[\"An der Frauenkirche\",\"2015-06-17 16:20:17+02\",78,78,78],[\"An der Frauenkirche\",\"2015-06-17 16:25:12+02\",78,78,78],[\"An der Frauenkirche\",\"2015-06-17 16:30:07+02\",79,78,78],[\"An der Frauenkirche\",\"2015-06-17 16:35:04+02\",77,78,78],[\"An der Frauenkirche\",\"2015-06-17 16:40:29+02\",79,79,78],[\"An der Frauenkirche\",\"2015-06-17 16:45:08+02\",80,77,79],[\"An der Frauenkirche\",\"2015-06-17 16:50:37+02\",82,79,80],[\"An der Frauenkirche\",\"2015-06-17 16:55:05+02\",80,79,80],[\"An der Frauenkirche\",\"2015-06-17 17:00:07+02\",79,80,80],[\"An der Frauenkirche\",\"2015-06-17 17:05:05+02\",79,82,80],[\"An der Frauenkirche\",\"2015-06-17 17:10:07+02\",82,79,80],[\"An der Frauenkirche\",\"2015-06-17 17:15:08+02\",81,79,81],[\"An der Frauenkirche\",\"2015-06-17 17:20:05+02\",80,79,81],[\"An der Frauenkirche\",\"2015-06-17 17:25:06+02\",83,82,82],[\"An der Frauenkirche\",\"2015-06-17 17:30:18+02\",82,80,82],[\"An der Frauenkirche\",\"2015-06-17 17:35:06+02\",82,83,82],[\"An der Frauenkirche\",\"2015-06-17 17:40:18+02\",83,82,82],[\"An der Frauenkirche\",\"2015-06-17 17:45:19+02\",83,82,83],[\"An der Frauenkirche\",\"2015-06-17 17:50:06+02\",82,82,83],[\"An der Frauenkirche\",\"2015-06-17 17:55:06+02\",84,83,83],[\"An der Frauenkirche\",\"2015-06-17 18:00:06+02\",83,83,83],[\"An der Frauenkirche\",\"2015-06-17 18:05:18+02\",85,84,84],[\"An der Frauenkirche\",\"2015-06-17 18:10:06+02\",85,84,84],[\"An der Frauenkirche\",\"2015-06-17 18:15:09+02\",89,85,86],[\"Centrum-Galerie\",\"2015-06-17 16:20:17+02\",319,319,319],[\"Centrum-Galerie\",\"2015-06-17 16:25:12+02\",319,319,319],[\"Centrum-Galerie\",\"2015-06-17 16:30:07+02\",314,319,317],[\"Centrum-Galerie\",\"2015-06-17 16:35:04+02\",309,319,315],[\"Centrum-Galerie\",\"2015-06-17 16:40:29+02\",303,314,309],[\"Centrum-Galerie\",\"2015-06-17 16:45:08+02\",292,309,301],[\"Centrum-Galerie\",\"2015-06-17 16:50:37+02\",282,303,292],[\"Centrum-Galerie\",\"2015-06-17 16:55:05+02\",279,303,289],[\"Centrum-Galerie\",\"2015-06-17 17:00:07+02\",270,292,281],[\"Centrum-Galerie\",\"2015-06-17 17:05:05+02\",268,282,275],[\"Centrum-Galerie\",\"2015-06-17 17:10:07+02\",262,270,267],[\"Centrum-Galerie\",\"2015-06-17 17:15:08+02\",262,268,264],[\"Centrum-Galerie\",\"2015-06-17 17:20:05+02\",262,268,264],[\"Centrum-Galerie\",\"2015-06-17 17:25:06+02\",249,262,259],[\"Centrum-Galerie\",\"2015-06-17 17:30:18+02\",246,262,252],[\"Centrum-Galerie\",\"2015-06-17 17:35:06+02\",250,249,248],[\"Centrum-Galerie\",\"2015-06-17 17:40:18+02\",250,246,249],[\"Centrum-Galerie\",\"2015-06-17 17:45:19+02\",252,250,251],[\"Centrum-Galerie\",\"2015-06-17 17:50:06+02\",252,250,251],[\"Centrum-Galerie\",\"2015-06-17 17:55:06+02\",249,250,251],[\"Centrum-Galerie\",\"2015-06-17 18:00:06+02\",242,252,249],[\"Centrum-Galerie\",\"2015-06-17 18:05:18+02\",246,249,246],[\"Centrum-Galerie\",\"2015-06-17 18:10:06+02\",245,249,246],[\"Centrum-Galerie\",\"2015-06-17 18:15:09+02\",247,246,246],[\"City Center\",\"2015-06-17 16:20:17+02\",94,94,94],[\"City Center\",\"2015-06-17 16:25:12+02\",96,94,95],[\"City Center\",\"2015-06-17 16:30:07+02\",98,94,96],[\"City Center\",\"2015-06-17 16:35:04+02\",100,94,97],[\"City Center\",\"2015-06-17 16:40:29+02\",100,98,99],[\"City Center\",\"2015-06-17 16:45:08+02\",104,100,101],[\"City Center\",\"2015-06-17 16:50:37+02\",105,100,103],[\"City Center\",\"2015-06-17 16:55:05+02\",108,100,104],[\"City Center\",\"2015-06-17 17:00:07+02\",108,104,106],[\"City Center\",\"2015-06-17 17:05:05+02\",108,105,107],[\"City Center\",\"2015-06-17 17:10:07+02\",108,108,108],[\"City Center\",\"2015-06-17 17:15:08+02\",109,108,108],[\"City Center\",\"2015-06-17 17:20:05+02\",106,108,108],[\"City Center\",\"2015-06-17 17:25:06+02\",106,108,107],[\"City Center\",\"2015-06-17 17:30:18+02\",105,106,106],[\"City Center\",\"2015-06-17 17:35:06+02\",102,106,104],[\"City Center\",\"2015-06-17 17:40:18+02\",103,105,103],[\"City Center\",\"2015-06-17 17:45:19+02\",105,102,103],[\"City Center\",\"2015-06-17 17:50:06+02\",105,102,104],[\"City Center\",\"2015-06-17 17:55:06+02\",106,103,105],[\"City Center\",\"2015-06-17 18:00:06+02\",108,105,106],[\"City Center\",\"2015-06-17 18:05:18+02\",109,106,108],[\"City Center\",\"2015-06-17 18:10:06+02\",110,106,108],[\"City Center\",\"2015-06-17 18:15:09+02\",109,109,109],[\"Cossebaude\",\"2015-06-17 16:20:17+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:25:12+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:30:07+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:35:04+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:40:29+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:45:08+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:50:37+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 16:55:05+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 17:00:07+02\",25,25,25],[\"Cossebaude\",\"2015-06-17 17:05:05+02\",27,25,26],[\"Cossebaude\",\"2015-06-17 17:10:07+02\",27,25,26],[\"Cossebaude\",\"2015-06-17 17:15:08+02\",27,27,27],[\"Cossebaude\",\"2015-06-17 17:20:05+02\",28,27,27],[\"Cossebaude\",\"2015-06-17 17:25:06+02\",28,27,28],[\"Cossebaude\",\"2015-06-17 17:30:18+02\",27,28,28],[\"Cossebaude\",\"2015-06-17 17:35:06+02\",27,28,27],[\"Cossebaude\",\"2015-06-17 17:40:18+02\",27,27,27],[\"Cossebaude\",\"2015-06-17 17:45:19+02\",27,27,27],[\"Cossebaude\",\"2015-06-17 17:50:06+02\",28,27,27],[\"Cossebaude\",\"2015-06-17 17:55:06+02\",28,27,28],[\"Cossebaude\",\"2015-06-17 18:00:06+02\",28,27,28],[\"Cossebaude\",\"2015-06-17 18:05:18+02\",28,28,28],[\"Cossebaude\",\"2015-06-17 18:10:06+02\",28,28,28],[\"Cossebaude\",\"2015-06-17 18:15:09+02\",28,28,28],[\"Ferdinandplatz\",\"2015-06-17 16:20:17+02\",70,70,70],[\"Ferdinandplatz\",\"2015-06-17 16:25:12+02\",70,70,70],[\"Ferdinandplatz\",\"2015-06-17 16:30:07+02\",70,70,70],[\"Ferdinandplatz\",\"2015-06-17 16:35:04+02\",70,70,70],[\"Ferdinandplatz\",\"2015-06-17 16:40:29+02\",69,70,70],[\"Ferdinandplatz\",\"2015-06-17 16:45:08+02\",65,70,68],[\"Ferdinandplatz\",\"2015-06-17 16:50:37+02\",64,69,66],[\"Ferdinandplatz\",\"2015-06-17 16:55:05+02\",64,69,66],[\"Ferdinandplatz\",\"2015-06-17 17:00:07+02\",62,65,64],[\"Ferdinandplatz\",\"2015-06-17 17:05:05+02\",63,64,63],[\"Ferdinandplatz\",\"2015-06-17 17:10:07+02\",66,62,64],[\"Ferdinandplatz\",\"2015-06-17 17:15:08+02\",64,63,64],[\"Ferdinandplatz\",\"2015-06-17 17:20:05+02\",62,63,64],[\"Ferdinandplatz\",\"2015-06-17 17:25:06+02\",67,66,65],[\"Ferdinandplatz\",\"2015-06-17 17:30:18+02\",67,62,65],[\"Ferdinandplatz\",\"2015-06-17 17:35:06+02\",66,67,67],[\"Ferdinandplatz\",\"2015-06-17 17:40:18+02\",63,67,65],[\"Ferdinandplatz\",\"2015-06-17 17:45:19+02\",61,66,63],[\"Ferdinandplatz\",\"2015-06-17 17:50:06+02\",64,66,64],[\"Ferdinandplatz\",\"2015-06-17 17:55:06+02\",64,63,63],[\"Ferdinandplatz\",\"2015-06-17 18:00:06+02\",66,61,64],[\"Ferdinandplatz\",\"2015-06-17 18:05:18+02\",64,64,65],[\"Ferdinandplatz\",\"2015-06-17 18:10:06+02\",64,64,65],[\"Ferdinandplatz\",\"2015-06-17 18:15:09+02\",64,64,64],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:20:17+02\",117,117,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:25:12+02\",117,117,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:30:07+02\",117,117,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:35:04+02\",120,117,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:40:29+02\",115,117,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:45:08+02\",117,120,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:50:37+02\",116,115,116],[\"Frauenkirche Neumarkt\",\"2015-06-17 16:55:05+02\",116,115,116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:00:07+02\",116,117,116],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:05:05+02\",120,116,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:10:07+02\",117,116,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:15:08+02\",116,120,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:20:05+02\",118,120,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:25:06+02\",118,117,117],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:30:18+02\",117,118,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:35:06+02\",120,118,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:40:18+02\",120,117,119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:45:19+02\",118,120,119],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:50:06+02\",120,120,120],[\"Frauenkirche Neumarkt\",\"2015-06-17 17:55:06+02\",120,120,120],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:00:06+02\",118,118,119],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:05:18+02\",117,120,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:10:06+02\",117,120,118],[\"Frauenkirche Neumarkt\",\"2015-06-17 18:15:09+02\",118,117,117],[\"Hauptstraße\",\"2015-06-17 16:20:17+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:25:12+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:30:07+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:35:04+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:40:29+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:45:08+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:50:37+02\",33,33,33],[\"Hauptstraße\",\"2015-06-17 16:55:05+02\",33,33,33]]}}]},{\"rowId\":\"q7wcyjj\",\"items\":[{\"query\":\"-- there are more interesting window functions such as lag() or lead()\\n-- with these two you can shift the window by n rows to compare values from different rows with each other\\nSELECT name, time, free,\\n lag(free, 1) OVER w,\\n lead(free, 1) OVER w\\n FROM parkplatz\\nWINDOW w AS (\\n PARTITION BY name ORDER BY time\\n )\\n LIMIT 100;\",\"id\":\"68v8tr7\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"lag\",\"lead\"],\"values\":[[\"Altmarkt\",\"2014-04-13 01:38:23+02\",354,null,354],[\"Altmarkt\",\"2014-04-13 01:45:04+02\",354,354,354],[\"Altmarkt\",\"2014-04-13 02:00:05+02\",354,354,355],[\"Altmarkt\",\"2014-04-13 02:15:05+02\",355,354,355],[\"Altmarkt\",\"2014-04-13 02:30:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 02:45:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 03:00:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 03:15:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 03:30:05+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 03:45:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 04:00:05+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 04:15:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 04:30:06+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 04:45:05+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 05:00:05+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 05:15:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 05:30:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 05:45:03+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 06:00:06+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 06:15:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 06:30:05+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 06:45:04+02\",355,355,354],[\"Altmarkt\",\"2014-04-13 07:00:05+02\",354,355,354],[\"Altmarkt\",\"2014-04-13 07:15:05+02\",354,354,354],[\"Altmarkt\",\"2014-04-13 07:30:04+02\",354,354,353],[\"Altmarkt\",\"2014-04-13 07:45:04+02\",353,354,355],[\"Altmarkt\",\"2014-04-13 08:00:04+02\",355,353,355],[\"Altmarkt\",\"2014-04-13 08:15:04+02\",355,355,355],[\"Altmarkt\",\"2014-04-13 08:30:04+02\",355,355,357],[\"Altmarkt\",\"2014-04-13 08:45:04+02\",357,355,359],[\"Altmarkt\",\"2014-04-13 09:00:07+02\",359,357,359],[\"Altmarkt\",\"2014-04-13 09:15:07+02\",359,359,363],[\"Altmarkt\",\"2014-04-13 09:30:10+02\",363,359,363],[\"Altmarkt\",\"2014-04-13 09:45:15+02\",363,363,353],[\"Altmarkt\",\"2014-04-13 10:00:12+02\",353,363,349],[\"Altmarkt\",\"2014-04-13 10:15:04+02\",349,353,355],[\"Altmarkt\",\"2014-04-13 10:30:05+02\",355,349,352],[\"Altmarkt\",\"2014-04-13 10:33:53+02\",352,355,341],[\"Altmarkt\",\"2014-04-13 10:45:04+02\",341,352,332],[\"Altmarkt\",\"2014-04-13 11:00:04+02\",332,341,320],[\"Altmarkt\",\"2014-04-13 11:15:04+02\",320,332,305],[\"Altmarkt\",\"2014-04-13 11:30:05+02\",305,320,284],[\"Altmarkt\",\"2014-04-13 11:45:04+02\",284,305,276],[\"Altmarkt\",\"2014-04-13 12:00:06+02\",276,284,256],[\"Altmarkt\",\"2014-04-13 12:15:04+02\",256,276,242],[\"Altmarkt\",\"2014-04-13 12:30:04+02\",242,256,233],[\"Altmarkt\",\"2014-04-13 12:45:04+02\",233,242,212],[\"Altmarkt\",\"2014-04-13 13:00:06+02\",212,233,195],[\"Altmarkt\",\"2014-04-13 13:15:04+02\",195,212,178],[\"Altmarkt\",\"2014-04-13 13:30:05+02\",178,195,174],[\"Altmarkt\",\"2014-04-13 13:45:04+02\",174,178,171],[\"Altmarkt\",\"2014-04-13 14:00:08+02\",171,174,168],[\"Altmarkt\",\"2014-04-13 14:15:03+02\",168,171,167],[\"Altmarkt\",\"2014-04-13 14:30:04+02\",167,168,162],[\"Altmarkt\",\"2014-04-13 14:45:06+02\",162,167,159],[\"Altmarkt\",\"2014-04-13 15:00:05+02\",159,162,157],[\"Altmarkt\",\"2014-04-13 15:15:04+02\",157,159,166],[\"Altmarkt\",\"2014-04-13 15:30:04+02\",166,157,183],[\"Altmarkt\",\"2014-04-13 15:45:03+02\",183,166,201],[\"Altmarkt\",\"2014-04-13 16:00:05+02\",201,183,219],[\"Altmarkt\",\"2014-04-13 16:15:04+02\",219,201,221],[\"Altmarkt\",\"2014-04-13 16:30:04+02\",221,219,238],[\"Altmarkt\",\"2014-04-13 16:45:08+02\",238,221,252],[\"Altmarkt\",\"2014-04-13 17:00:05+02\",252,238,256],[\"Altmarkt\",\"2014-04-13 17:15:07+02\",256,252,274],[\"Altmarkt\",\"2014-04-13 17:30:04+02\",274,256,284],[\"Altmarkt\",\"2014-04-13 17:45:04+02\",284,274,301],[\"Altmarkt\",\"2014-04-13 18:00:05+02\",301,284,327],[\"Altmarkt\",\"2014-04-13 18:15:05+02\",327,301,325],[\"Altmarkt\",\"2014-04-13 18:30:08+02\",325,327,330],[\"Altmarkt\",\"2014-04-13 18:45:04+02\",330,325,334],[\"Altmarkt\",\"2014-04-13 19:00:09+02\",334,330,339],[\"Altmarkt\",\"2014-04-13 19:15:04+02\",339,334,341],[\"Altmarkt\",\"2014-04-13 19:30:05+02\",341,339,345],[\"Altmarkt\",\"2014-04-13 19:45:06+02\",345,341,341],[\"Altmarkt\",\"2014-04-13 20:00:04+02\",341,345,349],[\"Altmarkt\",\"2014-04-13 20:15:03+02\",349,341,354],[\"Altmarkt\",\"2014-04-13 20:30:05+02\",354,349,355],[\"Altmarkt\",\"2014-04-13 20:45:04+02\",355,354,357],[\"Altmarkt\",\"2014-04-13 21:00:04+02\",357,355,360],[\"Altmarkt\",\"2014-04-13 21:15:04+02\",360,357,362],[\"Altmarkt\",\"2014-04-13 21:30:07+02\",362,360,370],[\"Altmarkt\",\"2014-04-13 21:45:06+02\",370,362,377],[\"Altmarkt\",\"2014-04-13 22:00:05+02\",377,370,380],[\"Altmarkt\",\"2014-04-13 22:15:03+02\",380,377,380],[\"Altmarkt\",\"2014-04-13 22:30:08+02\",380,380,379],[\"Altmarkt\",\"2014-04-13 22:45:04+02\",379,380,380],[\"Altmarkt\",\"2014-04-13 23:00:06+02\",380,379,381],[\"Altmarkt\",\"2014-04-13 23:15:04+02\",381,380,384],[\"Altmarkt\",\"2014-04-13 23:30:04+02\",384,381,385],[\"Altmarkt\",\"2014-04-13 23:45:04+02\",385,384,386],[\"Altmarkt\",\"2014-04-14 00:00:07+02\",386,385,387],[\"Altmarkt\",\"2014-04-14 00:15:04+02\",387,386,387],[\"Altmarkt\",\"2014-04-14 00:30:04+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 00:45:04+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 01:00:05+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 01:15:04+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 01:30:04+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 01:45:04+02\",387,387,387],[\"Altmarkt\",\"2014-04-14 02:00:04+02\",387,387,387]]}}]},{\"rowId\":\"p3svdl5\",\"items\":[{\"query\":\"-- more window functions!\\n-- row_number() lets you count rows\\n-- rank() prints the rank of a row within an order but includes\\n-- dense_rank() is like rank() but without gaps\\nSELECT name, time, free,\\n row_number() OVER w,\\n rank() OVER w,\\n dense_rank() OVER w\\n FROM parkplatz\\nWINDOW w AS (\\n ORDER BY time\\n )\\n LIMIT 100;\",\"id\":\"uxzk5x5\",\"error\":null,\"loading\":false,\"result\":{\"columns\":[\"name\",\"time\",\"free\",\"row_number\",\"rank\",\"dense_rank\"],\"values\":[[\"Altmarkt\",\"2014-04-13 01:38:23+02\",354,\"1\",\"1\",\"1\"],[\"An der Frauenkirche\",\"2014-04-13 01:38:23+02\",123,\"2\",\"1\",\"1\"],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:38:23+02\",216,\"3\",\"1\",\"1\"],[\"Haus am Zwinger\",\"2014-04-13 01:38:23+02\",143,\"4\",\"1\",\"1\"],[\"Schießgasse\",\"2014-04-13 01:38:23+02\",131,\"5\",\"1\",\"1\"],[\"Taschenbergpalais\",\"2014-04-13 01:38:23+02\",15,\"6\",\"1\",\"1\"],[\"Kongresszentrum\",\"2014-04-13 01:38:23+02\",213,\"7\",\"1\",\"1\"],[\"Parkhaus Mitte\",\"2014-04-13 01:38:23+02\",247,\"8\",\"1\",\"1\"],[\"Semperoper\",\"2014-04-13 01:38:23+02\",337,\"9\",\"1\",\"1\"],[\"World Trade Center\",\"2014-04-13 01:38:23+02\",213,\"10\",\"1\",\"1\"],[\"Centrum-Galerie\",\"2014-04-13 01:38:23+02\",729,\"11\",\"1\",\"1\"],[\"Ferdinandplatz\",\"2014-04-13 01:38:23+02\",142,\"12\",\"1\",\"1\"],[\"Reitbahnstraße\",\"2014-04-13 01:38:23+02\",98,\"13\",\"1\",\"1\"],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:38:23+02\",179,\"14\",\"1\",\"1\"],[\"Wöhrl - Florentinum\",\"2014-04-13 01:38:23+02\",252,\"15\",\"1\",\"1\"],[\"City Center\",\"2014-04-13 01:38:23+02\",345,\"16\",\"1\",\"1\"],[\"Lindengasse\",\"2014-04-13 01:38:23+02\",68,\"17\",\"1\",\"1\"],[\"Pirnaischer Platz\",\"2014-04-13 01:38:23+02\",121,\"18\",\"1\",\"1\"],[\"Terrassenufer\",\"2014-04-13 01:38:23+02\",41,\"19\",\"1\",\"1\"],[\"Hauptstraße\",\"2014-04-13 01:38:23+02\",18,\"20\",\"1\",\"1\"],[\"Sarrasanistraße\",\"2014-04-13 01:38:23+02\",9,\"21\",\"1\",\"1\"],[\"Theresienstraße\",\"2014-04-13 01:38:23+02\",137,\"22\",\"1\",\"1\"],[\"Wiesentorstraße\",\"2014-04-13 01:38:23+02\",75,\"23\",\"1\",\"1\"],[\"Altmarkt\",\"2014-04-13 01:45:04+02\",354,\"24\",\"24\",\"2\"],[\"An der Frauenkirche\",\"2014-04-13 01:45:04+02\",123,\"25\",\"24\",\"2\"],[\"Frauenkirche Neumarkt\",\"2014-04-13 01:45:04+02\",216,\"26\",\"24\",\"2\"],[\"Haus am Zwinger\",\"2014-04-13 01:45:04+02\",143,\"27\",\"24\",\"2\"],[\"Schießgasse\",\"2014-04-13 01:45:04+02\",131,\"28\",\"24\",\"2\"],[\"Taschenbergpalais\",\"2014-04-13 01:45:04+02\",15,\"29\",\"24\",\"2\"],[\"Kongresszentrum\",\"2014-04-13 01:45:04+02\",213,\"30\",\"24\",\"2\"],[\"Parkhaus Mitte\",\"2014-04-13 01:45:04+02\",247,\"31\",\"24\",\"2\"],[\"Semperoper\",\"2014-04-13 01:45:04+02\",337,\"32\",\"24\",\"2\"],[\"World Trade Center\",\"2014-04-13 01:45:04+02\",213,\"33\",\"24\",\"2\"],[\"Centrum-Galerie\",\"2014-04-13 01:45:04+02\",730,\"34\",\"24\",\"2\"],[\"Ferdinandplatz\",\"2014-04-13 01:45:04+02\",142,\"35\",\"24\",\"2\"],[\"Reitbahnstraße\",\"2014-04-13 01:45:04+02\",97,\"36\",\"24\",\"2\"],[\"Wiener Platz/Hbf.\",\"2014-04-13 01:45:04+02\",179,\"37\",\"24\",\"2\"],[\"Wöhrl - Florentinum\",\"2014-04-13 01:45:04+02\",252,\"38\",\"24\",\"2\"],[\"City Center\",\"2014-04-13 01:45:04+02\",345,\"39\",\"24\",\"2\"],[\"Lindengasse\",\"2014-04-13 01:45:04+02\",68,\"40\",\"24\",\"2\"],[\"Pirnaischer Platz\",\"2014-04-13 01:45:04+02\",122,\"41\",\"24\",\"2\"],[\"Terrassenufer\",\"2014-04-13 01:45:04+02\",42,\"42\",\"24\",\"2\"],[\"Hauptstraße\",\"2014-04-13 01:45:04+02\",18,\"43\",\"24\",\"2\"],[\"Sarrasanistraße\",\"2014-04-13 01:45:04+02\",9,\"44\",\"24\",\"2\"],[\"Theresienstraße\",\"2014-04-13 01:45:04+02\",137,\"45\",\"24\",\"2\"],[\"Wiesentorstraße\",\"2014-04-13 01:45:04+02\",75,\"46\",\"24\",\"2\"],[\"Altmarkt\",\"2014-04-13 02:00:05+02\",354,\"47\",\"47\",\"3\"],[\"An der Frauenkirche\",\"2014-04-13 02:00:05+02\",123,\"48\",\"47\",\"3\"],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:00:05+02\",216,\"49\",\"47\",\"3\"],[\"Haus am Zwinger\",\"2014-04-13 02:00:05+02\",144,\"50\",\"47\",\"3\"],[\"Schießgasse\",\"2014-04-13 02:00:05+02\",132,\"51\",\"47\",\"3\"],[\"Taschenbergpalais\",\"2014-04-13 02:00:05+02\",15,\"52\",\"47\",\"3\"],[\"Kongresszentrum\",\"2014-04-13 02:00:05+02\",214,\"53\",\"47\",\"3\"],[\"Parkhaus Mitte\",\"2014-04-13 02:00:05+02\",247,\"54\",\"47\",\"3\"],[\"Semperoper\",\"2014-04-13 02:00:05+02\",337,\"55\",\"47\",\"3\"],[\"World Trade Center\",\"2014-04-13 02:00:05+02\",213,\"56\",\"47\",\"3\"],[\"Centrum-Galerie\",\"2014-04-13 02:00:05+02\",730,\"57\",\"47\",\"3\"],[\"Ferdinandplatz\",\"2014-04-13 02:00:05+02\",142,\"58\",\"47\",\"3\"],[\"Reitbahnstraße\",\"2014-04-13 02:00:05+02\",100,\"59\",\"47\",\"3\"],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:00:05+02\",179,\"60\",\"47\",\"3\"],[\"Wöhrl - Florentinum\",\"2014-04-13 02:00:05+02\",252,\"61\",\"47\",\"3\"],[\"City Center\",\"2014-04-13 02:00:05+02\",345,\"62\",\"47\",\"3\"],[\"Lindengasse\",\"2014-04-13 02:00:05+02\",69,\"63\",\"47\",\"3\"],[\"Pirnaischer Platz\",\"2014-04-13 02:00:05+02\",122,\"64\",\"47\",\"3\"],[\"Terrassenufer\",\"2014-04-13 02:00:05+02\",43,\"65\",\"47\",\"3\"],[\"Hauptstraße\",\"2014-04-13 02:00:05+02\",18,\"66\",\"47\",\"3\"],[\"Sarrasanistraße\",\"2014-04-13 02:00:05+02\",9,\"67\",\"47\",\"3\"],[\"Theresienstraße\",\"2014-04-13 02:00:05+02\",137,\"68\",\"47\",\"3\"],[\"Wiesentorstraße\",\"2014-04-13 02:00:05+02\",75,\"69\",\"47\",\"3\"],[\"Altmarkt\",\"2014-04-13 02:15:05+02\",355,\"70\",\"70\",\"4\"],[\"An der Frauenkirche\",\"2014-04-13 02:15:05+02\",123,\"71\",\"70\",\"4\"],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:15:05+02\",216,\"72\",\"70\",\"4\"],[\"Haus am Zwinger\",\"2014-04-13 02:15:05+02\",146,\"73\",\"70\",\"4\"],[\"Schießgasse\",\"2014-04-13 02:15:05+02\",136,\"74\",\"70\",\"4\"],[\"Taschenbergpalais\",\"2014-04-13 02:15:05+02\",15,\"75\",\"70\",\"4\"],[\"Kongresszentrum\",\"2014-04-13 02:15:05+02\",214,\"76\",\"70\",\"4\"],[\"Parkhaus Mitte\",\"2014-04-13 02:15:05+02\",247,\"77\",\"70\",\"4\"],[\"Semperoper\",\"2014-04-13 02:15:05+02\",337,\"78\",\"70\",\"4\"],[\"World Trade Center\",\"2014-04-13 02:15:05+02\",213,\"79\",\"70\",\"4\"],[\"Centrum-Galerie\",\"2014-04-13 02:15:05+02\",730,\"80\",\"70\",\"4\"],[\"Ferdinandplatz\",\"2014-04-13 02:15:05+02\",142,\"81\",\"70\",\"4\"],[\"Reitbahnstraße\",\"2014-04-13 02:15:05+02\",104,\"82\",\"70\",\"4\"],[\"Wiener Platz/Hbf.\",\"2014-04-13 02:15:05+02\",179,\"83\",\"70\",\"4\"],[\"Wöhrl - Florentinum\",\"2014-04-13 02:15:05+02\",252,\"84\",\"70\",\"4\"],[\"City Center\",\"2014-04-13 02:15:05+02\",345,\"85\",\"70\",\"4\"],[\"Lindengasse\",\"2014-04-13 02:15:05+02\",69,\"86\",\"70\",\"4\"],[\"Pirnaischer Platz\",\"2014-04-13 02:15:05+02\",123,\"87\",\"70\",\"4\"],[\"Terrassenufer\",\"2014-04-13 02:15:05+02\",43,\"88\",\"70\",\"4\"],[\"Hauptstraße\",\"2014-04-13 02:15:05+02\",18,\"89\",\"70\",\"4\"],[\"Sarrasanistraße\",\"2014-04-13 02:15:05+02\",8,\"90\",\"70\",\"4\"],[\"Theresienstraße\",\"2014-04-13 02:15:05+02\",137,\"91\",\"70\",\"4\"],[\"Wiesentorstraße\",\"2014-04-13 02:15:05+02\",75,\"92\",\"70\",\"4\"],[\"Altmarkt\",\"2014-04-13 02:30:04+02\",355,\"93\",\"93\",\"5\"],[\"An der Frauenkirche\",\"2014-04-13 02:30:04+02\",123,\"94\",\"93\",\"5\"],[\"Frauenkirche Neumarkt\",\"2014-04-13 02:30:04+02\",216,\"95\",\"93\",\"5\"],[\"Haus am Zwinger\",\"2014-04-13 02:30:04+02\",147,\"96\",\"93\",\"5\"],[\"Schießgasse\",\"2014-04-13 02:30:04+02\",144,\"97\",\"93\",\"5\"],[\"Taschenbergpalais\",\"2014-04-13 02:30:04+02\",15,\"98\",\"93\",\"5\"],[\"Kongresszentrum\",\"2014-04-13 02:30:04+02\",214,\"99\",\"93\",\"5\"],[\"Parkhaus Mitte\",\"2014-04-13 02:30:04+02\",247,\"100\",\"93\",\"5\"]]}}]}],\"forceRenderToken\":60}},\"autoconnect\":false,\"version\":2}";
</script>
<script type="text/javascript">
function sendData(target, src){
console.log(src)
if(typeof DATA != 'undefined'){
target.postMessage(DATA, '*')
}
}
window.addEventListener("message", function(e){
console.log(e.data)
if(e.data == 'franchise-request-import'){
e.source.postMessage({ action: 'franchise-import', data: DATA }, '*')
}
}, false)
setTimeout(function(){
if(typeof DATA != 'undefined'){
document.getElementById('click').style.display = ''
document.getElementById('loader').style.display = 'none'
}
}, 1500);
</script>
<iframe src="http://localhost:3000/reciever.html" onload="sendData(this.contentWindow, this.src)"></iframe>
<iframe src="https://franchise.cloud/app/reciever.html" onload="sendData(this.contentWindow, this.src)"></iframe>