Question: When did the country that produced 1,213,000 (21st) bbl/day join Opec?
SQL: SELECT "Joined OPEC" FROM "1-166346-1" WHERE "Production ( bbl /day)" = '1,213,000 (21st)';

Question: What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day?
SQL: SELECT MIN("Area (km²)") FROM "1-166346-1" WHERE "Production ( bbl /day)" = '3,200,000 (12th)';

Question: What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?
SQL: SELECT MAX("Population (July 2012)") FROM "1-166346-1" WHERE "Area (km²)" = 2149690.0;

Question: Which regions had a production (bbl/day) of 1,213,000 (21st)?
SQL: SELECT "Region" FROM "1-166346-1" WHERE "Production ( bbl /day)" = '1,213,000 (21st)';

Question: Which country had a production (bbl/day) of 2,494,000 (10th)?
SQL: SELECT "Country" FROM "1-166346-1" WHERE "Production ( bbl /day)" = '2,494,000 (10th)';