Changed apply-preparation order.
Chain queries.