Complex query

managed to do what I need with this query

{
  var(func: uid(0x2751)) {
    following: ~followers {
   
      challnges: @filter(has(~category) OR has(~author)) {
       a as   ~author
   b as ~category 
      }
    }
  }
    chall(func: uid(a,b)){
    dgraph.type
      author
      
    }
  }