I'm sure there are some counterexamples, but for the most part most SQL implementations will fail to compile a query if you try to add a string to an integer or take the average of a date column. So I'm not quite sure what you mean.
And type inference also plays a role with CASE statements, UNION, etc. Again may depend on SQL implementation.