Query Inline YAML fields

Things I have tried

What I’m trying to do

I have 2 notes as described as example below. NoteA contains inline fields Project Name & Project Duration. In NoteB, I tried to retrieve the Project Name and Project Duration values from NoteA. However, it does not return any value. I am guessing that I am not using the correct method in getting the inline fields values. As I managed to get values if I move these inline fields into YAML frontmatter. Any advice?

Note Name: NoteA

Project Name:: Project Avengers
Project Duration:: 10 months

Note Name: NoteB

All the following js return no values


I have also tried using dv.current in NoteA just to get the inline fields value. Same issue return no value.