next: queries