repace net flow two queries with a single one.