Query

SELECT
    courses.id,
    courses.created_at,
    courses.name,
    courses.source_lang,
    flattened_translations.value['lang']::varchar AS translation_lang,
    flattened_translations.value['published']::boolean AS is_translation_published
FROM qwnogpy_ww21770_datasharing.core.courses,
TABLE(FLATTEN(courses.translations_langs)) flattened_translations
ORDER BY courses.created_at DESC, courses.name, translation_lang

Description

To go further

Fetch courses with a translation published

Fetch the elements of a course