-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fec.oppexp18`
(
  cmte_id STRING OPTIONS(description="Filer Identification Number"),
  amndt_ind STRING OPTIONS(description="Amendment Indicator"),
  rpt_yr INT64 OPTIONS(description="Report Year"),
  rpt_tp STRING OPTIONS(description="Report Type"),
  image_num INT64 OPTIONS(description="Image Number"),
  line_num STRING OPTIONS(description="Line Number"),
  form_tp_cd STRING OPTIONS(description="Form Type"),
  sched_tp_cd STRING OPTIONS(description="Schedule Type"),
  name STRING OPTIONS(description="Contributor/Lender/Transfer Name"),
  city STRING OPTIONS(description="City/Town"),
  state STRING OPTIONS(description="State"),
  zip_code STRING OPTIONS(description="Zip Code"),
  transaction_dt DATE OPTIONS(description="Transaction Date(MMDDYYYY)"),
  transaction_amt FLOAT64 OPTIONS(description="Transaction Amount"),
  transaction_pgi STRING OPTIONS(description="Primary General Indicator"),
  purpose STRING OPTIONS(description="Purpose"),
  category STRING OPTIONS(description="Disbursement Category Code"),
  category_desc STRING OPTIONS(description="Disbursement Category Code Description"),
  memo_cd STRING OPTIONS(description="Memo Code"),
  memo_text STRING OPTIONS(description="Memo Text"),
  entity_tp STRING OPTIONS(description="Entity Type"),
  sub_id INT64 NOT NULL OPTIONS(description="FEC Record Number"),
  file_num INT64 OPTIONS(description="File Number / Report ID"),
  tran_id STRING OPTIONS(description="Transaction ID"),
  back_ref_tran_id STRING OPTIONS(description="Back Reference Transaction ID")
);

INSERT INTO `bigquery-public-data.fec.oppexp18` (cmte_id, amndt_ind, rpt_yr, rpt_tp, image_num, line_num, form_tp_cd, sched_tp_cd, name, city, state, zip_code, transaction_dt, transaction_amt, transaction_pgi, purpose, category, category_desc, memo_cd, memo_text, entity_tp, sub_id, file_num, tran_id, back_ref_tran_id) VALUES ('C00000422', 'N', 2018, 'YE', 201901189143867532, '21B', 'F3X', 'SB', 'RAZ MOBILE', 'KANSAS CITY', 'MO', '641082673', '2018-12-31', 52.4, NULL, 'CREDIT CARD PROCESSING FEES', NULL, NULL, NULL, NULL, 'ORG', 4022020191640619665, 1305538, 'B12055DAFAA1D468A94A', NULL), ('C00000422', 'N', 2018, '30G', 201812069134441859, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '030795916', '2018-10-31', 224.9, NULL, 'CREDIT CARD BANK CHARGES', NULL, NULL, NULL, NULL, 'ORG', 4121420181621985767, 1297192, 'B1DD050BEFB554F09BB5', NULL), ('C00000422', 'A', 2018, '12G', 201811289133852422, '21B', 'F3X', 'SB', 'RAZ MOBILE', 'KANSAS CITY', 'MO', '641082673', '2018-10-04', 287.18, NULL, 'CREDIT CARD PROCESSING FEES', NULL, NULL, NULL, NULL, 'ORG', 4112820181620131619, 1292548, 'B2410F7E9D01144DDAF7', NULL), ('C00000422', 'N', 2017, 'M9', 201709089074640143, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '030795916', '2017-08-31', 981.74, NULL, 'CREDIT CARD BANK CHARGES', NULL, NULL, NULL, NULL, 'ORG', 4090820171450351058, 1181328, 'B30C3512EF47442F784C', NULL), ('C00000422', 'N', 2018, 'M7', 201807119115308567, '21B', 'F3X', 'SB', 'RAZ MOBILE', 'KANSAS CITY', 'MO', '641082673', '2018-06-30', 84.38, NULL, 'CREDIT CARD PROCESSING FEES', NULL, NULL, NULL, NULL, 'ORG', 4071120181575588207, 1243882, 'B33E6CE804BAC497C98F', NULL);