// Query: select * from R where a1op1C1 and ... and anopnCn// assumes an index on at least ai
TupleIDs = IndexLookup(R,a1,op1,C1)
foreach attribute ai with an index {
tids = IndexLookup(R,ai,opi,Ci)
TupleIDs = TupleIDs ∩ tids
}
PageIDs = { }
foreach tid in TupleIDs
{ PageIDs = PageIDs ∪ {pageOf(tid)} }
// PageIDs = a set of bq page numbers
...