human
Schema:
item (i_id, title)
review (a_id, u_id, i_id, rating, rank)
useracct (u_id, name)
trust (source_u_id, target_u_id, trust)
Please answer with SQL.
assistant
Sure, I understand.
human
Which id has the least rating on the table? | Which id do you need, a id, u id, or i id? | i id
assistant
SELECT i_id FROM review ORDER BY rating LIMIT 1 ;