namespace VideoStreamingService
features
    VideoStream {abstract}
        mandatory
            Category
                alternative
                    Movie
                    Series
                    Documentary
            Quality
                or
                    SD
                    HD
                    FullHD
            Audio
                alternative
                    Stereo
                    Surround
        optional
            Subtitles
            Dubbing
            Integer Bitrate { constraint Bitrate >= 100 & Bitrate <= 10000 }
    Movie
        mandatory
            Genre
                or
                    Action
                    Comedy
                    Drama
            Director
            Year
                [1980..2022]
                    Integer ReleaseYear { constraint ReleaseYear >= 1980 & ReleaseYear <= 2022 }
            Actor
                [1..5]
                    String ActorName
    Series
        mandatory
            Season
                [1..10]
                    Integer SeasonNumber { constraint SeasonNumber >= 1 & SeasonNumber <= 10 }
            Episode
                [1..20]
                    Integer EpisodeNumber { constraint EpisodeNumber >= 1 & EpisodeNumber <= 20 }
            Genre
                or
                    SciFi
                    Fantasy
                    Horror
    Documentary
        mandatory
            Topic
                alternative
                    History
                    Science
                    Nature
            Narrator
            Year
                [1980..2022]
                    Integer ReleaseYear { constraint ReleaseYear >= 1980 & ReleaseYear <= 2022 }
    Subtitles
        or
            English
            Spanish
            French
    Dubbing
        alternative
            English
            Spanish
            French
    Bitrate
        mandatory
            Low
                [100..500]
                    Integer BitrateValue { constraint BitrateValue >= 100 & BitrateValue <= 500 }
            High
                [500..10000]
                    Integer BitrateValue { constraint BitrateValue >= 500 & BitrateValue <= 10000 }
constraints
    Movie => Genre
    Series => Season
    Documentary => Topic
    Quality => Audio
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => Low | High
    (Movie & Action) => HD
    (Series & SciFi) => FullHD
    (Documentary & History) => SD
    ((Movie | Series) & Dubbing) => English
    (Documentary & Narrator) => English
    (Quality & Audio) => Bitrate
    ((Genre & Action) | (Genre & Comedy)) => Stereo
    (((Movie & Drama) | (Series & Fantasy)) & Dubbing) => Surround
    ((((Movie & Horror) | (Series & SciFi)) & Subtitles) & Dubbing) => French
    (((((Documentary & Nature) | (Movie & Action)) & Quality) & Audio) & Bitrate) => Low
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    Movie => (Year & ReleaseYear)
    Series => (Season & EpisodeNumber)
    Documentary => (Topic & Narrator)
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => (Low | High)
    (Movie & Action) => (Genre & HD)
    (Series & SciFi) => (Season & FullHD)
    (Documentary & History) => (Topic & SD)
    ((Movie | Series) & Dubbing) => English
    (Documentary & Narrator) => English
    (Quality & Audio) => Bitrate
    ((Genre & Action) | (Genre & Comedy)) => Stereo
    (((Movie & Drama) | (Series & Fantasy)) & Dubbing) => Surround
    ((((Movie & Horror) | (Series & SciFi)) & Subtitles) & Dubbing) => French
    (((((Documentary & Nature) | (Movie & Action)) & Quality) & Audio) & Bitrate) => Low
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    Movie => (Year & ReleaseYear)
    Series => (Season & EpisodeNumber)
    Documentary => (Topic & Narrator)
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => (Low | High)
    (Movie & Action) => (Genre & HD)
    (Series & SciFi) => (Season & FullHD)
    (Documentary & History) => (Topic & SD)
    ((Movie | Series) & Dubbing) => English
    (Documentary & Narrator) => English
    (Quality & Audio) => Bitrate
    ((Genre & Action) | (Genre & Comedy)) => Stereo
    (((Movie & Drama) | (Series & Fantasy)) & Dubbing) => Surround
    ((((Movie & Horror) | (Series & SciFi)) & Subtitles) & Dubbing) => French
    (((((Documentary & Nature) | (Movie & Action)) & Quality) & Audio) & Bitrate) => Low
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    Movie => (Year & ReleaseYear)
    Series => (Season & EpisodeNumber)
    Documentary => (Topic & Narrator)