incorporating query-query network