Assuming your QueryBuilder function worked exactly how you wanted, how would you call it and use the results?
QueryBuilder