added gender and state queries