Scalar subquery. Initial development