a:3:{s:6:"SELECT";a:3:{i:0;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:5:"q.qid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"q";i:1;s:3:"qid";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";}i:1;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:8:"question";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:8:"question";}}s:8:"sub_tree";b:0;s:5:"delim";s:1:",";}i:2;a:6:{s:9:"expr_type";s:6:"colref";s:5:"alias";b:0;s:9:"base_expr";s:3:"gid";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:3:"gid";}}s:8:"sub_tree";b:0;s:5:"delim";b:0;}}s:4:"FROM";a:1:{i:0;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:9:"questions";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:9:"questions";}}s:5:"alias";a:4:{s:2:"as";b:1;s:4:"name";s:1:"q";s:9:"base_expr";s:4:"as q";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"q";}}}s:5:"hints";b:0;s:9:"join_type";s:4:"JOIN";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:14:"questions as q";s:8:"sub_tree";b:0;}}s:5:"WHERE";a:15:{i:0;a:3:{s:9:"expr_type";s:8:"subquery";s:9:"base_expr";s:68:"(select count(*) from answers as a where a.qid=q.qid and scale_id=0)";s:8:"sub_tree";a:3:{s:6:"SELECT";a:1:{i:0;a:5:{s:9:"expr_type";s:18:"aggregate_function";s:5:"alias";b:0;s:9:"base_expr";s:5:"count";s:8:"sub_tree";a:1:{i:0;a:3:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:1:"*";s:8:"sub_tree";b:0;}}s:5:"delim";b:0;}}s:4:"FROM";a:1:{i:0;a:10:{s:9:"expr_type";s:5:"table";s:5:"table";s:7:"answers";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:7:"answers";}}s:5:"alias";a:4:{s:2:"as";b:1;s:4:"name";s:1:"a";s:9:"base_expr";s:4:"as a";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:1:"a";}}}s:5:"hints";b:0;s:9:"join_type";s:4:"JOIN";s:8:"ref_type";b:0;s:10:"ref_clause";b:0;s:9:"base_expr";s:12:"answers as a";s:8:"sub_tree";b:0;}}s:5:"WHERE";a:7:{i:0;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:5:"a.qid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"a";i:1;s:3:"qid";}}s:8:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:2;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:5:"q.qid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"q";i:1;s:3:"qid";}}s:8:"sub_tree";b:0;}i:3;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"and";s:8:"sub_tree";b:0;}i:4;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:8:"scale_id";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:8:"scale_id";}}s:8:"sub_tree";b:0;}i:5;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:6;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;}}}}i:1;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;}i:3;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"and";s:8:"sub_tree";b:0;}i:4;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:3:"sid";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:3:"sid";}}s:8:"sub_tree";b:0;}i:5;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:6;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:5:"11929";s:8:"sub_tree";b:0;}i:7;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"AND";s:8:"sub_tree";b:0;}i:8;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:4:"type";s:9:"no_quotes";a:2:{s:5:"delim";b:0;s:5:"parts";a:1:{i:0;s:4:"type";}}s:8:"sub_tree";b:0;}i:9;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:2:"IN";s:8:"sub_tree";b:0;}i:10;a:3:{s:9:"expr_type";s:7:"in-list";s:9:"base_expr";s:25:"('F', 'H', 'W', 'Z', '1')";s:8:"sub_tree";a:5:{i:0;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'F'";s:8:"sub_tree";b:0;}i:1;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'H'";s:8:"sub_tree";b:0;}i:2;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'W'";s:8:"sub_tree";b:0;}i:3;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'Z'";s:8:"sub_tree";b:0;}i:4;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:3:"'1'";s:8:"sub_tree";b:0;}}}i:11;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:3:"and";s:8:"sub_tree";b:0;}i:12;a:4:{s:9:"expr_type";s:6:"colref";s:9:"base_expr";s:12:"q.parent_qid";s:9:"no_quotes";a:2:{s:5:"delim";s:1:".";s:5:"parts";a:2:{i:0;s:1:"q";i:1;s:10:"parent_qid";}}s:8:"sub_tree";b:0;}i:13;a:3:{s:9:"expr_type";s:8:"operator";s:9:"base_expr";s:1:"=";s:8:"sub_tree";b:0;}i:14;a:3:{s:9:"expr_type";s:5:"const";s:9:"base_expr";s:1:"0";s:8:"sub_tree";b:0;}}}
|