What  replaced  for  Livorno  has  head of government  like  Nicola Badaloni ?
SELECT ?value WHERE { wd:Q6761 p:P6 ?s . ?s ps:P6 wd:Q3876122 . ?s pq:P1366 ?value}
livorno: Q6761 nicola badaloni: Q3876122