Question: Which opera was based on Shakespeare, Lear or Il re pastore?

Context paragraphs:
The Tomfoolery Show: The Tomfoolery Show is an American cartoon comedy television series made and first broadcast in 1970, based on the works of Edward Lear.  The animation was done at the Halas and Batchelor Studios in London and Stroud.  Though the works of other writers were also used, notably Lewis Carroll and Ogden Nash, Lear's works were the main source, and characters like the Yongy-Bonghy-Bo and the Umbrageous Umbrella Maker were all Lear creations.  Other regular characters included the Enthusiastic Elephant, the Fizzgiggious Fish, and the Scroobious Snake.  Some original material was also written based on characters created by Lear, although much of the material was a straight recital of poems and limericks or songs using Lear's poems set to music.  A recurring joke had a delivery boy running around trying to deliver a large plant and shouting 'Plant for Mrs Discobolus!' .

King Lear (1999 film): King Lear is a 1999 adaptation of William Shakespeare's play of the same name.  The film stars Brian Blessed (who also co-directed the film, along with Tony Rotherham) in the title role.  Apart from Peter Brook's "King Lear" in 1971, it is the only other feature length film adaptation to preserve Shakespeare's verse.  Yvonne Griggs, in "Shakespeare's King Lear: A close study of the relationship between text and film" (2009), characterised it as "a very stilted costume drama".

Il re pastore: Il re pastore ("The Shepherd King") is an opera, K. 208, written by Wolfgang Amadeus Mozart to an Italian libretto by Metastasio, edited by Giambattista Varesco.  It is an opera seria.  The opera was first performed on 23 April 1775 in Salzburg, at the Palace of the Archbishop Count Hieronymus von Colloredo.

Act III Communications: Act III Communications is a diversified media and entertainment company owned by TV producer Norman Lear.  It was started in 1985 following Lear's sale of Embassy Communications to The Coca-Cola Company.  In a Wall St. Journal interview in 1988, Lear explained the name by noting that in a Shakespeare play there are always more than three acts and that he expects there to be an Act IV and V. Act III is Lear's business vehicle and is unconnected to his other activities as a political activist and philanthropist.

Aribert Reimann: Aribert Reimann (born 4 March 1936) is a German composer, pianist and accompanist, known especially for his literary operas.  His version of Shakespeare's "King Lear", the opera "Lear", was written at the suggestion of Dietrich Fischer-Dieskau, who sang the title role.  His opera "Medea" after Grillparzer's play premiered in 2010 at the Vienna State Opera.  He was a professor of contemporary song in Hamburg and Berlin.  In 2011, he was awarded the Ernst von Siemens Music Prize for his life's work.

Il re pastore (libretto): Il re pastore is a 1751 Italian-language opera libretto written by Metastasio.  It was first set by Giuseppe Bonno in 1751, but best known today in the version by Gluck (1756) and the Il re pastore of Mozart (1775).

Lear (opera): Lear is an opera in two parts with music by the German composer Aribert Reimann, and a libretto by Claus H. Henneberg, based on Shakespeare's tragedy "King Lear".

Kuningas Lear: Kuningas Lear (King Lear) is an opera in two acts by Aulis Sallinen, with a libretto by the composer, based on the play by William Shakespeare and premiered in 2000; it was Sallinen’s sixth opera.

Re Lear: Re Lear (] ; Italian for "King Lear") is an Italian operatic libretto in four acts written by Antonio Somma for the Italian opera composer Giuseppe Verdi.  It was based on "King Lear", "the Shakespeare play with which Verdi struggled for so many years, but without success".

King Lear (1987 film): King Lear is a 1987 film directed by Jean-Luc Godard, an adaptation of Shakespeare's play in the style of experimental French New Wave cinema.  The script was primarily by Peter Sellars and Tom Luddy, and was originally assigned to Norman Mailer.  It is not a typical cinematic adaptation of Shakespeare's tragedy "King Lear", although some lines from the play are used in the film.  Only three characters – Lear, Cordelia and Edgar – are common to both, and only Act I, scene 1 is given a conventional cinematic treatment in that two or three people actually engage in relatively meaningful dialogue.

Supporting paragraphs: Lear (opera) Il re pastore
Answer: Lear