Multiple parameters in Query Multiple Filters

I have referred 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 {, password=record.password}
function check_password(stream,password)
 local function filter_password(record)
   return record.password == password
 return stream : filter(filter_password) : map(map_profile)

Thanks in advance.

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.