adding query scripts by subject