Build your SQL statement in increments depending on what the user provided.
$sql="SELECT * FROM TABLE WHERE level='Grad' ";
if (!empty($FIELD)) {
$sql.=" AND field='$FIELD'";
}
...etc....
In otherwords, don't try to write one query, but use script logic to generate the appropriate query. The ORs and ANDs will make the logic a bit more complex, but it is possible.