-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_pf_2012`
(
  ein STRING NOT NULL OPTIONS(description="Employer Identification Number"),
  tax_prd STRING OPTIONS(description="Tax period"),
  eostatus STRING OPTIONS(description="EO Status Code"),
  tax_yr INT64 OPTIONS(description="SOI Year"),
  operatingcd STRING OPTIONS(description="Record code"),
  assetcdgen STRING OPTIONS(description="Asset code"),
  transinccd STRING OPTIONS(description="Income code"),
  subcd STRING OPTIONS(description="Subsection code"),
  grscontrgifts INT64 OPTIONS(description="Contributions received"),
  intrstrvnue INT64 OPTIONS(description="Interest revenue"),
  dividndsamt INT64 OPTIONS(description="Dividends"),
  totexcapgn INT64 OPTIONS(description="Net gain – sales of assets"),
  totexcapls INT64 OPTIONS(description="Net loss – sales of assets"),
  grsprofitbus INT64 OPTIONS(description="Gross profit"),
  otherincamt INT64 OPTIONS(description="Other income"),
  compofficers INT64 OPTIONS(description="Compensation of officers"),
  contrpdpbks INT64 OPTIONS(description="Contributions paid"),
  totrcptperbks INT64 OPTIONS(description="Total revenue"),
  totexpnspbks INT64 OPTIONS(description="Total expenses"),
  excessrcpts INT64 OPTIONS(description="Net income less deficit"),
  totexpnsexempt INT64 OPTIONS(description="Total expenses – exempt purpose"),
  netinvstinc INT64 OPTIONS(description="Net investment income"),
  totaxpyr INT64 OPTIONS(description="Total excise tax"),
  adjnetinc INT64 OPTIONS(description="Adjusted net income"),
  totassetsend INT64 OPTIONS(description="Total assets – e-o-y book value"),
  invstgovtoblig INT64 OPTIONS(description="Investments in U.S. & state government obligations – e-o-y book value"),
  invstcorpstk INT64 OPTIONS(description="Investments in corporate stock – e-o-y book value"),
  invstcorpbnd INT64 OPTIONS(description="Investments in corporate bonds– e-o-y book value"),
  totinvstsec INT64 OPTIONS(description="Total investments in securities – e-o-y book value"),
  totliabend INT64 OPTIONS(description="Total liabilities – e-o-y book value"),
  fairmrktvalamt INT64 OPTIONS(description="Total assets – e-o-y fair market value"),
  undistribincyr INT64 OPTIONS(description="Undistributed income"),
  cmpmininvstret INT64 OPTIONS(description="Minimum investment return"),
  sec4940notxcd STRING OPTIONS(description="4940 – no tax"),
  sec4940redtxcd STRING OPTIONS(description="4940 – 1 % tax"),
  infleg STRING OPTIONS(description="Influence legislation question"),
  contractncd STRING OPTIONS(description="Contraction question"),
  claimstatcd STRING OPTIONS(description="Claiming status question"),
  propexchcd STRING OPTIONS(description="Property exchange question"),
  brwlndmnycd STRING OPTIONS(description="Borrow lend money question"),
  furngoodscd STRING OPTIONS(description="Furnished goods question"),
  paidcmpncd STRING OPTIONS(description="Paid compensation question"),
  trnsothasstscd STRING OPTIONS(description="Transfer question"),
  agremkpaycd STRING OPTIONS(description="Agree to make pay question"),
  undistrinccd STRING OPTIONS(description="Undistributed income question"),
  dirindirintcd STRING OPTIONS(description="Direct indirect interest question"),
  invstjexmptcd STRING OPTIONS(description="Jeopardizing investments question"),
  propgndacd STRING OPTIONS(description="Propaganda question"),
  excesshldcd STRING OPTIONS(description="Influence public election question"),
  grntindivcd STRING OPTIONS(description="Grant individual question"),
  nchrtygrntcd STRING OPTIONS(description="Non-charity grant question"),
  nreligiouscd STRING OPTIONS(description="Non-religious question"),
  grsrents INT64 OPTIONS(description="Gross rents"),
  costsold INT64 OPTIONS(description="Cost-of-goods-sold"),
  totrcptnetinc INT64 OPTIONS(description="Total receipts net investment income"),
  trcptadjnetinc INT64 OPTIONS(description="Total receipts adjusted net income"),
  topradmnexpnsa INT64 OPTIONS(description="Total operating and administrative expenses column a"),
  topradmnexpnsb INT64 OPTIONS(description="Total operating and administrative expenses column b"),
  topradmnexpnsd INT64 OPTIONS(description="Total operating and administrative expenses column d"),
  totexpnsnetinc INT64 OPTIONS(description="Total expenses net investment income"),
  totexpnsadjnet INT64 OPTIONS(description="Total expenses adjusted net income"),
  othrcashamt INT64 OPTIONS(description="Cash non-interest-bearing – e-o-y book value"),
  mrtgloans INT64 OPTIONS(description="Investments mortgage loans – e-o-y book value"),
  othrinvstend INT64 OPTIONS(description="Other investments – e-o-y book value"),
  fairmrktvaleoy INT64 OPTIONS(description="Total assets – e-o-y fair market value"),
  mrtgnotespay INT64 OPTIONS(description="Mortgage loans payable – e-o-y book value"),
  tfundnworth INT64 OPTIONS(description="Total fund net worth – e-o-y book value"),
  invstexcisetx INT64 OPTIONS(description="Excise tax on net investment income"),
  sect511tx INT64 OPTIONS(description="Section 511 tax"),
  subtitleatx INT64 OPTIONS(description="Subtitle A tax"),
  esttaxcr INT64 OPTIONS(description="Estimated tax credit"),
  txwithldsrc INT64 OPTIONS(description="Tax withheld at source"),
  txpaidf2758 INT64 OPTIONS(description="Tax paid with Form 2758 (filing extension)"),
  erronbkupwthld INT64 OPTIONS(description="Erroneous backup withholding credit amount"),
  estpnlty INT64 OPTIONS(description="Estimated tax penalty"),
  balduopt INT64 OPTIONS(description="Balance due or overpayment"),
  crelamt INT64 OPTIONS(description="Credit elect amount"),
  tfairmrktunuse INT64 OPTIONS(description="Fair market value of assets not used for charitable purposes"),
  distribamt INT64 OPTIONS(description="Distributable amount"),
  adjnetinccola INT64 OPTIONS(description="Adjusted net income column a"),
  adjnetinccolb INT64 OPTIONS(description="Adjusted net income column b"),
  adjnetinccolc INT64 OPTIONS(description="Adjusted net income column c"),
  adjnetinccold INT64 OPTIONS(description="Adjusted net income column d"),
  adjnetinctot INT64 OPTIONS(description="Adjusted net income total"),
  qlfydistriba INT64 OPTIONS(description="Qualifying distributions column a"),
  qlfydistribb INT64 OPTIONS(description="Qualifying distributions column b"),
  qlfydistribc INT64 OPTIONS(description="Qualifying distributions column c"),
  qlfydistribd INT64 OPTIONS(description="Qualifying distributions column d"),
  qlfydistribtot INT64 OPTIONS(description="Qualifying distributions total"),
  valassetscola INT64 OPTIONS(description="Value assets column a"),
  valassetscolb INT64 OPTIONS(description="Value assets column b"),
  valassetscolc INT64 OPTIONS(description="Value assets column c"),
  valassetscold INT64 OPTIONS(description="Value assets column d"),
  valassetstot INT64 OPTIONS(description="Value assets total"),
  qlfyasseta INT64 OPTIONS(description="Qualifying assets column a"),
  qlfyassetb INT64 OPTIONS(description="Qualifying assets column b"),
  qlfyassetc INT64 OPTIONS(description="Qualifying assets column c"),
  qlfyassetd INT64 OPTIONS(description="Qualifying assets column d"),
  qlfyassettot INT64 OPTIONS(description="Qualifying assets total"),
  endwmntscola INT64 OPTIONS(description="Endowments column a"),
  endwmntscolb INT64 OPTIONS(description="Endowments column b"),
  endwmntscolc INT64 OPTIONS(description="Endowments column c"),
  endwmntscold INT64 OPTIONS(description="Endowments column d"),
  endwmntstot INT64 OPTIONS(description="Endowments total"),
  totsuprtcola INT64 OPTIONS(description="Total support column a"),
  totsuprtcolb INT64 OPTIONS(description="Total support column b"),
  totsuprtcolc INT64 OPTIONS(description="Total support column c"),
  totsuprtcold INT64 OPTIONS(description="Total support column d"),
  totsuprttot INT64 OPTIONS(description="Total support total"),
  pubsuprtcola INT64 OPTIONS(description="Public support column a"),
  pubsuprtcolb INT64 OPTIONS(description="Public support column b"),
  pubsuprtcolc INT64 OPTIONS(description="Public support column c"),
  pubsuprtcold INT64 OPTIONS(description="Public support column d"),
  pubsuprttot INT64 OPTIONS(description="Public support total"),
  grsinvstinca INT64 OPTIONS(description="Gross investment income column a"),
  grsinvstincb INT64 OPTIONS(description="Gross investment income column b"),
  grsinvstincc INT64 OPTIONS(description="Gross investment income column c"),
  grsinvstincd INT64 OPTIONS(description="Gross investment income column d"),
  grsinvstinctot INT64 OPTIONS(description="Gross investment income total")
);

INSERT INTO `bigquery-public-data.irs_990.irs_990_pf_2012` (ein, tax_prd, eostatus, tax_yr, operatingcd, assetcdgen, transinccd, subcd, grscontrgifts, intrstrvnue, dividndsamt, totexcapgn, totexcapls, grsprofitbus, otherincamt, compofficers, contrpdpbks, totrcptperbks, totexpnspbks, excessrcpts, totexpnsexempt, netinvstinc, totaxpyr, adjnetinc, totassetsend, invstgovtoblig, invstcorpstk, invstcorpbnd, totinvstsec, totliabend, fairmrktvalamt, undistribincyr, cmpmininvstret, sec4940notxcd, sec4940redtxcd, infleg, contractncd, claimstatcd, propexchcd, brwlndmnycd, furngoodscd, paidcmpncd, trnsothasstscd, agremkpaycd, undistrinccd, dirindirintcd, invstjexmptcd, propgndacd, excesshldcd, grntindivcd, nchrtygrntcd, nreligiouscd, grsrents, costsold, totrcptnetinc, trcptadjnetinc, topradmnexpnsa, topradmnexpnsb, topradmnexpnsd, totexpnsnetinc, totexpnsadjnet, othrcashamt, mrtgloans, othrinvstend, fairmrktvaleoy, mrtgnotespay, tfundnworth, invstexcisetx, sect511tx, subtitleatx, esttaxcr, txwithldsrc, txpaidf2758, erronbkupwthld, estpnlty, balduopt, crelamt, tfairmrktunuse, distribamt, adjnetinccola, adjnetinccolb, adjnetinccolc, adjnetinccold, adjnetinctot, qlfydistriba, qlfydistribb, qlfydistribc, qlfydistribd, qlfydistribtot, valassetscola, valassetscolb, valassetscolc, valassetscold, valassetstot, qlfyasseta, qlfyassetb, qlfyassetc, qlfyassetd, qlfyassettot, endwmntscola, endwmntscolb, endwmntscolc, endwmntscold, endwmntstot, totsuprtcola, totsuprtcolb, totsuprtcolc, totsuprtcold, totsuprttot, pubsuprtcola, pubsuprtcolb, pubsuprtcolc, pubsuprtcold, pubsuprttot, grsinvstinca, grsinvstincb, grsinvstincc, grsinvstincd, grsinvstinctot) VALUES ('166052935', '201104', '1', 2010, 'Y', '3', '1', '03', 525, 24, 0, 0, 0, 0, 1260, 0, 0, 2609, 2843, -234, 0, 0, 0, 0, 50030, 0, 0, 0, 0, 0, 63030, 0, 1970, 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 800, 0, 2339, 2339, 2843, 2843, 0, 2843, 2843, 3096, 0, 0, 63030, 0, 50030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1970, 1, 0, 344, 0, 344, 2843, 2993, 1945, 0, 7782, 50030, 50182, 49438, 0, 149650, 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), ('593469366', '201112', '1', 2011, 'N', '4', '4', '03', 285920, 0, 8965, 0, 0, 0, 0, 0, 19000, 294885, 411127, -116242, 19427, 427, 212, 427, 438591, 0, 334234, 0, 334234, 5000, 546793, 0, 20416, 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 11050, 8965, 392127, 427, 427, 10623, 8538, 58653, 0, 0, 428591, 0, 433591, 212, 0, 0, 0, 0, 214, 0, 0, -2, 2, 0, 20204, 8538, 15848, 13033, 10152, 47571, 19427, 28070, 25095, 16231, 88823, 428591, 554982, 504377, 402989, 1890938, 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), ('204956488', '201112', '1', 2011, 'N', '8', '6', '03', 0, 45, 917729, 58182, 0, 0, 115478, 213293, 1057429, 1091434, 1430917, -339483, 1057429, 731341, 14627, 8938011, 20450977, 7062380, 7466991, 1875155, 16404526, 6914, 20177173, 0, 1020885, 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'Y', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 1091389, 9298059, 373488, 360048, 0, 360048, 360048, 60797, 0, 3737902, 20177173, 0, 20444063, 14627, 0, 0, 3542, 0, 4000, 0, 0, 7085, 0, 20728624, 1006258, 731431, 347781, 158978, 247762, 1485952, 21188943, 21502442, 20606874, 17346353, 80644612, 20790976, 20092448, 20744246, 16952616, 78580286, 20764300, 20061938, 20710894, 16924153, 78461285, 680590, 657111, 474409, 552600, 2364710, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1091434, 721130, 473602, 532339, 2818505), ('581609814', '201112', '1', 2011, 'Y', '3', '1', '03', 0, 161, 560, 0, 0, 0, 0, 13200, 8083, 721, 22788, -22067, 20283, 0, 0, 0, 96566, 0, 0, 0, 0, 0, 123110, 2616, 4400, 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 721, 721, 14705, 1005, 12200, 1005, 1500, 2270, 0, 59817, 123110, 0, 96566, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123000, 4400, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 96566, 118633, 142971, 165155, 523325, 96566, 118633, 142971, 165155, 523325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('112947695', '201112', '1', 2011, 'N', '3', '3', '03', 52120, 18, 0, 0, 0, 0, 0, 0, 52031, 52138, 81190, -29052, 82765, 0, 0, 0, 78638, 0, 0, 0, 0, 1, 78295, 2248, 2248, 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 18, 18, 29159, 425, 28734, 425, 425, 17951, 0, 23073, 78295, 0, 78638, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45638, 2248, 0, 0, 0, 4239, 4239, 54031, 59335, 52851, 68855, 235072, 23000, 24431, 22795, 22795, 93021, 23000, 24431, 22795, 22795, 93021, 0, 0, 0, 0, 0, 52120, 57090, 55771, 42990, 207971, 52120, 57090, 55771, 42990, 207971, 18, 48, 12, 259, 337);