Support simple/first and simple/last query APIs