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
1458637179.22563114.5214213.4292613.866318.256439180.2919071018043.63237341793268apogee.apo1m.s.stars.calibration.2M12011006+0337563180.2919311523443.632324695587165763.612-0.29679163.194518
506124403413.1273825.1144118.9553115.8444222.71195183.33082248620429.2564503694984apogee.apo1m.s.stars.calibration.2M12131940+2915234183.33079528808629.25650978088384668.340.038716452.702707
61744711310.318268.8720678.5080858.4663068.783274204.3155836649644.41765352204274apogee.apo1m.s.stars.calibration.2M13371576+0425034204.3156738281254.417620658874516318.388-0.2453794.176071
390052443510.223158.2669537.6028987.12399512.38591159.96071663520737.8389590970788apogee.apo1m.s.stars.hip.2M10395058+3750204159.96075439453137.83900070190434952.0530.097097453.260385
45042813813.3925114.285114.1534813.9047112.09866168.18435820895535.8300753262726apogee.apo1m.s.stars.hip.2M11124427+3549484168.18449401855535.83011245727544819.731-0.051748552.860167
518342531079.6764517.6997457.1240436.8124986.622352169.505642731722.1798706450814apogee.apo1m.s.stars.hip.2M11180141+2210476169.50588989257822.17991638183595056.33-0.028457553.104737
45761363559.8212787.7855516.9511076.9514867.394396169.8820300164432.8252324694589apogee.apo1m.s.stars.hip.2M11193174+3249303169.88229370117232.82511138916024854.8150.020792452.569107
679361272010.0071314.3779714.0003314.257837.399407179.5539229520730.869158509459729apogee.apo1m.s.stars.hip.2M11581293+0052089179.5539093017580.8691520094871524874.075-0.36772162.509576
14586376379.7406897.9990217.4083966.95207311.75846181.1791280667233.57316908833589apogee.apo1m.s.stars.hip.2M12044299+0334230181.1791381835943.573081970214844988.479-0.14089162.771901
224761492310.10887.944517.18484213.953997.403065183.0735396487115.87283021690278apogee.apo1m.s.stars.hip.2M12121764+0552221183.0735168457035.872824192047124832.892-0.30170152.75672
457614792810.065697.4892996.5668376.43997.356222190.57363960283733.6885313907885apogee.apo1m.s.stars.hip.2M12421770+3341190190.57376098632833.68862152099614760.8120.19756843.179673
60055153218.16349410.0225310.261029.4443346.650795190.908676183546-1.57712820479219apogee.apo1m.s.stars.hip.2M12433806-0134371190.908615112305-1.576975941658025065.025-0.44689153.074116
6005318715210.5800714.3064510.53069.6036845.717469191.9642270736723.57270063349995apogee.apo1m.s.stars.hip.2M12475142+0334217191.9642639160163.572705030441283800.8920.20394851.139505
28304449219.8221097.5266710.5131910.547476.67772192.05566597145752.4530477635799apogee.apo1m.s.stars.hip.2M12481334+5227113192.05560302734452.45314788818365020.308-0.066645552.692335
518314016210.6575710.15839.0926729.4677937.992647193.32383338442921.2449974747564apogee.apo1m.s.stars.hip.2M12531775+2114418193.32397460937521.24495887756354978.6970.23265842.861773
53083173310.003611.2001914.4461814.268386.505573193.77111820741619.6147079272204apogee.apo1m.s.stars.hip.2M12550514+1936531193.77143859863319.61475372314454614.0140.16817852.425515
53083721610.169677.8683836.9781736.8808427.351857202.50483363238119.0622481614924apogee.apo1m.s.stars.hip.2M13300115+1903433202.50482177734419.06204605102544741.815-0.011426552.993423
6174359519.18410414.4593414.5996410.2994912.10174203.2882698755735.85311991358594apogee.apo1m.s.stars.hip.2M13330920+0551110203.2883453369145.853058815002444962.329-0.40172152.525781
310322335015.4265815.988258.41276614.7168915.04739204.13971936353752.6874624257535apogee.apo1m.s.stars.hip.2M13363360+5241148204.13999938964852.68746948242194011.5150.25720851.389251
522413271429.9202897.9711277.256377.1418937.813651204.50342461195722.5272938884654apogee.apo1m.s.stars.hip.2M13380093+2231385204.50389099121122.52737617492684914.472-0.082431553.231914
457615997024.6339217.3072516.0461716.2402914.45026211.60922480122430.8463670303937apogee.apo1m.s.stars.hip.2M14062615+3050475211.60897827148430.84653663635254668.9180.070678453.525454
46466117319.62777214.5685313.7852313.931416.935448211.73238286492128.4381252023225apogee.apo1m.s.stars.hip.2M14065583+2826168211.73265075683628.4380245208744883.111-0.18210152.506336
390941408318.9453716.4086915.2155414.7456114.51848216.4913336236428.72806303550268apogee.apo25m.s.stars.000+60.2M14255792+0843409216.4913468.7280544374.344-0.4075294.742907
3909414010816.2733814.4687117.1920413.8495513.72696216.517951016648.72719163750802apogee.apo25m.s.stars.000+60.2M14260431+0843378216.5179828.727185207.4390.1466614.257504
390332348616.1168714.2448613.5729413.3100113.16663216.5409295287568.45029405602824apogee.apo25m.s.stars.000+60.2M14260982+0827011216.5409478.4503094952.542-0.54910152.369718
39094141315.4222215.0471913.799413.6646813.62373216.551277693578.59297083433998apogee.apo25m.s.stars.000+60.2M14261231+0835345216.5513168.5929315635.632-0.4535994.261195
390342349618.8109816.1564714.8831914.3767114.08778216.5548568985948.87879129051856apogee.apo25m.s.stars.000+60.2M14261316+0852438216.5548388.8788344385.011-0.018444.580808
3903423410314.6472914.7846112.8441412.6921512.62219216.5628189829278.9060856671524apogee.apo25m.s.stars.000+60.2M14261507+0854219216.5628058.9060995730.905-0.2341594.453735
3903323424619.5559616.8352615.4984614.8460614.49323216.5640926917858.42855372942711apogee.apo25m.s.stars.000+60.2M14261537+0825428216.564078.428564115.152-0.0053876014.755254
3903423422019.8784417.3627316.0077515.9718414.08195216.5908711900128.88715331763859apogee.apo25m.s.stars.000+60.2M14262182+0853139216.5909258.8872213654.884-0.0131424.74831
390941411917.2299314.9183813.9523513.5687113.38849216.6149756629298.59507180470731apogee.apo25m.s.stars.000+60.2M14262760+0835422216.615018.5950834644.481-0.2834594.779523
45505423813.198958.92122211.915837.64473113.12215161.70425514417733.5596290781833apogee.apo1m.s.stars.calibration.2M10464902+3333349161.7042694091833.55968856811524736.773-0.11059152.419789
390332351317.5754714.9203615.5239315.9045212.64427216.6385589036578.50886788112741apogee.apo25m.s.stars.000+60.2M14263324+0830318216.6385168.5088564057.509-0.4417994.823689
390332354215.698516.211916.2935516.5137512.64952216.6474195720098.38356812220593apogee.apo25m.s.stars.000+60.2M14263538+0823008216.6474318.3835764913.324-0.53527152.373357
390951414915.4854914.5081512.9513612.7015912.56049216.6681231773268.97448314368334apogee.apo25m.s.stars.000+60.2M14264036+0858281216.6681698.9744874923.882-0.42455153.066672
39094142315.0901814.6326612.2596311.9687811.9378216.7028563362538.63092231992977apogee.apo25m.s.stars.000+60.2M14264869+0837513216.7028848.6309354664.599-0.55611162.37766
39032236316.9349714.6675513.7447514.5933213.27048216.7045996659568.09419522924552apogee.apo25m.s.stars.000+60.2M14264911+0805391216.7046278.0942134679.112-0.2520094.676258
390951417216.3452514.6025913.9385914.7399313.5507216.7097260979679.10068249182769apogee.apo25m.s.stars.000+60.2M14265033+0906025216.7097439.1006984897.332-0.66569162.824578
390342355815.6351315.046913.0224712.7569212.61477216.7117009932678.90406335069068apogee.apo25m.s.stars.000+60.2M14265081+0854145216.7117198.9040494881.256-0.49228162.358154
390322363416.4121614.7913813.0535912.7506112.58858216.7389716370138.00619751453651apogee.apo25m.s.stars.000+60.2M14265735+0800225216.7389618.0062754665.9470.12984852.874542
3909414227620.0512317.4974116.0932116.5033114.48774216.7525666952728.70668835517495apogee.apo25m.s.stars.000+60.2M14270063+0842240216.7526548.7066943727.417-0.1776694.814579
390941423411.607510.190189.8466569.7620659.948487216.7537346399378.72884797833621apogee.apo25m.s.stars.000+60.2M14270090+0843440216.7537868.7288896198.318-0.083284.102385
390342358415.8919412.9389311.812611.3741711.22537216.7542393790388.78328098071082apogee.apo25m.s.stars.000+60.2M14270102+0846598216.7542678.7832944200.352-0.23956151.744264
390961415417.7584615.3271514.341713.989913.83344216.7556569926899.51135883496352apogee.apo25m.s.stars.000+60.2M14270135+0930408216.7556629.5113544708.7160.1017284.633351
390951422815.7007614.3357713.8577313.8373313.68276216.7668965403878.96708476536716apogee.apo25m.s.stars.000+60.2M14270403+0858014216.7668098.967075599.741-0.1495694.436888
390332367915.3700414.2847813.7812114.9077213.61026216.7721678128158.45331082733124apogee.apo25m.s.stars.000+60.2M14270530+0827117216.7720998.4532745632.126-0.52928163.796839
3903223616619.2066816.4145114.997514.6325512.94661216.7798661972127.97351756063322apogee.apo25m.s.stars.000+60.2M14270718+0758247216.7799377.9735493554.441-0.1945994.91818
390961419416.0276414.1205114.758913.2227613.14662216.7832357434889.53613547728223apogee.apo25m.s.stars.000+60.2M14270796+0932101216.7831779.5361585104.6070.0337444.506851
390961422016.0568714.8596713.3804513.133713.02437216.7884987028129.48886446308921apogee.apo25m.s.stars.000+60.2M14270921+0929199216.7884159.4888675026.576-0.060269553.556435
390352356413.6542612.5004611.9764111.9125911.92449216.7923002243379.29675561560978apogee.apo25m.s.stars.000+60.2M14271012+0917481216.7921759.2967075811.421-0.3208194.331657

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