Ad-Hoc Query on Polygamous marriage