SELECT Id FROM new_searchtable where town = 'Lebanon' and state='NH' and (type = 'R' or type ='O') AND list_price BETWEEN '0' AND '30000000' ORDER BY list_price Desc Lebanon NH Homes page 40