CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);

Question: What were the investment earnings in the year that State and Federal taxes were $8,549,565?
SQL: SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='8,549,565';

Question: What were the investment earnings in the year that State and Federal taxes were $13,999,169?
SQL: SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='13,999,169';

Question: What were the investment earnings in a year when other local sources were $2,670,060 after 2001?
SQL: SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "year">2001 AND "other_local_sources"='$2,670,060';

Question: What were the investment earnings in a year when total revenue was $21,779,618?
SQL: SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "total_revenue"='21,779,618';

Question: What were property taxes in a year when total revenue was $40,891,700 after 2002?
SQL: SELECT "property_taxes" FROM "district_122_gross_revenue_by_sources" WHERE "year">2002 AND "total_revenue"='$40,891,700';