The question marks are just placeholders, nothing to worry about it’s just the way that the query is displayed in the log. The question marks will be filled with the actual data when the requets is handled by the server.
The message that the retrieves are taking a long time is something to worry about though.
The app is trying to update the system$queuedtask table, so the queuedtask table in the system module. I expect there is a lot of data generated in this table that is slowing down the update.
Maybe try to download and restore a database locally and inspect the table to get some more clues on what is causing the delay?