Query proto