select distinct g.gName, g.gNo
From Guest as g
join Book as b on g.gNO= b.gNO
inner join Room as r
on r.rNo = b.rNo and b.hNO = r.hNo
where r.price > 1000;
