Query String to SQL Clause Generator