echo "<pre>". print_r($query, 1) ."</pre>"; exit;
sql($query) - final rendered SQL, but only with DebugKit
debug($query) - SQL and bound params, does not show results.
debug($query->all()) - ResultSet properties (not the results).
debug($query->toList()) - show each of the results.
debug(iterator_to_array($query)) - query results in an array format.
debug(json_encode($query, JSON_PRETTY_PRINT)) - human readable results.
debug($query->first()) - properties of a single entity.
debug( (string) $query->first() ) - properties of a single entity as JSON.