all queries for state temp tables done