implemented querymore, advanced query, and wildcard intepretation