updated query to include NULL languages