-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.irs_990.irs_990_ez_2012`
(
  ein STRING NOT NULL OPTIONS(description="Employer Identification Number"),
  tax_pd STRING OPTIONS(description="Tax period"),
  subseccd STRING 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"),
  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"),
  unrelbusincd STRING OPTIONS(description="Unrelated business income question"),
  initiationfee INT64 OPTIONS(description="Initiation fees and capital contributions"),
  grspublicrcpts INT64 OPTIONS(description="Gross receipts for public use of club facilities"),
  nonpfrea STRING OPTIONS(description="Reason for non-PF status"),
  gftgrntrcvd170 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)"),
  grsrcptsrelatd170 INT64 OPTIONS(description="Gross receipts from related activities (170)"),
  totgftgrntrcvd509 INT64 OPTIONS(description="Gifts grants membership fees received (509)"),
  grsrcptsadmiss509 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_ez_2012` (ein, tax_pd, subseccd, totcntrbs, prgmservrev, duesassesmnts, othrinvstinc, grsamtsalesastothr, basisalesexpnsothr, gnsaleofastothr, grsincgaming, grsrevnuefndrsng, direxpns, netincfndrsng, grsalesminusret, costgoodsold, grsprft, othrevnue, totrevnue, totexpns, totexcessyr, othrchgsnetassetfnd, totassetsend, totliabend, totnetassetsend, unrelbusincd, initiationfee, grspublicrcpts, nonpfrea, gftgrntrcvd170, txrevnuelevied170, srvcsval170, grsinc170, grsrcptsrelatd170, totgftgrntrcvd509, grsrcptsadmiss509, txrevnuelevied509, srvcsval509, subtotsuppinc509, totsupp509) VALUES ('870644812', '201012', '03', 76719, 7686, 3725, 155, 600, 500, 100, 0, 8935, 3106, 5829, 1836, 1532, 304, 0, 94518, 75150, 19368, 0, 83056, 6421, 76635, 'N', 0, 0, '09', 0, 0, 0, 0, 0, 422601, 99220, 0, 0, 4680, 526501), ('521140870', '201106', '03', 10242, 33803, 7655, 14, 4287, 3399, 888, 0, 26377, 16439, 9938, 14327, 9778, 4549, 269, 67358, 82397, -15039, 0, 42729, 11024, 31705, 'N', 0, 0, '09', 0, 0, 0, 0, 0, 134068, 446037, 0, 0, 2002, 582107), ('541533423', '201106', '03', 44747, 40857, 1923, 67, 750, 750, 0, 0, 230, 0, 230, 7784, 3857, 3927, 0, 91751, 100859, -9109, -1747, 38923, 375, 38548, 'N', 0, 0, '09', 0, 0, 0, 0, 0, 207823, 259233, 0, 0, 978, 468034), ('810364319', '201109', '03', 64400, 8105, 3020, 379, 10935, 12600, -1665, 0, 7768, 1595, 6173, 17965, 10510, 7455, 211, 88078, 30889, 57189, 0, 386046, 5000, 381046, 'N', 0, 0, '09', 0, 0, 0, 0, 0, 124009, 182809, 0, 0, 4111, 310929), ('546052533', '201109', '03', 6035, 30380, 10220, 2614, 13450, 4500, 8950, 0, 11297, 2554, 8743, 5464, 15754, -10290, 0, 56652, 66786, -10134, 0, 380696, 25185, 355511, 'N', 0, 0, '09', 0, 0, 0, 0, 0, 336372, 475562, 0, 0, 13313, 825247);