add query sequence