Adding a time column to the query table.