Index priority to first declared index during query compilation