select 'ServerFault'
, p.title
, p.id
, p.answercount
from [ServerFault].dbo.posts p
where p.posttypeid = 1 -- Q
union
select 'ServerFault.Meta'
, p.title
, p.id
, p.answercount
from [ServerFault.Meta].dbo.posts p
where p.posttypeid = 1 -- Q
union
select 'StackApps'
, p.title
, p.id
, p.answercount
from [StackApps].dbo.posts p
where p.posttypeid = 1 -- Q
union -- etc for all other databases