Generator for query strings.