Restore queries.