diff --git a/api/example_queries/queries/average_words_per_minute_of_fastest_speaker_depending_on_time.json b/api/example_queries/queries/average_words_per_minute_of_fastest_speaker_depending_on_time.json new file mode 100644 index 0000000..cbab94d --- /dev/null +++ b/api/example_queries/queries/average_words_per_minute_of_fastest_speaker_depending_on_time.json @@ -0,0 +1,57 @@ +{ + "target_databases":["databaseCS"], + "description":"Evolution of speaking pace of the fastest speaker over time of the day.", + "steps":[ + { + "goal":"get_fastest_speaker", + "aggregation": { + "group_by":["speech.person_id"], + "order_by":[ + { + "column":"AVG((speech.token_count / (speech.total_duration / 60000)))", + "direction":"DESC" + } + ] + }, + "filtering": { + "columns":["speech.person_id"], + "conditions":[ + { + "column":"speech.total_duration", + "operator":">=", + "value":"60000" + } + ], + "limit":"1" + } + }, + { + "goal":"main", + "aggregation": { + "group_by":["speech.person_id", "speech.earliest_timestamp"], + "order_by":[ + { + "column":"speech.earliest_timestamp", + "direction":"ASC" + } + ] + }, + "filtering": { + "columns":["speech.earliest_timestamp", "AVG((speech.token_count / (speech.total_duration / 60000))) AS average_wpm"], + "conditions": [ + { + "column":"speech.total_duration", + "operator":">=", + "value":"60000" + }, + { + "column":"speech.person_id", + "operator":"=", + "value":"step_result.get_fastest_speaker.speech.person_id" + } + ], + "limit":"" + } + } + ] +} diff --git a/api/example_queries/queries/fastest_speaking_speakers.json b/api/example_queries/queries/fastest_speaking_speakers.json new file mode 100644 index 0000000..b3925ef --- /dev/null +++ b/api/example_queries/queries/fastest_speaking_speakers.json @@ -0,0 +1,29 @@ +{ + "target_databases":["databaseCS"], + "description":" TOP 10 speakers with most words per minute.", + "steps":[ + { + "goal":"main", + "aggregation": { + "group_by":["speech.person_id"], + "order_by":[ + { + "column":"average_wpm", + "direction":"desc" + } + ] + }, + "filtering":{ + "columns":["speech.person_id", "AVG((speech.token_count / (speech.total_duration / 60000))) AS average_wpm"], + "conditions":[ + { + "column":"speech.total_duration", + "operator":">=", + "value":"60000" + } + ], + "limit":"10" + } + } + ] +} diff --git a/api/example_queries/queries/total_duration_of_speeches_given_by_ANO_members_ms.json b/api/example_queries/queries/total_duration_of_speeches_given_by_ANO_members_ms.json new file mode 100644 index 0000000..c633ee9 --- /dev/null +++ b/api/example_queries/queries/total_duration_of_speeches_given_by_ANO_members_ms.json @@ -0,0 +1,57 @@ +{ + "target_databases":["databaseCS"], + "description":"Total duration of members of ANO in miliseconds", + "steps": [ + { + "goal":"get_ano_members", + "aggregation" : { + "group_by":["person.person_id", "organisation.organisation_id"], + "order_by":[] + }, + "filtering": { + "columns":["person.person_id"], + "conditions": [ + { + "column":"organisation.organisation_id", + "operator":"LIKE", + "value":"'%%ANO%%'" + } + ], + "limit":"" + } + }, + { + "goal":"main", + "aggregation": { + "group_by":["affiliation.person_id"], + "order_by":[ + { + "column":"total_duration_ms", + "direction":"DESC" + } + ] + }, + "filtering": { + "columns":["affiliation.person_id", "SUM(speech.total_duration) AS total_duration_ms"], + "conditions": [ + { + "column":"affiliation.person_id", + "operator":"IN", + "value":"step_result.get_ano_members.affiliation.person_id" + }, + { + "column":"speech.date", + "operator":"<=", + "value":"affiliation.until" + }, + { + "column":"speech.date", + "operator":">=", + "value":"affiliation.until" + } + ], + "limit":"" + } + } + ] +} diff --git a/api/example_queries/results/average_named_entity_references_by_ANO_members_result.txt b/api/example_queries/results/average_named_entity_references_by_ANO_members_result.txt index 3e41e45..3a5777d 100644 --- a/api/example_queries/results/average_named_entity_references_by_ANO_members_result.txt +++ b/api/example_queries/results/average_named_entity_references_by_ANO_members_result.txt @@ -1,4 +1,4 @@ -[{'affiliation.person_id': 'VeraJourova.1964', 'average_named_entity_references': 50.0}, {'affiliation.person_id': 'AndrejBabis.1954', 'average_named_entity_references': 47.0}, {'affiliation.person_id': 'PatrikNacher.1974', 'average_named_entity_references': 42.0}, {'affiliation.person_id': 'JanaMrackovaVildumetzova.1973', 'average_named_entity_references': 21.2}, {'affiliation.person_id': 'JaroslavFaltynek.1962', 'average_named_entity_references': 16.666666666666668}, {'affiliation.person_id': 'MonikaOborna.1989', 'average_named_entity_references': 14.5}, {'affiliation.person_id': 'JosefHajek.1956', 'average_named_entity_references': 14.5}, {'affiliation.person_id': 'BronislavSchwarz.1966', 'average_named_entity_references': 12.5}, {'affiliation.person_id': 'AlenaSchillerova.1964', 'average_named_entity_references': 10.0}, {'affiliation.person_id': 'RadimHolis.1975', 'average_named_entity_references': 9.0}, {'affiliation.person_id': 'HelenaValkova.1951', 'average_named_entity_references': 8.75}, {'affiliation.person_id': 'JosefKott.1970', 'average_named_entity_references': 7.833333333333333}, {'affiliation.person_id': 'MiloslavJanulik.1962', 'average_named_entity_references': 7.666666666666667}, {'affiliation.person_id': 'KristynaZelienkova.1974', 'average_named_entity_references': 6.0}, {'affiliation.person_id': 'KlaraDostalova.1971', 'average_named_entity_references': 5.538461538461538}, {'affiliation.person_id': 'TatanaMala.1981', 'average_named_entity_references': 4.666666666666667}, {'affiliation.person_id': 'MilanHnilicka.1973', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'IvanPilny.1944', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'JiriHlavaty.1948', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'RomanKubicek.1963', 'average_named_entity_references': 3.0}, {'affiliation.person_id': 'PetrSadovsky.1969', 'average_named_entity_references': 3.0}, {'affiliation.person_id': 'JaroslavaPokornaJermanova.1970', 'average_named_entity_references': 2.0}, {'affiliation.person_id': 'RadekVondracek.1973', 'average_named_entity_references': 1.5}, {'affiliation.person_id': 'BerenikaPestova.1971', 'average_named_entity_references': 1.5}, {'affiliation.person_id': 'DanTok.1959', 'average_named_entity_references': 1.0}, {'affiliation.person_id': 'MilanBrazdil.1962', 'average_named_entity_references': 1.0}, {'affiliation.person_id': 'RadkaMaxova.1968', 'average_named_entity_references': 0.0}, {'affiliation.person_id': 'VeraAdamkova.1954', 'average_named_entity_references': 0.0}] +[{'affiliation.person_id': 'VeraJourova.1964', 'average_named_entity_references': 50.0}, {'affiliation.person_id': 'AndrejBabis.1954', 'average_named_entity_references': 47.0}, {'affiliation.person_id': 'PatrikNacher.1974', 'average_named_entity_references': 42.0}, {'affiliation.person_id': 'JaroslavFaltynek.1962', 'average_named_entity_references': 16.666666666666668}, {'affiliation.person_id': 'JosefHajek.1956', 'average_named_entity_references': 14.5}, {'affiliation.person_id': 'MonikaOborna.1989', 'average_named_entity_references': 14.5}, {'affiliation.person_id': 'BronislavSchwarz.1966', 'average_named_entity_references': 12.5}, {'affiliation.person_id': 'AlenaSchillerova.1964', 'average_named_entity_references': 10.0}, {'affiliation.person_id': 'RadimHolis.1975', 'average_named_entity_references': 9.0}, {'affiliation.person_id': 'HelenaValkova.1951', 'average_named_entity_references': 8.75}, {'affiliation.person_id': 'JosefKott.1970', 'average_named_entity_references': 7.833333333333333}, {'affiliation.person_id': 'MiloslavJanulik.1962', 'average_named_entity_references': 7.666666666666667}, {'affiliation.person_id': 'KristynaZelienkova.1974', 'average_named_entity_references': 6.0}, {'affiliation.person_id': 'KlaraDostalova.1971', 'average_named_entity_references': 5.538461538461538}, {'affiliation.person_id': 'TatanaMala.1981', 'average_named_entity_references': 4.666666666666667}, {'affiliation.person_id': 'MilanHnilicka.1973', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'JanaMrackovaVildumetzova.1973', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'JiriHlavaty.1948', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'IvanPilny.1944', 'average_named_entity_references': 4.0}, {'affiliation.person_id': 'RomanKubicek.1963', 'average_named_entity_references': 3.0}, {'affiliation.person_id': 'PetrSadovsky.1969', 'average_named_entity_references': 3.0}, {'affiliation.person_id': 'JaroslavaPokornaJermanova.1970', 'average_named_entity_references': 2.0}, {'affiliation.person_id': 'RadekVondracek.1973', 'average_named_entity_references': 1.5}, {'affiliation.person_id': 'BerenikaPestova.1971', 'average_named_entity_references': 1.5}, {'affiliation.person_id': 'DanTok.1959', 'average_named_entity_references': 1.0}, {'affiliation.person_id': 'MilanBrazdil.1962', 'average_named_entity_references': 1.0}, {'affiliation.person_id': 'RadkaMaxova.1968', 'average_named_entity_references': 0.0}, {'affiliation.person_id': 'VeraAdamkova.1954', 'average_named_entity_references': 0.0}] +--------------------------------+---------------------------------+ | affiliation.person_id | average_named_entity_references | @@ -6,10 +6,9 @@ | VeraJourova.1964 | 50.0 | | AndrejBabis.1954 | 47.0 | | PatrikNacher.1974 | 42.0 | -| JanaMrackovaVildumetzova.1973 | 21.2 | | JaroslavFaltynek.1962 | 16.666666666666668 | -| MonikaOborna.1989 | 14.5 | | JosefHajek.1956 | 14.5 | +| MonikaOborna.1989 | 14.5 | | BronislavSchwarz.1966 | 12.5 | | AlenaSchillerova.1964 | 10.0 | | RadimHolis.1975 | 9.0 | @@ -20,8 +19,9 @@ | KlaraDostalova.1971 | 5.538461538461538 | | TatanaMala.1981 | 4.666666666666667 | | MilanHnilicka.1973 | 4.0 | -| IvanPilny.1944 | 4.0 | +| JanaMrackovaVildumetzova.1973 | 4.0 | | JiriHlavaty.1948 | 4.0 | +| IvanPilny.1944 | 4.0 | | RomanKubicek.1963 | 3.0 | | PetrSadovsky.1969 | 3.0 | | JaroslavaPokornaJermanova.1970 | 2.0 | diff --git a/api/example_queries/results/average_sentences_most_talkative_result.txt b/api/example_queries/results/average_sentences_most_talkative_result.txt index 090bb4c..772626a 100644 --- a/api/example_queries/results/average_sentences_most_talkative_result.txt +++ b/api/example_queries/results/average_sentences_most_talkative_result.txt @@ -1,18 +1,11 @@ -[{'affiliation.role': 'deputyHead', 'average_sentence_count': 6.296012975911273}, {'affiliation.role': 'member', 'average_sentence_count': 6.277422307657101}, {'affiliation.role': 'representative', 'average_sentence_count': 6.305979337294578}, {'affiliation.role': 'verifier', 'average_sentence_count': 6.327535906642729}, {'affiliation.role': 'head', 'average_sentence_count': 6.295505125733812}] +[{'affiliation.role': 'deputyHead', 'average_sentence_count': 6.246553140472014}, {'affiliation.role': 'member', 'average_sentence_count': 6.239004233762873}, {'affiliation.role': 'representative', 'average_sentence_count': 6.265916590036242}, {'affiliation.role': 'verifier', 'average_sentence_count': 6.243060334939206}, {'affiliation.role': 'head', 'average_sentence_count': 6.244799432019879}] +------------------+------------------------+ | affiliation.role | average_sentence_count | +------------------+------------------------+ -| deputyHead | 6.296012975911273 | -| member | 6.277422307657101 | -| representative | 6.305979337294578 | -| verifier | 6.327535906642729 | -| head | 6.295505125733812 | -+------------------+------------------------+ -[{'affiliation.role': 'member', 'average_sentence_count': 3.258727368606082}] - -+------------------+------------------------+ -| affiliation.role | average_sentence_count | -+------------------+------------------------+ -| member | 3.258727368606082 | +| deputyHead | 6.246553140472014 | +| member | 6.239004233762873 | +| representative | 6.265916590036242 | +| verifier | 6.243060334939206 | +| head | 6.244799432019879 | +------------------+------------------------+ diff --git a/api/example_queries/results/average_tokens_by_position_result.txt b/api/example_queries/results/average_tokens_by_position_result.txt index 3980505..9706315 100644 --- a/api/example_queries/results/average_tokens_by_position_result.txt +++ b/api/example_queries/results/average_tokens_by_position_result.txt @@ -1,18 +1,9 @@ -[{'average_tokens': 18.241933321143414, 'speech.role': 'chair'}, {'average_tokens': 239.03225806451613, 'speech.role': 'guest'}, {'average_tokens': 91.23050163147671, 'speech.role': 'regular'}] +[{'average_tokens': 447.41302235179785, 'speech.role': 'guest'}, {'average_tokens': 262.9682086742366, 'speech.role': 'regular'}, {'average_tokens': 54.36446967652388, 'speech.role': 'chair'}] +--------------------+-------------+ | average_tokens | speech.role | +--------------------+-------------+ -| 18.241933321143414 | chair | -| 239.03225806451613 | guest | -| 91.23050163147671 | regular | +| 447.41302235179785 | guest | +| 262.9682086742366 | regular | +| 54.36446967652388 | chair | +--------------------+-------------+ -[{'average_tokens': 452.1521328803322, 'speech.role': 'guest'}, {'average_tokens': 266.9352142475181, 'speech.role': 'regular'}, {'average_tokens': 55.23546464501979, 'speech.role': 'chair'}] - -+-------------------+-------------+ -| average_tokens | speech.role | -+-------------------+-------------+ -| 452.1521328803322 | guest | -| 266.9352142475181 | regular | -| 55.23546464501979 | chair | -+-------------------+-------------+ diff --git a/api/example_queries/results/average_words_per_minute_of_fastest_speaker_depending_on_time_result.txt b/api/example_queries/results/average_words_per_minute_of_fastest_speaker_depending_on_time_result.txt new file mode 100644 index 0000000..00f6e2d --- /dev/null +++ b/api/example_queries/results/average_words_per_minute_of_fastest_speaker_depending_on_time_result.txt @@ -0,0 +1,84 @@ +[{'average_wpm': 129.36363728644952, 'speech.earliest_timestamp': '2022-03-11T09:28:00'}, {'average_wpm': 143.2722678458623, 'speech.earliest_timestamp': '2022-03-11T09:48:00'}, {'average_wpm': 144.47282013863554, 'speech.earliest_timestamp': '2022-03-11T10:08:00'}, {'average_wpm': 165.34100921327953, 'speech.earliest_timestamp': '2022-03-24T16:58:00'}, {'average_wpm': 140.09835117153602, 'speech.earliest_timestamp': '2022-03-29T13:48:00'}, {'average_wpm': 144.04522123318822, 'speech.earliest_timestamp': '2022-04-27T09:18:00'}, {'average_wpm': 151.11674322825914, 'speech.earliest_timestamp': '2022-04-28T17:28:00'}, {'average_wpm': 157.00384332324802, 'speech.earliest_timestamp': '2022-04-28T17:38:00'}, {'average_wpm': 135.72219814092375, 'speech.earliest_timestamp': '2022-05-31T17:18:00'}, {'average_wpm': 174.8878923766816, 'speech.earliest_timestamp': '2022-05-31T18:08:00'}, {'average_wpm': 123.18382817435251, 'speech.earliest_timestamp': '2022-05-31T18:28:00'}, {'average_wpm': 167.80045351473922, 'speech.earliest_timestamp': '2022-06-14T19:28:00'}, {'average_wpm': 145.3038674033149, 'speech.earliest_timestamp': '2022-09-06T16:38:00'}, {'average_wpm': 154.37826893875484, 'speech.earliest_timestamp': '2022-09-07T14:08:00'}, {'average_wpm': 165.6070708636998, 'speech.earliest_timestamp': '2022-09-07T14:28:00'}, {'average_wpm': 188.13679804122896, 'speech.earliest_timestamp': '2022-09-07T14:38:00'}, {'average_wpm': 136.21565917980186, 'speech.earliest_timestamp': '2022-10-11T15:38:00'}, {'average_wpm': 119.86942328618063, 'speech.earliest_timestamp': '2022-10-12T10:28:00'}, {'average_wpm': 165.39274678809565, 'speech.earliest_timestamp': '2022-12-01T17:28:00'}, {'average_wpm': 187.2561768530559, 'speech.earliest_timestamp': '2022-12-01T17:38:00'}, {'average_wpm': 27.61539132710933, 'speech.earliest_timestamp': '2022-12-01T17:48:00'}, {'average_wpm': 146.5439259298675, 'speech.earliest_timestamp': '2022-12-13T19:18:00'}, {'average_wpm': 133.94648829431438, 'speech.earliest_timestamp': '2023-01-12T17:18:00'}, {'average_wpm': 177.08161582852432, 'speech.earliest_timestamp': '2023-01-12T17:28:00'}, {'average_wpm': 170.56156260899894, 'speech.earliest_timestamp': '2023-01-17T20:38:00'}, {'average_wpm': 189.63254593175853, 'speech.earliest_timestamp': '2023-01-17T21:58:00'}, {'average_wpm': 173.97060770554748, 'speech.earliest_timestamp': '2023-01-17T22:38:00'}, {'average_wpm': 141.23736751294058, 'speech.earliest_timestamp': '2023-01-18T10:58:00'}, {'average_wpm': 169.6826866425385, 'speech.earliest_timestamp': '2023-01-18T16:18:00'}, {'average_wpm': 178.14669965679624, 'speech.earliest_timestamp': '2023-01-18T16:58:00'}, {'average_wpm': 142.61152289985225, 'speech.earliest_timestamp': '2023-01-18T20:38:00'}, {'average_wpm': 153.251362656864, 'speech.earliest_timestamp': '2023-02-08T09:48:00'}, {'average_wpm': 136.58858462553613, 'speech.earliest_timestamp': '2023-02-09T14:38:00'}, {'average_wpm': 155.21094331956388, 'speech.earliest_timestamp': '2023-02-10T10:28:00'}, {'average_wpm': 141.65957168118408, 'speech.earliest_timestamp': '2023-02-10T10:38:00'}, {'average_wpm': 161.55352480417753, 'speech.earliest_timestamp': '2023-02-21T18:18:00'}, {'average_wpm': 171.80910099889013, 'speech.earliest_timestamp': '2023-02-28T22:38:00'}, {'average_wpm': 148.0324797001874, 'speech.earliest_timestamp': '2023-02-28T23:18:00'}, {'average_wpm': 156.3575572819353, 'speech.earliest_timestamp': '2023-02-28T23:48:00'}, {'average_wpm': 168.16277678037102, 'speech.earliest_timestamp': '2023-03-01T12:18:00'}, {'average_wpm': 164.44885799404173, 'speech.earliest_timestamp': '2023-03-01T15:28:00'}, {'average_wpm': 186.91169878978036, 'speech.earliest_timestamp': '2023-03-01T22:58:00'}, {'average_wpm': 168.76259959681292, 'speech.earliest_timestamp': '2023-03-02T10:28:00'}, {'average_wpm': 161.69806820891964, 'speech.earliest_timestamp': '2023-03-02T10:48:00'}, {'average_wpm': 175.8412156923554, 'speech.earliest_timestamp': '2023-03-03T14:58:00'}, {'average_wpm': 155.6722056905948, 'speech.earliest_timestamp': '2023-03-10T09:58:00'}, {'average_wpm': 142.3856671381424, 'speech.earliest_timestamp': '2023-04-19T10:28:00'}, {'average_wpm': 176.17903274256534, 'speech.earliest_timestamp': '2023-04-19T10:38:00'}, {'average_wpm': 159.90672107937036, 'speech.earliest_timestamp': '2023-04-19T10:48:00'}, {'average_wpm': 179.42122186495178, 'speech.earliest_timestamp': '2023-04-21T11:58:00'}, {'average_wpm': 161.7198780683459, 'speech.earliest_timestamp': '2023-05-18T09:48:00'}, {'average_wpm': 156.29386991109033, 'speech.earliest_timestamp': '2023-06-01T12:28:00'}, {'average_wpm': 145.39095678241318, 'speech.earliest_timestamp': '2023-06-15T16:18:00'}, {'average_wpm': 175.94191539664016, 'speech.earliest_timestamp': '2023-06-15T16:58:00'}, {'average_wpm': 166.16437240368168, 'speech.earliest_timestamp': '2023-06-15T17:18:00'}, {'average_wpm': 169.79301423027167, 'speech.earliest_timestamp': '2023-06-15T17:28:00'}, {'average_wpm': 188.97633246678248, 'speech.earliest_timestamp': '2023-06-15T17:38:00'}, {'average_wpm': 188.5481190512162, 'speech.earliest_timestamp': '2023-06-15T17:48:00'}, {'average_wpm': 174.6987951807229, 'speech.earliest_timestamp': '2023-06-16T09:58:00'}, {'average_wpm': 184.18839360807402, 'speech.earliest_timestamp': '2023-06-29T09:18:00'}, {'average_wpm': 155.39009388151504, 'speech.earliest_timestamp': '2023-06-29T09:38:00'}, {'average_wpm': 166.35407322841067, 'speech.earliest_timestamp': '2023-06-29T15:08:00'}, {'average_wpm': 155.87698356972334, 'speech.earliest_timestamp': '2023-06-29T15:18:00'}, {'average_wpm': 174.36702560605926, 'speech.earliest_timestamp': '2023-06-29T16:48:00'}, {'average_wpm': 181.54979644288355, 'speech.earliest_timestamp': '2023-06-29T17:08:00'}, {'average_wpm': 176.5695976638546, 'speech.earliest_timestamp': '2023-06-29T17:18:00'}, {'average_wpm': 207.2829131652661, 'speech.earliest_timestamp': '2023-06-29T17:28:00'}, {'average_wpm': 181.70600188585374, 'speech.earliest_timestamp': '2023-06-29T17:38:00'}, {'average_wpm': 192.19219219219218, 'speech.earliest_timestamp': '2023-07-11T19:08:00'}, {'average_wpm': 151.3522884882108, 'speech.earliest_timestamp': '2023-07-12T10:58:00'}, {'average_wpm': 169.15814319433517, 'speech.earliest_timestamp': '2023-07-13T10:18:00'}, {'average_wpm': 140.28809469532416, 'speech.earliest_timestamp': '2023-07-13T22:38:00'}, {'average_wpm': 148.199660021635, 'speech.earliest_timestamp': '2023-07-13T23:18:00'}, {'average_wpm': 139.46059544658493, 'speech.earliest_timestamp': '2023-07-13T23:28:00'}, {'average_wpm': 135.70973901973264, 'speech.earliest_timestamp': '2023-07-13T23:38:00'}, {'average_wpm': 177.40384615384616, 'speech.earliest_timestamp': '2023-07-19T13:38:00'}, {'average_wpm': 182.54649499284693, 'speech.earliest_timestamp': '2023-07-21T10:48:00'}, {'average_wpm': 175.516693163752, 'speech.earliest_timestamp': '2023-07-21T11:08:00'}] + ++--------------------+---------------------------+ +| average_wpm | speech.earliest_timestamp | ++--------------------+---------------------------+ +| 129.36363728644952 | 2022-03-11T09:28:00 | +| 143.2722678458623 | 2022-03-11T09:48:00 | +| 144.47282013863554 | 2022-03-11T10:08:00 | +| 165.34100921327953 | 2022-03-24T16:58:00 | +| 140.09835117153602 | 2022-03-29T13:48:00 | +| 144.04522123318822 | 2022-04-27T09:18:00 | +| 151.11674322825914 | 2022-04-28T17:28:00 | +| 157.00384332324802 | 2022-04-28T17:38:00 | +| 135.72219814092375 | 2022-05-31T17:18:00 | +| 174.8878923766816 | 2022-05-31T18:08:00 | +| 123.18382817435251 | 2022-05-31T18:28:00 | +| 167.80045351473922 | 2022-06-14T19:28:00 | +| 145.3038674033149 | 2022-09-06T16:38:00 | +| 154.37826893875484 | 2022-09-07T14:08:00 | +| 165.6070708636998 | 2022-09-07T14:28:00 | +| 188.13679804122896 | 2022-09-07T14:38:00 | +| 136.21565917980186 | 2022-10-11T15:38:00 | +| 119.86942328618063 | 2022-10-12T10:28:00 | +| 165.39274678809565 | 2022-12-01T17:28:00 | +| 187.2561768530559 | 2022-12-01T17:38:00 | +| 27.61539132710933 | 2022-12-01T17:48:00 | +| 146.5439259298675 | 2022-12-13T19:18:00 | +| 133.94648829431438 | 2023-01-12T17:18:00 | +| 177.08161582852432 | 2023-01-12T17:28:00 | +| 170.56156260899894 | 2023-01-17T20:38:00 | +| 189.63254593175853 | 2023-01-17T21:58:00 | +| 173.97060770554748 | 2023-01-17T22:38:00 | +| 141.23736751294058 | 2023-01-18T10:58:00 | +| 169.6826866425385 | 2023-01-18T16:18:00 | +| 178.14669965679624 | 2023-01-18T16:58:00 | +| 142.61152289985225 | 2023-01-18T20:38:00 | +| 153.251362656864 | 2023-02-08T09:48:00 | +| 136.58858462553613 | 2023-02-09T14:38:00 | +| 155.21094331956388 | 2023-02-10T10:28:00 | +| 141.65957168118408 | 2023-02-10T10:38:00 | +| 161.55352480417753 | 2023-02-21T18:18:00 | +| 171.80910099889013 | 2023-02-28T22:38:00 | +| 148.0324797001874 | 2023-02-28T23:18:00 | +| 156.3575572819353 | 2023-02-28T23:48:00 | +| 168.16277678037102 | 2023-03-01T12:18:00 | +| 164.44885799404173 | 2023-03-01T15:28:00 | +| 186.91169878978036 | 2023-03-01T22:58:00 | +| 168.76259959681292 | 2023-03-02T10:28:00 | +| 161.69806820891964 | 2023-03-02T10:48:00 | +| 175.8412156923554 | 2023-03-03T14:58:00 | +| 155.6722056905948 | 2023-03-10T09:58:00 | +| 142.3856671381424 | 2023-04-19T10:28:00 | +| 176.17903274256534 | 2023-04-19T10:38:00 | +| 159.90672107937036 | 2023-04-19T10:48:00 | +| 179.42122186495178 | 2023-04-21T11:58:00 | +| 161.7198780683459 | 2023-05-18T09:48:00 | +| 156.29386991109033 | 2023-06-01T12:28:00 | +| 145.39095678241318 | 2023-06-15T16:18:00 | +| 175.94191539664016 | 2023-06-15T16:58:00 | +| 166.16437240368168 | 2023-06-15T17:18:00 | +| 169.79301423027167 | 2023-06-15T17:28:00 | +| 188.97633246678248 | 2023-06-15T17:38:00 | +| 188.5481190512162 | 2023-06-15T17:48:00 | +| 174.6987951807229 | 2023-06-16T09:58:00 | +| 184.18839360807402 | 2023-06-29T09:18:00 | +| 155.39009388151504 | 2023-06-29T09:38:00 | +| 166.35407322841067 | 2023-06-29T15:08:00 | +| 155.87698356972334 | 2023-06-29T15:18:00 | +| 174.36702560605926 | 2023-06-29T16:48:00 | +| 181.54979644288355 | 2023-06-29T17:08:00 | +| 176.5695976638546 | 2023-06-29T17:18:00 | +| 207.2829131652661 | 2023-06-29T17:28:00 | +| 181.70600188585374 | 2023-06-29T17:38:00 | +| 192.19219219219218 | 2023-07-11T19:08:00 | +| 151.3522884882108 | 2023-07-12T10:58:00 | +| 169.15814319433517 | 2023-07-13T10:18:00 | +| 140.28809469532416 | 2023-07-13T22:38:00 | +| 148.199660021635 | 2023-07-13T23:18:00 | +| 139.46059544658493 | 2023-07-13T23:28:00 | +| 135.70973901973264 | 2023-07-13T23:38:00 | +| 177.40384615384616 | 2023-07-19T13:38:00 | +| 182.54649499284693 | 2023-07-21T10:48:00 | +| 175.516693163752 | 2023-07-21T11:08:00 | ++--------------------+---------------------------+ diff --git a/api/example_queries/results/fastest_speaking_speakers_result.txt b/api/example_queries/results/fastest_speaking_speakers_result.txt new file mode 100644 index 0000000..18d5126 --- /dev/null +++ b/api/example_queries/results/fastest_speaking_speakers_result.txt @@ -0,0 +1,16 @@ +[{'average_wpm': 161.41698165379293, 'speech.person_id': 'HubertLang.1969'}, {'average_wpm': 158.97911562369416, 'speech.person_id': 'PavelBlazek.1969'}, {'average_wpm': 158.3003978379674, 'speech.person_id': 'PetrDolinek.1981'}, {'average_wpm': 158.10500409292203, 'speech.person_id': 'OndrejVesely.1976'}, {'average_wpm': 157.14088727252556, 'speech.person_id': 'BronislavSchwarz.1966'}, {'average_wpm': 155.23762539056077, 'speech.person_id': 'LukasWagenknecht'}, {'average_wpm': 152.54676361269722, 'speech.person_id': 'JaroslavBzoch.1983'}, {'average_wpm': 151.1822576897536, 'speech.person_id': 'IvanAdamec.1960'}, {'average_wpm': 151.14543689902007, 'speech.person_id': 'MikulasPeksa.1986'}, {'average_wpm': 150.94729800606635, 'speech.person_id': 'JaroslavMartinu.1959'}] + ++--------------------+-----------------------+ +| average_wpm | speech.person_id | ++--------------------+-----------------------+ +| 161.41698165379293 | HubertLang.1969 | +| 158.97911562369416 | PavelBlazek.1969 | +| 158.3003978379674 | PetrDolinek.1981 | +| 158.10500409292203 | OndrejVesely.1976 | +| 157.14088727252556 | BronislavSchwarz.1966 | +| 155.23762539056077 | LukasWagenknecht | +| 152.54676361269722 | JaroslavBzoch.1983 | +| 151.1822576897536 | IvanAdamec.1960 | +| 151.14543689902007 | MikulasPeksa.1986 | +| 150.94729800606635 | JaroslavMartinu.1959 | ++--------------------+-----------------------+ diff --git a/api/example_queries/results/gender_average_tokens_result.txt b/api/example_queries/results/gender_average_tokens_result.txt index c557878..f7ea57e 100644 --- a/api/example_queries/results/gender_average_tokens_result.txt +++ b/api/example_queries/results/gender_average_tokens_result.txt @@ -1,17 +1,9 @@ -[{'average_tokens': 479.80645161290323, 'person.sex': 'U'}, {'average_tokens': 155.81989557910347, 'person.sex': 'M'}, {'average_tokens': 171.8917569422139, 'person.sex': 'F'}] +[{'average_tokens': 479.80645161290323, 'person.sex': ''}, {'average_tokens': 153.0463362811891, 'person.sex': 'M'}, {'average_tokens': 168.76321723135348, 'person.sex': 'F'}] +--------------------+------------+ | average_tokens | person.sex | +--------------------+------------+ -| 479.80645161290323 | U | -| 155.81989557910347 | M | -| 171.8917569422139 | F | +| 479.80645161290323 | | +| 153.0463362811891 | M | +| 168.76321723135348 | F | +--------------------+------------+ -[{'average_tokens': 84.08553336859107, 'person.sex': 'M'}, {'average_tokens': 35.26784887040648, 'person.sex': 'F'}] - -+-------------------+------------+ -| average_tokens | person.sex | -+-------------------+------------+ -| 84.08553336859107 | M | -| 35.26784887040648 | F | -+-------------------+------------+ diff --git a/api/example_queries/results/gender_total_speeches_result.txt b/api/example_queries/results/gender_total_speeches_result.txt index 0d70cdd..57b6d30 100644 --- a/api/example_queries/results/gender_total_speeches_result.txt +++ b/api/example_queries/results/gender_total_speeches_result.txt @@ -1,17 +1,9 @@ -[{'person.sex': 'M', 'total_speeches': 69961}, {'person.sex': 'F', 'total_speeches': 92821}] +[{'person.sex': '', 'total_speeches': 93}, {'person.sex': 'M', 'total_speeches': 159551}, {'person.sex': 'F', 'total_speeches': 33706}] +------------+----------------+ | person.sex | total_speeches | +------------+----------------+ -| M | 69961 | -| F | 92821 | -+------------+----------------+ -[{'person.sex': 'U', 'total_speeches': 93}, {'person.sex': 'M', 'total_speeches': 161845}, {'person.sex': 'F', 'total_speeches': 34247}] - -+------------+----------------+ -| person.sex | total_speeches | -+------------+----------------+ -| U | 93 | -| M | 161845 | -| F | 34247 | +| | 93 | +| M | 159551 | +| F | 33706 | +------------+----------------+ diff --git a/api/example_queries/results/most_speeches_male_result.txt b/api/example_queries/results/most_speeches_male_result.txt index dc7db35..24b3121 100644 --- a/api/example_queries/results/most_speeches_male_result.txt +++ b/api/example_queries/results/most_speeches_male_result.txt @@ -1,32 +1,16 @@ -[{'person.person_id': 'DaudzeGundars', 'total_speeches': 5301}, {'person.person_id': 'BondarsMārtiņš', 'total_speeches': 3584}, {'person.person_id': 'ŠadurskisKārlis', 'total_speeches': 2969}, {'person.person_id': 'VucānsJānis', 'total_speeches': 2075}, {'person.person_id': 'ValainisViktors', 'total_speeches': 1861}, {'person.person_id': 'ŠteinsMārtiņš', 'total_speeches': 1786}, {'person.person_id': 'BērziņšGaidis', 'total_speeches': 1666}, {'person.person_id': 'GobzemsAldis', 'total_speeches': 1654}, {'person.person_id': 'ZariņšIvars', 'total_speeches': 1653}, {'person.person_id': 'SmiltēnsEdvards', 'total_speeches': 1619}] - -+------------------+----------------+ -| person.person_id | total_speeches | -+------------------+----------------+ -| DaudzeGundars | 5301 | -| BondarsMārtiņš | 3584 | -| ŠadurskisKārlis | 2969 | -| VucānsJānis | 2075 | -| ValainisViktors | 1861 | -| ŠteinsMārtiņš | 1786 | -| BērziņšGaidis | 1666 | -| GobzemsAldis | 1654 | -| ZariņšIvars | 1653 | -| SmiltēnsEdvards | 1619 | -+------------------+----------------+ -[{'person.person_id': 'VojtechFilip.1955', 'total_speeches': 18681}, {'person.person_id': 'JanBartosek.1971', 'total_speeches': 11598}, {'person.person_id': 'PetrGazdik.1974', 'total_speeches': 10010}, {'person.person_id': 'RadekVondracek.1973', 'total_speeches': 9423}, {'person.person_id': 'TomioOkamura.1972', 'total_speeches': 8665}, {'person.person_id': 'PetrFiala.1964', 'total_speeches': 7939}, {'person.person_id': 'VojtechPikal.1987', 'total_speeches': 7874}, {'person.person_id': 'JanHamacek.1978', 'total_speeches': 7812}, {'person.person_id': 'TomasHanzel.1975', 'total_speeches': 5134}, {'person.person_id': 'ZbynekStanjura.1964', 'total_speeches': 3842}] +[{'person.person_id': 'VojtechFilip.1955', 'total_speeches': 18487}, {'person.person_id': 'JanBartosek.1971', 'total_speeches': 11528}, {'person.person_id': 'PetrGazdik.1974', 'total_speeches': 10009}, {'person.person_id': 'RadekVondracek.1973', 'total_speeches': 9250}, {'person.person_id': 'TomioOkamura.1972', 'total_speeches': 8501}, {'person.person_id': 'PetrFiala.1964', 'total_speeches': 7871}, {'person.person_id': 'JanHamacek.1978', 'total_speeches': 7792}, {'person.person_id': 'VojtechPikal.1987', 'total_speeches': 7677}, {'person.person_id': 'TomasHanzel.1975', 'total_speeches': 5071}, {'person.person_id': 'ZbynekStanjura.1964', 'total_speeches': 3815}] +---------------------+----------------+ | person.person_id | total_speeches | +---------------------+----------------+ -| VojtechFilip.1955 | 18681 | -| JanBartosek.1971 | 11598 | -| PetrGazdik.1974 | 10010 | -| RadekVondracek.1973 | 9423 | -| TomioOkamura.1972 | 8665 | -| PetrFiala.1964 | 7939 | -| VojtechPikal.1987 | 7874 | -| JanHamacek.1978 | 7812 | -| TomasHanzel.1975 | 5134 | -| ZbynekStanjura.1964 | 3842 | +| VojtechFilip.1955 | 18487 | +| JanBartosek.1971 | 11528 | +| PetrGazdik.1974 | 10009 | +| RadekVondracek.1973 | 9250 | +| TomioOkamura.1972 | 8501 | +| PetrFiala.1964 | 7871 | +| JanHamacek.1978 | 7792 | +| VojtechPikal.1987 | 7677 | +| TomasHanzel.1975 | 5071 | +| ZbynekStanjura.1964 | 3815 | +---------------------+----------------+ diff --git a/api/example_queries/results/most_talkative_regulars_result.txt b/api/example_queries/results/most_talkative_regulars_result.txt index d68a26d..8f787dd 100644 --- a/api/example_queries/results/most_talkative_regulars_result.txt +++ b/api/example_queries/results/most_talkative_regulars_result.txt @@ -1,32 +1,16 @@ -[{'persName.forename': 'Aigars', 'persName.surname': 'Bikše', 'total_tokens': 7438}, {'persName.forename': 'Aija', 'persName.surname': 'Barča', 'total_tokens': 19336}, {'persName.forename': 'Ainars', 'persName.surname': 'Bašķis', 'total_tokens': 2632}, {'persName.forename': 'Ainars', 'persName.surname': 'Latkovskis', 'total_tokens': 12940}, {'persName.forename': 'Ainārs', 'persName.surname': 'Mežulis', 'total_tokens': 1760}, {'persName.forename': 'Ainārs', 'persName.surname': 'Vilciņš', 'total_tokens': 915}, {'persName.forename': 'Aivars', 'persName.surname': 'Geidāns', 'total_tokens': 9399}, {'persName.forename': 'Aivars', 'persName.surname': 'Meija', 'total_tokens': 1372}, {'persName.forename': 'Aldis', 'persName.surname': 'Adamovičs', 'total_tokens': 26010}, {'persName.forename': 'Aldis', 'persName.surname': 'Blumbergs', 'total_tokens': 1150}] +[{'persName.forename': 'Adam', 'persName.surname': 'Kalous', 'total_tokens': 15444}, {'persName.forename': 'Adam', 'persName.surname': 'Rykala', 'total_tokens': 3494}, {'persName.forename': 'Adam', 'persName.surname': 'Vojtěch', 'total_tokens': 178391}, {'persName.forename': 'Adolf', 'persName.surname': 'Beznoska', 'total_tokens': 41522}, {'persName.forename': 'Alena', 'persName.surname': 'Gajdůšková', 'total_tokens': 73099}, {'persName.forename': 'Alena', 'persName.surname': 'Nohavová', 'total_tokens': 17614}, {'persName.forename': 'Alena', 'persName.surname': 'Schillerová', 'total_tokens': 395970}, {'persName.forename': 'Aleš', 'persName.surname': 'Dufek', 'total_tokens': 4498}, {'persName.forename': 'Aleš', 'persName.surname': 'Juchelka', 'total_tokens': 129300}, {'persName.forename': 'Alexander', 'persName.surname': 'Černý', 'total_tokens': 20376}] +-------------------+------------------+--------------+ | persName.forename | persName.surname | total_tokens | +-------------------+------------------+--------------+ -| Aigars | Bikše | 7438 | -| Aija | Barča | 19336 | -| Ainars | Bašķis | 2632 | -| Ainars | Latkovskis | 12940 | -| Ainārs | Mežulis | 1760 | -| Ainārs | Vilciņš | 915 | -| Aivars | Geidāns | 9399 | -| Aivars | Meija | 1372 | -| Aldis | Adamovičs | 26010 | -| Aldis | Blumbergs | 1150 | -+-------------------+------------------+--------------+ -[{'persName.forename': 'Adam', 'persName.surname': 'Kalous', 'total_tokens': 15869}, {'persName.forename': 'Adam', 'persName.surname': 'Rykala', 'total_tokens': 3494}, {'persName.forename': 'Adam', 'persName.surname': 'Vojtěch', 'total_tokens': 187216}, {'persName.forename': 'Adolf', 'persName.surname': 'Beznoska', 'total_tokens': 41522}, {'persName.forename': 'Alena', 'persName.surname': 'Gajdůšková', 'total_tokens': 78796}, {'persName.forename': 'Alena', 'persName.surname': 'Nohavová', 'total_tokens': 17614}, {'persName.forename': 'Alena', 'persName.surname': 'Schillerová', 'total_tokens': 416524}, {'persName.forename': 'Aleš', 'persName.surname': 'Dufek', 'total_tokens': 4498}, {'persName.forename': 'Aleš', 'persName.surname': 'Juchelka', 'total_tokens': 134560}, {'persName.forename': 'Alexander', 'persName.surname': 'Černý', 'total_tokens': 20376}] - -+-------------------+------------------+--------------+ -| persName.forename | persName.surname | total_tokens | -+-------------------+------------------+--------------+ -| Adam | Kalous | 15869 | +| Adam | Kalous | 15444 | | Adam | Rykala | 3494 | -| Adam | Vojtěch | 187216 | +| Adam | Vojtěch | 178391 | | Adolf | Beznoska | 41522 | -| Alena | Gajdůšková | 78796 | +| Alena | Gajdůšková | 73099 | | Alena | Nohavová | 17614 | -| Alena | Schillerová | 416524 | +| Alena | Schillerová | 395970 | | Aleš | Dufek | 4498 | -| Aleš | Juchelka | 134560 | +| Aleš | Juchelka | 129300 | | Alexander | Černý | 20376 | +-------------------+------------------+--------------+ diff --git a/api/example_queries/results/politician_comparisonCS_result.txt b/api/example_queries/results/politician_comparisonCS_result.txt index 7ee67f5..371b201 100644 --- a/api/example_queries/results/politician_comparisonCS_result.txt +++ b/api/example_queries/results/politician_comparisonCS_result.txt @@ -1,8 +1,8 @@ -[{'persName.forename': 'Adam', 'persName.surname': 'Kalous', 'person.person_id': 'AdamKalous.1979', 'total_speeches': 79}, {'persName.forename': 'Adam', 'persName.surname': 'Rykala', 'person.person_id': 'AdamRykala.1986', 'total_speeches': 29}] +[{'persName.forename': 'Adam', 'persName.surname': 'Kalous', 'person.person_id': 'AdamKalous.1979', 'total_speeches': 78}, {'persName.forename': 'Adam', 'persName.surname': 'Rykala', 'person.person_id': 'AdamRykala.1986', 'total_speeches': 29}] +-------------------+------------------+------------------+----------------+ | persName.forename | persName.surname | person.person_id | total_speeches | +-------------------+------------------+------------------+----------------+ -| Adam | Kalous | AdamKalous.1979 | 79 | +| Adam | Kalous | AdamKalous.1979 | 78 | | Adam | Rykala | AdamRykala.1986 | 29 | +-------------------+------------------+------------------+----------------+ diff --git a/api/example_queries/results/speech_count_parties_result.txt b/api/example_queries/results/speech_count_parties_result.txt index 4083404..902f0ca 100644 --- a/api/example_queries/results/speech_count_parties_result.txt +++ b/api/example_queries/results/speech_count_parties_result.txt @@ -1,43 +1,27 @@ -[{'organisation.name': 'SASKAŅA', 'total_speeches': 9231}, {'organisation.name': 'Jaunā konservatīvā', 'total_speeches': 16121}, {'organisation.name': 'Nacionālā apvienība "Visu Latvijai!"–"Tēvzemei un Brīvībai/LNNK"', 'total_speeches': 66530}, {'organisation.name': 'No sirds Latvijai', 'total_speeches': 1797}, {'organisation.name': 'Latvijas Reģionu apvienība', 'total_speeches': 1907}, {'organisation.name': 'Kam pieder valsts?', 'total_speeches': 4510}, {'organisation.name': 'VIENOTĪBA', 'total_speeches': 12513}, {'organisation.name': 'Attīstībai/Par!', 'total_speeches': 9337}, {'organisation.name': 'JAUNĀ VIENOTĪBA', 'total_speeches': 7663}, {'organisation.name': 'Zaļo un Zemnieku savienība', 'total_speeches': 16994}] - -+------------------------------------------------------------------+----------------+ -| organisation.name | total_speeches | -+------------------------------------------------------------------+----------------+ -| SASKAŅA | 9231 | -| Jaunā konservatīvā | 16121 | -| Nacionālā apvienība "Visu Latvijai!"–"Tēvzemei un Brīvībai/LNNK" | 66530 | -| No sirds Latvijai | 1797 | -| Latvijas Reģionu apvienība | 1907 | -| Kam pieder valsts? | 4510 | -| VIENOTĪBA | 12513 | -| Attīstībai/Par! | 9337 | -| JAUNĀ VIENOTĪBA | 7663 | -| Zaļo un Zemnieku savienība | 16994 | -+------------------------------------------------------------------+----------------+ -[{'organisation.name': 'Poslanecký klub ANO 2011', 'total_speeches': 36271}, {'organisation.name': 'Poslanecký klub České pirátské strany', 'total_speeches': 15221}, {'organisation.name': 'Poslanecký klub České strany sociálně demokratické', 'total_speeches': 32997}, {'organisation.name': 'Poslanecký klub KDU-ČSL', 'total_speeches': 16056}, {'organisation.name': 'Poslanecký klub Komunistické strany Čech a Moravy', 'total_speeches': 27412}, {'organisation.name': 'Poslanecký klub Občanské demokratické strany', 'total_speeches': 26465}, {'organisation.name': 'Poslanecký klub Starostové a nezávislí', 'total_speeches': 4196}, {'organisation.name': 'Poslanecký klub Svoboda a přímá demokracie', 'total_speeches': 9794}, {'organisation.name': 'Poslanecký klub TOP 09', 'total_speeches': 3954}, {'organisation.name': 'Poslanecký klub TOP 09 a Starostové', 'total_speeches': 18965}, {'organisation.name': 'Poslanecký klub Úsvit - Národní Koalice', 'total_speeches': 2756}, {'organisation.name': 'ANO2011', 'total_speeches': 5237}, {'organisation.name': 'Česká pirátská strana', 'total_speeches': 13217}, {'organisation.name': 'Česká strana sociálně demokratická', 'total_speeches': 22889}, {'organisation.name': 'Komunistická strana Čech a Moravy', 'total_speeches': 25605}, {'organisation.name': 'Křesťanská a demokratická unie - Československá strana lidová', 'total_speeches': 14224}, {'organisation.name': 'Občanská demokratická strana', 'total_speeches': 19823}, {'organisation.name': 'Starostove a nezavisli', 'total_speeches': 1452}, {'organisation.name': 'Svoboda a prima demokracie - Tomio Okamura', 'total_speeches': 1161}, {'organisation.name': 'TOP 09', 'total_speeches': 18465}, {'organisation.name': 'Úsvit přímé demokracie Tomia Okamury', 'total_speeches': 2526}] +[{'organisation.name': 'Poslanecký klub ANO 2011', 'total_speeches': 35787}, {'organisation.name': 'Poslanecký klub České pirátské strany', 'total_speeches': 14820}, {'organisation.name': 'Poslanecký klub České strany sociálně demokratické', 'total_speeches': 32808}, {'organisation.name': 'Poslanecký klub KDU-ČSL', 'total_speeches': 15887}, {'organisation.name': 'Poslanecký klub Komunistické strany Čech a Moravy', 'total_speeches': 27072}, {'organisation.name': 'Poslanecký klub Občanské demokratické strany', 'total_speeches': 26193}, {'organisation.name': 'Poslanecký klub Starostové a nezávislí', 'total_speeches': 4092}, {'organisation.name': 'Poslanecký klub Svoboda a přímá demokracie', 'total_speeches': 9600}, {'organisation.name': 'Poslanecký klub TOP 09', 'total_speeches': 3859}, {'organisation.name': 'Poslanecký klub TOP 09 a Starostové', 'total_speeches': 18965}, {'organisation.name': 'Poslanecký klub Úsvit - Národní Koalice', 'total_speeches': 2756}, {'organisation.name': 'ANO2011', 'total_speeches': 5185}, {'organisation.name': 'Česká pirátská strana', 'total_speeches': 12860}, {'organisation.name': 'Česká strana sociálně demokratická', 'total_speeches': 22732}, {'organisation.name': 'Komunistická strana Čech a Moravy', 'total_speeches': 25301}, {'organisation.name': 'Křesťanská a demokratická unie - Československá strana lidová', 'total_speeches': 14085}, {'organisation.name': 'Občanská demokratická strana', 'total_speeches': 19617}, {'organisation.name': 'Starostove a nezavisli', 'total_speeches': 1422}, {'organisation.name': 'Svoboda a prima demokracie - Tomio Okamura', 'total_speeches': 1088}, {'organisation.name': 'TOP 09', 'total_speeches': 18409}, {'organisation.name': 'Úsvit přímé demokracie Tomia Okamury', 'total_speeches': 2526}] +---------------------------------------------------------------+----------------+ | organisation.name | total_speeches | +---------------------------------------------------------------+----------------+ -| Poslanecký klub ANO 2011 | 36271 | -| Poslanecký klub České pirátské strany | 15221 | -| Poslanecký klub České strany sociálně demokratické | 32997 | -| Poslanecký klub KDU-ČSL | 16056 | -| Poslanecký klub Komunistické strany Čech a Moravy | 27412 | -| Poslanecký klub Občanské demokratické strany | 26465 | -| Poslanecký klub Starostové a nezávislí | 4196 | -| Poslanecký klub Svoboda a přímá demokracie | 9794 | -| Poslanecký klub TOP 09 | 3954 | +| Poslanecký klub ANO 2011 | 35787 | +| Poslanecký klub České pirátské strany | 14820 | +| Poslanecký klub České strany sociálně demokratické | 32808 | +| Poslanecký klub KDU-ČSL | 15887 | +| Poslanecký klub Komunistické strany Čech a Moravy | 27072 | +| Poslanecký klub Občanské demokratické strany | 26193 | +| Poslanecký klub Starostové a nezávislí | 4092 | +| Poslanecký klub Svoboda a přímá demokracie | 9600 | +| Poslanecký klub TOP 09 | 3859 | | Poslanecký klub TOP 09 a Starostové | 18965 | | Poslanecký klub Úsvit - Národní Koalice | 2756 | -| ANO2011 | 5237 | -| Česká pirátská strana | 13217 | -| Česká strana sociálně demokratická | 22889 | -| Komunistická strana Čech a Moravy | 25605 | -| Křesťanská a demokratická unie - Československá strana lidová | 14224 | -| Občanská demokratická strana | 19823 | -| Starostove a nezavisli | 1452 | -| Svoboda a prima demokracie - Tomio Okamura | 1161 | -| TOP 09 | 18465 | +| ANO2011 | 5185 | +| Česká pirátská strana | 12860 | +| Česká strana sociálně demokratická | 22732 | +| Komunistická strana Čech a Moravy | 25301 | +| Křesťanská a demokratická unie - Československá strana lidová | 14085 | +| Občanská demokratická strana | 19617 | +| Starostove a nezavisli | 1422 | +| Svoboda a prima demokracie - Tomio Okamura | 1088 | +| TOP 09 | 18409 | | Úsvit přímé demokracie Tomia Okamury | 2526 | +---------------------------------------------------------------+----------------+ diff --git a/api/example_queries/results/total_duration_of_speeches_given_by_ANO_members_ms_result.txt b/api/example_queries/results/total_duration_of_speeches_given_by_ANO_members_ms_result.txt new file mode 100644 index 0000000..0a9e2ab --- /dev/null +++ b/api/example_queries/results/total_duration_of_speeches_given_by_ANO_members_ms_result.txt @@ -0,0 +1,34 @@ +[{'affiliation.person_id': 'PatrikNacher.1974', 'total_duration_ms': 2918040.0}, {'affiliation.person_id': 'VeraJourova.1964', 'total_duration_ms': 2329580.0}, {'affiliation.person_id': 'JosefKott.1970', 'total_duration_ms': 1763410.0}, {'affiliation.person_id': 'TatanaMala.1981', 'total_duration_ms': 1599290.0}, {'affiliation.person_id': 'KlaraDostalova.1971', 'total_duration_ms': 1540550.0}, {'affiliation.person_id': 'HelenaValkova.1951', 'total_duration_ms': 1401590.0}, {'affiliation.person_id': 'MonikaOborna.1989', 'total_duration_ms': 694250.0}, {'affiliation.person_id': 'JaroslavFaltynek.1962', 'total_duration_ms': 680770.0}, {'affiliation.person_id': 'MiloslavJanulik.1962', 'total_duration_ms': 650390.0}, {'affiliation.person_id': 'MilanHnilicka.1973', 'total_duration_ms': 645900.0}, {'affiliation.person_id': 'KristynaZelienkova.1974', 'total_duration_ms': 598810.0}, {'affiliation.person_id': 'DanTok.1959', 'total_duration_ms': 557780.0}, {'affiliation.person_id': 'BronislavSchwarz.1966', 'total_duration_ms': 506280.0}, {'affiliation.person_id': 'IvanPilny.1944', 'total_duration_ms': 473010.0}, {'affiliation.person_id': 'AlenaSchillerova.1964', 'total_duration_ms': 468780.0}, {'affiliation.person_id': 'JanaMrackovaVildumetzova.1973', 'total_duration_ms': 436170.0}, {'affiliation.person_id': 'RadekVondracek.1973', 'total_duration_ms': 321630.0}, {'affiliation.person_id': 'AndrejBabis.1954', 'total_duration_ms': 292960.0}, {'affiliation.person_id': 'JiriHlavaty.1948', 'total_duration_ms': 261000.0}, {'affiliation.person_id': 'JaroslavaPokornaJermanova.1970', 'total_duration_ms': 225160.0}, {'affiliation.person_id': 'JosefHajek.1956', 'total_duration_ms': 220690.0}, {'affiliation.person_id': 'RadimHolis.1975', 'total_duration_ms': 209080.0}, {'affiliation.person_id': 'BerenikaPestova.1971', 'total_duration_ms': 144780.0}, {'affiliation.person_id': 'PetrSadovsky.1969', 'total_duration_ms': 77520.0}, {'affiliation.person_id': 'RomanKubicek.1963', 'total_duration_ms': 73800.0}, {'affiliation.person_id': 'MilanBrazdil.1962', 'total_duration_ms': 52640.0}, {'affiliation.person_id': 'VeraAdamkova.1954', 'total_duration_ms': 36430.0}, {'affiliation.person_id': 'RadkaMaxova.1968', 'total_duration_ms': 7230.0}] + ++--------------------------------+-------------------+ +| affiliation.person_id | total_duration_ms | ++--------------------------------+-------------------+ +| PatrikNacher.1974 | 2918040.0 | +| VeraJourova.1964 | 2329580.0 | +| JosefKott.1970 | 1763410.0 | +| TatanaMala.1981 | 1599290.0 | +| KlaraDostalova.1971 | 1540550.0 | +| HelenaValkova.1951 | 1401590.0 | +| MonikaOborna.1989 | 694250.0 | +| JaroslavFaltynek.1962 | 680770.0 | +| MiloslavJanulik.1962 | 650390.0 | +| MilanHnilicka.1973 | 645900.0 | +| KristynaZelienkova.1974 | 598810.0 | +| DanTok.1959 | 557780.0 | +| BronislavSchwarz.1966 | 506280.0 | +| IvanPilny.1944 | 473010.0 | +| AlenaSchillerova.1964 | 468780.0 | +| JanaMrackovaVildumetzova.1973 | 436170.0 | +| RadekVondracek.1973 | 321630.0 | +| AndrejBabis.1954 | 292960.0 | +| JiriHlavaty.1948 | 261000.0 | +| JaroslavaPokornaJermanova.1970 | 225160.0 | +| JosefHajek.1956 | 220690.0 | +| RadimHolis.1975 | 209080.0 | +| BerenikaPestova.1971 | 144780.0 | +| PetrSadovsky.1969 | 77520.0 | +| RomanKubicek.1963 | 73800.0 | +| MilanBrazdil.1962 | 52640.0 | +| VeraAdamkova.1954 | 36430.0 | +| RadkaMaxova.1968 | 7230.0 | ++--------------------------------+-------------------+ diff --git a/api/example_queries/results/total_sentences_female_result.txt b/api/example_queries/results/total_sentences_female_result.txt index 6a5383f..996aea4 100644 --- a/api/example_queries/results/total_sentences_female_result.txt +++ b/api/example_queries/results/total_sentences_female_result.txt @@ -1,14 +1,7 @@ -[{'person.sex': 'F', 'total_sentences': 346909}] +[{'person.sex': 'F', 'total_sentences': 336293}] +------------+-----------------+ | person.sex | total_sentences | +------------+-----------------+ -| F | 346909 | -+------------+-----------------+ -[{'person.sex': 'F', 'total_sentences': 399199}] - -+------------+-----------------+ -| person.sex | total_sentences | -+------------+-----------------+ -| F | 399199 | +| F | 336293 | +------------+-----------------+ diff --git a/api/example_queries/results/total_speeches_by_organisation_roles_result.txt b/api/example_queries/results/total_speeches_by_organisation_roles_result.txt index b2f36d5..a861d31 100644 --- a/api/example_queries/results/total_speeches_by_organisation_roles_result.txt +++ b/api/example_queries/results/total_speeches_by_organisation_roles_result.txt @@ -1,28 +1,19 @@ -[{'COUNT(speech.id) as total_speeches': 146603, 'organisation.role': 'parliament'}, {'COUNT(speech.id) as total_speeches': 146603, 'organisation.role': 'parliamentaryGroup'}, {'COUNT(speech.id) as total_speeches': 1056, 'organisation.role': 'government'}] - -+------------------------------------+--------------------+ -| COUNT(speech.id) as total_speeches | organisation.role | -+------------------------------------+--------------------+ -| 146603 | parliament | -| 146603 | parliamentaryGroup | -| 1056 | government | -+------------------------------------+--------------------+ -[{'COUNT(speech.id) as total_speeches': 993377, 'organisation.role': 'interparliamentaryFriendshipGroup'}, {'COUNT(speech.id) as total_speeches': 407840, 'organisation.role': 'committee'}, {'COUNT(speech.id) as total_speeches': 311298, 'organisation.role': 'subcommittee'}, {'COUNT(speech.id) as total_speeches': 256168, 'organisation.role': 'parliament'}, {'COUNT(speech.id) as total_speeches': 194087, 'organisation.role': 'parliamentaryGroup'}, {'COUNT(speech.id) as total_speeches': 124599, 'organisation.role': 'politicalParty'}, {'COUNT(speech.id) as total_speeches': 123586, 'organisation.role': 'commission'}, {'COUNT(speech.id) as total_speeches': 28483, 'organisation.role': 'delegation'}, {'COUNT(speech.id) as total_speeches': 23395, 'organisation.role': 'government'}, {'COUNT(speech.id) as total_speeches': 8226, 'organisation.role': 'supervisoryBoard'}, {'COUNT(speech.id) as total_speeches': 3538, 'organisation.role': 'boardOfDirectors'}, {'COUNT(speech.id) as total_speeches': 75, 'organisation.role': 'institution'}, {'COUNT(speech.id) as total_speeches': 24, 'organisation.role': 'republic'}] +[{'COUNT(speech.id) as total_speeches': 982430, 'organisation.role': 'interparliamentaryFriendshipGroup'}, {'COUNT(speech.id) as total_speeches': 402190, 'organisation.role': 'committee'}, {'COUNT(speech.id) as total_speeches': 305743, 'organisation.role': 'subcommittee'}, {'COUNT(speech.id) as total_speeches': 253301, 'organisation.role': 'parliament'}, {'COUNT(speech.id) as total_speeches': 191839, 'organisation.role': 'parliamentaryGroup'}, {'COUNT(speech.id) as total_speeches': 123225, 'organisation.role': 'politicalParty'}, {'COUNT(speech.id) as total_speeches': 121414, 'organisation.role': 'commission'}, {'COUNT(speech.id) as total_speeches': 28272, 'organisation.role': 'delegation'}, {'COUNT(speech.id) as total_speeches': 23025, 'organisation.role': 'government'}, {'COUNT(speech.id) as total_speeches': 8141, 'organisation.role': 'supervisoryBoard'}, {'COUNT(speech.id) as total_speeches': 3477, 'organisation.role': 'boardOfDirectors'}, {'COUNT(speech.id) as total_speeches': 71, 'organisation.role': 'institution'}, {'COUNT(speech.id) as total_speeches': 24, 'organisation.role': 'republic'}] +------------------------------------+-----------------------------------+ | COUNT(speech.id) as total_speeches | organisation.role | +------------------------------------+-----------------------------------+ -| 993377 | interparliamentaryFriendshipGroup | -| 407840 | committee | -| 311298 | subcommittee | -| 256168 | parliament | -| 194087 | parliamentaryGroup | -| 124599 | politicalParty | -| 123586 | commission | -| 28483 | delegation | -| 23395 | government | -| 8226 | supervisoryBoard | -| 3538 | boardOfDirectors | -| 75 | institution | +| 982430 | interparliamentaryFriendshipGroup | +| 402190 | committee | +| 305743 | subcommittee | +| 253301 | parliament | +| 191839 | parliamentaryGroup | +| 123225 | politicalParty | +| 121414 | commission | +| 28272 | delegation | +| 23025 | government | +| 8141 | supervisoryBoard | +| 3477 | boardOfDirectors | +| 71 | institution | | 24 | republic | +------------------------------------+-----------------------------------+ diff --git a/api/example_queries/results/total_speeches_male_time_frame_result.txt b/api/example_queries/results/total_speeches_male_time_frame_result.txt index 9ddda8d..f8454c2 100644 --- a/api/example_queries/results/total_speeches_male_time_frame_result.txt +++ b/api/example_queries/results/total_speeches_male_time_frame_result.txt @@ -1,14 +1,7 @@ -[{'person.sex': 'M', 'total_speeches': 21517}] +[{'person.sex': 'M', 'total_speeches': 21066}] +------------+----------------+ | person.sex | total_speeches | +------------+----------------+ -| M | 21517 | -+------------+----------------+ -[{'person.sex': 'M', 'total_speeches': 7420}] - -+------------+----------------+ -| person.sex | total_speeches | -+------------+----------------+ -| M | 7420 | +| M | 21066 | +------------+----------------+