forked from lloydtabb/imdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirectors.malloynb
38 lines (38 loc) · 994 Bytes
/
directors.malloynb
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
[
{
"kind": 1,
"language": "markdown",
"value": "# Directors\nWho are the top directors? What did they direct? In each genres? Who do they work with?",
"metadata": {}
},
{
"kind": 2,
"language": "malloy",
"value": "import \"imdb.malloy\"",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## Top directors and their 5 best movies",
"metadata": {}
},
{
"kind": 2,
"language": "malloy",
"value": "query: movies->by_name + {\n where: principals.category = 'director'\n nest: by_title + { limit: 5}\n limit: 10\n}",
"metadata": {}
},
{
"kind": 1,
"language": "markdown",
"value": "## Top comedy directors and their 5 best movies",
"metadata": {}
},
{
"kind": 2,
"language": "malloy",
"value": "query: movies->by_name + {\n where: principals.category = 'director', genres.value = 'Comedy'\n nest: by_title + { limit: 5}\n limit: 10\n}",
"metadata": {}
}
]