I think you can use DataAssist to get the result page and the query. Once you have the result page, you will need to modify the result page query a little to get the result you are looking for. The query should look something like this:
select * from Tb3 where Tb3.a = 'value from first page' and Tb3.b = 'value from second page'
let me know if you still have any other questions