Use query as name for CSV tests