[tuple base] filter query result by the specified criteria