-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sec_quarterly_financials.measure_tag`
(
  measure_tag STRING NOT NULL OPTIONS(description="The unique identifier (name) for a tag in a specific taxonomy release. measure_tag:[tag]"),
  version STRING NOT NULL OPTIONS(description="For a standard tag, an identifier for the taxonomy; otherwise the accession number where the tag was defined."),
  custom BOOL OPTIONS(description="1 if tag is custom (version=adsh), 0 if it is standard. Note: This flag is technically redundant with the version and adsh fields."),
  abstract BOOL OPTIONS(description="1 if the tag is not used to represent a numeric fact."),
  datatype STRING OPTIONS(description="If abstract=1, then NULL, otherwise the data type (e.g., monetary) for the tag."),
  i_or_d STRING OPTIONS(description="If abstract=1, then NULL; otherwise, I if the value is a point in time, or D if the value is a duration. i_or_d: [iord]"),
  credit_or_debit STRING OPTIONS(description="If datatype = monetary, then the tag's natural accounting balance from the perspective of the balance sheet or income statement (debit or credit); if not defined, then NULL. credit_or_debit: [crdr]"),
  tag_label STRING OPTIONS(description="If a standard tag, then the label text provided by the taxonomy, otherwise the text provided by the filer. A tag which had neither would have a NULL value here. tag_label: [tlabel]"),
  doc STRING OPTIONS(description="The detailed definition for the tag, truncated to 2048 characters. If a standard tag, then the text provided by the taxonomy, otherwise the text assigned by the filer. Some tags have neither, in which case this field is NULL.")
)
PARTITION BY DATE(_PARTITIONTIME);

INSERT INTO `bigquery-public-data.sec_quarterly_financials.measure_tag` (measure_tag, version, custom, abstract, datatype, i_or_d, credit_or_debit, tag_label, doc, _PARTITIONTIME) VALUES ('InvestmentIdentifierLineItems', 'invest/2013', False, True, NULL, NULL, NULL, 'Investment Identifier [Line Items]', 'Line items represent reporting concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.', NULL), ('InvestmentIdentifierTable', 'invest/2013', False, True, NULL, NULL, NULL, 'Investment Identifier [Table]', 'This table lists the identifiers for the investments. An investment may have more than one identifier. Each identifier is from an identifier scheme.', NULL), ('InvestmentLineItems', 'invest/2013', False, True, NULL, NULL, NULL, 'Investment [Line Items]', 'Line items represent reporting concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.', NULL), ('InvestmentMaturityDateRangeAbstract', 'invest/2013', False, True, NULL, NULL, NULL, 'Investment Maturity Date Range [Abstract]', 'The maturity date range of the underlying investments reported on the Schedule of Investments.', NULL), ('InvestmentTable', 'invest/2013', False, True, NULL, NULL, NULL, 'Investment [Table]', 'This table lists the investments. The line items identify information about the investment.', NULL);