def get_prompt(question): database_schema = """ CREATE TABLE core_mutualfund ( id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, fund_name VARCHAR(200) UNIQUE, isin_number VARCHAR(50) UNIQUE, security_id VARCHAR(50) UNIQUE, data JSONB, rank INTEGER UNIQUE, crisil_rank INTEGER, aum DOUBLE PRECISION, expense_ratio DOUBLE PRECISION, nav DOUBLE PRECISION, return_m12 DOUBLE PRECISION ); CREATE TABLE core_mfholdings ( "id" uuid NOT NULL PRIMARY KEY, "isin_number" varchar(20) NULL, "security_id" varchar(20) NULL, "sector" varchar(50) NULL, "country" varchar(50) NULL, "currency" varchar(100) NULL, "weighting" double precision NULL, "sector_code" varchar(100) NULL, "holding_type" varchar(100) NULL, "market_value" double precision NULL, "stock_rating" varchar(100) NULL, "total_assets" double precision NULL, "currency_name" varchar(150) NULL, "holding_name" varchar(100) NULL, "holding_type" varchar(100) NULL, "holding_type_id" varchar(100) NULL, "number_of_shares" double precision NULL, "one_year_return" double precision NULL, "mutual_fund_id" uuid NOT NULL REFERENCES "core_mutualfund" ("id") DEFERRABLE INITIALLY DEFERRED ); CREATE TABLE core_mfvolatility ( "id" uuid NOT NULL PRIMARY KEY, "mutual_fund_id" uuid NOT NULL REFERENCES "core_mutualfund" ("id") DEFERRABLE INITIALLY DEFERRED, "year" varchar(100) NOT NULL, "alpha" double precision NULL, "beta" double precision NULL, "sharpe_ratio" double precision NULL, "standard_deviation" double precision NULL ); -- core_mfvolatility.mutual_fund_id can be joined with core_mutualfund.id -- core_mfholdings.mutual_fund_id can be joined with core_mutualfund.id """ sql_prompt = f""" Your task is to convert a question into a PostgresSQL query, given a database schema. ###Task: Generate a SQL query that answers the question `{question}`. ### Database Schema: This query will run on a database whose schema is represented below: {database_schema} ### Response: Based on your instructions, here is the PostgresSQL query I have generated to answer the question `{question}`: ```PostgresSQL """ return sql_prompt