• Probably one of the SelectIndex plans.

  • But it's impossible to say without statistics.
    • If S is tiny, then the best plan is probably the BlockNestedLoops plan.
    • Otherwise, which predicate is more selective?

  • Need a cost model to decide. (We'll get to this later today.)