by Michael Hughes.
Interestingly the assignments aren't all team submissions either (although most are):
mysql> select a_s.*,
-> a.teamsubmission
-> from mdl_assign_submission a_s
-> JOIN mdl_assign a ON a.id = a_s.assignment
-> where userid =0 and groupid =0 and attemptnumber = 0;
+--------+------------+--------+-------------+--------------+-----------+---------+---------------+----------------+
| id | assignment | userid | timecreated | timemodified | status | groupid | attemptnumber | teamsubmission |
+--------+------------+--------+-------------+--------------+-----------+---------+---------------+----------------+
| 69664 | 8446 | 0 | 1383823153 | 1383823153 | submitted | 0 | 0 | 0 |
| 71428 | 8496 | 0 | 1384171263 | 1384171263 | draft | 0 | 0 | 1 |
| 85745 | 8089 | 0 | 1385976897 | 1385980992 | draft | 0 | 0 | 0 |
| 91285 | 8567 | 0 | 1386663489 | 1386681015 | draft | 0 | 0 | 0 |
| 97130 | 8568 | 0 | 1387525378 | 1387541251 | draft | 0 | 0 | 0 |
| 118296 | 9579 | 0 | 1393591157 | 1393591158 | submitted | 0 | 0 | 1 |
| 158580 | 6970 | 0 | 1411549335 | 1411549335 | draft | 0 | 0 | 1 |
| 159278 | 10908 | 0 | 1412340520 | 1412340520 | submitted | 0 | 0 | 1 |
| 161840 | 11887 | 0 | 1413638049 | 1413833434 | submitted | 0 | 0 | 1 |
| 161875 | 7921 | 0 | 1413653842 | 1413653842 | draft | 0 | 0 | 1 |
| 165242 | 12242 | 0 | 1414147752 | 1414147752 | submitted | 0 | 0 | 1 |
| 165517 | 7945 | 0 | 1414165860 | 1414165861 | submitted | 0 | 0 | 1 |
| 166233 | 7796 | 0 | 1414358504 | 1414744289 | submitted | 0 | 0 | 1 |
| 166674 | 8037 | 0 | 1414422773 | 1414491352 | submitted | 0 | 0 | 0 |
| 167094 | 512 | 0 | 1414460161 | 1414460161 | submitted | 0 | 0 | 1 |
| 167362 | 11470 | 0 | 1414511747 | 1414511747 | submitted | 0 | 0 | 1 |
| 167995 | 12240 | 0 | 1414587612 | 1414587620 | submitted | 0 | 0 | 1 |
| 169904 | 7795 | 0 | 1414754687 | 1414755307 | submitted | 0 | 0 | 1 |
| 170403 | 7797 | 0 | 1414773769 | 1415399222 | submitted | 0 | 0 | 1 |
| 170827 | 6752 | 0 | 1414863713 | 1414863713 | submitted | 0 | 0 | 1 |
| 173250 | 12435 | 0 | 1415225094 | 1415225101 | submitted | 0 | 0 | 1 |
| 176205 | 12257 | 0 | 1415628416 | 1415628416 | submitted | 0 | 0 | 1 |
| 176719 | 11517 | 0 | 1415699105 | 1415699223 | submitted | 0 | 0 | 0 |
| 177266 | 7958 | 0 | 1415748385 | 1415748395 | submitted | 0 | 0 | 1 |
| 178589 | 11088 | 0 | 1415862869 | 1415862869 | submitted | 0 | 0 | 1 |
| 178716 | 11249 | 0 | 1415877055 | 1415877055 | submitted | 0 | 0 | 1 |
| 180007 | 12404 | 0 | 1415971885 | 1415972010 | submitted | 0 | 0 | 1 |
| 180900 | 7121 | 0 | 1416134934 | 1416181638 | submitted | 0 | 0 | 1 |
| 181776 | 11342 | 0 | 1416222569 | 1416229681 | submitted | 0 | 0 | 0 |
| 183829 | 6514 | 0 | 1416339791 | 1416340171 | submitted | 0 | 0 | 1 |
| 186098 | 6754 | 0 | 1416512266 | 1416512287 | submitted | 0 | 0 | 1 |
| 186348 | 11091 | 0 | 1416525194 | 1416525194 | submitted | 0 | 0 | 1 |
| 188380 | 6530 | 0 | 1416760221 | 1416760256 | submitted | 0 | 0 | 1 |
| 189342 | 8101 | 0 | 1416808258 | 1417083400 | submitted | 0 | 0 | 1 |
| 192659 | 3773 | 0 | 1417113875 | 1417116321 | submitted | 0 | 0 | 1 |
| 196588 | 11564 | 0 | 1417433711 | 1417433711 | submitted | 0 | 0 | 1 |
| 197877 | 11464 | 0 | 1417531876 | 1417531876 | submitted | 0 | 0 | 1 |
| 198513 | 12433 | 0 | 1417609654 | 1417609742 | submitted | 0 | 0 | 1 |
| 199680 | 12841 | 0 | 1417716199 | 1417716199 | submitted | 0 | 0 | 1 |
| 200384 | 13021 | 0 | 1415748385 | 1415748395 | submitted | 0 | 0 | 1 |
| 200661 | 12535 | 0 | 1417781046 | 1417971263 | submitted | 0 | 0 | 1 |
| 202899 | 11711 | 0 | 1418038866 | 1418038867 | submitted | 0 | 0 | 1 |
| 203203 | 6719 | 0 | 1418052326 | 1418052334 | submitted | 0 | 0 | 1 |
+--------+------------+--------+-------------+--------------+-----------+---------+---------------+----------------+
43 rows in set (0.09 sec)