user: ### NOW ANSWER:
Question: What's the 1881 when 1871 had 1017?
Columns: ['Year', '1851', '1861', '1871', '1881']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['Year', '1851', '1861', '1871', '1881']
SQL:

assistant: SELECT "1881" FROM "Table" WHERE "1871" = '1017';