-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_2016`
(
  ein STRING NOT NULL,
  elf STRING,
  tax_pd INT64,
  subseccd INT64,
  s501c3or4947a1cd STRING,
  schdbind STRING,
  politicalactvtscd STRING,
  lbbyingactvtscd STRING,
  subjto6033cd STRING,
  dnradvisedfundscd STRING,
  prptyintrcvdcd STRING,
  maintwrkofartcd STRING,
  crcounselingqstncd STRING,
  hldassetsintermpermcd STRING,
  rptlndbldgeqptcd STRING,
  rptinvstothsecd STRING,
  rptinvstprgrelcd STRING,
  rptothasstcd STRING,
  rptothliabcd STRING,
  sepcnsldtfinstmtcd STRING,
  sepindaudfinstmtcd STRING,
  inclinfinstmtcd STRING,
  operateschools170cd STRING,
  frgnofficecd STRING,
  frgnrevexpnscd STRING,
  frgngrntscd STRING,
  frgnaggragrntscd STRING,
  rptprofndrsngfeescd STRING,
  rptincfnndrsngcd STRING,
  rptincgamingcd STRING,
  operatehosptlcd STRING,
  hospaudfinstmtcd STRING,
  rptgrntstogovtcd STRING,
  rptgrntstoindvcd STRING,
  rptyestocompnstncd STRING,
  txexmptbndcd STRING,
  invstproceedscd STRING,
  maintescrwaccntcd STRING,
  actonbehalfcd STRING,
  engageexcessbnftcd STRING,
  awarexcessbnftcd STRING,
  loantofficercd STRING,
  grantoofficercd STRING,
  dirbusnreltdcd STRING,
  fmlybusnreltdcd STRING,
  servasofficercd STRING,
  recvnoncashcd STRING,
  recvartcd STRING,
  ceaseoperationscd STRING,
  sellorexchcd STRING,
  ownsepentcd STRING,
  reltdorgcd STRING,
  intincntrlcd STRING,
  orgtrnsfrcd STRING,
  conduct5percentcd STRING,
  compltschocd STRING,
  f1096cnt INT64,
  fw2gcnt INT64,
  wthldngrulescd STRING,
  noemplyeesw3cnt INT64,
  filerqrdrtnscd STRING,
  unrelbusinccd STRING,
  filedf990tcd STRING,
  frgnacctcd STRING,
  prohibtdtxshltrcd STRING,
  prtynotifyorgcd STRING,
  filedf8886tcd STRING,
  solicitcntrbcd STRING,
  exprstmntcd STRING,
  providegoodscd STRING,
  notfydnrvalcd STRING,
  filedf8282cd STRING,
  f8282cnt INT64,
  fndsrcvdcd STRING,
  premiumspaidcd STRING,
  filedf8899cd STRING,
  filedf1098ccd STRING,
  excbushldngscd STRING,
  s4966distribcd STRING,
  distribtodonorcd STRING,
  initiationfees INT64,
  grsrcptspublicuse INT64,
  grsincmembers INT64,
  grsincother INT64,
  filedlieuf1041cd STRING,
  txexmptint INT64,
  qualhlthplncd STRING,
  qualhlthreqmntn INT64,
  qualhlthonhnd INT64,
  rcvdpdtngcd STRING,
  filedf720cd STRING,
  totreprtabled INT64,
  totcomprelatede INT64,
  totestcompf INT64,
  noindiv100kcnt INT64,
  nocontractor100kcnt INT64,
  totcntrbgfts INT64,
  prgmservcode2acd INT64,
  totrev2acola INT64,
  prgmservcode2bcd INT64,
  totrev2bcola INT64,
  prgmservcode2ccd INT64,
  totrev2ccola INT64,
  prgmservcode2dcd INT64,
  totrev2dcola INT64,
  prgmservcode2ecd INT64,
  totrev2ecola INT64,
  totrev2fcola INT64,
  totprgmrevnue INT64,
  invstmntinc INT64,
  txexmptbndsproceeds INT64,
  royaltsinc INT64,
  grsrntsreal INT64,
  grsrntsprsnl INT64,
  rntlexpnsreal INT64,
  rntlexpnsprsnl INT64,
  rntlincreal INT64,
  rntlincprsnl INT64,
  netrntlinc INT64,
  grsalesecur INT64,
  grsalesothr INT64,
  cstbasisecur INT64,
  cstbasisothr INT64,
  gnlsecur INT64,
  gnlsothr INT64,
  netgnls INT64,
  grsincfndrsng INT64,
  lessdirfndrsng INT64,
  netincfndrsng INT64,
  grsincgaming INT64,
  lessdirgaming INT64,
  netincgaming INT64,
  grsalesinvent INT64,
  lesscstofgoods INT64,
  netincsales INT64,
  miscrev11acd INT64,
  miscrevtota INT64,
  miscrev11bcd INT64,
  miscrevtot11b INT64,
  miscrev11ccd INT64,
  miscrevtot11c INT64,
  miscrevtot11d INT64,
  miscrevtot11e INT64,
  totrevenue INT64,
  grntstogovt INT64,
  grnsttoindiv INT64,
  grntstofrgngovt INT64,
  benifitsmembrs INT64,
  compnsatncurrofcr INT64,
  compnsatnandothr INT64,
  othrsalwages INT64,
  pensionplancontrb INT64,
  othremplyeebenef INT64,
  payrolltx INT64,
  feesforsrvcmgmt INT64,
  legalfees INT64,
  accntingfees INT64,
  feesforsrvclobby INT64,
  profndraising INT64,
  feesforsrvcinvstmgmt INT64,
  feesforsrvcothr INT64,
  advrtpromo INT64,
  officexpns INT64,
  infotech INT64,
  royaltsexpns INT64,
  occupancy INT64,
  travel INT64,
  travelofpublicoffcl INT64,
  converconventmtng INT64,
  interestamt INT64,
  pymtoaffiliates INT64,
  deprcatndepletn INT64,
  insurance INT64,
  othrexpnsa INT64,
  othrexpnsb INT64,
  othrexpnsc INT64,
  othrexpnsd INT64,
  othrexpnse INT64,
  othrexpnsf INT64,
  totfuncexpns INT64,
  nonintcashend INT64,
  svngstempinvend INT64,
  pldgegrntrcvblend INT64,
  accntsrcvblend INT64,
  currfrmrcvblend INT64,
  rcvbldisqualend INT64,
  notesloansrcvblend INT64,
  invntriesalesend INT64,
  prepaidexpnsend INT64,
  lndbldgsequipend INT64,
  invstmntsend INT64,
  invstmntsothrend INT64,
  invstmntsprgmend INT64,
  intangibleassetsend INT64,
  othrassetsend INT64,
  totassetsend INT64,
  accntspayableend INT64,
  grntspayableend INT64,
  deferedrevnuend INT64,
  txexmptbndsend INT64,
  escrwaccntliabend INT64,
  paybletoffcrsend INT64,
  secrdmrtgsend INT64,
  unsecurednotesend INT64,
  othrliabend INT64,
  totliabend INT64,
  unrstrctnetasstsend INT64,
  temprstrctnetasstsend INT64,
  permrstrctnetasstsend INT64,
  capitalstktrstend INT64,
  paidinsurplusend INT64,
  retainedearnend INT64,
  totnetassetend INT64,
  totnetliabastend INT64,
  nonpfrea INT64,
  totnooforgscnt INT64,
  totsupport INT64,
  gftgrntsrcvd170 INT64,
  txrevnuelevied170 INT64,
  srvcsval170 INT64,
  pubsuppsubtot170 INT64,
  exceeds2pct170 INT64,
  pubsupplesspct170 INT64,
  samepubsuppsubtot170 INT64,
  grsinc170 INT64,
  netincunreltd170 INT64,
  othrinc170 INT64,
  totsupp170 INT64,
  grsrcptsrelated170 INT64,
  totgftgrntrcvd509 INT64,
  grsrcptsadmissn509 INT64,
  grsrcptsactivities509 INT64,
  txrevnuelevied509 INT64,
  srvcsval509 INT64,
  pubsuppsubtot509 INT64,
  rcvdfrmdisqualsub509 INT64,
  exceeds1pct509 INT64,
  subtotpub509 INT64,
  pubsupplesub509 INT64,
  samepubsuppsubtot509 INT64,
  grsinc509 INT64,
  unreltxincls511tx509 INT64,
  subtotsuppinc509 INT64,
  netincunrelatd509 INT64,
  othrinc509 INT64,
  totsupp509 INT64
)
OPTIONS(
  description="IRS 990 2016 dataset"
);

INSERT INTO `bigquery-public-data.irs_990.irs_990_2016` (ein, elf, tax_pd, subseccd, s501c3or4947a1cd, schdbind, politicalactvtscd, lbbyingactvtscd, subjto6033cd, dnradvisedfundscd, prptyintrcvdcd, maintwrkofartcd, crcounselingqstncd, hldassetsintermpermcd, rptlndbldgeqptcd, rptinvstothsecd, rptinvstprgrelcd, rptothasstcd, rptothliabcd, sepcnsldtfinstmtcd, sepindaudfinstmtcd, inclinfinstmtcd, operateschools170cd, frgnofficecd, frgnrevexpnscd, frgngrntscd, frgnaggragrntscd, rptprofndrsngfeescd, rptincfnndrsngcd, rptincgamingcd, operatehosptlcd, hospaudfinstmtcd, rptgrntstogovtcd, rptgrntstoindvcd, rptyestocompnstncd, txexmptbndcd, invstproceedscd, maintescrwaccntcd, actonbehalfcd, engageexcessbnftcd, awarexcessbnftcd, loantofficercd, grantoofficercd, dirbusnreltdcd, fmlybusnreltdcd, servasofficercd, recvnoncashcd, recvartcd, ceaseoperationscd, sellorexchcd, ownsepentcd, reltdorgcd, intincntrlcd, orgtrnsfrcd, conduct5percentcd, compltschocd, f1096cnt, fw2gcnt, wthldngrulescd, noemplyeesw3cnt, filerqrdrtnscd, unrelbusinccd, filedf990tcd, frgnacctcd, prohibtdtxshltrcd, prtynotifyorgcd, filedf8886tcd, solicitcntrbcd, exprstmntcd, providegoodscd, notfydnrvalcd, filedf8282cd, f8282cnt, fndsrcvdcd, premiumspaidcd, filedf8899cd, filedf1098ccd, excbushldngscd, s4966distribcd, distribtodonorcd, initiationfees, grsrcptspublicuse, grsincmembers, grsincother, filedlieuf1041cd, txexmptint, qualhlthplncd, qualhlthreqmntn, qualhlthonhnd, rcvdpdtngcd, filedf720cd, totreprtabled, totcomprelatede, totestcompf, noindiv100kcnt, nocontractor100kcnt, totcntrbgfts, prgmservcode2acd, totrev2acola, prgmservcode2bcd, totrev2bcola, prgmservcode2ccd, totrev2ccola, prgmservcode2dcd, totrev2dcola, prgmservcode2ecd, totrev2ecola, totrev2fcola, totprgmrevnue, invstmntinc, txexmptbndsproceeds, royaltsinc, grsrntsreal, grsrntsprsnl, rntlexpnsreal, rntlexpnsprsnl, rntlincreal, rntlincprsnl, netrntlinc, grsalesecur, grsalesothr, cstbasisecur, cstbasisothr, gnlsecur, gnlsothr, netgnls, grsincfndrsng, lessdirfndrsng, netincfndrsng, grsincgaming, lessdirgaming, netincgaming, grsalesinvent, lesscstofgoods, netincsales, miscrev11acd, miscrevtota, miscrev11bcd, miscrevtot11b, miscrev11ccd, miscrevtot11c, miscrevtot11d, miscrevtot11e, totrevenue, grntstogovt, grnsttoindiv, grntstofrgngovt, benifitsmembrs, compnsatncurrofcr, compnsatnandothr, othrsalwages, pensionplancontrb, othremplyeebenef, payrolltx, feesforsrvcmgmt, legalfees, accntingfees, feesforsrvclobby, profndraising, feesforsrvcinvstmgmt, feesforsrvcothr, advrtpromo, officexpns, infotech, royaltsexpns, occupancy, travel, travelofpublicoffcl, converconventmtng, interestamt, pymtoaffiliates, deprcatndepletn, insurance, othrexpnsa, othrexpnsb, othrexpnsc, othrexpnsd, othrexpnse, othrexpnsf, totfuncexpns, nonintcashend, svngstempinvend, pldgegrntrcvblend, accntsrcvblend, currfrmrcvblend, rcvbldisqualend, notesloansrcvblend, invntriesalesend, prepaidexpnsend, lndbldgsequipend, invstmntsend, invstmntsothrend, invstmntsprgmend, intangibleassetsend, othrassetsend, totassetsend, accntspayableend, grntspayableend, deferedrevnuend, txexmptbndsend, escrwaccntliabend, paybletoffcrsend, secrdmrtgsend, unsecurednotesend, othrliabend, totliabend, unrstrctnetasstsend, temprstrctnetasstsend, permrstrctnetasstsend, capitalstktrstend, paidinsurplusend, retainedearnend, totnetassetend, totnetliabastend, 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 ('751562334', 'Y', 201508, 3, 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 16, 0, 'Y', 224, 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 0, 0, 'N', 0, 'N', 0, 0, 'N', 'N', 203454, 0, 1653, 1, 0, 841747, 0, 12589787, 0, 4937201, 0, 539487, 0, 161543, 0, 78000, 119637, 18425655, 1260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30751, 172464, -141713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19126949, 0, 0, 0, 0, 0, 0, 16404190, 22954, 219968, 1435111, 0, 219, 14000, 0, 0, 0, 47624, 32298, 52525, 95035, 0, 140344, 39629, 0, 0, 39609, 0, 32674, 19782, 98534, 60420, 30035, 20111, 0, 89009, 18894071, 261196, 0, 0, 1389850, 0, 0, 0, 0, 35289, 101799, 89882, 0, 0, 0, 8187, 1886203, 320511, 0, 0, 0, 0, 0, 549332, 0, 666180, 1536023, 350180, 0, 0, 0, 0, 0, 350180, 1886203, 7, 0, 0, 2357289, 0, 0, 2357289, 0, 2357289, 2357289, 15355, 0, 0, 2372644, 18456406, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('391613624', 'Y', 201506, 3, 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'Y', 0, 0, 'N', 338, 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 0, 0, 'N', 0, 'N', 0, 0, 'N', 'N', 705968, 4179218, 966493, 18, 3, 1845042, 900099, 17555930, 446110, 19140748, 0, 0, 0, 0, 0, 0, 0, 36696678, 541, 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, 453220, 15121, 900099, 23561, 9, 17150, 7013, 62845, 38605106, 0, 0, 0, 0, 0, 24242, 10202697, 244128, 1700145, 743576, 0, 0, 0, 0, 0, 0, 167498, 3282, 586233, 0, 0, 224122, 22356, 0, 0, 0, 0, 415209, 0, 3280608, 650318, 48836, 20675769, 0, 339851, 39328870, 3950, 0, 0, 2317423, 0, 0, 0, 3673228, 2520, 5492857, 0, 0, 0, 0, 4169219, 15659197, 1772246, 0, 0, 0, 0, 0, 0, 0, 2123868, 3896114, 11763083, 0, 0, 0, 0, 0, 11763083, 15659197, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9495817, 159525425, 0, 0, 0, 169021242, 0, 0, 0, 169021242, 169021242, 3107, 0, 3107, 10992027, 349476, 180365852), ('42665867', 'Y', 201506, 3, 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'Y', 82, 0, 'N', 367, 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 0, 0, 'N', 0, 'N', 0, 0, 'N', 'N', 890562, 1528538, 473055, 5, 0, 8490866, 711110, 5648455, 711110, 2091537, 711110, 1382853, 711110, 535736, 0, 0, 0, 9658581, 833878, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 738980, 313062, 425918, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19409243, 0, 152410, 0, 0, 786193, 0, 7277475, 474090, 760937, 882855, 0, 10691, 66297, 0, 0, 0, 2240791, 197174, 631002, 175345, 1046130, 1986674, 531845, 0, 0, 0, 0, 268454, 49345, 1436109, 383159, 88480, 0, 0, 0, 19445456, 541149, 0, 1062097, 310532, 0, 0, 0, 0, 671625, 2133042, 0, 18072634, 0, 0, 0, 22791079, 2082450, 0, 1271489, 0, 0, 0, 0, 0, 2236993, 5590932, 5097301, 8972238, 3130608, 0, 0, 0, 17200147, 22791079, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28491717, 42369536, 0, 0, 0, 70861253, 4717866, 3956347, 8674213, 62187040, 70861253, 4162707, 0, 4162707, 0, 0, 75023960), ('840532684', 'Y', 201506, 3, 'Y', 'Y', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'Y', 224, 0, 'N', 192, 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 0, 0, 'N', 0, 'N', 0, 0, 'N', 'N', 288201, 0, 30528, 1, 3, 1052303, 624100, 7276505, 624100, 6501429, 624100, 278079, 624100, 54834, 0, 0, 0, 14110847, 65346, 0, 0, 0, 0, 0, 0, 0, 0, 0, 571425, 0, 563000, 0, 8425, 0, 8425, 0, 45989, -45989, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15190932, 0, 0, 0, 0, 302200, 0, 7077912, 69726, 418903, 614362, 0, 42267, 51387, 0, 0, 0, 5321420, 1671, 357087, 0, 0, 101482, 253317, 0, 53116, 0, 0, 160432, 46883, 114438, 25751, 0, 0, 0, 0, 15012354, 1100489, 233213, 0, 1733854, 0, 0, 0, 0, 41684, 888152, 1454929, 243617, 0, 0, 0, 5695938, 2032527, 0, 134645, 0, 0, 0, 0, 0, 0, 2167172, 3526134, 2632, 0, 0, 0, 0, 3528766, 5695938, 7, 0, 0, 2936779, 0, 0, 2936779, 0, 2936779, 2936779, 292194, 0, 0, 3228973, 57176510, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ('581814803', 'Y', 201506, 6, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 0, 0, 'N', 0, 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 'N', 'N', 'N', 'N', 'N', 'N', 'N', 0, 0, 0, 0, 'N', 0, 'N', 0, 0, 'N', 'N', 0, 0, 0, 0, 1, 11450, 900099, 259129, 900099, 250638, 900099, 54321, 900099, 24200, 541800, 7350, 0, 595638, 818, 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, 0, 607906, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 321588, 10000, 5098, 0, 0, 0, 0, 3581, 15464, 3420, 0, 0, 9886, 0, 112911, 0, 0, 0, 3030, 39310, 33425, 13149, 8230, 0, 10219, 589311, 114346, 301455, 0, 22272, 0, 0, 0, 0, 5641, 0, 0, 0, 0, 0, 0, 443714, 30237, 0, 90588, 0, 0, 0, 0, 0, 0, 120825, 322889, 0, 0, 0, 0, 0, 322889, 443714, 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);