-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fec.opex_2016`
(
  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.opex_2016` (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, 'M7', 201507149000106216, '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', 'NaT', 2506.37, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4071420151247034100, 1014034, '66683891', NULL), ('C00000422', 'N', 2015, 'M8', 201508119000814199, '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', 'NaT', 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, 'M5', 201605069015390579, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '03079', 'NaT', 1742.14, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4050620161291500999, 1071112, '71144079', NULL), ('C00000422', 'N', 2016, 'M6', 201606039017468685, '21B', 'F3X', 'SB', 'CHASE PAYMENTECH', 'SALEM', 'NH', '03079', 'NaT', 2152.93, NULL, 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses ', NULL, 'CREDIT CARD BANK CHARGES', 'ORG', 4060320161294490090, 1075989, '71558922', NULL), ('C00000489', 'N', 2016, '12G', 201610310300115995, '21B', 'F3X', 'SB', 'REAVIS FOR SENATE', NULL, 'OK', '74402', 'NaT', 2000.0, NULL, 'DONATION', NULL, NULL, NULL, NULL, NULL, 2110220161345850899, 1122710, 'SB11021659952', NULL);