task02 - first pattern matching for select query