Multiple parameters in Query Multiple Filters

I have referred http://www.aerospike.com/community/labs/query_multiple_filters.html and am able to query based on the given lua script for 1 filter parameter. Can someone modify that lua script for accepting 3 filter parameters.(for example adding two more parameters like age, gender with password).

Lua Script:
local function map_profile(record)
 return map {name=record.name, password=record.password}
end
function check_password(stream,password)
 local function filter_password(record)
   return record.password == password
 end
 return stream : filter(filter_password) : map(map_profile)
end

Thanks in advance.