select returns stream type index