How Does Text to SQL Work?