create study using quering