Corrected system lookup query