question: When did the country that produced 1,213,000 (21st) bbl/day join Opec?
answer: SELECT joined_opec FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)"
context: CREATE TABLE table_166346_1 (joined_opec VARCHAR, production___bbl__day_ VARCHAR)