-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_ez_2017`
(
  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 2017 dataset"
);

INSERT INTO `bigquery-public-data.irs_990.irs_990_ez_2017` (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 ('421679357', 'Y', 201609, 7, 0, 64066, 0, 28, 0, 0, 0, 0, 0, 0, 0, 0, 27521, -27521, 0, 36573, 43755, -7182, 0, 15693, 18501, 2808, 15693, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 0, '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), ('593097098', 'Y', 201608, 3, 2346, 146962, 4462, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 153770, 154430, -660, 1635, 12270, 12270, 0, 12270, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 0, 'N', 'N', 7, 0, 0, 665845, 0, 0, 665845, 0, 665845, 665845, 0, 0, 0, 665845, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('946174605', 'Y', 201606, 3, 9508, 5106, 1705, 0, 0, 0, 0, 0, 34119, 17397, 16722, 2442, 2257, 185, 0, 33226, 31516, 1710, 0, 32344, 32344, 0, 32344, '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, 11213, 41667, 0, 0, 0, 52880, 0, 0, 0, 52880, 52880, 0, 0, 0, 0, 0, 52880), ('900513935', 'Y', 201606, 3, 14802, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14802, 21110, -6308, -900, 32588, 35753, 3165, 32588, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 0, 'N', 'N', 7, 0, 0, 146518, 0, 0, 146518, 35000, 111518, 146518, 0, 0, 3268, 149786, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('597076178', 'Y', 201609, 5, 0, 0, 73263, 296, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1655, 75214, 71963, 3251, 0, 63731, 63731, 0, 63731, 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 0, 0, 0, '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);