Rewrite of 1.4 query.