Select objects based on value of variable in object using jq
That shows how to return values directly above the selection criteria but how would I get another object that was adjacent to a value above my selection criteria?
Given the data below, what jq invocation would return the French name of planets whose moon(s) have been spoiled? (this is a structural reproduction of the live data with which I am working -- which actually uses the word "value" in this way, so that's not helping)
{"kind":"solarsystem","name":"Sol",
"Planets": [
 { "kind":"habitable",
  "names": { "english":"Earth","french":"Terre"},
  "satellites" : [
    {"name":"The Moon",
     "parameters": [
       {"name":"diameter", "intValue":"3476"},
       {"name":"diameter_units", "value":"km"},
       {"name":"unspoiled","value":"no"}]}]},
 {"kind":"uninhabitable",
  "names": {"english":"Mars","french":"Mars"},
  "satellites" : [
    {"name":"Phobos",
     "parameters": [
       {"name":"diameter", "intValue":"2200"},
       {"name":"diameter_units", "value":"m"},
       {"name":"unspoiled","value":"yes"}]},
    {"name":"Deimos",
     "parameters": [
       {"name":"diameter", "intValue":"1200"},
       {"name":"diameter_units", "value":"m"},
       {"name":"unspoiled","value":"yes"}]}]}]}
 
     
     
    