These can be done in a single query. The query could be written against the new `user_exercises` table (the `state` and `language` and `slug` columns are deprecated on `submissions`, and I will eventually rewrite all the queries to go against user exercises.