query to check if dataset has phenotype data