select concat(count(*),'lorenzo') from sapred_5lz.matgra where id_per <> '' union 
select concat(count(*),'miraflo.') from sapred_5mf.matgra where id_per <> '' union 
select concat(count(*),'mañana central') from sapred_5m.matgra where id_per <> '' union 
select concat(count(*),'tarde central') from sapred_5t.matgra where id_per <> ''