Generate more optimized query for #507
Generate more optimized query for #507

DMOJ/site,DMOJ/site,monouno/site,Phoenix1369/site,Minkov/site,monouno/site,DMOJ/site,Minkov/site,monouno/site,Phoenix1369/site,monouno/site,Phoenix1369/site,Minkov/site,monouno/site,Minkov/site,DMOJ/site,Phoenix1369/site