When you *question* something you are not always putting forth a *query*, but sometimes you are of polemical disposition. 

> Questioning the authoritarian laws of the state.

Whereas *query* invariably means an inquiry.