2022 query loop block