1--
2-- COMMENTS
3--
4
5SELECT 'trailing' AS first; -- trailing single line
6SELECT /* embedded single line */ 'embedded' AS second;
7SELECT /* both embedded and trailing single line */ 'both' AS third; -- trailing single line
8
9SELECT 'before multi-line' AS fourth;
10/* This is an example of SQL which should not execute:
11 * select 'multi-line';
12 */
13SELECT 'after multi-line' AS fifth;
14
15--
16-- Nested comments
17--
18
19/*
20SELECT 'trailing' as x1; -- inside block comment
21*/
22
23/* This block comment surrounds a query which itself has a block comment...
24SELECT /* embedded single line */ 'embedded' AS x2;
25*/
26
27SELECT -- continued after the following block comments...
28/* Deeply nested comment.
29   This includes a single apostrophe to make sure we aren't decoding this part as a string.
30SELECT 'deep nest' AS n1;
31/* Second level of nesting...
32SELECT 'deeper nest' as n2;
33/* Third level of nesting...
34SELECT 'deepest nest' as n3;
35*/
36Hoo boy. Still two deep...
37*/
38Now just one deep...
39*/
40'deeply nested example' AS sixth;
41
42/* and this is the end of the file */
43