select * from institution where ip1=216&netmask1 and ip2=73&netmask2 and ip3=217&netmask3 and ip4=72&netmask4 and datefrom<='' and dateto>='' and journal=''