add past query index