SQL – Shorter way to query user and usermeta data

I was just trying out the wp_get_users() function and I think that’s a much cleaner way to get the user data in a table. I can simply do something like this:

$users = get_users('role=um_student');

        foreach ( $users as $user )
        {
            echo "<tr>";
                echo "<td>$user->ID</td>";
                echo "<td>$user->user_login</td>";
                echo "<td>$user->first_name</td>";
                echo "<td>$user->middle_name</td>";
                echo "<td>$user->last_name</td>";
                echo "<td>$user->university_program</td>";
                echo "</tr>";
        }