Generate advanced query strings.