CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
  "autonomous_community" text,
  "hydroelectric_power" real,
  "wind_power" real,
  "solar_power" real,
  "biomass_power" real,
  "solid_waste_power" real,
  "total_renewable_generation" real,
  "total_electricity_demand" real,
  "pct_renewable_of_total_electricity_demand" text
);

Question: How many communities had a total renewable generation of 1375?
SQL: SELECT COUNT("autonomous_community") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "total_renewable_generation"=1375;

Question: What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?
SQL: SELECT "total_electricity_demand" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='2.2%';

Question: What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?
SQL: SELECT MIN("hydroelectric_power") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='21.5%';

Question: What is the community with a wind power of 1042?
SQL: SELECT "autonomous_community" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "wind_power"=1042;