New query for getting a study by ID or name