correct queries for global sec indexes