MyFD queries against the Transaction Detail Report. There are many things you can query for, including the Transaction Reference(to locate a particular type of transaction), Transaction Amounts, and Transaction Dates.
Fields in the Budget Profile report, such as budget type or class, PI name and budget status, are not queryable.
Here are some additional Query References.