In query, intersect all available ranges to speed up queries.