Is it possible to create data based on different data?

What im trying to achieve is generating fake data for my sql database. So the question is how to handle situation when property value on table B depends on table A property?

Example:
Table A : {
id : id pk
author: null or integer
}
Table B : {
id: id pk
accepted: true(if related author is not null, otherwise null or false)
TableA_id: id fk
}

Im new to mockaroo. Basic operations are easy for me but with this one i need help :wink:
Thanks