Table: pbb_contestant
Columns: name
home_or_representative_town_or_province
age
edition
total_days_in_pbb_house
duration
status

Question: When joj agpangan* is the name how many duration's are there?
SQL: SELECT COUNT("duration") FROM pbb_contestant 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 pbb_contestant 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 pbb_contestant 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 pbb_contestant WHERE "duration" = 'Days 1-86'

Question: WHen joaqui mendoza is the name how long is the duration?
SQL: SELECT "duration" FROM pbb_contestant 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 pbb_contestant WHERE "home_or_representative_town_or_province" = 'Guiguinto, Bulacan'