Gtechna interview question

searching in multiple tables with sql