learning query examples