title: oData inner filter in $expand
body: <p>Currently I am facing some issues while querying the oData services. I am very new to oData query syntax.</p>
  
  <p>I am trying to query oData service using the following url</p>
  
  <p><a href="https://mysite/DataQueryGroups" rel="nofollow">https://mysite/DataQueryGroups</a>?$select=Id,Name&amp;$filter=IsHidden eq false&amp;IsShared ne false&amp;$expand=DataQueries($select=Id,Name,IsPinned;)</p>
  
  <p>which returns the desired results to me. Above query basically returns all DataQueryGroups where IsHidden=false and IsShared&lt;>false, including the its child entity DataQueries.
  Now I want to add filter to the DataQueries enity to display only those resulsts where IsPinned = true. So I have tried the following query</p>
  
  <p><a href="https://mysite/DataQueryGroups" rel="nofollow">https://mysite/DataQueryGroups</a>?$select=Id,Name&amp;$filter=IsHidden eq false&amp;IsShared ne false&amp;$expand=DataQueries($select=Id,Name,IsPinned;$filter=IsPinned eq true;)</p>
  
  <p>But this returns me the same results and it looks like its not considering the inner filter/last filter which I have specified on DataQueries entity.</p>
  
  <p>I would like to know how to filter on parent and child entities and return the fields from both.</p>
  
  <p>I am finding difficulties to under this syntax. Please let me know if anybody can help me on this issue.</p>
  
  <p>I am using oData version 4.0</p>
  
  <p>Thanking you in advance
  Deepak</p>