SELECT Id FROM new_searchtable where town = 'Mascoma Real Estate' and state='NH' and (type = 'R' or type ='O') and(InteriorFeat like '%Fireplace%') and(InteriorFeat like '%Fireplace%') AND list_price BETWEEN '0' AND '30000000' ORDER BY list_price Desc