CREATE TABLE "latin_america_comparative_index" (
  "index_year" text,
  "author_editor_source" text,
  "year_of_publication" text,
  "countries_sampled" real,
  "world_ranking_1" text,
  "ranking_l_a_2" text
);

Question: What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?
SQL: SELECT "index_year" FROM "latin_america_comparative_index" WHERE "author_editor_source"='United Nations (UNDP)' AND "ranking_l_a_2"='2nd';

Question: How many countries were sampled in the index created by The Economist, published in 2007 and ranked 2nd in the LA Ranking?
SQL: SELECT MAX("countries_sampled") FROM "latin_america_comparative_index" WHERE "author_editor_source"='The Economist' AND "year_of_publication"='2007' AND "ranking_l_a_2"='2nd';

Question: What's the wold ranking of the index by Transparency International?
SQL: SELECT "world_ranking_1" FROM "latin_america_comparative_index" WHERE "author_editor_source"='Transparency International';

Question: How many countries were sampled for the index in 2nd place in the LA ranking and 23rd in the world ranking?
SQL: SELECT "countries_sampled" FROM "latin_america_comparative_index" WHERE "ranking_l_a_2"='2nd' AND "world_ranking_1"='23rd';

Question: How many countries were sampled for the Prosperity Index (2008)?
SQL: SELECT MAX("countries_sampled") FROM "latin_america_comparative_index" WHERE "index_year"='Prosperity Index (2008)';