Extracting SQL queries from code stage-6

few typos