一般疑问句就是助动词do提到句首,并改成原来句子相应的动态,且句中的动词改为原型,所以这个句子是Did Mary have a Chinese lesson just now?
Did Mary have a Chinese lesson just now?