You will need a row of __id with Row Number and a named Formula row
The formula will be :-
if field('__id')<=10 then
from_dataset("Teacher", "column", join_criteria)
else
from_dataset("Seller", "column", join_criteria)
end
I think join to the dataset is from_dataset("Teacher", "column", id: __id)
but not sure