-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sec_quarterly_financials.submission`
(
  submission_number STRING NOT NULL OPTIONS(description="Accession Number. The 20-character string formed from the 18-digit number assigned by the Commission to each EDGAR submission. submission_number: [adsh]"),
  central_index_key INT64 OPTIONS(description="Central Index Key (CIK). Ten digit number assigned by the Commission to each registrant that submits filings. central_index_key: [cik]"),
  company_name STRING OPTIONS(description="Name of registrant. This corresponds to the name of the legal entity as recorded in EDGAR as of the filing date. company_name: [name]"),
  sic STRING OPTIONS(description="Standard Industrial Classification (SIC). Four digit code assigned by the Commission as of the filing date, indicating the registrant's type of business."),
  countryba STRING OPTIONS(description="The ISO 3166-1 country of the registrant's business address."),
  stprba STRING OPTIONS(description="The state or province of the registrant's business address, if field countryba is US or CA."),
  cityba STRING OPTIONS(description="The city of the registrant's business address."),
  zipba STRING OPTIONS(description="The zip code of the registrant's business address."),
  ba_street1 STRING OPTIONS(description="The first line of the street of the registrant's business address. ba_street1: [bas1]"),
  ba_street2 STRING OPTIONS(description="The second line of the street of the registrant's business address. ba_street2: [bas2]"),
  ba_phone STRING OPTIONS(description="The phone number of the registrant's business address. ba_phone: [baph]"),
  countryma STRING OPTIONS(description="The ISO 3166-1 country of the registrant's mailing address."),
  stprma STRING OPTIONS(description="The state or province of the registrant's mailing address, if field countryma is US or CA."),
  cityma STRING OPTIONS(description="The city of the registrant's mailing address."),
  zipma STRING OPTIONS(description="The zip code of the registrant's mailing address."),
  ma_street1 STRING OPTIONS(description="The first line of the street of the registrant's mailing address. ma_street1: [mas1]"),
  ma_street2 STRING OPTIONS(description="The second line of the street of the registrant's mailing address. ma_street2: [mas2]"),
  country_inc STRING OPTIONS(description="The country of incorporation for the registrant. country_inc: [countryinc]"),
  state_province_inc STRING OPTIONS(description="The state or province of incorporation for the registrant, if countryinc is US or CA, otherwise NULL. state_province_inc: [stprinc]"),
  ein STRING OPTIONS(description="Employee Identification Number, 9 digit identification number assigned by the Internal Revenue Service to business entities operating in the United States."),
  former_name STRING OPTIONS(description="Most recent former name of the registrant, if any. former_name: [former]"),
  date_changed INT64 OPTIONS(description="Date of change from the former name, if any. date_changed: [changed]"),
  filer_status STRING OPTIONS(description="Filer status with the Commission at the time of submission: 1-LAF=Large Accelerated, 2-ACC=Accelerated, 3-SRA=Smaller Reporting Accelerated, 4-NON=Non-Accelerated, 5-SML=Smaller Reporting Filer, NULL=not assigned. filer_status: [afs]"),
  well_known_seasoned_issuer BOOL OPTIONS(description="Well Known Seasoned Issuer (WKSI). An issuer that meets specific Commission requirements at some point during a 60-day period preceding the date the issuer satisfies its obligation to update its shelf registration statement. well_known_seasoned_issuer: [wksi]"),
  fiscal_year_end STRING OPTIONS(description="Fiscal Year End Date. fiscal_year_end: [fye]"),
  form STRING OPTIONS(description="The submission type of the registrant's filing."),
  period INT64 OPTIONS(description="Balance Sheet Date."),
  fiscal_year INT64 OPTIONS(description="Fiscal Year Focus (as defined in EFM Ch. 6). fiscal_year: [fy]"),
  fiscal_period_focus STRING OPTIONS(description="Fiscal Period Focus (as defined in EFM Ch. 6) within Fiscal Year. The 10-Q for the 1st, 2nd and 3rd quarters would have a fiscal period focus of Q1, Q2 (or H1), and Q3 (or M9) respectively, and a 10-K would have a fiscal period focus of FY. fiscal_period_focus: [fp]"),
  date_filed INT64 OPTIONS(description="The date of the registrant's filing with the Commission. date_filed: [filed]"),
  date_accepted TIMESTAMP OPTIONS(description="The acceptance date and time of the registrant's filing with the Commission. Filings accepted after 5:30pm EST are considered filed on the following business day. date_accepted: [accepted]"),
  has_previous_report BOOL OPTIONS(description="Previous Report.  TRUE indicates that the submission information was subsequently amended prior to the end cutoff date of the data set. \"has_previous_report: [prevrpt]"),
  has_required_detail BOOL OPTIONS(description="TRUE indicates that the XBRL submission contains quantitative disclosures within the footnotes and schedules at the required detail level (e.g., each amount). has_required_detail: [detail]"),
  instance STRING OPTIONS(description="The name of the submitted XBRL Instance Document (EX-101.INS) type data file. The name often begins with the company ticker symbol."),
  num_ciks INT64 OPTIONS(description="Number of Central Index Keys (CIK) of registrants (i.e., business units) included in the consolidating entity's submitted filing. num_ciks: [nciks]"),
  additional_ciks STRING OPTIONS(description="Additional CIKs of co-registrants included in a consolidating entity's EDGAR submission, separated by spaces. If there are no other co-registrants (i.e., nciks = 1), the value of aciks is NULL. For a very small number of filers, the list of co-registrants is too long to fit in the field. Where this is the case, PARTIAL will appear at the end of the list indicating that not all co-registrants' CIKs are included in the field; users should refer to the complete submission file for all CIK information. additional_ciks: [aciks]"),
  public_float_usd FLOAT64 OPTIONS(description="Public float, in USD, if provided in this submission. public_float_usd: [pubfloatusd]"),
  float_date INT64 OPTIONS(description="Date on which the public float was measured by the filer. float_date: [floatdate]"),
  float_axis STRING OPTIONS(description="If the public float value was computed by summing across several tagged values, this indicates the nature of the summation. float_axis: [floataxis]"),
  float_terms INT64 OPTIONS(description="If the public float was computed, the number of terms in the summation. float_terms: [floatmems]")
)
PARTITION BY DATE(_PARTITIONTIME);

INSERT INTO `bigquery-public-data.sec_quarterly_financials.submission` (submission_number, central_index_key, company_name, sic, countryba, stprba, cityba, zipba, ba_street1, ba_street2, ba_phone, countryma, stprma, cityma, zipma, ma_street1, ma_street2, country_inc, state_province_inc, ein, former_name, date_changed, filer_status, well_known_seasoned_issuer, fiscal_year_end, form, period, fiscal_year, fiscal_period_focus, date_filed, date_accepted, has_previous_report, has_required_detail, instance, num_ciks, additional_ciks, public_float_usd, float_date, float_axis, float_terms, _PARTITIONTIME) VALUES ('0000950123-10-096178', 1027884, 'CHICAGO BRIDGE & IRON CO N V', '1700', 'AN', NULL, '1075 AD AMSTERDAM', '00000', 'P O BOX 74658', NULL, NULL, NULL, NULL, 'THE NETHERLANDS', NULL, 'POLARISAVENUE 31', '2132 JH HOOFDORP', NULL, NULL, '000000000', NULL, NULL, '1-LAF', True, '1231', '10-Q', 20100930, 2010, 'Q3', 20101026, '2010-10-26 17:16:00+00:00', False, False, 'cbi-20100930.xml', 1, NULL, 1207371264.0, 20090630, NULL, NULL, NULL), ('0000950123-10-101713', 1099590, 'MERCADOLIBRE INC', '7389', 'AR', NULL, 'BUENOS AIRES ARGENTINA', '00000', '4890 SUBSUELO 1430 BUENOS AIRES', NULL, '000-000-0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '000000000', NULL, NULL, '1-LAF', True, '1231', '10-Q', 20100930, 2010, 'Q3', 20101105, '2010-11-05 16:20:00+00:00', False, False, 'meli-20100930.xml', 1, NULL, 1280578176.0, 20100630, NULL, NULL, NULL), ('0001193125-10-267436', 1058057, 'MARVELL TECHNOLOGY GROUP LTD', '3674', 'BM', NULL, 'HAMILTON HM 12', NULL, 'CANON''S COURT', '22 VICTORIA STREET', '4412966395', NULL, NULL, NULL, NULL, NULL, NULL, 'BM', NULL, '770481679', NULL, NULL, '1-LAF', False, '0131', '10-Q', 20101031, 2010, 'Q3', 20101123, '2010-11-23 14:46:00+00:00', False, False, 'mrvl-20101030.xml', 1, NULL, nan, NULL, NULL, NULL, NULL), ('0000950123-10-102192', 1179755, 'ENDURANCE SPECIALTY HOLDINGS LTD', '6331', 'BM', NULL, 'HAMILTON HM 08 BERMUDA', '00000', '4 PAR LA VILLE ROAD', NULL, '441-278-0400', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '000000000', NULL, NULL, '1-LAF', False, '1231', '10-Q', 20100930, 2010, 'Q3', 20101108, '2010-11-08 10:11:00+00:00', False, False, 'enh-20100930.xml', 1, NULL, nan, NULL, NULL, NULL, NULL), ('0000950123-10-103646', 911160, 'RF MICRO DEVICES INC', '3674', 'US', 'NC', 'GREENSBORO', '27409-9421', '7628 THORNDIKE ROAD', NULL, '3369317042', NULL, NULL, NULL, NULL, NULL, NULL, 'US', 'NC', '561733461', NULL, NULL, '1-LAF', True, '0331', '10-Q', 20100930, 2010, 'Q2', 20101110, '2010-11-10 09:12:00+00:00', False, False, 'rfmd-20101002.xml', 1, NULL, 1237382272.0, 20091003, NULL, NULL, NULL);