-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_ez_2016`
(
  ein STRING NOT NULL OPTIONS(description="Employer Identification Number"),
  elf STRING OPTIONS(description="E-file indicator"),
  tax_pd INT64 OPTIONS(description="Tax period"),
  subseccd INT64 OPTIONS(description="Subsection code"),
  totcntrbs INT64 OPTIONS(description="Contributions gifts grants etc received"),
  prgmservrev INT64 OPTIONS(description="Program service revenue"),
  duesassesmnts INT64 OPTIONS(description="Membership dues and assessments"),
  othrinvstinc INT64 OPTIONS(description="Investment income"),
  grsamtsalesastothr INT64 OPTIONS(description="Gross amount from sale of assets"),
  basisalesexpnsothr INT64 OPTIONS(description="Cost or other basis and sales expenses"),
  gnsaleofastothr INT64 OPTIONS(description="Gain or (loss) from sale of assets"),
  grsincgaming INT64 OPTIONS(description="Gross income from gaming"),
  grsrevnuefndrsng INT64 OPTIONS(description="Special events gross revenue"),
  direxpns INT64 OPTIONS(description="Special events direct expenses"),
  netincfndrsng INT64 OPTIONS(description="Special events net income (or loss)"),
  grsalesminusret INT64 OPTIONS(description="Gross sales of inventory"),
  costgoodsold INT64 OPTIONS(description="Less: cost of goods sold"),
  grsprft INT64 OPTIONS(description="Gross profit (or loss) from sales of inventory"),
  othrevnue INT64 OPTIONS(description="Other revenue - total"),
  totrevnue INT64 OPTIONS(description="Total revenue"),
  totexpns INT64 OPTIONS(description="Total expenses"),
  totexcessyr INT64 OPTIONS(description="Excess or deficit"),
  othrchgsnetassetfnd INT64 OPTIONS(description="Other changes in net assets"),
  networthend INT64 OPTIONS(description="Net assets EOY"),
  totassetsend INT64 OPTIONS(description="Total assets e-o-y"),
  totliabend INT64 OPTIONS(description="Total liabilities e-o-y"),
  totnetassetsend INT64 OPTIONS(description="Total net worth e-o-y"),
  actvtynotprevrptcd STRING OPTIONS(description="Activity not previously reported?"),
  chngsinorgcd STRING OPTIONS(description="Significant changes to governing docs?"),
  unrelbusincd STRING OPTIONS(description="UBI over $1000?"),
  filedf990tcd STRING OPTIONS(description="Organization Filed 990T"),
  contractioncd STRING OPTIONS(description="Liquidation dissolution termination or contraction"),
  politicalexpend INT64 OPTIONS(description="Direct or indirect political expenditures"),
  filedf1120polcd STRING OPTIONS(description="File Form 1120-POL?"),
  loanstoofficerscd STRING OPTIONS(description="Loans to/from officers directors or trustees?"),
  loanstoofficers INT64 OPTIONS(description="Amount of loans to/from officers"),
  initiationfee INT64 OPTIONS(description="Initiation fees and capital contributions"),
  grspublicrcpts INT64 OPTIONS(description="Gross receipts for public use of club facilities"),
  s4958excessbenefcd STRING OPTIONS(description="Section 4958 excess benefit transactions?"),
  prohibtdtxshltrcd STRING OPTIONS(description="Party to a prohibited tax shelter transaction?"),
  nonpfrea INT64 OPTIONS(description="Reason for non-PF status"),
  totnooforgscnt INT64 OPTIONS(description="Number of organizations supported"),
  totsupport INT64 OPTIONS(description="Sum of amounts of support"),
  gftgrntsrcvd170 INT64 OPTIONS(description="Gifts grants membership fees received (170)"),
  txrevnuelevied170 INT64 OPTIONS(description="Tax revenues levied (170)"),
  srvcsval170 INT64 OPTIONS(description="Services or facilities furnished by gov (170)"),
  pubsuppsubtot170 INT64 OPTIONS(description="Public support subtotal (170)"),
  exceeds2pct170 INT64 OPTIONS(description="Amount support exceeds total (170)"),
  pubsupplesspct170 INT64 OPTIONS(description="Public support (170)"),
  samepubsuppsubtot170 INT64 OPTIONS(description="Public support from line 4 (170)"),
  grsinc170 INT64 OPTIONS(description="Gross income from interest etc (170)"),
  netincunreltd170 INT64 OPTIONS(description="Net UBI (170)"),
  othrinc170 INT64 OPTIONS(description="Other income (170)"),
  totsupp170 INT64 OPTIONS(description="Total support (170)"),
  grsrcptsrelated170 INT64 OPTIONS(description="Gross receipts from related activities (170)"),
  totgftgrntrcvd509 INT64 OPTIONS(description="Gifts grants membership fees received (509)"),
  grsrcptsadmissn509 INT64 OPTIONS(description="Receipts from admissions merchandise etc (509)"),
  grsrcptsactivities509 INT64 OPTIONS(description="Gross receipts from related activities (509)"),
  txrevnuelevied509 INT64 OPTIONS(description="Tax revenues levied (509)"),
  srvcsval509 INT64 OPTIONS(description="Services or facilities furnished by gov (509)"),
  pubsuppsubtot509 INT64 OPTIONS(description="Public support subtotal (509)"),
  rcvdfrmdisqualsub509 INT64 OPTIONS(description="Amounts from disqualified persons (509)"),
  exceeds1pct509 INT64 OPTIONS(description="Amount support exceeds total (509)"),
  subtotpub509 INT64 OPTIONS(description="Public support subtotal (509)"),
  pubsupplesub509 INT64 OPTIONS(description="Public support (509)"),
  samepubsuppsubtot509 INT64 OPTIONS(description="Public support from line 6 (509)"),
  grsinc509 INT64 OPTIONS(description="Gross income from interest etc (509)"),
  unreltxincls511tx509 INT64 OPTIONS(description="Net UBI (509)"),
  subtotsuppinc509 INT64 OPTIONS(description="Subtotal total support (509)"),
  netincunrelatd509 INT64 OPTIONS(description="Net income from UBI not in 10b (509)"),
  othrinc509 INT64 OPTIONS(description="Other income (509)"),
  totsupp509 INT64 OPTIONS(description="Total support (509)")
)
OPTIONS(
  description="IRS 990 EZ 2016 dataset"
);

INSERT INTO `bigquery-public-data.irs_990.irs_990_ez_2016` (ein, elf, tax_pd, subseccd, totcntrbs, prgmservrev, duesassesmnts, othrinvstinc, grsamtsalesastothr, basisalesexpnsothr, gnsaleofastothr, grsincgaming, grsrevnuefndrsng, direxpns, netincfndrsng, grsalesminusret, costgoodsold, grsprft, othrevnue, totrevnue, totexpns, totexcessyr, othrchgsnetassetfnd, networthend, totassetsend, totliabend, totnetassetsend, actvtynotprevrptcd, chngsinorgcd, unrelbusincd, filedf990tcd, contractioncd, politicalexpend, filedf1120polcd, loanstoofficerscd, loanstoofficers, initiationfee, grspublicrcpts, s4958excessbenefcd, prohibtdtxshltrcd, nonpfrea, totnooforgscnt, totsupport, gftgrntsrcvd170, txrevnuelevied170, srvcsval170, pubsuppsubtot170, exceeds2pct170, pubsupplesspct170, samepubsuppsubtot170, grsinc170, netincunreltd170, othrinc170, totsupp170, grsrcptsrelated170, totgftgrntrcvd509, grsrcptsadmissn509, grsrcptsactivities509, txrevnuelevied509, srvcsval509, pubsuppsubtot509, rcvdfrmdisqualsub509, exceeds1pct509, subtotpub509, pubsupplesub509, samepubsuppsubtot509, grsinc509, unreltxincls511tx509, subtotsuppinc509, netincunrelatd509, othrinc509, totsupp509) VALUES ('800271304', 'N', 201512, 3, 86814, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86814, 86063, 751, 0, 4165, 4165, 0, 4165, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 0, 'N', 'N', 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 440023, 0, 0, 0, 0, 440023, 0, 0, 0, 440023, 440023, 0, 0, 0, 0, 0, 440023), ('46053915', 'N', 201512, 2, 0, 0, 2850, 0, 424116, 41440, 382676, 0, 0, 0, 0, 0, 0, 0, 0, 385526, 718262, -332736, 624855, 696974, 624855, 508930, 115925, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'Y', 508930, 0, 385526, 'N', 'N', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('520820155', 'Y', 201512, 7, 0, 0, 183280, 668, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13993, 197941, 175243, 22698, 0, 193523, 329440, 135917, 193523, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 196738, 'N', 'N', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('800223699', 'N', 201512, 3, 189792, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189927, 118558, 71369, 0, 174336, 174336, 0, 174336, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 189927, 'N', 'N', 7, 0, 0, 1319511, 0, 0, 1319511, 0, 1319511, 1319511, 1657, 0, 0, 1321168, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('582494455', 'N', 201512, 3, 186000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186000, 318529, -132529, 0, 4639, 137168, 0, 137168, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 186000, 'N', 'N', 7, 0, 0, 372000, 0, 0, 372000, 0, 372000, 372000, 0, 0, 0, 372000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);