added simple GQueries implementation