human
Schema:
manufacturer (Manufacturer_ID, Open_Year, Name, Num_of_Factories, Num_of_Shops)
furniture (Furniture_ID, Name, Num_of_Component, Market_Rate)
furniture_manufacte (Manufacturer_ID, Furniture_ID, Price_in_Dollar)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the average market rate for furniture?
assistant
SELECT AVG ( market_rate ) FROM furniture;
human
Show each furniture id number and its corresponding market_rate.
assistant
SELECT furniture_id , market_rate FROM furniture;
human
Which one has the lowest market_rate?
assistant
SELECT furniture_id , market_rate FROM furniture ORDER BY market_rate LIMIT 1 ;