add in_out_query to product_stocks