chained the queries in naics endpoint