The Clustering of AGNs and Galaxies at Intermediate Redshift