TABLE
("") as Cover,
series AS Series,
PageCount as Pages,
dateRead AS DateRead,
rating*"★"+(5-rating)*"☆" AS Rating
WHERE author = [[Agatha Christie]] AND contains(file.tags,"book")
SORT title
Give this a shot! I don’t think the flatten is needed