some query tutorials