Your SQL command was:
SELECT TOP 50
 photoobj.run, photoobj.camcol, photoobj.field, photoobj.obj,
 photoobj.psfmag_u, photoobj.psfmag_g, photoobj.psfmag_r,
 photoobj.psfmag_i, photoobj.psfmag_z, 
 photoobj.ra as photoobj_ra, photoobj.dec as photoobj_dec, 
 star.apstar_id, star.ra as star_ra, star.dec as star_dec, 
 aspcap.teff, aspcap.m_h, aspcap.logg
FROM apogeeStar AS star 
 CROSS APPLY dbo.fGetNearestObjEq( star.ra, star.dec, 0.05) AS near 
 JOIN photoobj ON near.objid=photoobj.objid 
 JOIN aspcapStar as aspcap ON star.apstar_id = aspcap.apstar_id
WHERE star.glat > 60. and aspcap.teff > 0

Your query output (max 500,000 rows):

runcamcolfieldobjpsfmag_upsfmag_gpsfmag_rpsfmag_ipsfmag_zphotoobj_raphotoobj_decapstar_idstar_rastar_decteffm_hlogg
310322335015.4265815.988258.41276614.7168915.04739204.13971936353752.6874624257535apogee.apo1m.s.stars.hip.2M13363360+5241148204.13999938964852.68746948242194011.5150.25720851.389251
53084914816.952415.2123914.5377914.2842614.16116205.56153570671819.1032259488416apogee.apo25m.s.stars.000+75.2M13421477+1906117205.56158119.1032524945.153-0.59957152.937911
530839312021.0795518.3133616.8849215.5208714.80966205.71900006819318.642542125442apogee.apo25m.s.stars.000+75.2M13425255+1838333205.71898618.6426053493.365-0.3284894.702749
53083925918.5745116.0883415.0650814.6755714.53574205.70481086379618.6740368309993apogee.apo25m.s.stars.000+75.2M13424916+1840265205.70485618.6740514636.059-0.028544.673229
53083925117.2037415.6555315.0198214.818614.67387205.66422142862718.798640448081apogee.apo25m.s.stars.000+75.2M13423943+1847550205.66429218.7986325088.805-0.75090153.149656
53083923218.8631416.4068715.3633914.9805314.78707205.60863614704118.7956029347753apogee.apo25m.s.stars.000+75.2M13422606+1847441205.60861518.7955994638.07-0.0673324.64025
53083917416.7390414.3923415.0441813.1141612.9421205.54748487567318.6879429549897apogee.apo25m.s.stars.000+75.2M13421140+1841166205.54751318.6879714714.0240.043714.642224
53083915514.0813812.16711.4833111.2676811.41671205.55225590373218.7227807421906apogee.apo25m.s.stars.000+75.2M13421257+1843215205.55238418.7226395179.1510.1488114.554339
53083914318.6687416.1564515.2069614.7828814.5828205.51023757530318.749987924456apogee.apo25m.s.stars.000+75.2M13420246+1845001205.51027718.7500314348.402-1.1904621.33604
53083881517.7983415.8395515.0961114.8363314.73154204.94803564298318.7619267532242apogee.apo25m.s.stars.000+75.2M13394753+1845430204.9480818.7619724997.726-0.1395394.703551
53083874817.3304215.5137414.837614.5657614.43042204.88275396887818.8261577809275apogee.apo25m.s.stars.000+75.2M13393186+1849340204.88275318.8261344956.171-0.46652163.178079
53083864815.5114112.8617611.530611.0026911.04227204.73278662265218.7116013377709apogee.apo25m.s.stars.000+75.2M13385588+1842417204.73283418.7115973317.799-2.0769620.1686294
53083863218.8704916.2059714.7156214.2382913.91743204.6817323207118.7588465269492apogee.apo25m.s.stars.000+75.2M13384358+1845318204.68161318.7588524184.601-0.2006694.659657
530829310417.7501515.6646614.8110814.5621314.44371205.79383358474818.2446340993585apogee.apo25m.s.stars.000+75.2M13431053+1814406205.79388418.2446234912.873-0.0651644.640701
53082939615.9694314.5474813.952813.6906413.59482205.77315673023818.180532810447apogee.apo25m.s.stars.000+75.2M13430556+1810501205.773218.1805974893.499-1.2459622.426129
53082935215.6698313.8394713.1329712.8988712.76365205.76383304647618.3486910372157apogee.apo25m.s.stars.000+75.2M13430331+1820552205.763818.348695054.346-0.10610163.696608
53082906815.1796213.0651612.2717612.0463312.6096205.28951021196818.275467465454apogee.apo25m.s.stars.000+75.2M13410951+1816318205.28965518.2755184949.1680.2354214.453733
53082895716.6199914.6034214.8244314.7486213.57015205.12347709474218.4130975086722apogee.apo25m.s.stars.000+75.2M13402962+1824473205.12345618.4131625124.9220.0961174.595186
53082893917.5749515.5646314.8000914.5763414.4688205.08307089586318.2615790528251apogee.apo25m.s.stars.000+75.2M13401994+1815416205.08311618.2615645055.8290.1616314.625385
53082893216.8427415.0473614.3396314.1831713.97801205.07322970305818.2827017169686apogee.apo25m.s.stars.000+75.2M13401758+1816577205.0732918.28274899.029-0.36836163.485775
53081943718.4090515.8075114.6846714.2486914.04003205.7825541729217.7789985393531apogee.apo25m.s.stars.000+75.2M13430780+1746442205.78253617.7789654508.774-0.00121344.624365
53081925716.4911814.4815813.7068313.3919113.24183205.53398489557517.8918221228699apogee.apo25m.s.stars.000+75.2M13420816+1753305205.53400317.8918294634.717-0.53528152.39271
530819115319.9965117.3415315.9161215.0650114.57812205.43718168810217.8374033712088apogee.apo25m.s.stars.000+75.2M13414492+1750143205.43720317.8373093802.447-0.6157895.157603
530819113720.6762417.9033116.4186415.0541614.28699205.39404860818717.7917939512544apogee.apo25m.s.stars.000+75.2M13413458+1747304205.39411917.7918013471.263-0.1530194.922894
53081916415.9368116.6215216.2876416.3937211.36969205.32630411944117.8384125759051apogee.apo25m.s.stars.000+75.2M13411831+1750181205.32632417.8383714436.947-0.2812994.535351
53081916314.4475813.2486512.1962411.7849314.43255205.32670497580617.8400814869591apogee.apo25m.s.stars.000+75.2M13411841+1750240205.32672417.8400274920.544-0.0833224.684971
53081912712.5380710.74869.6693339.36869910.12254205.34516118609417.9981205280148apogee.apo25m.s.stars.000+75.2M13412281+1759532205.3450817.9981384766.478-0.32988152.60618
530819011415.5380814.2853515.4580513.7355313.52478205.25839781646717.9150263090161apogee.apo25m.s.stars.000+75.2M13410203+1754541205.25847617.9150415253.563-1.5944622.352243
53081899616.9583415.2833614.605514.361614.23322205.11724822368217.9821500100479apogee.apo25m.s.stars.000+75.2M13402814+1758555205.11728617.98214993.159-0.76314162.588953
53081896115.7535114.4567115.0556514.7741113.42536205.06239113308717.8180763461676apogee.apo25m.s.stars.000+75.2M13401498+1749051205.0624217.8180985328.081-2.1445622.545422
5308187915.3295914.5877513.2270313.0043912.89966204.66894314053917.8801517539326apogee.apo25m.s.stars.000+75.2M13384054+1752484204.66893917.8801365232.992-0.84240162.481254
390961457917.3691815.0284314.1209616.4993513.53924217.33337284119.51622192903043apogee.apo25m.s.stars.000+60.2M14292001+0930584217.3334119.5162464668.952-0.2417894.743044
390951473916.8120315.0158214.3702914.2000513.97892217.5268521803158.93188544787589apogee.apo25m.s.stars.000+60.2M14300644+0855549217.5268478.9319174936.48-0.45045163.196334
390941488013.1494413.3550710.3101810.2127911.9881217.747667428048.62038604331828apogee.apo25m.s.stars.000+60.2M14305945+0837133217.7477298.6203786053.0730.1094614.333935
390362441015.1128313.1271812.4642912.2011312.05717218.1009411805199.6454540944197apogee.apo25m.s.stars.000+60.2M14322422+0938437218.1009539.6454814898.014-0.49350152.374211
390362391614.8752213.0479412.4388412.1896512.04693217.3224086710719.70016517800946apogee.apo25m.s.stars.000+60.2M14291739+0942007217.3224689.7002174982.339-0.63618152.368995
3903524410115.9775114.0199613.2655512.9849412.84483218.1155168141549.09209787589932apogee.apo25m.s.stars.000+60.2M14322772+0905315218.1155149.0920864761.689-0.51769162.683642
390352447716.1804714.3192513.6313113.3922713.27772218.0816388423899.04029095430909apogee.apo25m.s.stars.000+60.2M14321959+0902249218.0816469.0402685019.75-0.24382153.690928
39035244512.7366311.6892311.208111.0849911.42987218.0079843510819.09057137253181apogee.apo25m.s.stars.000+60.2M14320191+0905259218.0079769.0905425869.566-0.5065294.437048
390352427516.37714.2376113.4295313.1950413.08051217.8167371981879.23239703334781apogee.apo25m.s.stars.000+60.2M14311601+0913567217.8167489.232424898.060.2544714.350959
390352421716.5929714.7633714.0046413.7398213.63921217.7473607306969.09642902433478apogee.apo25m.s.stars.000+60.2M14305936+0905469217.7473549.0963874928.279-0.3531794.623271
390352416914.3242412.6047411.8775911.6345111.72863217.6426661805939.12035298166385apogee.apo25m.s.stars.000+60.2M14303424+0907133217.6426699.1203875076.844-0.54555152.435693
3903523917313.7582411.2899910.2353911.891710.5033217.3846287605919.23156538218065apogee.apo25m.s.stars.000+60.2M14293230+0913535217.3845969.2315494486.557-0.34028151.983285
3903424013218.7509816.2615815.1246514.7284914.49328217.4900322426358.82192626008253apogee.apo25m.s.stars.000+60.2M14295759+0849192217.4899778.8220174514.177-0.2281994.644796
39034240514.1004112.1972511.4551611.1614311.14351217.3769379840718.75379700460961apogee.apo25m.s.stars.000+60.2M14293046+0845135217.3769448.7537774706.948-0.77963162.401455
38942986315.7697313.6783916.0669512.5970712.46389218.4182472619379.7624269813314apogee.apo25m.s.stars.000+60.2M14334037+0945447218.418249.7624334779.911-0.15616152.974061
389429711115.6615314.0328913.3928213.1492413.07206218.2736153829759.78290185593747apogee.apo25m.s.stars.000+60.2M14330568+0946585218.2736759.7829355037.867-0.59732163.075972
38942953418.2950515.6350714.2907213.7535813.44626217.8984448318429.75756769797344apogee.apo25m.s.stars.000+60.2M14313562+0945272217.8984349.7575584201.901-0.0439564.639208
38942912515.7514313.047211.7636811.3181111.16287217.3204961333389.97772855700392apogee.apo25m.s.stars.000+60.2M14291691+0958401217.3204979.9778114168.213-0.64570151.495493
3836246212416.1102214.462713.9273113.8794113.76499218.6945060176699.86915633954582apogee.apo25m.s.stars.000+60.2M14344668+0952092218.6945259.8692235524.1030.3006314.146828

Use the button below to upload the results of the above query to the SAW and retrieve the corresponding FITS files:

Upload list of fields to SAW