1 CREATE TABLE no_inconcl_aux_tmp (
2 source varchar(255) binary unique not null,
3 no smallint(6) not null
5 CREATE TABLE no_concl_hyp_tmp (
6 source varchar(255) binary unique not null,
7 no smallint(6) not null
9 CREATE TABLE no_hyp_tmp (
10 source varchar(255) binary unique not null,
11 no smallint(6) not null
14 INSERT INTO no_inconcl_aux_tmp
15 SELECT source, COUNT(h_occurrence)
18 h_position='http://www.cs.unibo.it/helm/schemas/schema-helm#InConclusion'
19 OR h_position='http://www.cs.unibo.it/helm/schemas/schema-helm#MainConclusion'
22 INSERT IGNORE INTO no_inconcl_aux_tmp
27 INSERT INTO no_concl_hyp_tmp
28 SELECT source, COUNT(DISTINCT h_occurrence)
30 WHERE NOT (h_position="http://www.cs.unibo.it/helm/schemas/schema-helm#InBody")
33 INSERT IGNORE INTO no_concl_hyp_tmp
38 INSERT INTO no_hyp_tmp
39 SELECT source, COUNT(DISTINCT h_occurrence)
41 WHERE (h_position="http://www.cs.unibo.it/helm/schemas/schema-helm#MainHypothesis"
42 OR h_position="http://www.cs.unibo.it/helm/schemas/schema-helm#InHypothesis")
45 INSERT IGNORE INTO no_hyp_tmp
51 SELECT no_hyp_tmp.source,
52 no_inconcl_aux_tmp.no,
55 FROM no_hyp_tmp, no_concl_hyp_tmp, no_inconcl_aux_tmp
56 WHERE no_hyp_tmp.source = no_concl_hyp_tmp.source AND
57 no_hyp_tmp.source = no_inconcl_aux_tmp.source;
59 DROP TABLE no_hyp_tmp;
60 DROP TABLE no_inconcl_aux_tmp;
61 DROP TABLE no_concl_hyp_tmp;