-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_2012`
(
  ein STRING NOT NULL OPTIONS(description="Employer Identification Number"),
  tax_pd STRING OPTIONS(description="Tax period"),
  subseccd STRING OPTIONS(description="Subsection code"),
  unrelbusinccd STRING OPTIONS(description="Unrelated business income question"),
  initiationfees INT64 OPTIONS(description="Initiation fees amount"),
  grsrcptspublicuse INT64 OPTIONS(description="Gross receipts amount"),
  grsincmembers INT64 OPTIONS(description="Gross income from members"),
  grsincother INT64 OPTIONS(description="Gross income from other sources"),
  totcntrbgfts INT64 OPTIONS(description="Total contributions"),
  totprgmrevnue INT64 OPTIONS(description="Program service revenue"),
  invstmntinc INT64 OPTIONS(description="Investment income"),
  txexmptbndsproceeds INT64 OPTIONS(description="Tax-exempt bond proceeds"),
  royaltsinc INT64 OPTIONS(description="Royalties"),
  grsrntsreal INT64 OPTIONS(description="Gross rents -- Real estate"),
  grsrntsprsnl INT64 OPTIONS(description="Gross rents -- Personal property"),
  rntlexpnsreal INT64 OPTIONS(description="Rental expense -- Real estate"),
  rntlexpnsprsnl INT64 OPTIONS(description="Rental expense -- Personal property"),
  rntlincreal INT64 OPTIONS(description="Net rent -- Real estate"),
  rntlincprsnl INT64 OPTIONS(description="Net rent -- Personal property"),
  netrntlinc INT64 OPTIONS(description="Net rental income"),
  grsalesecur INT64 OPTIONS(description="Gross sales -- Securities"),
  grsalesothr INT64 OPTIONS(description="Gross sales -- Other assets"),
  cstbasisecur INT64 OPTIONS(description="Sales expense -- Securities"),
  cstbasisothr INT64 OPTIONS(description="Sales expense -- Other assets"),
  gnlsecur INT64 OPTIONS(description="Net gain from sales -- Securities"),
  gnlsothr INT64 OPTIONS(description="Net gain from sales -- Other assets"),
  netgnls INT64 OPTIONS(description="Sales of assets"),
  grsincfndrsng INT64 OPTIONS(description="Gross fundraising"),
  lessdirfndrsng INT64 OPTIONS(description="Fundraising expenses"),
  netincfndrsng INT64 OPTIONS(description="Fundraising income"),
  grsincgaming INT64 OPTIONS(description="Gross income from gaming"),
  lessdirgaming INT64 OPTIONS(description="Gaming expenses"),
  netincgaming INT64 OPTIONS(description="Gaming income"),
  grsalesinvent INT64 OPTIONS(description="Gross sales of inventory"),
  lesscstofgoods INT64 OPTIONS(description="Cost of goods sold (inventory)"),
  netincsales INT64 OPTIONS(description="Income from sales of inventory"),
  miscrevtot11e INT64 OPTIONS(description="Other revenue"),
  totrevenue INT64 OPTIONS(description="Total revenue"),
  compnsatncurrofcr INT64 OPTIONS(description="Compensation of current officers, directors, etc"),
  othrsalwages INT64 OPTIONS(description="Other salaries and wages"),
  payrolltx INT64 OPTIONS(description="Payroll taxes"),
  profndraising INT64 OPTIONS(description="Professional fundraising fees"),
  totfuncexpns INT64 OPTIONS(description="Total functional expenses"),
  totassetsend INT64 OPTIONS(description="Total assets -- eoy"),
  txexmptbndsend INT64 OPTIONS(description="Tax-exempt bond liabilities -- eoy"),
  secrdmrtgsend INT64 OPTIONS(description="Secured mortgages and notes payable -- eoy"),
  unsecurednotesend INT64 OPTIONS(description="Unsecured mortgages and notes payable -- eoy"),
  totliabend INT64 OPTIONS(description="Total liabilities -- eoy"),
  retainedearnend INT64 OPTIONS(description="Paid-in or capital surplus -- eoy"),
  totnetassetend INT64 OPTIONS(description="Total Net Assets -- eoy"),
  nonpfrea STRING OPTIONS(description="Reason for non-PF status"),
  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)"),
  grsinc170 INT64 OPTIONS(description="Gross income from interest etc (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)"),
  txrevnuelevied509 INT64 OPTIONS(description="Tax revenues levied (509)"),
  srvcsval509 INT64 OPTIONS(description="Services or facilities furnished by gov (509)"),
  subtotsuppinc509 INT64 OPTIONS(description="Subtotal total support (509)"),
  totsupp509 INT64 OPTIONS(description="Total support (509)")
);

INSERT INTO `bigquery-public-data.irs_990.irs_990_2012` (ein, tax_pd, subseccd, unrelbusinccd, initiationfees, grsrcptspublicuse, grsincmembers, grsincother, totcntrbgfts, 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, miscrevtot11e, totrevenue, compnsatncurrofcr, othrsalwages, payrolltx, profndraising, totfuncexpns, totassetsend, txexmptbndsend, secrdmrtgsend, unsecurednotesend, totliabend, retainedearnend, totnetassetend, nonpfrea, gftgrntsrcvd170, txrevnuelevied170, srvcsval170, grsinc170, grsrcptsrelated170, totgftgrntrcvd509, grsrcptsadmissn509, txrevnuelevied509, srvcsval509, subtotsuppinc509, totsupp509) VALUES ('250972074', '201112', '03', 'N', 0, 0, 0, 0, 356059, 82873, 655, 0, 0, 4840, 0, 0, 0, 0, 0, 4840, 0, 0, 0, 0, 0, 0, 0, 20775, 1725, 19050, 0, 0, 0, 223662, 110084, 113578, 38634, 615689, 0, 61819, 7491, 0, 411785, 1131238, 0, 328242, 0, 328640, 0, 802598, '07', 898658, 0, 0, 26714, 259630, 898658, 1369955, 0, 0, 26705, 2350575), ('222094018', '201112', '03', 'N', 0, 0, 0, 0, 91009, 44136, 69, 0, 0, 820, 0, 0, 0, 820, 0, 820, 0, 0, 0, 0, 0, 0, 0, 367, 0, 367, 0, 0, 0, 0, 13003, -13003, 0, 123398, 0, 0, 0, 0, 32238, 119224, 0, 14102, 0, 14627, 0, 104597, '09', 94711, 0, 0, 255, 0, 94711, 0, 0, 0, 255, 85262), ('382494084', '201205', '03', 'Y', 0, 0, 0, 0, 40422, 113078, 270, 0, 0, 180404, 0, 0, 0, 180404, 0, 180404, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19949, 13345, 6604, -1646, 339132, 40008, 35844, 6495, 0, 311067, 1351143, 0, 495709, 0, 498925, 0, 852218, '09', 246948, 0, 0, 1484, 0, 136488, 622070, 0, 0, 433131, 1191689), ('166094236', '201112', '19', 'N', 0, 0, 0, 0, 1743, 3466, 2425, 0, 0, 20575, 0, 0, 0, 20575, 0, 20575, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 129946, 18632, 111314, 396683, 352130, 44553, 800, 184876, 0, 24013, 4607, 0, 207063, 1078811, 0, 79091, 0, 113097, 0, 965714, '09', 6918, 0, 0, 11779, 190697, 6918, 1120468, 0, 0, 11779, 1139165), ('231491160', '201106', '03', 'N', 0, 0, 0, 0, 45799, 41911, 26753, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11499, 921, 10578, 0, 0, 0, 114425, 44467, 69958, 0, 194999, 143219, 33334, 15015, 0, 297198, 236206, 0, 0, 0, 23845, 0, 212361, '09', 274122, 1182743, 0, 1456865, 1328, 274122, 1182743, 0, 0, 93591, 1551784);