#We can do joins too. average_star_5 <- users |>inner_join(reviews,by ="user_id") |>inner_join(businesses,by =c("business_id"="id"),suffix=c(".users",".business")) |>filter(stars.business >4.99) |>count(city,sort =TRUE)#The collect() function brings a tabl_sql into R as a tbl_df uses more space.# collect()print(object.size(average_star_5),units="Kb")