Allow null as query output