Functionify query 4.