Build SQL queries to run from the editing_sessions.logged_ids column content for the given editing session