I. We have the database schema consists of five relations: Movies (title, year, length,…
Jump to turn (6)
- User
I. We have the database schema consists of five relations: Movies (title, year, length, genre, studioName, producer#) StarsIn (movieTitle, movieYear, starName) MovieStar (name, address, gender, birthdate) MovieExec (producer#, name, address, netWorth) Studio (name, address, presC#) Write expressions of relational algebra to answer the following queries.
- Find title and length of movies produced by Disney in 1990.
- Find date of birth of Aishwarya Rai who is a movie star.
- Find the address of studio Film City.
- List name of the female stars in the film “Monsoon Wedding”.
- List name and gender of stars that appeared in movies produced by Sony in 2005.
- Find name of the producer of Star Wars.
- Find name of executives that are worth more than Subhash Ghai.
- Find title of movies that are no longer than “Bride and Prejudice”.
- List all the titles and years of movies that appeared in either the Movies or StarsIn relation. Find name and address of all male movie stars who are also movie executives with a net worth under $10,000,000.
Can you solve it and explain it in detail ?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.