CREATE TABLE "teen_edition_housemates" (
  "name" text,
  "home_or_representative_town_or_province" text,
  "age" real,
  "edition" text,
  "total_days_in_pbb_house" real,
  "duration" text,
  "status" text
);

Question: When joj agpangan* is the name how many duration's are there?
SQL: SELECT COUNT("duration") FROM "teen_edition_housemates" WHERE "name"='Joj Agpangan*';

Question: When davao city is the  home or representative town or province and clash 2010 is the edition how many ages are there?
SQL: SELECT COUNT("age") FROM "teen_edition_housemates" WHERE "edition"='Clash 2010' AND "home_or_representative_town_or_province"='Davao City';

Question: When winner is the status and  77 is the total days in pbb house what is the edition?
SQL: SELECT "edition" FROM "teen_edition_housemates" WHERE "total_days_in_pbb_house"=77 AND "status"='Winner';

Question: When days 1-86 is the duration how many names are there?
SQL: SELECT COUNT("name") FROM "teen_edition_housemates" WHERE "duration"='Days 1-86';

Question: WHen joaqui mendoza is the name how long is the duration?
SQL: SELECT "duration" FROM "teen_edition_housemates" WHERE "name"='Joaqui Mendoza';

Question: When guiguinto, bulacan is the  home or representative town or province how many names are there?
SQL: SELECT COUNT("name") FROM "teen_edition_housemates" WHERE "home_or_representative_town_or_province"='Guiguinto, Bulacan';