fquery added to include rdata pivot to ease query search