Fix query to return results without a license