namespace VideoStreamingService

features
	VideoStreamingPlatform {abstract}
		mandatory
			SupportedDevices {abstract}
				or
					MobileApp {Price 5, MonthlyCost 3}
						mandatory
							iOSApp
							AndroidApp
					WebApp {Price 0, MonthlyCost 2.5}
			SubscriptionPlans {abstract}
				or
					BasicPlan {Price 7, MonthlyCost 6}
					PremiumPlan {Price 15, MonthlyCost 10}
						mandatory
							AdFree
						optional
							HDQuality
							UltraHDQuality
					FamilyPlan {Price 23, MonthlyCost 18}
						mandatory
							MultiUserAccess {MaxUsers 4}
						alternative
							StandardHDQuality
							HighDefinitionQuality
							UltraHighDefinitionQuality
					BusinessPlan {Price 50, MonthlyCost 25}
						mandatory
							MultiUserAccess {MaxUsers 10}
							ScreenShare {MaxScreens 4}
						optional
							EnhancedSecurity
			ContentCategories {abstract}
				or
					Films {Genre "Action"}
						mandatory
							LatestReleases
							ClassicCollection
					TvShows {Genre "Comedy"}
						mandatory
							PopularSeries
							UpcomingSeasons
					Sports {Genre "Sport"}
						mandatory
							LiveStreams
							HighlightsReel
					Music {Genre "Music"}
						mandatory
							ConcertLivestreams
							RadioStations
			AddOnServices {abstract}
				or
					CloudBackupService {Price 5, MonthlyCost 2}
					DownloadableContent {Price 3, MonthlyCost 1.5}
					VirtualRealitySupport {Price 10, MonthlyCost 4}
					SocialIntegration {Price 2, MonthlyCost 1}
						mandatory
							FacebookIntegration
							TwitterIntegration
						optional
							InstagramIntegration
			PaymentMethods {abstract}
				or
					CreditCardPayment {Fee 3.5, Type "CreditCard"}
					DebitCardPayment {Fee 2.0, Type "DebitCard"}
					BankTransfer {Fee 1.0, Type "BankTransfer"}
					PaypalIntegration {Fee 0.75, Type "PayPal"}
			SecurityFeatures {abstract}
				mandatory
					TwoFactorAuthentication {Price 1, MonthlyCost 0.25}
				optional
					VPNAccess {Price 4, MonthlyCost 1.5}
					ParentalControls {Price 3, MonthlyCost 1}
			UserInterfaceLanguages {abstract}
				mandatory
					EnglishLanguage {Price 0, Language "English"}
				alternative
					SpanishLanguage {Price 2, Language "Spanish"}
					FrenchLanguage {Price 2, Language "French"}
					GermanLanguage {Price 2, Language "German"}
					ItalianLanguage {Price 2, Language "Italian"}
			CustomerSupportOptions {abstract}
				or
					OnlineChatSupport {ResponseTime real} {Price 3, SupportType "Chat"}
					EmailSupport {ResponseTime real} {Price 2, SupportType "Email"}
					PhoneSupport {ResponseTime real} {Price 5, SupportType "Phone"}
			SpecialOffersAndPromotions {abstract}
				or
					LimitedTimeOffer {Discount percentage} {Price 0, OfferName string}
						mandatory
							ExclusiveContentAccess
						optional
							EarlyBirdBonus
					BirthdaySpecial {Discount percentage} {Price 0, OfferName string}

constraints
	BasicPlan.Price + WebApp.Price < 20
	FamilyPlan.Price * MultiUserAccess.MaxUsers > 150
	PremiumPlan.MonthlyCost < BusinessPlan.MonthlyCost
	DownloadableContent.Price - CloudBackupService.Price == 2
	LiveStreams.MaxScreens > UltraHDQuality.Streams
	SpanishLanguage.ResponseTime / FrenchLanguage.ResponseTime <= 2.0
	BusinessPlan.Discount < FamilyPlan.Discount
	ConcertLivestreams.Fee + BankTransfer.Fee >= 5
	iOSApp.Price - AndroidApp.Price == 3
	VPNAccess.MaxScreens * ParentalControls.Price <= 10
	FamilyPlan.MonthlyCost + BusinessPlan.MonthlyCost > 25
	TwoFactorAuthentication.Price > UltraHDQuality.Price
	ConcertLivestreams.Fee / ScreenShare.MaxScreens >= 1.0
	StandardHDQuality.Streams - HighDefinitionQuality.Streams < 20
	EmailSupport.ResponseTime + PhoneSupport.Price <= 7
	LimitedTimeOffer.Discount * ExclusiveContentAccess.ContentCount <= 30
	BirthdaySpecial.Discount > 5
	BusinessPlan.MaxUsers >= FamilyPlan.MaxUsers
	SocialIntegration.Fee - VirtualRealitySupport.Price == 1
	StandardHDQuality.Price + HighDefinitionQuality.Price < 40
	BasicPlan.MonthlyCost * WebApp.Price == 21
	UltraHDQuality.Streams + HDQuality.Streams > 30
	ClassicCollection.Fee / PopularSeries.Fee <= 2.0
	UserInterfaceLanguages.Price + SecurityFeatures.Price >= 6
	EnhancedSecurity.Discount - AdFree.Discount < 5
	SpecialOffersAndPromotions.Budget * MultiUserAccess.MaxUsers > 100
	PaymentMethods.Fee / PromoCode.Discount == 3.5
	FamilyPlan.Users * StandardHDQuality.Streams >= 40
	BusinessPlan.ScreenShare * LiveStreams.Duration >= 80
	Sports.HighlightsReel + Music.RadioStations > 15
	ConcertLivestreams.Fee == LiveStreams.MaxScreens / 2
	UserInterfaceLanguages.ResponseTime - EmailSupport.ResponseTime > 3
	FamilyPlan.Budget * HighDefinitionQuality.Streams < 200
	SecurityFeatures.Users * AdFree.Advertisements < 40
	LimitedTimeOffer.Discount + EarlyBirdBonus.Value >= 15
	BusinessPlan.MaxUsers / ScreenShare.Sessions >= 5
	OnlineChatSupport.Price + VPNAccess.Fee <= 7.5
	TvShows.Duration - ConcertLivestreams.MaxSessions == 3
	ConcertLivestreams.Discount * DownloadableContent.Storage < 40
	StandardHDQuality.Streams - UltraHighDefinitionQuality.Streams > 10
	SocialIntegration.Users * OnlineChatSupport.Fee > 25
	LiveStreams.Duration * RadioStations.Quality >= 60
	FamilyPlan.Budget + AdFree.Advertisements > 55
	ConcertLivestreams.Storage / BasicPlan.Price <= 3.5
	PremiumPlan.MaxUsers * DownloadableContent.Streams > 120
	SpecialOffersAndPromotions.ResponseTime - CreditCardPayment.Fee >= 4
	BusinessPlan.ScreenShare * FacebookIntegration.Users <= 50
	SecurityFeatures.MaxUsers - AndroidApp.Price <= 7.5
	LimitedTimeOffer.Duration - EmailSupport.Users < 8
	HighDefinitionQuality.Discount + ClassicCollection.Fee > 12
	ConcertLivestreams.MaxSessions / WebApp.Users >= 4
	FamilyPlan.Streams * ParentalControls.Duration > 90
	BusinessPlan.Budget * HDQuality.Storage <= 75
	SpecialOffersAndPromotions.Users - DebitCardPayment.MaxUsers < 3
	StandardHDQuality.Price + UltraHighDefinitionQuality.Price < 60