Use the query schema directly, instead of reffing it