-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fec.oppexp16`
(
  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.oppexp16` (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', 2015, 'M2', 15970260233, '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2015-01-31', 1487.88, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4020820151238225409, 992430, '64116828', NULL), ('C00000422', 'N', 2015, 'M6', 15951467237, '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2015-05-31', 1239.61, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4061120151245691905, 1010212, '66030878', NULL), ('C00000422', 'N', 2015, 'M8', 201508119000814199, '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2015-07-31', 605.14, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4081220151248555501, 1021316, '67109672', NULL), ('C00000422', 'N', 2016, 'M2', 201602109008453523, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '03079', '2016-01-31', 2273.38, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4021020161262802647, 1048783, '69871445', NULL), ('C00000422', 'N', 2016, 'M6', 201606039017468685, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '03079', '2016-05-31', 2152.93, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4060320161294490090, 1075989, '71558922', NULL);