filter,filter_by,order_by,group_by,having,union_all,union,distinct,limit,offset
result0 = db.session.query(Protocols.protocolName).filter(Protocols.parent_protocol == "tcp,udp").all()
result1 = db.session.query(Protocols.protocolName).filter(Protocols.parent_protocol == "tcp,udp",
Protocols.id > 18).all()
result2 = db.session.query(Protocols.protocolName).filter_by(parent_protocol="tcp,udp").all()
result3 = db.session.query(Protocols.protocolName).filter_by(parent_protocol="tcp,udp", id=3).all()
result4 = db.session.query(Protocols.protocolName).order_by(Protocols.id.asc()).all()
result5 = db.session.query(Protocols.protocolName).filter_by(parent_protocol="tcp").order_by(
Protocols.id.desc()).all()
result6 = db.session.query(Protocols.parent_protocol).group_by(Protocols.parent_protocol)
result7 = db.session.query(Protocols.parent_protocol).group_by(Protocols.parent_protocol).having(
Protocols.parent_protocol.like("%cp%"))
result8 = result6.union_all(result7).all()
result9 = result7.union_all(result6).all()
result10 = result6.union(result7).all()
result11 = db.session.query(Protocols.parent_protocol).distinct().all()
result12 = db.session.query(Protocols.protocolName).filter(Protocols.parent_protocol == "tcp").limit(6).all()
result13 = db.session.query(Protocols.protocolName).filter(Protocols.parent_protocol == "tcp").limit(6).offset(
3).all()
0 [('browser',), ('atsvc',), ('rtsp',), ('dns',)]
1 [('rtsp',), ('dns',)]
2 [('browser',), ('atsvc',), ('rtsp',), ('dns',)]
3 []
4 [('ssh',), ('https',), ('telent',), ('rdp',), ('ntp',), ('http',), ('ftp',), ('vnc',), ('smb',), ('smtp',), ('pop3',), ('imap',), ('netstat',), ('netbios-ns',), ('netbios-dgm',), ('netbios-ssn',), ('browser',), ('atsvc',), ('rtsp',), ('dns',), ('bootpc',), ('snmp',), ('snmp trap',), ('bootps',), ('tftp',), ('dhcp',), ('icmp',), ('tcp',), ('udp',), ('esp',), ('ah',), ('sctp',)]
5 [('netbios-ssn',), ('netbios-dgm',), ('netbios-ns',), ('netstat',), ('imap',), ('pop3',), ('smtp',), ('smb',), ('vnc',), ('ftp',), ('http',), ('ntp',), ('rdp',), ('telent',), ('https',), ('ssh',)]
6 [('ip',), ('tcp',), ('tcp,udp',), ('udp',)]
7 [('tcp',), ('tcp,udp',)]
8 [('ip',), ('tcp',), ('tcp,udp',), ('udp',), ('tcp',), ('tcp,udp',)]
9 [('tcp',), ('tcp,udp',), ('ip',), ('tcp',), ('tcp,udp',), ('udp',)]
10 [('ip',), ('tcp',), ('tcp,udp',), ('udp',)]
11 [('tcp',), ('tcp,udp',), ('udp',), ('ip',)]
12 [('ssh',), ('https',), ('telent',), ('rdp',), ('ntp',), ('http',)]
13 [('rdp',), ('ntp',), ('http',), ('ftp',), ('vnc',), ('smb',)]