SQL guided (code) generator