CREATE TABLE Reviewer (rID INT, name TEXT)
CREATE TABLE Rating (rID INT, mID INT, stars INT, ratingDate DATE)
CREATE TABLE Movie (mID INT, title TEXT, year INT, director TEXT)

What is the average rating for each movie that has never been reviewed by Brittany Harris.
SELECT mID, AVG(stars) FROM Rating WHERE NOT mID IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris") GROUP BY mID
WITH "_u_0" AS (SELECT ARRAY_AGG("mID") AS "", "T2"."name" AS "_u_1" FROM "Rating" AS "T1" JOIN "Reviewer" AS "T2" ON "T1"."rID" = "T2"."rID" GROUP BY "T2"."name") SELECT "mID", AVG("stars") FROM "Rating" LEFT JOIN "_u_0" AS "_u_0" ON "Brittany Harris" = "_u_0"."_u_1" WHERE NOT ARRAY_ANY("_u_0"."", "_x" -> "mID" = "_x") GROUP BY "mID"