using complex structure for booking query