What if there are multiple predicates on the same column so they can't all be indexed. 

WHERE X BETWEEN 1 AND 10 AND X <= ? AND X IS NOT NULL

It seems silly but possible. Would we give the right answer for different parameters? It seems like it's worth a silly test case to make sure.