Transcript text: Translate each of the English-language information requests below into a relational algebra query. You do not need to provide SQL or the actual output tables, though you may find it useful to compute results as you formulate relational algebra expressions. Base your answers on the following relations (see sample data on the next page):
BANDS(Id, Name, FormedIn, Country)
MUSICIANS(MId, Name, BandId, FromYear, ToYear)
ALBUMS(AId, Title, BandId, Year)
You may abbreviate relation names using just the first letter of each (B, M, A)
Exercises
1. For each band, find the band ID, the name of the band, and the total number of albums listed in the database for the band. Order by album count, highest to lowest.
2. Find bands that had two or more members in the band's year of formation. List band name, year of formation, and member count. Order by band name, A-Z.
3. For each country, list the number of albums released between 1970 and 1979 (inclusive) by bands from that country. List country and album count, order by country A-Z.
4. For each band, find the span in years between the band's year of formation and the most recent album released by that band. List band name and span in years (an integer.)
5. Find the name(s) of the band(s) that released the greatest number of albums between 1970 and 1979 (inclusive)