root_genres (view)
45 rows
This data as json, CSV (advanced)
| label |
|---|
| Action |
| Adult |
| Adventure |
| Animated |
| Avant |
| Avant Garde |
| Biography |
| Comedy |
| Coomedy |
| Crime |
| Dance |
| Disaster |
| Docudrama |
| Documentary |
| Drama |
| Dramaical |
| Erotic |
| Experimental |
| Family |
| Fantasy |
| Garde |
| History |
| Horror |
| Music |
| Musical |
| Mystery |
| News |
| Opera |
| Political |
| Prison |
| Reality |
| Reality TV |
| Religious |
| Romance |
| Romantic |
| Science Fiction |
| Short |
| Sport |
| Spy |
| TV |
| Thriller |
| War |
| Western |
| documn |
| sh |
Advanced export
JSON shape: default, array, newline-delimited
CREATE VIEW root_genres AS
WITH RECURSIVE split(label, str) AS (
SELECT
'',
genre || '-'
FROM starting_list
UNION ALL
SELECT
substr(str, 0, instr(str, '-')) as label,
substr(str, instr(str, '-') + 1) as str
FROM split
WHERE str != ''
)
SELECT
DISTINCT label
FROM split
WHERE label != ''
ORDER BY label;