zero-one frequency laws. data streams emerged as a critical model for multiple applications that handle vast amounts of data. one of the most influential and celebrated papers in streaming is the "ams" paper on computing frequency moments by alon, matias and szegedy. the main question left open (and explicitly asked) by ams in 1996 is to give the precise characterization for which functions g on frequency vectors mi (1≤ i ≤ n) can σi∈ [n] g(mi) be approximated efficiently, where "efficiently" means by a single pass over data stream and poly-logarithmic memory. no such characterization was known despite a tremendous amount of research on frequency-based functions in streaming literature. in this paper we finally resolve the ams main question and give a precise characterization (in fact, a zero-one law) for all monotonically increasing functions on frequencies that are zero at the origin. that is, we consider all monotonic functions g: r → r such that g(0) = 0 and g can be computed in poly-logarithmic time and space and ask, for which g in this class is there an (1±ε)-approximation algorithm for computing σi∈ [n] g(mi) for any polylogarithmic ε? we give an algebraic characterization for all such g so that: for all functions g in our class that satisfy our algebraic condition, we provide a very general and constructive way to derive an efficient (1±ε)-approximation algorithm for computing σi∈ [n] g(mi) with polylogarithmic memory and a single pass over data stream; while: for all functions g in our class that do not satisfy our algebraic characterization, we show a lower bound that requires greater then polylog memory for computing an approximation to σi∈ [n] g(mi) by any one-pass streaming algorithm. thus, we provide a zero-one law for all monotonically increasing functions g which are zero at the origin. our results are quite general. as just one illustrative example, our main theorem implies a lower bound for g(x) =(x(x-1))0.5arctan(x+1), while for a function g(x) =(x(x+1))0.5arctan(x+1) our main theorem automatically yields a polylog memory one-pass (1±ε)-approximation algorithm for computing σi∈ [n] g(mi). for both of these examples no lower or upper bounds were known. of course, these are just illustrative examples, and there are many others. one might argue that these two functions may not be of interest in practical applications -- we stress that our law works for all functions in this class, and the above examples illustrate the power of our method. to the best of our knowledge, this is the first zero-one law in the streaming model for a wide class of functions, though we suspect that there are many more such laws to be discovered. surprisingly, our upper bound requires only 4-wise independence and does not need the stronger machinery of nisan's pseudorandom generators, even though our class captures multiple functions that previously required nisan's generators. furthermore, we believe that our methods can be extended to the more general models and complexity classes. for instance, the law also holds for a smaller class of non-decreasing and symmetric functions (i.e., g(x) = g(-x) and g(0) = 0) which, due to negative values, allow deletions.