-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fec.oppexp12`
(
  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 STRING 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.oppexp12` (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', 2011, 'M3', '11930474984', '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2011-02-28', 1865.94, '', 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses', '', 'CREDIT CARD BANK CHARGES', 'ORG', 4031720111137596426, 716711, '38961445', ''), ('C00000422', 'N', 2011, 'M4', '11930661882', '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2011-03-31', 872.25, '', 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses', '', 'CREDIT CARD BANK CHARGES', 'ORG', 4042220111138261972, 723245, '39618100', ''), ('C00000422', 'N', 2011, 'M8', '11932165097', '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2011-07-31', 642.34, '', 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses', '', 'CREDIT CARD BANK CHARGES', 'ORG', 4083120111142529564, 741373, '41484457', ''), ('C00000422', 'N', 2011, 'M12', '11953207937', '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2011-11-30', 1486.07, '', 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses', '', 'CREDIT CARD BANK CHARGES', 'ORG', 4120820111147888330, 754391, '43159765', ''), ('C00000422', 'N', 2011, 'M10', '11971554294', '21B', 'F3X', 'SB', 'FIRST NATIONAL MERCHANT SOLUTIONS', 'OMAHA', 'NE', '68197', '2011-09-30', 699.99, '', 'CREDIT CARD BANK CHARGES', '001', 'Administrative/Salary/Overhead Expenses', '', 'CREDIT CARD BANK CHARGES', 'ORG', 4100720111143529957, 746964, '42384940', '');