added inquery queries