add hql about factbids and factwinbids