-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.json
123 lines (123 loc) · 2.87 KB
/
queries.json
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
118
119
120
121
122
123
{
"isOpen": true,
"items": [
{
"id": "VjNiaVO_jsjUTtEUAO9UW",
"value": "fuse",
"name": "As Table",
"description": "",
"tags": []
},
{
"id": "OJ2eylOjosI-F_2L3ZJaV",
"value": "value > 1",
"name": "Bigger Than One",
"description": "",
"tags": []
},
{
"id": "nsVO3j0PTWYsR-ODn1ee3",
"value": "2",
"name": "Find all Two's",
"description": "",
"tags": []
},
{
"id": "7jFHLNh1pPRM3DkVngmkW",
"value": "has(len(value)) | len:=len(value) | fuse",
"name": "Values with Lengths",
"description": "",
"tags": []
},
{
"id": "Q6yP2dpjco9IHrBN2Xu89",
"value": "Kristen",
"name": "Search Kristen",
"description": "",
"tags": []
},
{
"id": "PHmcr8pBuwu-7cGEl_iP7",
"value": "Kristen | cut phone",
"name": "Kristen's Number",
"description": "",
"tags": []
},
{
"id": "dmy4pCa3a7EDsQg4hHVGd",
"value": "people:=union(name) by city",
"name": "People by City",
"description": "",
"tags": []
},
{
"id": "LS8TE4pk7kB9_-RxyrWa-",
"value": "count() by shape:=typeof(this) | sort -r count",
"name": "Shapes",
"description": "",
"tags": []
},
{
"isOpen": false,
"items": [],
"name": "SQL",
"id": "vNOoHPLGsZf6G8jkB-DGj"
},
{
"id": "9o1h8zbNkH_ODzAkjBfxF",
"value": "SELECT * FROM employee",
"name": "All Employees",
"description": "",
"tags": [
"relational"
]
},
{
"id": "J9_MCs4BN4V-C6uxKstSx",
"value": "SELECT name,salary FROM employee WHERE salary >= 250000 ORDER by salary DESC",
"name": "Highest Paid",
"description": "",
"tags": [
"relational"
]
},
{
"id": "wcQcyctgacbHqonLSwTPz",
"value": "SELECT * FROM deal",
"name": "All Deals",
"description": "",
"tags": [
"relational"
]
},
{
"id": "IXtg593qI1gvDCYtzCm1v",
"value": "SELECT name, sum(forecast) as forecast FROM deal GROUP BY name ORDER BY forecast DESC",
"name": "Top Forecast",
"description": "",
"tags": [
"relational"
]
},
{
"id": "4dHtmFsbyM9b57_BHpCRV",
"value": "SELECT name, union(forecast) as deals, sum(forecast) as total FROM deal GROUP BY name ORDER BY total DESC",
"name": "Detailed Forecast",
"description": "",
"tags": [
"relational"
]
},
{
"id": "v_uvvbyyCoJOddoRO0Gcv",
"value": "SELECT d.customer as customer, d.name AS name, e.phone as phone FROM deal d JOIN employee e ON d.name=e.name",
"name": "Contact for Customer (JOIN)",
"description": "",
"tags": [
"relational"
]
}
],
"name": "Welcome",
"id": "NFTBp3dhh3ZWOZKTNuGq8"
}