RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers