From eece59bf7d7ffd31d0b1cec2f47227819b5b228d Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Fri, 18 Apr 2025 08:55:51 -0300 Subject: [PATCH 01/17] Fix most persons --- .../resources/statistics-request-list/most-persons.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/main/resources/statistics-request-list/most-persons.yml b/server/src/main/resources/statistics-request-list/most-persons.yml index b59a02dd..9c564178 100644 --- a/server/src/main/resources/statistics-request-list/most-persons.yml +++ b/server/src/main/resources/statistics-request-list/most-persons.yml @@ -9,17 +9,17 @@ queries: sqlQuery: |- select e.name, - count(distinct personId) qt + count(distinct person_id) qt from - RanksSingle rs - inner join Events e on rs.eventId = e.id + ranks_single rs + inner join Events e on rs.event_id = e.id where e.`rank` < 900 group by - eventId + event_id order by qt desc, - eventId + event_id - keys: - Competition headers: From 19e6e00c590839ec930b8abd0daa161d94a18601 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Fri, 18 Apr 2025 09:05:30 -0300 Subject: [PATCH 02/17] Fix oldest standing records queries --- .../oldest-standing-records.yml | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/server/src/main/resources/statistics-request-list/oldest-standing-records.yml b/server/src/main/resources/statistics-request-list/oldest-standing-records.yml index 7ca298a4..d501457b 100644 --- a/server/src/main/resources/statistics-request-list/oldest-standing-records.yml +++ b/server/src/main/resources/statistics-request-list/oldest-standing-records.yml @@ -28,14 +28,14 @@ queries: c.cellName from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksSingle - where worldRank = 1 + from ranks_single + where world_rank = 1 ) single_records on single_records.best = results.best - and single_records.personId = results.personId - and single_records.eventId = results.eventId + and single_records.person_id = results.personId + and single_records.event_id = results.eventId and regionalSingleRecord = 'WR' inner join Competitions c on results.competitionId = c.id union all @@ -49,14 +49,14 @@ queries: c.cellName from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksAverage - where worldRank = 1 + from ranks_average + where world_rank = 1 ) average_records on average_records.best = results.average - and average_records.personId = results.personId - and average_records.eventId = results.eventId + and average_records.person_id = results.personId + and average_records.event_id = results.eventId and regionalAverageRecord = 'WR' inner join Competitions c on results.competitionId = c.id ) records @@ -97,15 +97,15 @@ queries: results.countryId from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksSingle - where continentRank = 1 - and worldRank != 1 + from ranks_single + where continent_rank = 1 + and world_rank != 1 ) single_records on single_records.best = results.best - and single_records.personId = results.personId - and single_records.eventId = results.eventId + and single_records.person_id = results.personId + and single_records.event_id = results.eventId and regionalSingleRecord not in ('WR', 'NR') inner join Competitions c on results.competitionId = c.id union all @@ -121,15 +121,15 @@ queries: results.countryId from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksAverage - where continentRank = 1 - and worldRank != 1 + from ranks_average + where continent_rank = 1 + and world_rank != 1 ) average_records on average_records.best = results.average - and average_records.personId = results.personId - and average_records.eventId = results.eventId + and average_records.person_id = results.personId + and average_records.event_id = results.eventId and regionalAverageRecord not in ('WR', 'NR') inner join Competitions c on results.competitionId = c.id ) records @@ -171,16 +171,16 @@ queries: c.cellName from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksSingle - where countryRank = 1 - and continentRank != 1 - and worldRank != 1 + from ranks_single + where country_rank = 1 + and continent_rank != 1 + and world_rank != 1 ) single_records on single_records.best = results.best - and single_records.personId = results.personId - and single_records.eventId = results.eventId + and single_records.person_id = results.personId + and single_records.event_id = results.eventId and regionalSingleRecord = 'NR' inner join Competitions c on results.competitionId = c.id union all @@ -195,16 +195,16 @@ queries: c.cellName from Results results inner join ( - select personId, - eventId, + select person_id, + event_id, best - from RanksAverage - where countryRank = 1 - and continentRank != 1 - and worldRank != 1 + from ranks_average + where country_rank = 1 + and continent_rank != 1 + and world_rank != 1 ) average_records on average_records.best = results.average - and average_records.personId = results.personId - and average_records.eventId = results.eventId + and average_records.person_id = results.personId + and average_records.event_id = results.eventId and regionalAverageRecord = 'NR' inner join Competitions c on results.competitionId = c.id ) records From 7a5b175809dc759010b29166dda3a93def987c34 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Fri, 18 Apr 2025 09:12:22 -0300 Subject: [PATCH 03/17] Fix sum of ranks --- .../statistics-request-list/sum-of-ranks.yml | 96 +++++++++---------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/server/src/main/resources/statistics-request-list/sum-of-ranks.yml b/server/src/main/resources/statistics-request-list/sum-of-ranks.yml index fbbebeb3..258f8559 100644 --- a/server/src/main/resources/statistics-request-list/sum-of-ranks.yml +++ b/server/src/main/resources/statistics-request-list/sum-of-ranks.yml @@ -26,30 +26,30 @@ queries: p.countryId, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '333' + person_id = p.wca_id + and event_id = '333' ) r3, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '444' + person_id = p.wca_id + and event_id = '444' ) r4, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '555' + person_id = p.wca_id + and event_id = '555' ) r5 from Persons p @@ -78,28 +78,28 @@ queries: p.countryId, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '333') r3, + person_id = p.wca_id + and event_id = '333') r3, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '444') r4, + person_id = p.wca_id + and event_id = '444') r4, ( select - worldRank + world_rank from - RanksSingle + ranks_single where - personId = p.wca_id - and eventId = '555') r5 + person_id = p.wca_id + and event_id = '555') r5 from Persons p) r where @@ -137,30 +137,30 @@ queries: p.countryId, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '333' + person_id = p.wca_id + and event_id = '333' ) r3, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '444' + person_id = p.wca_id + and event_id = '444' ) r4, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '555' + person_id = p.wca_id + and event_id = '555' ) r5 from Persons p @@ -189,28 +189,28 @@ queries: p.countryId, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '333') r3, + person_id = p.wca_id + and event_id = '333') r3, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '444') r4, + person_id = p.wca_id + and event_id = '444') r4, ( select - worldRank + world_rank from - RanksAverage + ranks_average where - personId = p.wca_id - and eventId = '555') r5 + person_id = p.wca_id + and event_id = '555') r5 from Persons p) r where From 56ca3af22c04d90766382ce14c26d41a806ef9d2 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Fri, 18 Apr 2025 09:39:36 -0300 Subject: [PATCH 04/17] Better instructions for generating python stats --- misc/python/README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/misc/python/README.md b/misc/python/README.md index ae2b6110..7eff470c 100644 --- a/misc/python/README.md +++ b/misc/python/README.md @@ -1,6 +1,19 @@ ## Instalation +You need to be in the root folder - python3 -m virtualenv venv - source venv/bin/activate - pip3 install -r misc/python/requirements.txt +```bash +python3 -m virtualenv venv +source venv/bin/activate +pip3 install -r misc/python/requirements.txt +``` + +## Execution + +Virtual environment should be active (check the Installation step) + +```bash +python -m misc.python.statistics.5bld_before_4bld +``` + +or any other filename. You can also open the file and check how to execute it in the first line. From fff1580d21f16e91520edd1dd889dcc7f5b51108 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 11:17:43 -0300 Subject: [PATCH 05/17] Increase db instance --- iac/rds.tf | 2 +- iac/subnet.tf | 8 ++++++++ iac/vpc.tf | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/iac/rds.tf b/iac/rds.tf index eb1eef9d..59e0aa9e 100644 --- a/iac/rds.tf +++ b/iac/rds.tf @@ -4,7 +4,7 @@ resource "aws_db_instance" "dumped_db" { engine = "mysql" engine_version = "8.0.33" storage_type = "gp2" - instance_class = "db.t3.medium" + instance_class = "db.t4g.large" db_name = "dumped_db" username = data.aws_ssm_parameter.dumped_db_write_user.value password = data.aws_ssm_parameter.dumped_db_write_password.value diff --git a/iac/subnet.tf b/iac/subnet.tf index 39baa1c7..b27d303d 100644 --- a/iac/subnet.tf +++ b/iac/subnet.tf @@ -2,10 +2,18 @@ resource "aws_default_subnet" "default_az1" { availability_zone = "${var.aws_region}a" provider = aws.no_tags + + lifecycle { + ignore_changes = [tags, tags_all] + } } resource "aws_default_subnet" "default_az2" { availability_zone = "${var.aws_region}b" provider = aws.no_tags + + lifecycle { + ignore_changes = [tags, tags_all] + } } diff --git a/iac/vpc.tf b/iac/vpc.tf index 3109b039..8211bb96 100644 --- a/iac/vpc.tf +++ b/iac/vpc.tf @@ -1,3 +1,7 @@ resource "aws_default_vpc" "default" { provider = aws.no_tags + + lifecycle { + ignore_changes = [tags, tags_all] + } } From 0248532424d8faf4eafd0510f6bd2b254bed0bb3 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 12:21:53 -0300 Subject: [PATCH 06/17] Fix sum of all ranks --- misc/python/statistics/sum_of_all_ranks.py | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/misc/python/statistics/sum_of_all_ranks.py b/misc/python/statistics/sum_of_all_ranks.py index 5df49e83..7320cbbe 100644 --- a/misc/python/statistics/sum_of_all_ranks.py +++ b/misc/python/statistics/sum_of_all_ranks.py @@ -23,16 +23,16 @@ e.name, max_ranks.max_rank from - Events e + events e inner join ( select - eventId, - max(worldRank) + 1 max_rank + event_id, + max(world_rank) + 1 max_rank from - Ranks%s + ranks_%s group by - eventId - ) max_ranks on max_ranks.eventId = e.id -- Exclude inactive events + event_id + ) max_ranks on max_ranks.event_id = e.id -- Exclude inactive events where `rank` < 900 order by @@ -42,19 +42,19 @@ # Replace %s with Average or Single for different table competitors_query = """ select - personId, - worldRank, - eventId, + person_id, + world_rank, + event_id, p.name from - Ranks%s r - inner join Persons p on r.personId = p.wca_id + ranks_%s r + inner join persons p on r.person_id = p.wca_id where - eventId in ( + event_id in ( select id from - Events + events where `rank` < 900 ) @@ -80,12 +80,12 @@ ifnull( ( select - worldRank + world_rank from - Ranks%(result_type)s + ranks%(result_type)s where - eventId = '%(event_id)s' - and personId = ':WCA_ID' + event_id = '%(event_id)s' + and person_id = ':WCA_ID' ), null ) @@ -150,7 +150,7 @@ def sum_of_all_ranks(): statistics["statistics"] = [] statistics["displayMode"] = "DEFAULT" - for result_type in ["Average", "Single"]: + for result_type in ["average", "single"]: events = [] cursor.execute(events_query % result_type) # Not an sql replacement From d556eb53ec6f0d102a6c6344f04c162324066751 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 12:23:57 -0300 Subject: [PATCH 07/17] Fix sub x --- misc/python/statistics/sub_x.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/misc/python/statistics/sub_x.py b/misc/python/statistics/sub_x.py index 4ff606b8..273bf0c2 100644 --- a/misc/python/statistics/sub_x.py +++ b/misc/python/statistics/sub_x.py @@ -22,16 +22,16 @@ query_wr = """select best from - RanksSingle rs + ranks_single rs where - eventId = '%s' - and worldRank = 1 + event_id = '%s' + and world_rank = 1 limit 1""" query_results = """select - personId, - personName, - countryId, + person_id, + person_name, + country_id, best, value1, value2, @@ -39,13 +39,13 @@ value4, value5 from - Results + results where eventId = '%s' """ query_custom = """select - personName, + person_name, sum( IF( value1 > 0 @@ -73,15 +73,15 @@ 1, 0 ) - ) Solves + ) solves from - Results r + results r where - eventId = '%(event_id)s' - and personId = ':WCA_ID' + event_id = '%(event_id)s' + and person_id = ':WCA_ID' group by - personId, - personName + person_id, + person_name """ From 03200c342b1eaa4960888314f22a4ad1a834f284 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 12:25:51 -0300 Subject: [PATCH 08/17] Fix recent success --- misc/python/statistics/recent_success.py | 26 ++++++++++++------------ misc/python/statistics/sub_x.py | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/misc/python/statistics/recent_success.py b/misc/python/statistics/recent_success.py index b730b8cb..3ad163b7 100644 --- a/misc/python/statistics/recent_success.py +++ b/misc/python/statistics/recent_success.py @@ -28,8 +28,8 @@ def __init__(self, wca_id, name, country): query = """select - personId, - personName, + person_id, + person_name, r.countryId, value1, value2, @@ -37,20 +37,20 @@ def __init__(self, wca_id, name, country): value4, value5 from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competitionId = c.id where - eventId = %(event_id)s + event_id = %(event_id)s and c.start_date >= date(%(min_date)s)""" custom_query = """select - personName, + person_name, format(solves / attempts, 2) Rate, concat(solves, ' / ', attempts) Successes from ( select - personName, + person_name, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) ) solves, @@ -83,15 +83,15 @@ def __init__(self, wca_id, name, country): ) ) attempts from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competitionId = c.id where c.start_date >= date('%(min_date)s') - and personId = ':WCA_ID' - and eventId = '%(event_id)s' + and person_id = ':WCA_ID' + and event_id = '%(event_id)s' group by - personId, - personName + person_id, + person_name ) result """ diff --git a/misc/python/statistics/sub_x.py b/misc/python/statistics/sub_x.py index 273bf0c2..d094f038 100644 --- a/misc/python/statistics/sub_x.py +++ b/misc/python/statistics/sub_x.py @@ -73,7 +73,7 @@ 1, 0 ) - ) solves + ) Solves from results r where From 6df2c460b8503966cde7c1a8a6e1093af9e857ab Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 12:32:30 -0300 Subject: [PATCH 09/17] Fix other table and column name --- misc/python/statistics/5bld_before_4bld.py | 30 +++++++++---------- .../statistics/avg_competition_by_country.py | 8 ++--- ...er_of_events_per_competition_by_country.py | 8 ++--- misc/python/statistics/best_podiums.py | 24 +++++++-------- .../days_5bld_become_faster_than_4bld.py | 16 +++++----- .../statistics/longest_success_streak.py | 22 +++++++------- misc/python/statistics/ranges.py | 6 ++-- 7 files changed, 57 insertions(+), 57 deletions(-) diff --git a/misc/python/statistics/5bld_before_4bld.py b/misc/python/statistics/5bld_before_4bld.py index ec3f16ee..1a4be472 100644 --- a/misc/python/statistics/5bld_before_4bld.py +++ b/misc/python/statistics/5bld_before_4bld.py @@ -18,20 +18,20 @@ title = "Competitors who got 5BLD before 4BLD" query = """select - personId, + person_id, personName, - r.countryId, - eventId, + r.country_id, + event_id, best, c.id, c.name, c.start_date from - Results r -inner join Competitions c on - r.competitionId = c.id + results r +inner join competitions c on + r.competition_id = c.id where - eventId in ('%s', '%s') + event_id in ('%s', '%s') and best > 0 order by c.start_date""" @@ -51,22 +51,22 @@ select min(start_date) from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competition_id = c.id where - r.personId = p.id - and eventId = ':SECOND_EVENT_ID' + r.person_id = p.id + and event_id = ':SECOND_EVENT_ID' and best > 0 ), ( select min(start_date) from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competition_id = c.id where - r.personId = p.id - and eventId = ':FIRST_EVENT_ID' + r.person_id = p.id + and event_id = ':FIRST_EVENT_ID' and best > 0 ) ) days diff --git a/misc/python/statistics/avg_competition_by_country.py b/misc/python/statistics/avg_competition_by_country.py index 6f9683a5..5bd3cfaf 100644 --- a/misc/python/statistics/avg_competition_by_country.py +++ b/misc/python/statistics/avg_competition_by_country.py @@ -35,9 +35,9 @@ select count(*) / 5 from - Competitions c2 + competitions c2 where - countryId = c.id + country_id = c.id and year(c2.start_date) >= %(min_year)s and year(c2.start_date) <= %(max_year)s and results_posted_at is not null @@ -55,9 +55,9 @@ select count(*) from - Competitions c2 + competitions c2 where - c2.countryId = c.id + c2.country_id = c.id and results_posted_at is not null and year(c2.start_date) = year(current_date())-%(diff)s) m%(diff)s""" diff --git a/misc/python/statistics/avg_number_of_events_per_competition_by_country.py b/misc/python/statistics/avg_number_of_events_per_competition_by_country.py index 2bf3299f..dc9d65ad 100644 --- a/misc/python/statistics/avg_number_of_events_per_competition_by_country.py +++ b/misc/python/statistics/avg_number_of_events_per_competition_by_country.py @@ -29,17 +29,17 @@ ct.name, count(*)/ count(distinct competition_id) average from - Competitions c + competitions c inner join competition_events e on c.id = e.competition_id - inner join Countries ct on - c.countryId = ct.id + inner join countries ct on + c.country_id = ct.id where year(c.start_date) <= %(max_year)s and year(c.start_date) >= %(min_year)s and results_posted_at is not null group by - countryId) result + country_id) result order by average desc, name diff --git a/misc/python/statistics/best_podiums.py b/misc/python/statistics/best_podiums.py index efbe6100..8eefd665 100644 --- a/misc/python/statistics/best_podiums.py +++ b/misc/python/statistics/best_podiums.py @@ -19,7 +19,7 @@ query = """ select comp_id, c.name, - case when eventId = '333mbf' then (99*3 - substring(first_result, 1, 2) - substring(second_result, 1, 2) - substring(third_result, 1, 2)) else first_result + second_result + third_result end avg_sum, + case when event_id = '333mbf' then (99*3 - substring(first_result, 1, 2) - substring(second_result, 1, 2) - substring(third_result, 1, 2)) else first_result + second_result + third_result end avg_sum, first_id, first_name, first_result, second_id, second_name, @@ -28,27 +28,27 @@ third_result from ( select competitionId comp_id, - max(case when row_num=1 then personId end) first_id, - max(case when row_num=1 then personName end) first_name, + max(case when row_num=1 then person_id end) first_id, + max(case when row_num=1 then person_name end) first_name, max(case when row_num=1 then best_results end) first_result, - max(case when row_num=2 then personId end) second_id, - max(case when row_num=2 then personName end) second_name, + max(case when row_num=2 then person_id end) second_id, + max(case when row_num=2 then person_name end) second_name, max(case when row_num=2 then best_results end) second_result, - max(case when row_num=3 then personId end) third_id, - max(case when row_num=3 then personName end) third_name, + max(case when row_num=3 then person_id end) third_id, + max(case when row_num=3 then person_name end) third_name, max(case when row_num=3 then best_results end) third_result, - eventId + event_id from ( - select competitionId, personId, personName, case when eventId in ('333bf', '444bf', '555bf', '333mbf') then best else average end best_results, eventId, - row_number() over (partition by competitionId order by case when eventId in ('333bf', '444bf', '555bf', '333mbf') then best else average end) row_num + select competitionId, person_id, person_name, case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end best_results, event_id, + row_number() over (partition by competitionId order by case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) row_num from Results - where eventId = '%s' and roundTypeId in ('c', 'f') and (case when eventId in ('333bf', '444bf', '555bf', '333mbf') then best else average end) > 0 + where event_id = '%s' and roundTypeId in ('c', 'f') and (case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) > 0 ) final_podiums_without_ties group by competitionId ) podiums_pivotted inner join Competitions as c on podiums_pivotted.comp_id = c.id where third_result is not null - order by case when eventId = '333mbf' then avg_sum end desc, case when eventId != '333mbf' then convert(avg_sum, float) end + order by case when event_id = '333mbf' then avg_sum end desc, case when event_id != '333mbf' then convert(avg_sum, float) end limit 10 """ diff --git a/misc/python/statistics/days_5bld_become_faster_than_4bld.py b/misc/python/statistics/days_5bld_become_faster_than_4bld.py index 94a0a40c..a3ed17f2 100644 --- a/misc/python/statistics/days_5bld_become_faster_than_4bld.py +++ b/misc/python/statistics/days_5bld_become_faster_than_4bld.py @@ -32,18 +32,18 @@ def __init__(self, wca_id, country_id, name): query = """select - personId, - r.countryId, - personName, + person_id, + r.country_id, + person_name, best, start_date, - competitionId, + competition_id, c.name, - eventId + event_id from - Results r - inner join Competitions c on r.competitionId = c.id - inner join RoundTypes rt on r.roundTypeId = rt.id + results r + inner join competitions c on r.competition_id = c.id + inner join round_types rt on r.round_type_id = rt.id where eventId in ('%s', '%s') and best > 0 diff --git a/misc/python/statistics/longest_success_streak.py b/misc/python/statistics/longest_success_streak.py index 5fab8243..8abaec1a 100644 --- a/misc/python/statistics/longest_success_streak.py +++ b/misc/python/statistics/longest_success_streak.py @@ -31,26 +31,26 @@ def __init__(self, wca_id, name, country): query = """select - personId, - personName, - r.countryId, - competitionId, + person_id, + person_name, + r.country_id, + competition_id, value1, value2, value3, value4, value5 from - Results r -inner join Competitions c on - r.competitionId = c.id -inner join RoundTypes rt on - r.roundTypeId = rt.id + results r +inner join competitions c on + r.competition_id = c.id +inner join round_types rt on + r.round_type_id = rt.id where - eventId = %(event_id)s + event_id = %(event_id)s order by start_date, - competitionId, + competition_id, rt.`rank` """ diff --git a/misc/python/statistics/ranges.py b/misc/python/statistics/ranges.py index b02f3a78..dc00e84f 100644 --- a/misc/python/statistics/ranges.py +++ b/misc/python/statistics/ranges.py @@ -31,9 +31,9 @@ def __init__(self, wca_id, name, country) -> None: title = "Ranges" query = """select - personId, - personName, - countryId, + person_id, + person_name, + country_id, value1, value2, value3, From fdc6e02daa66719b3d9ddb2b3b799ed154c7aba6 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 13:50:07 -0300 Subject: [PATCH 10/17] Remove query util because load resource util makes it clickable from IDE --- .../impl/BestEverRanksRepositoryJdbcImpl.java | 89 ++++++++++--------- .../jdbc/impl/EventRepositoryJdbcImpl.java | 34 +++---- .../RecordEvolutionRepositoryJdbcImpl.java | 46 ++++++---- .../jdbc/impl/SumOfRanksRepositoryImpl.java | 82 +++++++++-------- .../statistics/util/StatisticsUtil.java | 9 -- 5 files changed, 135 insertions(+), 125 deletions(-) delete mode 100644 server/src/main/java/org/worldcubeassociation/statistics/util/StatisticsUtil.java diff --git a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/BestEverRanksRepositoryJdbcImpl.java b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/BestEverRanksRepositoryJdbcImpl.java index c81a3644..7b77942d 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/BestEverRanksRepositoryJdbcImpl.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/BestEverRanksRepositoryJdbcImpl.java @@ -1,5 +1,8 @@ package org.worldcubeassociation.statistics.repository.jdbc.impl; +import java.time.LocalDate; +import java.util.HashMap; +import java.util.List; import org.simpleflatmapper.jdbc.spring.JdbcTemplateMapperFactory; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; @@ -12,23 +15,20 @@ import org.worldcubeassociation.statistics.model.BestEverRank; import org.worldcubeassociation.statistics.repository.jdbc.BestEverRanksRepositoryJdbc; import org.worldcubeassociation.statistics.util.JsonUtil; -import org.worldcubeassociation.statistics.util.StatisticsUtil; - -import java.time.LocalDate; -import java.util.HashMap; -import java.util.List; +import org.worldcubeassociation.statistics.util.LoadResourceUtil; @Repository public class BestEverRanksRepositoryJdbcImpl implements BestEverRanksRepositoryJdbc { private final NamedParameterJdbcTemplate namedJdbcTemplate; - private JsonUtil jsonUtil; + private final JsonUtil jsonUtil; private static final String EVENT_ID = "EVENT_ID"; private static final String DATE = "DATE"; private static final String COMPETITION = "COMPETITION"; - public BestEverRanksRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTemplate, JsonUtil jsonUtil) { + public BestEverRanksRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTemplate, + JsonUtil jsonUtil) { this.namedJdbcTemplate = namedJdbcTemplate; this.jsonUtil = jsonUtil; } @@ -36,62 +36,65 @@ public BestEverRanksRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTempl @Override public List getDates(String eventId) { return namedJdbcTemplate - .query( - StatisticsUtil.getQuery("besteverranks/getDates"), - new MapSqlParameterSource().addValue(EVENT_ID, eventId), - JdbcTemplateMapperFactory - .newInstance() - .newRowMapper(LocalDate.class) - ); + .query( + LoadResourceUtil.getResource("db/query/besteverranks/getDates.sql"), + new MapSqlParameterSource().addValue(EVENT_ID, eventId), + JdbcTemplateMapperFactory + .newInstance() + .newRowMapper(LocalDate.class) + ); } @Override public List getTodayCompetitors(LocalDate date, String eventId) { return namedJdbcTemplate - .query( - StatisticsUtil.getQuery("besteverranks/getTodayCompetitors"), - new MapSqlParameterSource().addValue(EVENT_ID, eventId).addValue(DATE, date), - (rs, rowNum) -> { - String wcaId = rs.getString(CompetitorWorldDTO.Fields.WCA_ID.name()); - String continent = rs.getString(CompetitorContinentDTO.Fields.CONTINENT.name()); - String country = rs.getString(CompetitorCountryDTO.Fields.COUNTRY.name()); - Integer single = rs.getInt(CompetitorWorldDTO.Fields.SINGLE.name()); - Integer average = rs.getInt(CompetitorWorldDTO.Fields.AVERAGE.name()); - String competition = rs.getString(COMPETITION); + .query( + LoadResourceUtil.getResource("db/query/besteverranks/getTodayCompetitors.sql"), + new MapSqlParameterSource().addValue(EVENT_ID, eventId).addValue(DATE, date), + (rs, rowNum) -> { + String wcaId = rs.getString(CompetitorWorldDTO.Fields.WCA_ID.name()); + String continent = rs.getString(CompetitorContinentDTO.Fields.CONTINENT.name()); + String country = rs.getString(CompetitorCountryDTO.Fields.COUNTRY.name()); + Integer single = rs.getInt(CompetitorWorldDTO.Fields.SINGLE.name()); + Integer average = rs.getInt(CompetitorWorldDTO.Fields.AVERAGE.name()); + String competition = rs.getString(COMPETITION); - CompetitorCountryDTO competitor = new CompetitorCountryDTO(); - competitor.setWcaId(wcaId); - competitor.setContinent(continent); - competitor.setCountry(country); - competitor.setSingle(new ResultsDTO(single, competition, date)); - competitor.setAverage(new ResultsDTO(average == 0 ? null : average, competition, date)); + CompetitorCountryDTO competitor = new CompetitorCountryDTO(); + competitor.setWcaId(wcaId); + competitor.setContinent(continent); + competitor.setCountry(country); + competitor.setSingle(new ResultsDTO(single, competition, date)); + competitor.setAverage( + new ResultsDTO(average == 0 ? null : average, competition, date)); - return competitor; - } - ); + return competitor; + } + ); } @Override @Transactional public Integer upsert(List bestEverRanks, String eventId) { MapSqlParameterSource[] paramsList = bestEverRanks - .stream() - .map(ber -> new MapSqlParameterSource() - .addValue(BestEverRank.Fields.PERSON_ID.name(), ber.getPersonId()) - .addValue(BestEverRank.Fields.EVENT_RANKS.name(), jsonUtil.convertToJsonArray(ber.getEventRanks())) - ) - .toArray(MapSqlParameterSource[]::new); + .stream() + .map(ber -> new MapSqlParameterSource() + .addValue(BestEverRank.Fields.PERSON_ID.name(), ber.getPersonId()) + .addValue(BestEverRank.Fields.EVENT_RANKS.name(), + jsonUtil.convertToJsonArray(ber.getEventRanks())) + ) + .toArray(MapSqlParameterSource[]::new); return namedJdbcTemplate - .batchUpdate( - StatisticsUtil.getQuery("besteverranks/upsert"), - paramsList).length; + .batchUpdate( + LoadResourceUtil.getResource("db/query/besteverranks/upsert.sql"), + paramsList).length; } @Override public Integer removeAll() { return namedJdbcTemplate - .update(StatisticsUtil.getQuery("besteverranks/removeAll"), new HashMap<>()); + .update(LoadResourceUtil.getResource("db/query/besteverranks/removeAll.sql"), + new HashMap<>()); } } diff --git a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/EventRepositoryJdbcImpl.java b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/EventRepositoryJdbcImpl.java index 563ef240..221e25f3 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/EventRepositoryJdbcImpl.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/EventRepositoryJdbcImpl.java @@ -1,40 +1,40 @@ package org.worldcubeassociation.statistics.repository.jdbc.impl; +import java.util.List; import org.simpleflatmapper.jdbc.spring.JdbcTemplateMapperFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.worldcubeassociation.statistics.model.Event; import org.worldcubeassociation.statistics.repository.jdbc.EventRepositoryJdbc; -import org.worldcubeassociation.statistics.util.StatisticsUtil; - -import java.util.List; +import org.worldcubeassociation.statistics.util.LoadResourceUtil; public class EventRepositoryJdbcImpl implements EventRepositoryJdbc { + @Autowired private NamedParameterJdbcTemplate namedJdbcTemplate; @Override public List findAllById(List ids) { return namedJdbcTemplate - .query( - StatisticsUtil.getQuery("event/findAllById"), - new MapSqlParameterSource().addValue(Event.Fields.ID.name(), ids), - JdbcTemplateMapperFactory - .newInstance() - .newRowMapper(Event.class) - ); + .query( + LoadResourceUtil.getResource("db/query/event/findAllById.sql"), + new MapSqlParameterSource().addValue(Event.Fields.ID.name(), ids), + JdbcTemplateMapperFactory + .newInstance() + .newRowMapper(Event.class) + ); } @Override public List findAll() { return namedJdbcTemplate - .query( - StatisticsUtil.getQuery("event/findAll"), - new MapSqlParameterSource(), - JdbcTemplateMapperFactory - .newInstance() - .newRowMapper(Event.class) - ); + .query( + LoadResourceUtil.getResource("db/query/event/findAll.sql"), + new MapSqlParameterSource(), + JdbcTemplateMapperFactory + .newInstance() + .newRowMapper(Event.class) + ); } } diff --git a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/RecordEvolutionRepositoryJdbcImpl.java b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/RecordEvolutionRepositoryJdbcImpl.java index fe032b70..bac4917d 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/RecordEvolutionRepositoryJdbcImpl.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/RecordEvolutionRepositoryJdbcImpl.java @@ -1,5 +1,10 @@ package org.worldcubeassociation.statistics.repository.jdbc.impl; +import java.time.LocalDate; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.simpleflatmapper.jdbc.spring.JdbcTemplateMapperFactory; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.springframework.stereotype.Repository; @@ -9,22 +14,18 @@ import org.worldcubeassociation.statistics.model.RecordEvolution; import org.worldcubeassociation.statistics.repository.jdbc.RecordEvolutionRepositoryJdbc; import org.worldcubeassociation.statistics.util.JsonUtil; -import org.worldcubeassociation.statistics.util.StatisticsUtil; -import org.simpleflatmapper.jdbc.spring.JdbcTemplateMapperFactory; - -import java.time.LocalDate; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import org.worldcubeassociation.statistics.util.LoadResourceUtil; @Repository public class RecordEvolutionRepositoryJdbcImpl implements RecordEvolutionRepositoryJdbc { + private final NamedParameterJdbcTemplate namedJdbcTemplate; private final JsonUtil jsonUtil; private static final List BEST = List.of(0, 9, 99); - public RecordEvolutionRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTemplate, JsonUtil jsonUtil) { + public RecordEvolutionRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTemplate, + JsonUtil jsonUtil) { this.namedJdbcTemplate = namedJdbcTemplate; this.jsonUtil = jsonUtil; } @@ -32,27 +33,33 @@ public RecordEvolutionRepositoryJdbcImpl(NamedParameterJdbcTemplate namedJdbcTem @Override @Transactional public void upsert(RegionDTO region, String eventId, LocalDate today) { - MapSqlParameterSource paramsList = new MapSqlParameterSource().addValue(RecordEvolution.Fields.EVENT_ID.name(), eventId).addValue(RecordEvolution.Fields.EVOLUTION.name(), jsonUtil.convertToJson(workData(region, today))); + MapSqlParameterSource paramsList = new MapSqlParameterSource().addValue( + RecordEvolution.Fields.EVENT_ID.name(), eventId) + .addValue(RecordEvolution.Fields.EVOLUTION.name(), + jsonUtil.convertToJson(workData(region, today))); - namedJdbcTemplate.update(StatisticsUtil.getQuery("recordevolution/upsert"), paramsList); + namedJdbcTemplate.update( + LoadResourceUtil.getResource("db/query/recordevolution/upsert.sql"), paramsList); } @Override public int removeAll() { - return namedJdbcTemplate.update(StatisticsUtil.getQuery("recordevolution/removeAll"), new HashMap<>()); + return namedJdbcTemplate.update( + LoadResourceUtil.getResource("db/query/recordevolution/removeAll.sql"), + new HashMap<>()); } @Override public List getAvailableEvents() { return namedJdbcTemplate - .query( - StatisticsUtil.getQuery("recordevolution/getAvailableEvents"), - new MapSqlParameterSource(), - JdbcTemplateMapperFactory - .newInstance() - .newRowMapper(EventDto.class) - ); + .query( + LoadResourceUtil.getResource("db/query/recordevolution/getAvailableEvents.sql"), + new MapSqlParameterSource(), + JdbcTemplateMapperFactory + .newInstance() + .newRowMapper(EventDto.class) + ); } private Map workData(RegionDTO region, LocalDate today) { @@ -65,7 +72,8 @@ private Map workData(RegionDTO region, LocalDate today) { return result; } - private void maybeAddValue(int index, List results, Map result, String type) { + private void maybeAddValue(int index, List results, Map result, + String type) { if (results.size() > index) { result.put(type + (index + 1), results.get(index)); } diff --git a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/SumOfRanksRepositoryImpl.java b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/SumOfRanksRepositoryImpl.java index 05081772..113ebc66 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/SumOfRanksRepositoryImpl.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/repository/jdbc/impl/SumOfRanksRepositoryImpl.java @@ -1,6 +1,10 @@ package org.worldcubeassociation.statistics.repository.jdbc.impl; import com.fasterxml.jackson.databind.ObjectMapper; +import java.sql.ResultSet; +import java.util.Arrays; +import java.util.List; +import java.util.Optional; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.simpleflatmapper.jdbc.spring.JdbcTemplateMapperFactory; @@ -15,24 +19,22 @@ import org.worldcubeassociation.statistics.dto.sumofranks.SumOfRanksMetaDto; import org.worldcubeassociation.statistics.dto.sumofranks.SumOfRanksRegionGroupDto; import org.worldcubeassociation.statistics.repository.jdbc.SumOfRanksRepository; -import org.worldcubeassociation.statistics.util.StatisticsUtil; - -import java.sql.ResultSet; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; +import org.worldcubeassociation.statistics.util.LoadResourceUtil; @Slf4j @Repository @AllArgsConstructor public class SumOfRanksRepositoryImpl implements SumOfRanksRepository { + private final JdbcTemplate jdbcTemplate; private final NamedParameterJdbcTemplate namedJdbcTemplate; private final ObjectMapper objectMapper; private int baseRank(String singleQuery, String avgQuery) { - int single = jdbcTemplate.update(StatisticsUtil.getQuery(String.format("sumofranks/%s", singleQuery))); - int avg = jdbcTemplate.update(StatisticsUtil.getQuery(String.format("sumofranks/%s", avgQuery))); + int single = jdbcTemplate.update( + LoadResourceUtil.getResource(String.format("db/query/sumofranks/%s.sql", singleQuery))); + int avg = jdbcTemplate.update( + LoadResourceUtil.getResource(String.format("db/query/sumofranks/%s.sql", avgQuery))); return single + avg; } @@ -61,29 +63,33 @@ public int generateCountryRank() { @Override public List list(String resultType, String regionType, String region, int page, - int pageSize) { - return namedJdbcTemplate.query(StatisticsUtil.getQuery("sumofranks/getSumOfRanks"), - new MapSqlParameterSource().addValue("REGION_TYPE", regionType).addValue("REGION", region) - .addValue("RESULT_TYPE", resultType).addValue("PAGE_SIZE", pageSize) - .addValue("OFFSET", page * pageSize), JdbcTemplateMapperFactory.newInstance() - .addColumnProperty("events", GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( - objectMapper.readValue(((ResultSet) rs).getString(i), SumOfRankEventDto[].class)))) - .newRowMapper(SumOfRanksDto.class)); + int pageSize) { + return namedJdbcTemplate.query(LoadResourceUtil.getResource("db/query/sumofranks/getSumOfRanks.sql"), + new MapSqlParameterSource().addValue("REGION_TYPE", regionType) + .addValue("REGION", region) + .addValue("RESULT_TYPE", resultType).addValue("PAGE_SIZE", pageSize) + .addValue("OFFSET", page * pageSize), JdbcTemplateMapperFactory.newInstance() + .addColumnProperty("events", + GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( + objectMapper.readValue(((ResultSet) rs).getString(i), + SumOfRankEventDto[].class)))) + .newRowMapper(SumOfRanksDto.class)); } @Override public List getResultTypes() { return jdbcTemplate - .query(StatisticsUtil.getQuery("sumofranks/getMeta"), JdbcTemplateMapperFactory.newInstance() - .addColumnProperty("regionGroups", - GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( - objectMapper.readValue(((ResultSet) rs).getString(i), - SumOfRanksRegionGroupDto[].class)))) - .addColumnProperty("availableEvents", - GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( - objectMapper.readValue(((ResultSet) rs).getString(i), - EventDto[].class)))) - .newRowMapper(SumOfRanksMetaDto.class)); + .query(LoadResourceUtil.getResource("db/query/sumofranks/getMeta.sql"), + JdbcTemplateMapperFactory.newInstance() + .addColumnProperty("regionGroups", + GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( + objectMapper.readValue(((ResultSet) rs).getString(i), + SumOfRanksRegionGroupDto[].class)))) + .addColumnProperty("availableEvents", + GetterFactoryProperty.forType(List.class, (rs, i) -> Arrays.asList( + objectMapper.readValue(((ResultSet) rs).getString(i), + EventDto[].class)))) + .newRowMapper(SumOfRanksMetaDto.class)); } @Override @@ -93,24 +99,26 @@ public int deleteAllMeta() { @Override public int insertMeta() { - return jdbcTemplate.update(StatisticsUtil.getQuery("sumofranks/insertMeta")); + return jdbcTemplate.update(LoadResourceUtil.getResource("db/query/sumofranks/insertMeta.sql")); } @Override public void updateRanks() { - jdbcTemplate.update(StatisticsUtil.getQuery("sumofranks/updateRank")); + jdbcTemplate.update(LoadResourceUtil.getResource("db/query/sumofranks/updateRank.sql")); } @Override - public Optional getWcaIdPage(String resultType, String regionType, String region, int pageSize, - String wcaId) { - List list = namedJdbcTemplate.queryForList(StatisticsUtil.getQuery("sumofranks/getWcaIdPage"), - new MapSqlParameterSource() - .addValue("RESULT_TYPE", resultType) - .addValue("REGION_TYPE", regionType) - .addValue("REGION", region) - .addValue("PAGE_SIZE", pageSize) - .addValue("WCA_ID", wcaId), Integer.class); + public Optional getWcaIdPage(String resultType, String regionType, String region, + int pageSize, + String wcaId) { + List list = namedJdbcTemplate.queryForList( + LoadResourceUtil.getResource("db/query/sumofranks/getWcaIdPage.sql"), + new MapSqlParameterSource() + .addValue("RESULT_TYPE", resultType) + .addValue("REGION_TYPE", regionType) + .addValue("REGION", region) + .addValue("PAGE_SIZE", pageSize) + .addValue("WCA_ID", wcaId), Integer.class); return Optional.ofNullable(list.size() != 1 ? null : list.get(0)); } diff --git a/server/src/main/java/org/worldcubeassociation/statistics/util/StatisticsUtil.java b/server/src/main/java/org/worldcubeassociation/statistics/util/StatisticsUtil.java deleted file mode 100644 index 0dc8de30..00000000 --- a/server/src/main/java/org/worldcubeassociation/statistics/util/StatisticsUtil.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.worldcubeassociation.statistics.util; - -public class StatisticsUtil { - private static final String QUERY_PATH = "db/query/%s.sql"; - - public static String getQuery(String queryName) { - return LoadResourceUtil.getResource(String.format(QUERY_PATH, queryName)); - } -} From 8834deae614deaac7540b700712dc22ac80ef7bf Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 14:00:25 -0300 Subject: [PATCH 11/17] Update images in local docker compose --- docker-compose.yml | 6 ++++-- server/build.gradle.kts | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0d2f412f..ce80881a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,8 @@ version: "3.8" services: mysql: - image: mysql:8.0 + image: mysql:8.4 + container_name: statistics_mysql environment: MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_DATABASE: wca_development @@ -12,7 +13,8 @@ services: - mysql-data:/var/lib/mysql db_restore: - image: ubuntu:20.04 + image: ubuntu:24.04 + container_name: statistics_db_restore depends_on: - mysql entrypoint: > diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 105529e8..0a4ea7e0 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -44,17 +44,16 @@ dependencies { implementation("io.hypersistence:hypersistence-utils-hibernate-63:${hypersistenceUtilsVersion}") implementation("org.jetbrains.kotlin:kotlin-reflect") - testImplementation("org.springframework.boot:spring-boot-starter-test") - testImplementation("org.jetbrains.kotlin:kotlin-test-junit5") - testRuntimeOnly("org.junit.platform:junit-platform-launcher") compileOnly("org.projectlombok:lombok:$lombokVersion") annotationProcessor("org.projectlombok:lombok:$lombokVersion") - testCompileOnly("org.projectlombok:lombok:$lombokVersion") testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion") testImplementation("io.rest-assured:rest-assured:${restAssuredVersion}") + testImplementation("org.springframework.boot:spring-boot-starter-test") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit5") + testRuntimeOnly("org.junit.platform:junit-platform-launcher") } kotlin { From b412e4d17aca59c11eddf66c5b6e46f8099fdd4d Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 14:34:03 -0300 Subject: [PATCH 12/17] Update docker compose images --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ce80881a..f16ff0a8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.8" services: - mysql: + statistics_mysql: image: mysql:8.4 container_name: statistics_mysql environment: @@ -12,15 +12,17 @@ services: volumes: - mysql-data:/var/lib/mysql - db_restore: + statistics_db_restore: image: ubuntu:24.04 container_name: statistics_db_restore depends_on: - - mysql + - statistics_mysql entrypoint: > sh -c " - apt update && apt install curl unzip mysql-client wget -y && - result=$(mysql -h mysql -sN -u root -e 'use wca_development; select datediff(now(), max(results_posted_at)) from Competitions;' || echo 999) && + apt-get update && \ + apt-get install curl unzip mysql-client wget -y && \ + mysql -h statistics_mysql -sN -u root -e 'create database if not exists wca_development;' && \ + result=$(mysql -h statistics_mysql -sN -u root -e 'use wca_development; select datediff(now(), max(results_posted_at)) from competitions;' || echo 999) && echo 'Days since last update: ' $result && if [ -n \"$result\" ] && [ $result -lt 7 ]; then echo 'Database is already up to date, skipping restoration.' @@ -33,7 +35,7 @@ services: rm -rf wca-developer-database-dump.sql && unzip wca-developer-database-dump.zip && echo 'Restoring WCA database. This also may take a while...' && - mysql -h mysql -u root -e 'drop database if exists wca_development; create database wca_development; use wca_development; source wca-developer-database-dump.sql;' && + mysql -h statistics_mysql -u root -e 'drop database if exists wca_development; create database wca_development; use wca_development; source wca-developer-database-dump.sql;' && echo 'Restoration complete!' " volumes: From b676b88917f8df6ed43070545bffffa4f1215af0 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 14:44:44 -0300 Subject: [PATCH 13/17] Fix appearances 333 top 100 --- .../apperances-333-top-100.yml | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/server/src/main/resources/statistics-request-list/apperances-333-top-100.yml b/server/src/main/resources/statistics-request-list/apperances-333-top-100.yml index ce4eeef0..5502136f 100644 --- a/server/src/main/resources/statistics-request-list/apperances-333-top-100.yml +++ b/server/src/main/resources/statistics-request-list/apperances-333-top-100.yml @@ -5,20 +5,20 @@ queries: positionTieBreakerIndex: 2 sqlQuery: |- select - wca_statistics_person_link_format(personId, personName) Name, + wca_statistics_person_link_format(person_id, person_name) Name, Country, count(*) Apperances from ( select - personName, - personId, + person_name, + person_id, average, - countryId Country + country_id Country from - Results r + results r where - eventId = '333' + event_id = '333' and average > 0 order by average @@ -26,8 +26,8 @@ queries: 100 ) r group by - personName, - personId, + person_name, + person_id, Country order by Apperances desc @@ -37,7 +37,7 @@ queries: positionTieBreakerIndex: 2 sqlQuery: |- select - wca_statistics_person_link_format(personId, personName) Name, + wca_statistics_person_link_format(person_id, person_name) Name, Country, count(*) Apperances from @@ -47,62 +47,62 @@ queries: from ( select - personName, - personId, + person_name, + person_id, value1 result, - countryId Country + country_id Country from - Results + results where - eventId = '333' + event_id = '333' and value1 > 0 union all select - personName, - personId, + person_name, + person_id, value2 result, - countryId Country + country_id Country from - Results + results where - eventId = '333' + event_id = '333' and value2 > 0 union all select - personName, - personId, + person_name, + person_id, value3 result, - countryId Country + country_id Country from - Results + results where - eventId = '333' + event_id = '333' and value3 > 0 union all select - personName, - personId, + person_name, + person_id, value4 result, - countryId Country + country_id Country from - Results + results where - eventId = '333' + event_id = '333' and value4 > 0 union all select - personName, - personId, + person_name, + person_id, value5 result, - countryId Country + country_id Country from - Results + results where - eventId = '333' + event_id = '333' and value5 > 0 ) r order by @@ -111,8 +111,8 @@ queries: 100 ) final group by - personName, - personId, + person_name, + person_id, Country order by Apperances desc From 6e5fa127da2abcebec5f786e88e09c890d934134 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 14:58:31 -0300 Subject: [PATCH 14/17] Fix event count by country by competition --- .../repository/StatisticsRepository.java | 2 +- ...-event-count-by-country-by-competition.yml | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/server/src/main/java/org/worldcubeassociation/statistics/repository/StatisticsRepository.java b/server/src/main/java/org/worldcubeassociation/statistics/repository/StatisticsRepository.java index 62b31121..c7e245dd 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/repository/StatisticsRepository.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/repository/StatisticsRepository.java @@ -15,6 +15,6 @@ public interface StatisticsRepository extends JpaRepository List list(String term); // Actually, it is just an approximation - @Query(value = "select max(results_posted_at) from Competitions", nativeQuery = true) + @Query(value = "select max(results_posted_at) from competitions", nativeQuery = true) LocalDateTime getExportDate(); } diff --git a/server/src/main/resources/statistics-request-list/average-event-count-by-country-by-competition.yml b/server/src/main/resources/statistics-request-list/average-event-count-by-country-by-competition.yml index bb5d3a84..6b99b6ea 100644 --- a/server/src/main/resources/statistics-request-list/average-event-count-by-country-by-competition.yml +++ b/server/src/main/resources/statistics-request-list/average-event-count-by-country-by-competition.yml @@ -5,29 +5,29 @@ queries: - Competitors - Country sqlQuery: |- - select wca_statistics_competition_link_format(competition.id, competition.cellName), + select wca_statistics_competition_link_format(competition.id, competition.cell_name), format(AVG(event_count), 2) average_event_count, COUNT(*) competitors, country.name country from ( - select competitionId, - personId, - COUNT(DISTINCT eventId) event_count - from Results - group BY competitionId, - personId + select competition_id, + person_id, + COUNT(DISTINCT event_id) event_count + from results + group BY competition_id, + person_id ) as competitors_with_event_count - join Competitions competition ON competition.id = competitionId - join Countries country ON country.id = competition.countryId - group by competitionId + join competitions competition ON competition.id = competition_id + join countries country ON country.id = competition.country_id + group by competition_id order by convert(average_event_count, FLOAT4) DESC limit 100 sqlQueryCustom: | - select competitionId, - count(distinct eventId) qt - from Results r - where personId = ':WCA_ID' - group by competitionId + select competition_id, + count(distinct event_id) qt + from results r + where person_id = ':WCA_ID' + group by competition_id order by qt desc title: Average event count by competition by country explanation: In other words, average number of events competitors participated in. From 5664508b6e50c37cb3c014c41b9e713dc088eabf Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 16:25:42 -0300 Subject: [PATCH 15/17] Fix queries in python folder --- misc/python/statistics/5bld_before_4bld.py | 2 +- .../statistics/avg_competition_by_country.py | 2 +- misc/python/statistics/best_podiums.py | 14 +++++++------- .../days_5bld_become_faster_than_4bld.py | 5 ++--- misc/python/statistics/longest_success_streak.py | 4 +--- misc/python/statistics/ranges.py | 4 ++-- misc/python/statistics/recent_success.py | 6 +++--- misc/python/statistics/sub_x.py | 2 +- misc/python/util/event_util.py | 2 +- 9 files changed, 19 insertions(+), 22 deletions(-) diff --git a/misc/python/statistics/5bld_before_4bld.py b/misc/python/statistics/5bld_before_4bld.py index 1a4be472..0689d903 100644 --- a/misc/python/statistics/5bld_before_4bld.py +++ b/misc/python/statistics/5bld_before_4bld.py @@ -19,7 +19,7 @@ query = """select person_id, - personName, + person_name, r.country_id, event_id, best, diff --git a/misc/python/statistics/avg_competition_by_country.py b/misc/python/statistics/avg_competition_by_country.py index 5bd3cfaf..1ea42ffe 100644 --- a/misc/python/statistics/avg_competition_by_country.py +++ b/misc/python/statistics/avg_competition_by_country.py @@ -43,7 +43,7 @@ and results_posted_at is not null ) average,%(sub_queries)s from - Countries c + countries c ) result where average > 0 diff --git a/misc/python/statistics/best_podiums.py b/misc/python/statistics/best_podiums.py index 8eefd665..731e75a0 100644 --- a/misc/python/statistics/best_podiums.py +++ b/misc/python/statistics/best_podiums.py @@ -27,7 +27,7 @@ third_id, third_name, third_result from ( - select competitionId comp_id, + select competition_id comp_id, max(case when row_num=1 then person_id end) first_id, max(case when row_num=1 then person_name end) first_name, max(case when row_num=1 then best_results end) first_result, @@ -39,14 +39,14 @@ max(case when row_num=3 then best_results end) third_result, event_id from ( - select competitionId, person_id, person_name, case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end best_results, event_id, - row_number() over (partition by competitionId order by case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) row_num - from Results - where event_id = '%s' and roundTypeId in ('c', 'f') and (case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) > 0 + select competition_id, person_id, person_name, case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end best_results, event_id, + row_number() over (partition by competition_id order by case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) row_num + from results + where event_id = '%s' and round_type_id in ('c', 'f') and (case when event_id in ('333bf', '444bf', '555bf', '333mbf') then best else average end) > 0 ) final_podiums_without_ties - group by competitionId + group by competition_id ) podiums_pivotted - inner join Competitions as c on podiums_pivotted.comp_id = c.id + inner join competitions as c on podiums_pivotted.comp_id = c.id where third_result is not null order by case when event_id = '333mbf' then avg_sum end desc, case when event_id != '333mbf' then convert(avg_sum, float) end limit 10 diff --git a/misc/python/statistics/days_5bld_become_faster_than_4bld.py b/misc/python/statistics/days_5bld_become_faster_than_4bld.py index a3ed17f2..ea2cbffd 100644 --- a/misc/python/statistics/days_5bld_become_faster_than_4bld.py +++ b/misc/python/statistics/days_5bld_become_faster_than_4bld.py @@ -43,13 +43,12 @@ def __init__(self, wca_id, country_id, name): from results r inner join competitions c on r.competition_id = c.id - inner join round_types rt on r.round_type_id = rt.id where - eventId in ('%s', '%s') + event_id in ('%s', '%s') and best > 0 order by c.start_date, - rt.`rank`""" + round_type_id""" def compare_results(ev1, ev2): diff --git a/misc/python/statistics/longest_success_streak.py b/misc/python/statistics/longest_success_streak.py index 8abaec1a..7e99a041 100644 --- a/misc/python/statistics/longest_success_streak.py +++ b/misc/python/statistics/longest_success_streak.py @@ -44,14 +44,12 @@ def __init__(self, wca_id, name, country): results r inner join competitions c on r.competition_id = c.id -inner join round_types rt on - r.round_type_id = rt.id where event_id = %(event_id)s order by start_date, competition_id, - rt.`rank` + round_type_id """ diff --git a/misc/python/statistics/ranges.py b/misc/python/statistics/ranges.py index dc00e84f..b23d3f53 100644 --- a/misc/python/statistics/ranges.py +++ b/misc/python/statistics/ranges.py @@ -40,9 +40,9 @@ def __init__(self, wca_id, name, country) -> None: value4, value5 from - Results + results where - eventId = '%s' + event_id = '%s' """ diff --git a/misc/python/statistics/recent_success.py b/misc/python/statistics/recent_success.py index 3ad163b7..15806c63 100644 --- a/misc/python/statistics/recent_success.py +++ b/misc/python/statistics/recent_success.py @@ -30,7 +30,7 @@ def __init__(self, wca_id, name, country): query = """select person_id, person_name, - r.countryId, + r.country_id, value1, value2, value3, @@ -38,7 +38,7 @@ def __init__(self, wca_id, name, country): value5 from results r - inner join competitions c on r.competitionId = c.id + inner join competitions c on r.competition_id = c.id where event_id = %(event_id)s and c.start_date >= date(%(min_date)s)""" @@ -84,7 +84,7 @@ def __init__(self, wca_id, name, country): ) attempts from results r - inner join competitions c on r.competitionId = c.id + inner join competitions c on r.competition_id = c.id where c.start_date >= date('%(min_date)s') and person_id = ':WCA_ID' diff --git a/misc/python/statistics/sub_x.py b/misc/python/statistics/sub_x.py index d094f038..d5cc92a6 100644 --- a/misc/python/statistics/sub_x.py +++ b/misc/python/statistics/sub_x.py @@ -41,7 +41,7 @@ from results where - eventId = '%s' + event_id = '%s' """ query_custom = """select diff --git a/misc/python/util/event_util.py b/misc/python/util/event_util.py index d4323acf..749ebfd9 100644 --- a/misc/python/util/event_util.py +++ b/misc/python/util/event_util.py @@ -9,7 +9,7 @@ id, name from - Events e + events e where -- Exclude inactive `rank` < 900 From 0dee954e9f0d4e63b36c2f0280945952b82d1f5a Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 16:35:55 -0300 Subject: [PATCH 16/17] Fix other columns and table names --- .../service/impl/StatisticsServiceImpl.java | 4 +- server/src/main/resources/application.yaml | 2 +- .../best-counting-result.yml | 46 ++--- .../best-first-average.yml | 19 +- .../best-first-single.yml | 17 +- .../best-medal-collection.yml | 46 ++--- .../best-potential-fmc-mean.yml | 30 ++-- .../best-result-off-podium.yml | 32 ++-- .../best-worst-result.yml | 50 +++--- .../most-competitions.yml | 46 ++--- .../most-countries.yml | 68 ++++---- .../statistics-request-list/most-persons.yml | 40 ++--- ...es-in-one-competition-year-or-lifetime.yml | 78 ++++----- .../oldest-standing-records.yml | 162 +++++++++--------- .../statistics-request-list/sum-of-ranks.yml | 24 +-- .../world-records-in-most-events.yml | 162 +++++++++--------- 16 files changed, 412 insertions(+), 414 deletions(-) diff --git a/server/src/main/java/org/worldcubeassociation/statistics/service/impl/StatisticsServiceImpl.java b/server/src/main/java/org/worldcubeassociation/statistics/service/impl/StatisticsServiceImpl.java index 24e6d73d..90818ae9 100644 --- a/server/src/main/java/org/worldcubeassociation/statistics/service/impl/StatisticsServiceImpl.java +++ b/server/src/main/java/org/worldcubeassociation/statistics/service/impl/StatisticsServiceImpl.java @@ -23,7 +23,6 @@ import org.springframework.core.io.support.ResourcePatternUtils; import org.springframework.data.util.Pair; import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; import org.worldcubeassociation.statistics.dto.ControlItemDTO; import org.worldcubeassociation.statistics.dto.DatabaseQueryBaseDTO; @@ -196,7 +195,7 @@ private void resourcesToStatistics(List resources) throws IOException } @Override - @Transactional(isolation = Isolation.READ_UNCOMMITTED) + @Transactional(readOnly = true) public StatisticsListDTO list(String term) { /* It would be better if we could write a query to retrieve the items ordered already, but mysql does not support it @@ -248,6 +247,7 @@ public StatisticsListDTO list(String term) { } @Override + @Transactional(readOnly = true) public StatisticsResponseDTO getStatistic(String path) { var cache = CACHE.get(path); if (cache != null && cache.getFirst().plusHours(CACHING_TIME) diff --git a/server/src/main/resources/application.yaml b/server/src/main/resources/application.yaml index 8733ec0d..a6125f16 100644 --- a/server/src/main/resources/application.yaml +++ b/server/src/main/resources/application.yaml @@ -22,4 +22,4 @@ management: service: authorization: token-valid-for: 120 # 2 hours - seconds-to-timeout: 120 # 2 minutes \ No newline at end of file + seconds-to-timeout: 120 # 2 minutes diff --git a/server/src/main/resources/statistics-request-list/best-counting-result.yml b/server/src/main/resources/statistics-request-list/best-counting-result.yml index 9b9443ef..326ca6ef 100644 --- a/server/src/main/resources/statistics-request-list/best-counting-result.yml +++ b/server/src/main/resources/statistics-request-list/best-counting-result.yml @@ -12,57 +12,57 @@ queries: id, value1 value from - Results r + results r where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' union all select id, value2 value from - Results r + results r where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' union all select id, value3 value from - Results r + results r where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' union all select id, value4 value from - Results r + results r where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' union all select id, value5 value from - Results r + results r where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' ), ordered_results as ( select - r.eventId, - r.personId, - r.personName, - r.competitionId, + r.event_id, + r.person_id, + r.person_name, + r.competition_id, r.id, value, ROW_NUMBER() over ( @@ -72,17 +72,17 @@ queries: value ) r_order from - Results r + results r inner join id_results ir on r.id = ir.id where average > 0 - and r.formatId = 'a' + and r.format_id = 'a' ), end_ranks as ( select *, RANK() over ( - partition by eventId + partition by event_id order by value ) end_rank @@ -92,18 +92,18 @@ queries: r_order = 2 and value > 0 order by - eventId, + event_id, value ) select e.name key_name, - wca_statistics_person_link_format(personId, personName) person, - wca_statistics_competition_link_format(c.id, c.cellName) competition, - wca_statistics_time_format(value, eventId, 'single') single + wca_statistics_person_link_format(person_id, person_name) person, + wca_statistics_competition_link_format(c.id, c.cell_name) competition, + wca_statistics_time_format(value, event_id, 'single') single from end_ranks er - inner join Competitions c on er.competitionId = c.id - inner join Events e on er.eventId = e.id + inner join competitions c on er.competition_id = c.id + inner join events e on er.event_id = e.id where end_rank <= 20 and e.rank < 900 diff --git a/server/src/main/resources/statistics-request-list/best-first-average.yml b/server/src/main/resources/statistics-request-list/best-first-average.yml index bff25650..349eab94 100644 --- a/server/src/main/resources/statistics-request-list/best-first-average.yml +++ b/server/src/main/resources/statistics-request-list/best-first-average.yml @@ -10,23 +10,22 @@ queries: select e.name event_name, e.id event_id, - personId person_id, - r.personName person_name, + person_id person_id, + r.person_name person_name, average, dense_rank() over ( - partition by personId, - eventId + partition by person_id, + event_id order by c.start_date, - rt.`rank` + round_type_id ) competition_order, e.`rank` from - Results r - inner join Competitions c on r.competitionId = c.id - inner join RoundTypes rt on r.roundTypeId = rt.id - inner join Events e on r.eventId = e.id - inner join Formats f on r.formatId = f.id + results r + inner join competitions c on r.competition_id = c.id + inner join events e on r.event_id = e.id + inner join formats f on r.format_id = f.id where e.`rank` < 900 -- Active events and sort_by = 'average' diff --git a/server/src/main/resources/statistics-request-list/best-first-single.yml b/server/src/main/resources/statistics-request-list/best-first-single.yml index aff14fea..08b5167b 100644 --- a/server/src/main/resources/statistics-request-list/best-first-single.yml +++ b/server/src/main/resources/statistics-request-list/best-first-single.yml @@ -10,22 +10,21 @@ queries: select e.name event_name, e.id event_id, - personId person_id, - r.personName person_name, + person_id person_id, + r.person_name person_name, value1, dense_rank() over ( - partition by personId, - eventId + partition by person_id, + event_id order by c.start_date, - rt.`rank` + round_type_id ) competition_order, e.`rank` from - Results r - inner join Competitions c on r.competitionId = c.id - inner join RoundTypes rt on r.roundTypeId = rt.id - inner join Events e on r.eventId = e.id + results r + inner join competitions c on r.competition_id = c.id + inner join events e on r.event_id = e.id where e.`rank` < 900 -- Active events ), diff --git a/server/src/main/resources/statistics-request-list/best-medal-collection.yml b/server/src/main/resources/statistics-request-list/best-medal-collection.yml index 4beee0b8..c653c192 100644 --- a/server/src/main/resources/statistics-request-list/best-medal-collection.yml +++ b/server/src/main/resources/statistics-request-list/best-medal-collection.yml @@ -12,7 +12,7 @@ queries: select e.name, e.`rank`, - wca_statistics_person_link_format(personId, personName) person_name, + wca_statistics_person_link_format(person_id, person_name) person_name, sum( case when pos = 1 then 1 @@ -32,14 +32,14 @@ queries: end ) bronzes from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - roundTypeId in ('c', 'f') + round_type_id in ('c', 'f') and best > 0 group by - personName, - personId, + person_name, + person_id, e.name, e.`rank` order by @@ -72,19 +72,19 @@ queries: order by golds desc, silvers desc, bronzes desc sqlQueryCustom: | select - personName, + person_name, sum( case when pos = 1 then 1 else 0 end ) Golds, sum( case when pos = 2 then 1 else 0 end ) Silvers, sum( case when pos = 3 then 1 else 0 end ) Bronzes from - Results + results where - roundTypeId in ('c', 'f') + round_type_id in ('c', 'f') and best > 0 - and eventId = ':EVENT_ID' - and personId = ':WCA_ID' + and event_id = ':EVENT_ID' + and person_id = ':WCA_ID' group by - personName + person_name order by Golds desc limit 20 @@ -101,9 +101,9 @@ queries: select concat( '', - personName, + person_name, '' ), sum( @@ -125,31 +125,31 @@ queries: end ) Bronzes from - Results + results where - roundTypeId in ('c', 'f') + round_type_id in ('c', 'f') and best > 0 group by - personName, - personId + person_name, + person_id order by Golds desc limit 10 sqlQueryCustom: | select - personName, + person_name, sum(case when pos = 1 then 1 else 0 end) Golds, sum(case when pos = 2 then 1 else 0 end) Silvers, sum(case when pos = 3 then 1 else 0 end) Bronzes from - Results + results where - roundTypeId in ('c', 'f') + round_type_id in ('c', 'f') and best > 0 - and personId = ':WCA_ID' + and person_id = ':WCA_ID' group by - personName + person_name order by Golds desc limit 20 diff --git a/server/src/main/resources/statistics-request-list/best-potential-fmc-mean.yml b/server/src/main/resources/statistics-request-list/best-potential-fmc-mean.yml index 5248c9ed..e15c2cd1 100644 --- a/server/src/main/resources/statistics-request-list/best-potential-fmc-mean.yml +++ b/server/src/main/resources/statistics-request-list/best-potential-fmc-mean.yml @@ -14,13 +14,13 @@ queries: r1, r2, r3, - wca_statistics_competition_link_format(competitionId, c.cellName), + wca_statistics_competition_link_format(competition_id, c.cell_name), rt.name from ( select - competitionId, - roundTypeId, + competition_id, + round_type_id, min( case when value1 > 0 then value1 @@ -40,14 +40,14 @@ queries: end ) r3 from - Results + results where - eventId = '333fm' + event_id = '333fm' group by - competitionId, - roundTypeId + competition_id, + round_type_id ) best_results - inner join Competitions c on best_results.competitionId = c.id + inner join competitions c on best_results.competition_id = c.id inner join RoundTypes rt on rt.id = best_results.roundTypeId where r1 is not null @@ -55,7 +55,7 @@ queries: and r3 is not null order by convert(average, float4), - competitionId + competition_id limit 20 sqlQueryCustom: | @@ -64,21 +64,21 @@ queries: coalesce(r1, 'DNF'), coalesce(r2, 'DNF'), coalesce(r3, 'DNF'), - competitionId + competition_id from ( select - competitionId, + competition_id, min(case when value1 > 0 then value1 else null end) r1, min(case when value2 > 0 then value2 else null end) r2, min(case when value3 > 0 then value3 else null end) r3 from - Results + results where - eventId = '333fm' - and competitionId = ':COMPETITION_ID' + event_id = '333fm' + and competition_id = ':COMPETITION_ID' group by - competitionId, roundTypeId) best_results + competition_id, roundTypeId) best_results title: Best potential FMC mean explanation: The means are computed by taking the best result for each attempt in the given round. groupName: Events diff --git a/server/src/main/resources/statistics-request-list/best-result-off-podium.yml b/server/src/main/resources/statistics-request-list/best-result-off-podium.yml index 2861675a..fdd4d2b6 100644 --- a/server/src/main/resources/statistics-request-list/best-result-off-podium.yml +++ b/server/src/main/resources/statistics-request-list/best-result-off-podium.yml @@ -11,9 +11,9 @@ queries: with averages as ( select concat('Average,', e.name) key_name, - wca_statistics_person_link_format(personId, personName) person, - wca_statistics_time_format(average, eventId, 'average') average, - wca_statistics_competition_link_format(c.id, c.cellName) competition, + wca_statistics_person_link_format(person_id, person_name) person, + wca_statistics_time_format(average, event_id, 'average') average, + wca_statistics_competition_link_format(c.id, c.cell_name) competition, pos, rank() over ( partition by e.id @@ -21,12 +21,12 @@ queries: average ) the_rank from - Results r - inner join Competitions c on r.competitionId = c.id - inner join Events e on r.eventId = e.id - inner join Formats f on r.formatId = f.id + results r + inner join competitions c on r.competition_id = c.id + inner join events e on r.event_id = e.id + inner join formats f on r.format_id = f.id where - r.roundTypeId in ('c', 'f') + r.round_type_id in ('c', 'f') and pos > 3 and e.`rank` < 900 and f.sort_by = 'average' @@ -58,9 +58,9 @@ queries: with singles as ( select concat('Single,', e.name) key_name, - wca_statistics_person_link_format(personId, personName) person, - wca_statistics_time_format(best, eventId, 'single') single, - wca_statistics_competition_link_format(c.id, c.cellName) competition, + wca_statistics_person_link_format(person_id, person_name) person, + wca_statistics_time_format(best, event_id, 'single') single, + wca_statistics_competition_link_format(c.id, c.cell_name) competition, pos, rank() over ( partition by e.id @@ -68,12 +68,12 @@ queries: best ) the_rank from - Results r - inner join Competitions c on r.competitionId = c.id - inner join Events e on r.eventId = e.id - inner join Formats f on r.formatId = f.id + results r + inner join competitions c on r.competition_id = c.id + inner join events e on r.event_id = e.id + inner join formats f on r.format_id = f.id where - r.roundTypeId in ('c', 'f') + r.round_type_id in ('c', 'f') and pos > 3 and e.`rank` < 900 and f.sort_by = 'single' diff --git a/server/src/main/resources/statistics-request-list/best-worst-result.yml b/server/src/main/resources/statistics-request-list/best-worst-result.yml index 1a3560df..16513a16 100644 --- a/server/src/main/resources/statistics-request-list/best-worst-result.yml +++ b/server/src/main/resources/statistics-request-list/best-worst-result.yml @@ -12,60 +12,60 @@ queries: id, value1 value from - Results r + results r where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') union all select id, value2 value from - Results r + results r where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') union all select id, value3 value from - Results r + results r where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') union all select id, value4 value from - Results r + results r where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') union all select id, value5 value from - Results r + results r where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') ), ordered_results as ( select - r.eventId, - r.personId, - r.personName, - r.competitionId, + r.event_id, + r.person_id, + r.person_name, + r.competition_id, r.id, value, - r.formatId, + r.format_id, ROW_NUMBER() over ( partition by r.id order by @@ -73,17 +73,17 @@ queries: value ) r_order from - Results r + results r inner join id_results ir on r.id = ir.id where average > 0 - and r.formatId in ('a', 'm') + and r.format_id in ('a', 'm') ), end_ranks as ( select *, RANK() over ( - partition by eventId + partition by event_id order by value ) end_rank @@ -91,23 +91,23 @@ queries: ordered_results where r_order = case - when formatId = 'a' then 5 + when format_id = 'a' then 5 else 3 end and value > 0 order by - eventId, + event_id, value ) select e.name key_name, - wca_statistics_person_link_format(personId, personName) person, - wca_statistics_competition_link_format(c.id, c.cellName) competition, - wca_statistics_time_format(value, eventId, 'single') single + wca_statistics_person_link_format(person_id, person_name) person, + wca_statistics_competition_link_format(c.id, c.cell_name) competition, + wca_statistics_time_format(value, event_id, 'single') single from end_ranks er - inner join Competitions c on er.competitionId = c.id - inner join Events e on er.eventId = e.id + inner join competitions c on er.competition_id = c.id + inner join events e on er.event_id = e.id where end_rank <= 20 and e.rank < 900 diff --git a/server/src/main/resources/statistics-request-list/most-competitions.yml b/server/src/main/resources/statistics-request-list/most-competitions.yml index 8de43a61..d204be05 100644 --- a/server/src/main/resources/statistics-request-list/most-competitions.yml +++ b/server/src/main/resources/statistics-request-list/most-competitions.yml @@ -7,32 +7,32 @@ queries: - Competitions sqlQuery: |- select - wca_statistics_person_link_format(personId, p.name), + wca_statistics_person_link_format(person_id, p.name), numberOfCompetitions from - Persons p + persons p inner join ( select - personId, - count(distinct competitionId) numberOfCompetitions + person_id, + count(distinct competition_id) numberOfCompetitions from - Results r + results r group by - personId + person_id order by numberOfCompetitions desc, - personId + person_id limit 10 - ) c on c.personId = p.wca_id + ) c on c.person_id = p.wca_id sqlQueryCustom: |- select - personName Name, count(distinct competitionId) Competitions + person_name Name, count(distinct competition_id) Competitions from - Results + results where - personId = ':WCA_ID' - group by personId, personName + person_id = ':WCA_ID' + group by person_id, person_name - keys: - Event headers: @@ -45,7 +45,7 @@ queries: count(DISTINCT ce.competition_id) numberOfCompetitions FROM competition_events ce - inner join Events e on e.id = ce.event_id + inner join events e on e.id = ce.event_id where e.`rank` < 900 GROUP BY @@ -61,31 +61,31 @@ queries: - Competitions sqlQuery: |- SELECT - countryId, + country_id, count(*) numberOfCompetitions FROM - Competitions c + competitions c WHERE - showAtAll + show_at_all AND datediff(c.start_date, curdate()) < 0 GROUP BY - countryId + country_id ORDER BY numberOfCompetitions DESC, - countryId + country_id LIMIT 10 sqlQueryCustom: |- SELECT - countryId, + country_id, count(*) numberOfCompetitions FROM - Competitions c + competitions c WHERE - showAtAll + show_at_all AND datediff(c.start_date, curdate()) < 0 - and countryId = ':COUNTRY_ID' + and country_id = ':COUNTRY_ID' GROUP BY - countryId + country_id title: Most competitions groupName: Competitors diff --git a/server/src/main/resources/statistics-request-list/most-countries.yml b/server/src/main/resources/statistics-request-list/most-countries.yml index 0c89ce3f..fce25e05 100644 --- a/server/src/main/resources/statistics-request-list/most-countries.yml +++ b/server/src/main/resources/statistics-request-list/most-countries.yml @@ -8,24 +8,24 @@ queries: - Countries sqlQuery: |- select - wca_statistics_person_link_format(personId, person.name), - count(competition_countries_by_person.countryId) numberOfCountries + wca_statistics_person_link_format(person_id, person.name), + count(competition_countries_by_person.country_id) numberOfCountries from ( select - distinct personId, - competition.countryId + distinct person_id, + competition.country_id from - Results - join Competitions competition on competition.id = competitionId + results + join competitions competition on competition.id = competition_id where - competition.countryId not regexp '^X[A-Z]{1}$' + competition.country_id not regexp '^X[A-Z]{1}$' ) as competition_countries_by_person - join Persons person on person.wca_id = personId - and subId = 1 + join persons person on person.wca_id = person_id + and sub_id = 1 group by person.name, - personId + person_id order by numberOfCountries desc, person.name @@ -33,14 +33,14 @@ queries: 10 sqlQueryCustom: |- select - r.personId, - count(distinct c.countryId) Countries + r.person_id, + count(distinct c.country_id) countries from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competition_id = c.id where - personId = ':WCA_ID' - and c.countryId NOT REGEXP '^X[A-Z]{1}$' + person_id = ':WCA_ID' + and c.country_id NOT REGEXP '^X[A-Z]{1}$' - keys: - Event headers: @@ -50,13 +50,13 @@ queries: sqlQuery: |- select e.name, - count(distinct c.countryId) qt + count(distinct c.country_id) qt from competition_events ce - inner join Competitions c on ce.competition_id = c.id - inner join Events e on ce.event_id = e.id + inner join competitions c on ce.competition_id = c.id + inner join events e on ce.event_id = e.id where - c.countryId NOT REGEXP '^X[A-Z]{1}$' + c.country_id NOT REGEXP '^X[A-Z]{1}$' and e.`rank` < 900 group by ce.event_id @@ -72,33 +72,33 @@ queries: explanation: Different nationalities competing in a competition sqlQuery: |- select - wca_statistics_competition_link_format(competitionId, c.name), - Countries + wca_statistics_competition_link_format(competition_id, c.name), + countries from ( SELECT - competitionId, - count(DISTINCT result.countryId) Countries + competition_id, + count(DISTINCT result.country_id) countries FROM - Results result + results result WHERE - result.countryId NOT REGEXP '^X[A-Z]{1}$' + result.country_id NOT REGEXP '^X[A-Z]{1}$' GROUP BY - competitionId + competition_id ORDER BY - Countries DESC, - competitionId + countries DESC, + competition_id LIMIT 10 ) r - inner join Competitions c on r.competitionId = c.id + inner join competitions c on r.competition_id = c.id sqlQueryCustom: |- select - competitionId, - count(distinct r.countryId) Countries + competition_id, + count(distinct r.country_id) countries from - Results r + results r where - competitionId = ':COMPETITION_ID' + competition_id = ':COMPETITION_ID' title: Most countries groupName: Countries diff --git a/server/src/main/resources/statistics-request-list/most-persons.yml b/server/src/main/resources/statistics-request-list/most-persons.yml index 9c564178..e26119f8 100644 --- a/server/src/main/resources/statistics-request-list/most-persons.yml +++ b/server/src/main/resources/statistics-request-list/most-persons.yml @@ -12,7 +12,7 @@ queries: count(distinct person_id) qt from ranks_single rs - inner join Events e on rs.event_id = e.id + inner join events e on rs.event_id = e.id where e.`rank` < 900 group by @@ -33,26 +33,26 @@ queries: from ( select - competitionId, - count(distinct personId) qt + competition_id, + count(distinct person_id) qt from - Results r + results r group by - competitionId + competition_id order by qt desc, - competitionId + competition_id limit 10 ) result - inner join Competitions c on result.competitionId = c.id + inner join competitions c on result.competition_id = c.id sqlQueryCustom: |- select c.name Competition, - count(distinct personId) Competitors + count(distinct person_id) Competitors from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competition_id = c.id where c.id = ':COMPETITION_ID' group by @@ -67,26 +67,26 @@ queries: - Competitors sqlQuery: |- SELECT - countryId, - count(DISTINCT personId) numberOfPersons + country_id, + count(DISTINCT person_id) numberOfPersons FROM - Results + results GROUP BY - countryId + country_id ORDER BY numberOfPersons DESC, - countryId + country_id LIMIT 10 sqlQueryCustom: |- SELECT - countryId, - count(DISTINCT personId) numberOfPersons + country_id, + count(DISTINCT person_id) numberOfPersons FROM - Results + results where - countryId = ':COUNTRY_ID' + country_id = ':COUNTRY_ID' GROUP BY - countryId + country_id title: Most competitors groupName: Competitors diff --git a/server/src/main/resources/statistics-request-list/most-solves-in-one-competition-year-or-lifetime.yml b/server/src/main/resources/statistics-request-list/most-solves-in-one-competition-year-or-lifetime.yml index abec6e34..975ee6ac 100644 --- a/server/src/main/resources/statistics-request-list/most-solves-in-one-competition-year-or-lifetime.yml +++ b/server/src/main/resources/statistics-request-list/most-solves-in-one-competition-year-or-lifetime.yml @@ -8,15 +8,15 @@ queries: - Solves / Attemps sqlQuery: |- select - wca_statistics_person_link_format(personId, personName), - wca_statistics_competition_link_format(competitionId, competitionId), + wca_statistics_person_link_format(person_id, person_name), + wca_statistics_competition_link_format(competition_id, competition_id), concat(solves, ' / ', attempts) from ( SELECT - personId, - personName, - competitionId, + person_id, + person_name, + competition_id, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) ) solves, @@ -49,11 +49,11 @@ queries: ) ) attempts FROM - Results + results GROUP BY - personId, - personName, - competitionId + person_id, + person_name, + competition_id ORDER BY solves DESC, attempts @@ -62,7 +62,7 @@ queries: ) result sqlQueryCustom: |- select - competitionId whereId, + competition_id whereId, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) ) solves, @@ -95,12 +95,12 @@ queries: ) ) attempts FROM - Results r + results r where - personId = ':WCA_ID' + person_id = ':WCA_ID' GROUP BY - personId, - competitionId + person_id, + competition_id order by solves desc, attempts @@ -112,14 +112,14 @@ queries: - Solves / Attemps sqlQuery: |- select - wca_statistics_person_link_format(personId, personName), + wca_statistics_person_link_format(person_id, person_name), the_year year, concat(solves, ' / ', attempts) from ( SELECT - personId, - personName, + person_id, + person_name, year(competition.start_date) the_year, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) @@ -153,11 +153,11 @@ queries: ) ) attempts FROM - Results r - inner join Competitions competition on competition.id = r.competitionId + results r + inner join competitions competition on competition.id = r.competition_id GROUP BY - personId, - personName, + person_id, + person_name, year(competition.start_date) ORDER BY solves DESC, @@ -167,7 +167,7 @@ queries: ) result sqlQueryCustom: |- SELECT - personName, + person_name, year(competition.start_date) the_year, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) @@ -201,14 +201,14 @@ queries: ) ) attempts FROM - Results, - Competitions competition + results, + competitions competition WHERE - competition.id = competitionId - and personId = ':WCA_ID' + competition.id = competition_id + and person_id = ':WCA_ID' GROUP BY - personId, - personName, + person_id, + person_name, year(competition.start_date) ORDER BY solves DESC, @@ -220,13 +220,13 @@ queries: - Solves / Attempts sqlQuery: |- select - wca_statistics_person_link_format(personId, personName), + wca_statistics_person_link_format(person_id, person_name), concat(solves, ' / ', attempts) from ( SELECT - personId, - personName, + person_id, + person_name, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) ) solves, @@ -259,10 +259,10 @@ queries: ) ) attempts FROM - Results + results GROUP BY - personId, - personName + person_id, + person_name ORDER BY solves DESC, attempts @@ -271,7 +271,7 @@ queries: ) result sqlQueryCustom: |- select - personName Name, + person_name Name, sum( IF(value1 > 0, 1, 0) + IF(value2 > 0, 1, 0) + IF(value3 > 0, 1, 0) + IF(value4 > 0, 1, 0) + IF(value5 > 0, 1, 0) ) Solves, @@ -304,11 +304,11 @@ queries: ) ) Attempts FROM - Results + results where - personId = ':WCA_ID' + person_id = ':WCA_ID' group by - personId, - personName + person_id, + person_name title: Most solves in one competition, year, or lifetime groupName: Results diff --git a/server/src/main/resources/statistics-request-list/oldest-standing-records.yml b/server/src/main/resources/statistics-request-list/oldest-standing-records.yml index d501457b..e8e82ff1 100644 --- a/server/src/main/resources/statistics-request-list/oldest-standing-records.yml +++ b/server/src/main/resources/statistics-request-list/oldest-standing-records.yml @@ -13,20 +13,20 @@ queries: sqlQuery: |- select days, e.name, - wca_statistics_time_format(record, eventId, record_type) record, + wca_statistics_time_format(record, event_id, record_type) record, record_type, - wca_statistics_person_link_format(personId, personName), - wca_statistics_competition_link_format(competitionId, records.cellName) + wca_statistics_person_link_format(person_id, person_name), + wca_statistics_competition_link_format(competition_id, records.cell_name) from ( select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.best record, 'Single' record_type, - results.personId, - personName, - competitionId, - c.cellName - from Results results + results.person_id, + person_name, + competition_id, + c.cell_name + from results results inner join ( select person_id, event_id, @@ -34,20 +34,20 @@ queries: from ranks_single where world_rank = 1 ) single_records on single_records.best = results.best - and single_records.person_id = results.personId - and single_records.event_id = results.eventId - and regionalSingleRecord = 'WR' - inner join Competitions c on results.competitionId = c.id + and single_records.person_id = results.person_id + and single_records.event_id = results.event_id + and regional_single_record = 'WR' + inner join competitions c on results.competition_id = c.id union all select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.average record, 'Average' record_type, - results.personId, - personName, - competitionId, - c.cellName - from Results results + results.person_id, + person_name, + competition_id, + c.cell_name + from results results inner join ( select person_id, event_id, @@ -55,12 +55,12 @@ queries: from ranks_average where world_rank = 1 ) average_records on average_records.best = results.average - and average_records.person_id = results.personId - and average_records.event_id = results.eventId - and regionalAverageRecord = 'WR' - inner join Competitions c on results.competitionId = c.id + and average_records.person_id = results.person_id + and average_records.event_id = results.event_id + and regional_average_record = 'WR' + inner join competitions c on results.competition_id = c.id ) records - inner join Events e on records.eventId = e.id + inner join events e on records.event_id = e.id where e.rank < 900 order by days desc, e.rank limit 20 @@ -79,23 +79,23 @@ queries: sqlQuery: |- select days, e.name, - wca_statistics_time_format(record, eventId, record_type) record, + wca_statistics_time_format(record, event_id, record_type) record, record_type, c3.name, - wca_statistics_person_link_format(personId, personName), - wca_statistics_competition_link_format(competitionId, records.cellName) + wca_statistics_person_link_format(person_id, person_name), + wca_statistics_competition_link_format(competition_id, records.cell_name) from ( select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.best record, 'Single' record_type, - regionalSingleRecord region, - results.personId, - personName, - competitionId, - c.cellName, - results.countryId - from Results results + regional_single_record region, + results.person_id, + person_name, + competition_id, + c.cell_name, + results.country_id + from results results inner join ( select person_id, event_id, @@ -104,22 +104,22 @@ queries: where continent_rank = 1 and world_rank != 1 ) single_records on single_records.best = results.best - and single_records.person_id = results.personId - and single_records.event_id = results.eventId - and regionalSingleRecord not in ('WR', 'NR') - inner join Competitions c on results.competitionId = c.id + and single_records.person_id = results.person_id + and single_records.event_id = results.event_id + and regional_single_record not in ('WR', 'NR') + inner join competitions c on results.competition_id = c.id union all select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.average record, 'Average' record_type, - regionalAverageRecord region, - results.personId, - personName, - competitionId, - c.cellName, - results.countryId - from Results results + regional_average_record region, + results.person_id, + person_name, + competition_id, + c.cell_name, + results.country_id + from results results inner join ( select person_id, event_id, @@ -128,14 +128,14 @@ queries: where continent_rank = 1 and world_rank != 1 ) average_records on average_records.best = results.average - and average_records.person_id = results.personId - and average_records.event_id = results.eventId - and regionalAverageRecord not in ('WR', 'NR') - inner join Competitions c on results.competitionId = c.id + and average_records.person_id = results.person_id + and average_records.event_id = results.event_id + and regional_average_record not in ('WR', 'NR') + inner join competitions c on results.competition_id = c.id ) records - inner join Events e on records.eventId = e.id - inner join Countries c2 on c2.id = records.countryId - inner join Continents c3 on continentId = c3.id + inner join events e on records.event_id = e.id + inner join countries c2 on c2.id = records.country_id + inner join continents c3 on continent_id = c3.id where e.rank < 900 order by days desc, e.rank limit 20 @@ -154,22 +154,22 @@ queries: sqlQuery: |- select days, e.name, - wca_statistics_time_format(record, eventId, record_type) record, + wca_statistics_time_format(record, event_id, record_type) record, record_type, c2.name, - wca_statistics_person_link_format(personId, personName), - wca_statistics_competition_link_format(competitionId, records.cellName) + wca_statistics_person_link_format(person_id, person_name), + wca_statistics_competition_link_format(competition_id, records.cell_name) from ( select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.best record, 'Single' record_type, - results.countryId region, - results.personId, - personName, - competitionId, - c.cellName - from Results results + results.country_id region, + results.person_id, + person_name, + competition_id, + c.cell_name + from results results inner join ( select person_id, event_id, @@ -179,21 +179,21 @@ queries: and continent_rank != 1 and world_rank != 1 ) single_records on single_records.best = results.best - and single_records.person_id = results.personId - and single_records.event_id = results.eventId - and regionalSingleRecord = 'NR' - inner join Competitions c on results.competitionId = c.id + and single_records.person_id = results.person_id + and single_records.event_id = results.event_id + and regional_single_record = 'NR' + inner join competitions c on results.competition_id = c.id union all select datediff(current_date, c.start_date) days, - results.eventId, + results.event_id, results.average record, 'Average' record_type, - results.countryId region, - results.personId, - personName, - competitionId, - c.cellName - from Results results + results.country_id region, + results.person_id, + person_name, + competition_id, + c.cell_name + from results results inner join ( select person_id, event_id, @@ -203,13 +203,13 @@ queries: and continent_rank != 1 and world_rank != 1 ) average_records on average_records.best = results.average - and average_records.person_id = results.personId - and average_records.event_id = results.eventId - and regionalAverageRecord = 'NR' - inner join Competitions c on results.competitionId = c.id + and average_records.person_id = results.person_id + and average_records.event_id = results.event_id + and regional_average_record = 'NR' + inner join competitions c on results.competition_id = c.id ) records - inner join Events e on records.eventId = e.id - inner join Countries c2 on c2.id = region + inner join events e on records.event_id = e.id + inner join countries c2 on c2.id = region where e.rank < 900 order by days desc, e.rank limit 20 diff --git a/server/src/main/resources/statistics-request-list/sum-of-ranks.yml b/server/src/main/resources/statistics-request-list/sum-of-ranks.yml index 258f8559..97f0353d 100644 --- a/server/src/main/resources/statistics-request-list/sum-of-ranks.yml +++ b/server/src/main/resources/statistics-request-list/sum-of-ranks.yml @@ -13,7 +13,7 @@ queries: sqlQuery: |- select wca_statistics_person_link_format(wca_id, name), - countryId Country, + country_id Country, r3 + r4 + r5 Sum, r3 '3x3', r4 '4x4', @@ -23,7 +23,7 @@ queries: select wca_id, p.name, - p.countryId, + p.country_id, ( select world_rank @@ -52,7 +52,7 @@ queries: and event_id = '555' ) r5 from - Persons p + persons p ) r where r3 is not null @@ -65,7 +65,7 @@ queries: sqlQueryCustom: |- select name Name, - countryId Country, + country_id Country, r3 + r4 + r5 Sum, r3 '3x3', r4 '4x4', @@ -75,7 +75,7 @@ queries: select wca_id, p.name, - p.countryId, + p.country_id, ( select world_rank @@ -101,7 +101,7 @@ queries: person_id = p.wca_id and event_id = '555') r5 from - Persons p) r + persons p) r where r3 is not null and r4 is not null @@ -124,7 +124,7 @@ queries: sqlQuery: |- select wca_statistics_person_link_format(wca_id, name), - countryId Country, + country_id Country, r3 + r4 + r5 Sum, r3 '3x3', r4 '4x4', @@ -134,7 +134,7 @@ queries: select wca_id, p.name, - p.countryId, + p.country_id, ( select world_rank @@ -163,7 +163,7 @@ queries: and event_id = '555' ) r5 from - Persons p + persons p ) r where r3 is not null @@ -176,7 +176,7 @@ queries: sqlQueryCustom: |- select name Name, - countryId Country, + country_id Country, r3 + r4 + r5 Sum, r3 '3x3', r4 '4x4', @@ -186,7 +186,7 @@ queries: select wca_id, p.name, - p.countryId, + p.country_id, ( select world_rank @@ -212,7 +212,7 @@ queries: person_id = p.wca_id and event_id = '555') r5 from - Persons p) r + persons p) r where r3 is not null and r4 is not null diff --git a/server/src/main/resources/statistics-request-list/world-records-in-most-events.yml b/server/src/main/resources/statistics-request-list/world-records-in-most-events.yml index 264f8010..5d0c4aaf 100644 --- a/server/src/main/resources/statistics-request-list/world-records-in-most-events.yml +++ b/server/src/main/resources/statistics-request-list/world-records-in-most-events.yml @@ -10,31 +10,31 @@ queries: explanation: Current events, all time records sqlQuery: |- select - wca_statistics_person_link_format(personId, personName), + wca_statistics_person_link_format(person_id, person_name), worldRecordEvents, events from ( select - personId, - personName, - count(distinct eventId) worldRecordEvents, + person_id, + person_name, + count(distinct event_id) worldRecordEvents, group_concat(distinct e.name separator ', ') events from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where ( - regionalSingleRecord = 'WR' - or regionalAverageRecord = 'WR' + regional_single_record = 'WR' + or regional_average_record = 'WR' ) and e.`rank` < 900 group by - personId, - personName + person_id, + person_name order by worldRecordEvents DESC, - personName + person_name ) worldRecordEvents where worldRecordEvents >= ( @@ -43,22 +43,22 @@ queries: from ( select - count(distinct eventId) worldRecordEvents + count(distinct event_id) worldRecordEvents from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where ( - regionalSingleRecord = 'WR' - or regionalAverageRecord = 'WR' + regional_single_record = 'WR' + or regional_average_record = 'WR' ) and e.`rank` < 900 group by - personId, - personName + person_id, + person_name order by worldRecordEvents DESC, - personName + person_name limit 10 ) min_records @@ -68,34 +68,34 @@ queries: name, ( select - count(distinct eventId) + count(distinct event_id) from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - r.personId = p.id + r.person_id = p.id and e.`rank` < 900 -- Active events and ( - regionalAverageRecord = 'WR' - or regionalSingleRecord = 'WR' + regional_average_record = 'WR' + or regional_single_record = 'WR' ) ) Records, ( select group_concat(distinct e.name separator ', ') from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - r.personId = p.id + r.person_id = p.id and e.`rank` < 900 -- Active events and ( - regionalAverageRecord = 'WR' - or regionalSingleRecord = 'WR' + regional_average_record = 'WR' + or regional_single_record = 'WR' ) - ) Events + ) events from - Persons p + persons p where p.id = ':WCA_ID' - keys: @@ -109,26 +109,26 @@ queries: explanation: Current events, all time records sqlQuery: |- select - countryId, + country_id, qt, events from ( select - countryId, - count(distinct eventId) qt, + country_id, + count(distinct event_id) qt, group_concat(distinct e.name separator ', ') events from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where ( - regionalSingleRecord = 'WR' - or regionalAverageRecord = 'WR' + regional_single_record = 'WR' + or regional_average_record = 'WR' ) and e.`rank` < 900 -- active events group by - countryId + country_id order by qt desc ) results @@ -139,18 +139,18 @@ queries: from ( select - count(distinct eventId) qt + count(distinct event_id) qt from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where ( - regionalSingleRecord = 'WR' - or regionalAverageRecord = 'WR' + regional_single_record = 'WR' + or regional_average_record = 'WR' ) and e.`rank` < 900 -- active events group by - countryId + country_id order by qt desc limit @@ -162,15 +162,15 @@ queries: id, ( select - count(distinct eventId) + count(distinct event_id) from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - r.countryId = c.id + r.country_id = c.id and ( - r.regionalAverageRecord = 'WR' - or r.regionalSingleRecord = 'WR' + r.regional_average_record = 'WR' + or r.regional_single_record = 'WR' ) and e.`rank` < 900 ) Records, @@ -178,18 +178,18 @@ queries: select group_concat(distinct e.name separator ', ') from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - r.countryId = c.id + r.country_id = c.id and ( - r.regionalAverageRecord = 'WR' - or r.regionalSingleRecord = 'WR' + r.regional_average_record = 'WR' + or r.regional_single_record = 'WR' ) and e.`rank` < 900 ) events from - Countries c + countries c where id = ':COUNTRY_ID' - keys: @@ -211,16 +211,16 @@ queries: select c.name, c.id, - count(distinct eventId) qt, + count(distinct event_id) qt, group_concat(distinct e.name separator ', ') events from - Results r - inner join Competitions c on r.competitionId = c.id - inner join Events e on r.eventId = e.id + results r + inner join competitions c on r.competition_id = c.id + inner join events e on r.event_id = e.id where ( - regionalAverageRecord = 'WR' - or regionalSingleRecord = 'WR' + regional_average_record = 'WR' + or regional_single_record = 'WR' ) group by name, @@ -235,16 +235,16 @@ queries: from ( select - count(distinct eventId) qt + count(distinct event_id) qt from - Results + results where ( - regionalAverageRecord = 'WR' - or regionalSingleRecord = 'WR' + regional_average_record = 'WR' + or regional_single_record = 'WR' ) group by - competitionId + competition_id order by qt desc limit @@ -256,31 +256,31 @@ queries: id, ( select - count(distinct eventId) + count(distinct event_id) from - Results r + results r where - r.competitionId = c.id + r.competition_id = c.id and ( - r.regionalAverageRecord = 'WR' - or r.regionalSingleRecord = 'WR' + r.regional_average_record = 'WR' + or r.regional_single_record = 'WR' ) ) Records, ( select group_concat(distinct e.name separator ', ') from - Results r - inner join Events e on r.eventId = e.id + results r + inner join events e on r.event_id = e.id where - r.competitionId = c.id + r.competition_id = c.id and ( - r.regionalAverageRecord = 'WR' - or r.regionalSingleRecord = 'WR' + r.regional_average_record = 'WR' + or r.regional_single_record = 'WR' ) - ) Events + ) events from - Competitions c + competitions c where c.id = ':COMPETITION_ID' title: World records in most events From 04d1984e4b39d491818e7f64fc7e0f63056e5916 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Thu, 1 May 2025 18:09:21 -0300 Subject: [PATCH 17/17] WIP Fix some tests --- server/README.md | 6 + server/db/migration/V1__tables.sql | 2833 +++++++++-------- server/docker-compose-test.yaml | 2 +- .../db/query/besteverranks/getDates.sql | 6 +- .../besteverranks/getTodayCompetitors.sql | 32 +- .../main/resources/db/query/event/findAll.sql | 2 +- .../resources/db/query/event/findAllById.sql | 2 +- .../recordevolution/getAvailableEvents.sql | 2 +- .../sumofranks/continentAverageInsert.sql | 40 +- .../sumofranks/continentSingleInsert.sql | 16 +- .../query/sumofranks/countrySingleInsert.sql | 42 +- .../query/sumofranks/worldAverageInsert.sql | 18 +- .../db/query/sumofranks/worldSingleInsert.sql | 18 +- .../controller/DatabaseQueryControllerIT.java | 10 +- .../query_1.json | 2 +- .../query_2.json | 18 +- .../query_3.json | 18 +- .../statistics-controller-i-t/byPath_0.json | 30 +- .../listByTerm_0.json | 10 +- .../BestEverRanksControllerIT.sql | 54 +- .../DatabaseQueryControllerIT.sql | 38 +- .../RecordEvolutionControllerIT.sql | 42 +- .../test-scripts/StatisticsControllerIT.sql | 60 +- .../test-scripts/SumOfRanksControllerIT.sql | 2177 +++++++------ .../resources/test-scripts/cleanTestData.sql | 20 +- 25 files changed, 2763 insertions(+), 2735 deletions(-) diff --git a/server/README.md b/server/README.md index f9fcdbed..c0909184 100644 --- a/server/README.md +++ b/server/README.md @@ -54,6 +54,12 @@ For Windows, I think you need to use `.\gradlew.bat bootRun`. The `-d` part means "detached", so you'll have to stop by killing the process running on port 8080. +You can also generate a dump of the database by using + +```bash +docker compose exec statistics_mysql mysqldump -u root --no-data wca_development > structure.sql +``` + ## Tests This backend project uses integration tests so we need to actually connect to a database. We mock WCA profile response. diff --git a/server/db/migration/V1__tables.sql b/server/db/migration/V1__tables.sql index 14b6a3d7..4e11ee90 100644 --- a/server/db/migration/V1__tables.sql +++ b/server/db/migration/V1__tables.sql @@ -1,375 +1,33 @@ --- https://github.com/thewca/worldcubeassociation.org/blob/master/WcaOnRails/db/structure.sql - -use wca_development; - - +-- MySQL dump 10.13 Distrib 8.4.5, for Linux (aarch64) +-- +-- Host: localhost Database: wca_development +-- ------------------------------------------------------ +-- Server version 8.4.5 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8mb4 */; +/*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -DROP TABLE IF EXISTS `Competitions`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Competitions` ( - `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `cityName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `information` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `venue` varchar(240) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `venueAddress` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `venueDetails` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `external_website` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `cellName` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `showAtAll` tinyint(1) NOT NULL DEFAULT '0', - `latitude` int(11) DEFAULT NULL, - `longitude` int(11) DEFAULT NULL, - `contact` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `registration_open` datetime DEFAULT NULL, - `registration_close` datetime DEFAULT NULL, - `use_wca_registration` tinyint(1) NOT NULL DEFAULT '1', - `guests_enabled` tinyint(1) NOT NULL DEFAULT '1', - `results_posted_at` datetime DEFAULT NULL, - `results_nag_sent_at` datetime DEFAULT NULL, - `generate_website` tinyint(1) DEFAULT NULL, - `announced_at` datetime DEFAULT NULL, - `base_entry_fee_lowest_denomination` int(11) DEFAULT NULL, - `currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'USD', - `connected_stripe_account_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `start_date` date DEFAULT NULL, - `end_date` date DEFAULT NULL, - `enable_donations` tinyint(1) DEFAULT NULL, - `competitor_limit_enabled` tinyint(1) DEFAULT NULL, - `competitor_limit` int(11) DEFAULT NULL, - `competitor_limit_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `extra_registration_requirements` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `on_the_spot_registration` tinyint(1) DEFAULT NULL, - `on_the_spot_entry_fee_lowest_denomination` int(11) DEFAULT NULL, - `refund_policy_percent` int(11) DEFAULT NULL, - `refund_policy_limit_date` datetime DEFAULT NULL, - `guests_entry_fee_lowest_denomination` int(11) DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - `results_submitted_at` datetime DEFAULT NULL, - `early_puzzle_submission` tinyint(1) DEFAULT NULL, - `early_puzzle_submission_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `qualification_results` tinyint(1) DEFAULT NULL, - `qualification_results_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `name_reason` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `external_registration_page` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `confirmed_at` datetime DEFAULT NULL, - `event_restrictions` tinyint(1) DEFAULT NULL, - `event_restrictions_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `registration_reminder_sent_at` datetime DEFAULT NULL, - `announced_by` int(11) DEFAULT NULL, - `results_posted_by` int(11) DEFAULT NULL, - `main_event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `cancelled_at` datetime DEFAULT NULL, - `cancelled_by` int(11) DEFAULT NULL, - `waiting_list_deadline_date` datetime DEFAULT NULL, - `event_change_deadline_date` datetime DEFAULT NULL, - `guest_entry_status` int NOT NULL DEFAULT '0', - `allow_registration_edits` tinyint(1) NOT NULL DEFAULT '0', - `allow_registration_self_delete_after_acceptance` tinyint(1) NOT NULL DEFAULT '0', - `competition_series_id` int(11) DEFAULT NULL, - `use_wca_live_for_scoretaking` tinyint(1) NOT NULL DEFAULT '0', - `allow_registration_without_qualification` tinyint(1) DEFAULT '0', - `guests_per_registration_limit` int(11) DEFAULT NULL, - `events_per_registration_limit` int(11) DEFAULT NULL, - `force_comment_in_registration` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_Competitions_on_countryId` (`countryId`), - KEY `index_Competitions_on_start_date` (`start_date`), - KEY `index_Competitions_on_end_date` (`end_date`), - KEY `index_Competitions_on_cancelled_at` (`cancelled_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `CompetitionsMedia`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `CompetitionsMedia` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `type` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `text` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `uri` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `submitterName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `submitterComment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `submitterEmail` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `timestampSubmitted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `timestampDecided` timestamp NULL DEFAULT NULL, - `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `ConciseAverageResults`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ConciseAverageResults` ( - `id` int(11) NOT NULL DEFAULT '0', - `average` int(11) NOT NULL DEFAULT '0', - `valueAndId` bigint(22) DEFAULT NULL, - `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `continentId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `year` smallint(5) unsigned NOT NULL DEFAULT '0', - `month` smallint(5) unsigned NOT NULL DEFAULT '0', - `day` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `ConciseSingleResults`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ConciseSingleResults` ( - `id` int(11) NOT NULL DEFAULT '0', - `best` int(11) NOT NULL DEFAULT '0', - `valueAndId` bigint(22) DEFAULT NULL, - `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `continentId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `year` smallint(5) unsigned NOT NULL DEFAULT '0', - `month` smallint(5) unsigned NOT NULL DEFAULT '0', - `day` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Continents`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Continents` ( - `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `recordName` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `latitude` int(11) NOT NULL DEFAULT '0', - `longitude` int(11) NOT NULL DEFAULT '0', - `zoom` tinyint(4) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Countries`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Countries` ( - `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `continentId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `iso2` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `iso2` (`iso2`), - KEY `fk_continents` (`continentId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Events`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Events` ( - `id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(54) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `rank` int(11) NOT NULL DEFAULT '0', - `format` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `cellName` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Formats`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Formats` ( - `id` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `sort_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `sort_by_second` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `expected_solve_count` int(11) NOT NULL, - `trim_fastest_n` int(11) NOT NULL, - `trim_slowest_n` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `InboxPersons`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `InboxPersons` ( - `id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `wcaId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `countryId` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `gender` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', - `dob` date NOT NULL, - `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - UNIQUE KEY `index_InboxPersons_on_competitionId_and_id` (`competitionId`,`id`), - KEY `InboxPersons_fk_country` (`countryId`), - KEY `InboxPersons_id` (`wcaId`), - KEY `InboxPersons_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `InboxResults`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `InboxResults` ( - `personId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `pos` smallint(6) NOT NULL DEFAULT '0', - `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `roundTypeId` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `formatId` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `value1` int(11) NOT NULL DEFAULT '0', - `value2` int(11) NOT NULL DEFAULT '0', - `value3` int(11) NOT NULL DEFAULT '0', - `value4` int(11) NOT NULL DEFAULT '0', - `value5` int(11) NOT NULL DEFAULT '0', - `best` int(11) NOT NULL DEFAULT '0', - `average` int(11) NOT NULL DEFAULT '0', - `id` bigint(20) NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`id`), - KEY `InboxResults_fk_tournament` (`competitionId`), - KEY `InboxResults_fk_event` (`eventId`), - KEY `InboxResults_fk_format` (`formatId`), - KEY `InboxResults_fk_round` (`roundTypeId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Persons`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Persons` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wca_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `subId` tinyint(6) NOT NULL DEFAULT '1', - `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `gender` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', - `dob` date DEFAULT NULL, - `comments` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `incorrect_wca_id_claim_count` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `index_Persons_on_id_and_subId` (`id`,`subId`), - KEY `Persons_fk_country` (`countryId`), - KEY `Persons_id` (`id`), - KEY `Persons_name` (`name`), - FULLTEXT KEY `index_Persons_on_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `RanksAverage`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RanksAverage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `best` int(11) NOT NULL DEFAULT '0', - `worldRank` int(11) NOT NULL DEFAULT '0', - `continentRank` int(11) NOT NULL DEFAULT '0', - `countryRank` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `fk_persons` (`personId`), - KEY `fk_events` (`eventId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `RanksSingle`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RanksSingle` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `best` int(11) NOT NULL DEFAULT '0', - `worldRank` int(11) NOT NULL DEFAULT '0', - `continentRank` int(11) NOT NULL DEFAULT '0', - `countryRank` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `fk_persons` (`personId`), - KEY `fk_events` (`eventId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Results`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Results` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `pos` smallint(6) NOT NULL DEFAULT '0', - `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `personName` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `roundTypeId` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `formatId` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `value1` int(11) NOT NULL DEFAULT '0', - `value2` int(11) NOT NULL DEFAULT '0', - `value3` int(11) NOT NULL DEFAULT '0', - `value4` int(11) NOT NULL DEFAULT '0', - `value5` int(11) NOT NULL DEFAULT '0', - `best` int(11) NOT NULL DEFAULT '0', - `average` int(11) NOT NULL DEFAULT '0', - `regionalSingleRecord` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `regionalAverageRecord` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `Results_fk_tournament` (`competitionId`), - KEY `Results_fk_event` (`eventId`), - KEY `Results_fk_format` (`formatId`), - KEY `Results_fk_round` (`roundTypeId`), - KEY `Results_eventAndAverage` (`eventId`,`average`), - KEY `Results_eventAndBest` (`eventId`,`best`), - KEY `Results_regionalAverageRecordCheckSpeedup` (`eventId`,`competitionId`,`roundTypeId`,`countryId`,`average`), - KEY `Results_regionalSingleRecordCheckSpeedup` (`eventId`,`competitionId`,`roundTypeId`,`countryId`,`best`), - KEY `Results_fk_competitor` (`personId`), - KEY `index_Results_on_competitionId_and_updated_at` (`competitionId`,`updated_at`), - KEY `_tmp_index_Results_on_countryId` (`countryId`), - KEY `index_Results_on_eventId_and_value1` (`eventId`,`value1`), - KEY `index_Results_on_eventId_and_value2` (`eventId`,`value2`), - KEY `index_Results_on_eventId_and_value3` (`eventId`,`value3`), - KEY `index_Results_on_eventId_and_value4` (`eventId`,`value4`), - KEY `index_Results_on_eventId_and_value5` (`eventId`,`value5`), - KEY `index_Results_on_regionalSingleRecord_and_eventId` (`regionalSingleRecord`,`eventId`), - KEY `index_Results_on_regionalAverageRecord_and_eventId` (`regionalAverageRecord`,`eventId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=1; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `RoundTypes`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RoundTypes` ( - `id` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `rank` int(11) NOT NULL DEFAULT '0', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `cellName` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `final` tinyint(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `Scrambles`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Scrambles` ( - `scrambleId` int(10) unsigned NOT NULL AUTO_INCREMENT, - `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `eventId` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `roundTypeId` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `groupId` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `isExtra` tinyint(1) NOT NULL, - `scrambleNum` int(11) NOT NULL, - `scramble` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`scrambleId`), - KEY `competitionId` (`competitionId`,`eventId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `active_storage_attachments` +-- + DROP TABLE IF EXISTS `active_storage_attachments`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `active_storage_attachments` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `record_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `record_id` bigint(20) NOT NULL, - `blob_id` bigint(20) NOT NULL, + `record_id` bigint NOT NULL, + `blob_id` bigint NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_active_storage_attachments_uniqueness` (`record_type`,`record_id`,`name`,`blob_id`), @@ -377,360 +35,441 @@ CREATE TABLE `active_storage_attachments` ( CONSTRAINT `fk_rails_c3b3935057` FOREIGN KEY (`blob_id`) REFERENCES `active_storage_blobs` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `active_storage_blobs` +-- + DROP TABLE IF EXISTS `active_storage_blobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `active_storage_blobs` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `filename` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `content_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `byte_size` bigint(20) NOT NULL, + `metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `byte_size` bigint NOT NULL, `checksum` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` datetime NOT NULL, - `service_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `service_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_active_storage_blobs_on_key` (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `active_storage_variant_records` +-- + DROP TABLE IF EXISTS `active_storage_variant_records`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `active_storage_variant_records` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `blob_id` bigint(20) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `blob_id` bigint NOT NULL, `variation_digest` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_active_storage_variant_records_uniqueness` (`blob_id`,`variation_digest`), CONSTRAINT `fk_rails_993965df05` FOREIGN KEY (`blob_id`) REFERENCES `active_storage_blobs` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `ar_internal_metadata` +-- + DROP TABLE IF EXISTS `ar_internal_metadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `ar_internal_metadata` ( - `key` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, + `key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `value` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `archive_phpbb3_forums` +-- + DROP TABLE IF EXISTS `archive_phpbb3_forums`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `archive_phpbb3_forums` ( - `forum_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `parent_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `left_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `right_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_parents` mediumtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `forum_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_desc` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `forum_desc_bitfield` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_desc_options` int(11) unsigned NOT NULL DEFAULT '7', - `forum_desc_uid` varchar(8) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_link` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_style` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_rules` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `forum_rules_link` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_rules_bitfield` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_rules_options` int(11) unsigned NOT NULL DEFAULT '7', - `forum_rules_uid` varchar(8) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_topics_per_page` tinyint(4) NOT NULL DEFAULT '0', - `forum_type` tinyint(4) NOT NULL DEFAULT '0', - `forum_status` tinyint(4) NOT NULL DEFAULT '0', - `forum_last_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_last_poster_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_last_post_subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_last_post_time` int(11) unsigned NOT NULL DEFAULT '0', - `forum_last_poster_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_last_poster_colour` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `forum_flags` tinyint(4) NOT NULL DEFAULT '32', - `display_on_index` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_indexing` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_icons` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_prune` tinyint(1) unsigned NOT NULL DEFAULT '0', - `prune_next` int(11) unsigned NOT NULL DEFAULT '0', - `prune_days` mediumint(8) unsigned NOT NULL DEFAULT '0', - `prune_viewed` mediumint(8) unsigned NOT NULL DEFAULT '0', - `prune_freq` mediumint(8) unsigned NOT NULL DEFAULT '0', - `display_subforum_list` tinyint(1) unsigned NOT NULL DEFAULT '1', - `forum_options` int(20) unsigned NOT NULL DEFAULT '0', - `forum_posts_approved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_posts_unapproved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_posts_softdeleted` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_topics_approved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_topics_unapproved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_topics_softdeleted` mediumint(8) unsigned NOT NULL DEFAULT '0', - `enable_shadow_prune` tinyint(1) unsigned NOT NULL DEFAULT '0', - `prune_shadow_days` mediumint(8) unsigned NOT NULL DEFAULT '7', - `prune_shadow_freq` mediumint(8) unsigned NOT NULL DEFAULT '1', - `prune_shadow_next` int(11) NOT NULL DEFAULT '0', + `forum_id` mediumint unsigned NOT NULL AUTO_INCREMENT, + `parent_id` mediumint unsigned NOT NULL DEFAULT '0', + `left_id` mediumint unsigned NOT NULL DEFAULT '0', + `right_id` mediumint unsigned NOT NULL DEFAULT '0', + `forum_parents` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `forum_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `forum_desc_bitfield` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_desc_options` int unsigned NOT NULL DEFAULT '7', + `forum_desc_uid` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_link` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_password` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_style` mediumint unsigned NOT NULL DEFAULT '0', + `forum_image` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_rules` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `forum_rules_link` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_rules_bitfield` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_rules_options` int unsigned NOT NULL DEFAULT '7', + `forum_rules_uid` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_topics_per_page` tinyint NOT NULL DEFAULT '0', + `forum_type` tinyint NOT NULL DEFAULT '0', + `forum_status` tinyint NOT NULL DEFAULT '0', + `forum_last_post_id` mediumint unsigned NOT NULL DEFAULT '0', + `forum_last_poster_id` mediumint unsigned NOT NULL DEFAULT '0', + `forum_last_post_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_last_post_time` int unsigned NOT NULL DEFAULT '0', + `forum_last_poster_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_last_poster_colour` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `forum_flags` tinyint NOT NULL DEFAULT '32', + `display_on_index` tinyint unsigned NOT NULL DEFAULT '1', + `enable_indexing` tinyint unsigned NOT NULL DEFAULT '1', + `enable_icons` tinyint unsigned NOT NULL DEFAULT '1', + `enable_prune` tinyint unsigned NOT NULL DEFAULT '0', + `prune_next` int unsigned NOT NULL DEFAULT '0', + `prune_days` mediumint unsigned NOT NULL DEFAULT '0', + `prune_viewed` mediumint unsigned NOT NULL DEFAULT '0', + `prune_freq` mediumint unsigned NOT NULL DEFAULT '0', + `display_subforum_list` tinyint unsigned NOT NULL DEFAULT '1', + `forum_options` int unsigned NOT NULL DEFAULT '0', + `forum_posts_approved` mediumint unsigned NOT NULL DEFAULT '0', + `forum_posts_unapproved` mediumint unsigned NOT NULL DEFAULT '0', + `forum_posts_softdeleted` mediumint unsigned NOT NULL DEFAULT '0', + `forum_topics_approved` mediumint unsigned NOT NULL DEFAULT '0', + `forum_topics_unapproved` mediumint unsigned NOT NULL DEFAULT '0', + `forum_topics_softdeleted` mediumint unsigned NOT NULL DEFAULT '0', + `enable_shadow_prune` tinyint unsigned NOT NULL DEFAULT '0', + `prune_shadow_days` mediumint unsigned NOT NULL DEFAULT '7', + `prune_shadow_freq` mediumint unsigned NOT NULL DEFAULT '1', + `prune_shadow_next` int NOT NULL DEFAULT '0', PRIMARY KEY (`forum_id`), - KEY `left_right_id` (`left_id`,`right_id`), - KEY `forum_lastpost_id` (`forum_last_post_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + KEY `forum_lastpost_id` (`forum_last_post_id`), + KEY `left_right_id` (`left_id`,`right_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `archive_phpbb3_posts` +-- + DROP TABLE IF EXISTS `archive_phpbb3_posts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `archive_phpbb3_posts` ( - `post_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `forum_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `poster_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `icon_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `poster_ip` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_time` int(11) unsigned NOT NULL DEFAULT '0', - `post_reported` tinyint(1) unsigned NOT NULL DEFAULT '0', - `enable_bbcode` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_smilies` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_magic_url` tinyint(1) unsigned NOT NULL DEFAULT '1', - `enable_sig` tinyint(1) unsigned NOT NULL DEFAULT '1', - `post_username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `post_text` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `post_checksum` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_attachment` tinyint(1) unsigned NOT NULL DEFAULT '0', - `bbcode_bitfield` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `bbcode_uid` varchar(8) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_postcount` tinyint(1) unsigned NOT NULL DEFAULT '1', - `post_edit_time` int(11) unsigned NOT NULL DEFAULT '0', - `post_edit_reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_edit_user` mediumint(8) unsigned NOT NULL DEFAULT '0', - `post_edit_count` smallint(4) unsigned NOT NULL DEFAULT '0', - `post_edit_locked` tinyint(1) unsigned NOT NULL DEFAULT '0', - `post_visibility` tinyint(3) NOT NULL DEFAULT '0', - `post_delete_time` int(11) unsigned NOT NULL DEFAULT '0', - `post_delete_reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `post_delete_user` mediumint(8) unsigned NOT NULL DEFAULT '0', + `post_id` mediumint unsigned NOT NULL AUTO_INCREMENT, + `topic_id` mediumint unsigned NOT NULL DEFAULT '0', + `forum_id` mediumint unsigned NOT NULL DEFAULT '0', + `poster_id` mediumint unsigned NOT NULL DEFAULT '0', + `icon_id` mediumint unsigned NOT NULL DEFAULT '0', + `poster_ip` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_time` int unsigned NOT NULL DEFAULT '0', + `post_reported` tinyint unsigned NOT NULL DEFAULT '0', + `enable_bbcode` tinyint unsigned NOT NULL DEFAULT '1', + `enable_smilies` tinyint unsigned NOT NULL DEFAULT '1', + `enable_magic_url` tinyint unsigned NOT NULL DEFAULT '1', + `enable_sig` tinyint unsigned NOT NULL DEFAULT '1', + `post_username` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '', + `post_text` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `post_checksum` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_attachment` tinyint unsigned NOT NULL DEFAULT '0', + `bbcode_bitfield` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `bbcode_uid` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_postcount` tinyint unsigned NOT NULL DEFAULT '1', + `post_edit_time` int unsigned NOT NULL DEFAULT '0', + `post_edit_reason` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_edit_user` mediumint unsigned NOT NULL DEFAULT '0', + `post_edit_count` smallint unsigned NOT NULL DEFAULT '0', + `post_edit_locked` tinyint unsigned NOT NULL DEFAULT '0', + `post_visibility` tinyint NOT NULL DEFAULT '0', + `post_delete_time` int unsigned NOT NULL DEFAULT '0', + `post_delete_reason` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `post_delete_user` mediumint unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`post_id`), KEY `forum_id` (`forum_id`), - KEY `topic_id` (`topic_id`), - KEY `poster_ip` (`poster_ip`), - KEY `poster_id` (`poster_id`), - KEY `tid_post_time` (`topic_id`,`post_time`), KEY `post_username` (`post_username`), KEY `post_visibility` (`post_visibility`), + KEY `poster_id` (`poster_id`), + KEY `poster_ip` (`poster_ip`), + KEY `tid_post_time` (`topic_id`,`post_time`), + KEY `topic_id` (`topic_id`), FULLTEXT KEY `post_subject` (`post_subject`), FULLTEXT KEY `post_content` (`post_text`,`post_subject`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `archive_phpbb3_topics` +-- + DROP TABLE IF EXISTS `archive_phpbb3_topics`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `archive_phpbb3_topics` ( - `topic_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `forum_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `icon_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_attachment` tinyint(1) unsigned NOT NULL DEFAULT '0', - `topic_reported` tinyint(1) unsigned NOT NULL DEFAULT '0', - `topic_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `topic_poster` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_time` int(11) unsigned NOT NULL DEFAULT '0', - `topic_time_limit` int(11) unsigned NOT NULL DEFAULT '0', - `topic_views` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_status` tinyint(3) NOT NULL DEFAULT '0', - `topic_type` tinyint(3) NOT NULL DEFAULT '0', - `topic_first_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_first_poster_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `topic_first_poster_colour` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `topic_last_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_last_poster_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_last_poster_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `topic_last_poster_colour` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `topic_last_post_subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `topic_last_post_time` int(11) unsigned NOT NULL DEFAULT '0', - `topic_last_view_time` int(11) unsigned NOT NULL DEFAULT '0', - `topic_moved_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_bumped` tinyint(1) unsigned NOT NULL DEFAULT '0', - `topic_bumper` mediumint(8) unsigned NOT NULL DEFAULT '0', - `poll_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `poll_start` int(11) unsigned NOT NULL DEFAULT '0', - `poll_length` int(11) unsigned NOT NULL DEFAULT '0', - `poll_max_options` tinyint(4) NOT NULL DEFAULT '1', - `poll_last_vote` int(11) unsigned NOT NULL DEFAULT '0', - `poll_vote_change` tinyint(1) unsigned NOT NULL DEFAULT '0', + `topic_id` mediumint unsigned NOT NULL AUTO_INCREMENT, + `forum_id` mediumint unsigned NOT NULL DEFAULT '0', + `icon_id` mediumint unsigned NOT NULL DEFAULT '0', + `topic_attachment` tinyint unsigned NOT NULL DEFAULT '0', + `topic_reported` tinyint unsigned NOT NULL DEFAULT '0', + `topic_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '', + `topic_poster` mediumint unsigned NOT NULL DEFAULT '0', + `topic_time` int unsigned NOT NULL DEFAULT '0', + `topic_time_limit` int unsigned NOT NULL DEFAULT '0', + `topic_views` mediumint unsigned NOT NULL DEFAULT '0', + `topic_status` tinyint NOT NULL DEFAULT '0', + `topic_type` tinyint NOT NULL DEFAULT '0', + `topic_first_post_id` mediumint unsigned NOT NULL DEFAULT '0', + `topic_first_poster_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '', + `topic_first_poster_colour` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `topic_last_post_id` mediumint unsigned NOT NULL DEFAULT '0', + `topic_last_poster_id` mediumint unsigned NOT NULL DEFAULT '0', + `topic_last_poster_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `topic_last_poster_colour` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `topic_last_post_subject` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `topic_last_post_time` int unsigned NOT NULL DEFAULT '0', + `topic_last_view_time` int unsigned NOT NULL DEFAULT '0', + `topic_moved_id` mediumint unsigned NOT NULL DEFAULT '0', + `topic_bumped` tinyint unsigned NOT NULL DEFAULT '0', + `topic_bumper` mediumint unsigned NOT NULL DEFAULT '0', + `poll_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `poll_start` int unsigned NOT NULL DEFAULT '0', + `poll_length` int unsigned NOT NULL DEFAULT '0', + `poll_max_options` tinyint NOT NULL DEFAULT '1', + `poll_last_vote` int unsigned NOT NULL DEFAULT '0', + `poll_vote_change` tinyint unsigned NOT NULL DEFAULT '0', `poll_vote_name` tinyint(1) NOT NULL DEFAULT '0', - `topic_visibility` tinyint(3) NOT NULL DEFAULT '0', - `topic_delete_time` int(11) unsigned NOT NULL DEFAULT '0', - `topic_delete_reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `topic_delete_user` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_posts_approved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_posts_unapproved` mediumint(8) unsigned NOT NULL DEFAULT '0', - `topic_posts_softdeleted` mediumint(8) unsigned NOT NULL DEFAULT '0', + `topic_visibility` tinyint NOT NULL DEFAULT '0', + `topic_delete_time` int unsigned NOT NULL DEFAULT '0', + `topic_delete_reason` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `topic_delete_user` mediumint unsigned NOT NULL DEFAULT '0', + `topic_posts_approved` mediumint unsigned NOT NULL DEFAULT '0', + `topic_posts_unapproved` mediumint unsigned NOT NULL DEFAULT '0', + `topic_posts_softdeleted` mediumint unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`topic_id`), - KEY `forum_id` (`forum_id`), + KEY `fid_time_moved` (`forum_id`,`topic_last_post_time`,`topic_moved_id`), KEY `forum_id_type` (`forum_id`,`topic_type`), + KEY `forum_vis_last` (`forum_id`,`topic_visibility`,`topic_last_post_id`), + KEY `forum_id` (`forum_id`), KEY `last_post_time` (`topic_last_post_time`), - KEY `fid_time_moved` (`forum_id`,`topic_last_post_time`,`topic_moved_id`), - KEY `topic_visibility` (`topic_visibility`), - KEY `forum_vis_last` (`forum_id`,`topic_visibility`,`topic_last_post_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + KEY `topic_visibility` (`topic_visibility`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `archive_phpbb3_users` +-- + DROP TABLE IF EXISTS `archive_phpbb3_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `archive_phpbb3_users` ( - `user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, - `user_type` tinyint(2) NOT NULL DEFAULT '0', - `group_id` mediumint(8) unsigned NOT NULL DEFAULT '3', - `user_permissions` mediumtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `user_perm_from` mediumint(8) unsigned NOT NULL DEFAULT '0', - `user_ip` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_regdate` int(11) unsigned NOT NULL DEFAULT '0', - `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `username_clean` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_passchg` int(11) unsigned NOT NULL DEFAULT '0', - `user_email` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_email_hash` bigint(20) NOT NULL DEFAULT '0', - `user_birthday` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_lastvisit` int(11) unsigned NOT NULL DEFAULT '0', - `user_lastmark` int(11) unsigned NOT NULL DEFAULT '0', - `user_lastpost_time` int(11) unsigned NOT NULL DEFAULT '0', - `user_lastpage` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_last_confirm_key` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_last_search` int(11) unsigned NOT NULL DEFAULT '0', - `user_warnings` tinyint(4) NOT NULL DEFAULT '0', - `user_last_warning` int(11) unsigned NOT NULL DEFAULT '0', - `user_login_attempts` tinyint(4) NOT NULL DEFAULT '0', - `user_inactive_reason` tinyint(2) NOT NULL DEFAULT '0', - `user_inactive_time` int(11) unsigned NOT NULL DEFAULT '0', - `user_posts` mediumint(8) unsigned NOT NULL DEFAULT '0', - `user_lang` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_timezone` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_dateformat` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'd M Y H:i', - `user_style` mediumint(8) unsigned NOT NULL DEFAULT '0', - `user_rank` mediumint(8) unsigned NOT NULL DEFAULT '0', - `user_colour` varchar(6) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_new_privmsg` int(4) NOT NULL DEFAULT '0', - `user_unread_privmsg` int(4) NOT NULL DEFAULT '0', - `user_last_privmsg` int(11) unsigned NOT NULL DEFAULT '0', - `user_message_rules` tinyint(1) unsigned NOT NULL DEFAULT '0', - `user_full_folder` int(11) NOT NULL DEFAULT '-3', - `user_emailtime` int(11) unsigned NOT NULL DEFAULT '0', - `user_topic_show_days` smallint(4) unsigned NOT NULL DEFAULT '0', - `user_topic_sortby_type` varchar(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 't', - `user_topic_sortby_dir` varchar(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'd', - `user_post_show_days` smallint(4) unsigned NOT NULL DEFAULT '0', - `user_post_sortby_type` varchar(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 't', - `user_post_sortby_dir` varchar(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT 'a', - `user_notify` tinyint(1) unsigned NOT NULL DEFAULT '0', - `user_notify_pm` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_notify_type` tinyint(4) NOT NULL DEFAULT '0', - `user_allow_pm` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_allow_viewonline` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_allow_viewemail` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_allow_massemail` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_options` int(11) unsigned NOT NULL DEFAULT '230271', - `user_avatar` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_avatar_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_avatar_width` smallint(4) unsigned NOT NULL DEFAULT '0', - `user_avatar_height` smallint(4) unsigned NOT NULL DEFAULT '0', - `user_sig` mediumtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, - `user_sig_bbcode_uid` varchar(8) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_sig_bbcode_bitfield` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_jabber` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_actkey` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_newpasswd` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_form_salt` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_new` tinyint(1) unsigned NOT NULL DEFAULT '1', - `user_reminded` tinyint(4) NOT NULL DEFAULT '0', - `user_reminded_time` int(11) unsigned NOT NULL DEFAULT '0', + `user_id` mediumint unsigned NOT NULL AUTO_INCREMENT, + `user_type` tinyint NOT NULL DEFAULT '0', + `group_id` mediumint unsigned NOT NULL DEFAULT '3', + `user_permissions` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `user_perm_from` mediumint unsigned NOT NULL DEFAULT '0', + `user_ip` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_regdate` int unsigned NOT NULL DEFAULT '0', + `username` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `username_clean` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_password` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_passchg` int unsigned NOT NULL DEFAULT '0', + `user_email` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_email_hash` bigint NOT NULL DEFAULT '0', + `user_birthday` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_lastvisit` int unsigned NOT NULL DEFAULT '0', + `user_lastmark` int unsigned NOT NULL DEFAULT '0', + `user_lastpost_time` int unsigned NOT NULL DEFAULT '0', + `user_lastpage` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_last_confirm_key` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_last_search` int unsigned NOT NULL DEFAULT '0', + `user_warnings` tinyint NOT NULL DEFAULT '0', + `user_last_warning` int unsigned NOT NULL DEFAULT '0', + `user_login_attempts` tinyint NOT NULL DEFAULT '0', + `user_inactive_reason` tinyint NOT NULL DEFAULT '0', + `user_inactive_time` int unsigned NOT NULL DEFAULT '0', + `user_posts` mediumint unsigned NOT NULL DEFAULT '0', + `user_lang` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_timezone` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_dateformat` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 'd M Y H:i', + `user_style` mediumint unsigned NOT NULL DEFAULT '0', + `user_rank` mediumint unsigned NOT NULL DEFAULT '0', + `user_colour` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_new_privmsg` int NOT NULL DEFAULT '0', + `user_unread_privmsg` int NOT NULL DEFAULT '0', + `user_last_privmsg` int unsigned NOT NULL DEFAULT '0', + `user_message_rules` tinyint unsigned NOT NULL DEFAULT '0', + `user_full_folder` int NOT NULL DEFAULT '-3', + `user_emailtime` int unsigned NOT NULL DEFAULT '0', + `user_topic_show_days` smallint unsigned NOT NULL DEFAULT '0', + `user_topic_sortby_type` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 't', + `user_topic_sortby_dir` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 'd', + `user_post_show_days` smallint unsigned NOT NULL DEFAULT '0', + `user_post_sortby_type` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 't', + `user_post_sortby_dir` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 'a', + `user_notify` tinyint unsigned NOT NULL DEFAULT '0', + `user_notify_pm` tinyint unsigned NOT NULL DEFAULT '1', + `user_notify_type` tinyint NOT NULL DEFAULT '0', + `user_allow_pm` tinyint unsigned NOT NULL DEFAULT '1', + `user_allow_viewonline` tinyint unsigned NOT NULL DEFAULT '1', + `user_allow_viewemail` tinyint unsigned NOT NULL DEFAULT '1', + `user_allow_massemail` tinyint unsigned NOT NULL DEFAULT '1', + `user_options` int unsigned NOT NULL DEFAULT '230271', + `user_avatar` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_avatar_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_avatar_width` smallint unsigned NOT NULL DEFAULT '0', + `user_avatar_height` smallint unsigned NOT NULL DEFAULT '0', + `user_sig` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, + `user_sig_bbcode_uid` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_sig_bbcode_bitfield` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_jabber` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_actkey` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_newpasswd` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_form_salt` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '', + `user_new` tinyint unsigned NOT NULL DEFAULT '1', + `user_reminded` tinyint NOT NULL DEFAULT '0', + `user_reminded_time` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`), UNIQUE KEY `username_clean` (`username_clean`), KEY `user_birthday` (`user_birthday`), KEY `user_email_hash` (`user_email_hash`), KEY `user_type` (`user_type`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `archive_registrations` +-- + DROP TABLE IF EXISTS `archive_registrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `archive_registrations` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `competitionId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `personId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `countryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `gender` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `birthYear` smallint(6) unsigned NOT NULL DEFAULT '0', - `birthMonth` tinyint(4) unsigned NOT NULL DEFAULT '0', - `birthDay` tinyint(4) unsigned NOT NULL DEFAULT '0', + `gender` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `birthYear` smallint unsigned NOT NULL DEFAULT '0', + `birthMonth` tinyint unsigned NOT NULL DEFAULT '0', + `birthDay` tinyint unsigned NOT NULL DEFAULT '0', `email` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `guests_old` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `user_id` int(11) DEFAULT NULL, + `user_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, - `guests` int(11) NOT NULL DEFAULT '0', + `guests` int NOT NULL DEFAULT '0', `accepted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_registrations_on_competitionId_and_user_id` (`competitionId`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `assignments` +-- + DROP TABLE IF EXISTS `assignments`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `assignments` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `registration_id` bigint(20) DEFAULT NULL, - `schedule_activity_id` bigint(20) DEFAULT NULL, - `station_number` int(11) DEFAULT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `registration_id` bigint DEFAULT NULL, + `registration_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `schedule_activity_id` bigint DEFAULT NULL, + `station_number` int DEFAULT NULL, `assignment_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), - KEY `index_assignments_on_registration_id` (`registration_id`), + KEY `index_assignments_on_registration_id_and_registration_type` (`registration_id`,`registration_type`), KEY `index_assignments_on_schedule_activity_id` (`schedule_activity_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=63976726 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `best_ever_rank` +-- + +DROP TABLE IF EXISTS `best_ever_rank`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `best_ever_rank` ( + `person_id` varchar(10) NOT NULL, + `best_ever_rank` json NOT NULL, + `last_modified` datetime NOT NULL, + PRIMARY KEY (`person_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `bookmarked_competitions` +-- + DROP TABLE IF EXISTS `bookmarked_competitions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `bookmarked_competitions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` int(11) NOT NULL, + `user_id` int NOT NULL, PRIMARY KEY (`id`), KEY `index_bookmarked_competitions_on_competition_id` (`competition_id`), KEY `index_bookmarked_competitions_on_user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=289499 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `cached_results` +-- + DROP TABLE IF EXISTS `cached_results`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cached_results` ( - `key_params` varchar(191) NOT NULL, + `key_params` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `payload` json DEFAULT NULL, `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL, PRIMARY KEY (`key_params`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `championships` +-- + DROP TABLE IF EXISTS `championships`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `championships` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `championship_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_championships_on_competition_id_and_championship_type` (`competition_id`,`championship_type`), KEY `index_championships_on_championship_type` (`championship_type`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=891 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_delegates` +-- + DROP TABLE IF EXISTS `competition_delegates`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_delegates` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `delegate_id` int(11) DEFAULT NULL, + `delegate_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `receive_registration_emails` tinyint(1) NOT NULL DEFAULT '0', @@ -738,29 +477,62 @@ CREATE TABLE `competition_delegates` ( UNIQUE KEY `index_competition_delegates_on_competition_id_and_delegate_id` (`competition_id`,`delegate_id`), KEY `index_competition_delegates_on_competition_id` (`competition_id`), KEY `index_competition_delegates_on_delegate_id` (`delegate_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=42204 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_events` +-- + DROP TABLE IF EXISTS `competition_events`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_events` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `fee_lowest_denomination` int(11) NOT NULL DEFAULT '0', + `fee_lowest_denomination` int NOT NULL DEFAULT '0', `qualification` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `index_competition_events_on_competition_id_and_event_id` (`competition_id`,`event_id`), KEY `fk_rails_ba6cfdafb1` (`event_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=142292 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_media` +-- + +DROP TABLE IF EXISTS `competition_media`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `competition_media` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `competition_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `media_type` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `text` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `uri` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `submitter_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `submitter_comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `submitter_email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `submitted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `decided_at` timestamp NULL DEFAULT NULL, + `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=11970 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_organizers` +-- + DROP TABLE IF EXISTS `competition_organizers`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_organizers` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `organizer_id` int(11) DEFAULT NULL, + `organizer_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `receive_registration_emails` tinyint(1) NOT NULL DEFAULT '0', @@ -768,44 +540,80 @@ CREATE TABLE `competition_organizers` ( UNIQUE KEY `idx_competition_organizers_on_competition_id_and_organizer_id` (`competition_id`,`organizer_id`), KEY `index_competition_organizers_on_competition_id` (`competition_id`), KEY `index_competition_organizers_on_organizer_id` (`organizer_id`) +) ENGINE=InnoDB AUTO_INCREMENT=41741 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_payment_integrations` +-- + +DROP TABLE IF EXISTS `competition_payment_integrations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `competition_payment_integrations` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `connected_account_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `connected_account_id` bigint NOT NULL, + `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `index_competition_payment_integrations_on_competition_id` (`competition_id`), + KEY `index_competition_payment_integrations_on_connected_account` (`connected_account_type`,`connected_account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_series` +-- + DROP TABLE IF EXISTS `competition_series`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_series` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `wcif_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `short_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=340 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_tabs` +-- + DROP TABLE IF EXISTS `competition_tabs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_tabs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `display_order` int(11) DEFAULT NULL, + `display_order` int DEFAULT NULL, PRIMARY KEY (`id`), - UNIQUE KEY `index_competition_tabs_on_display_order_and_competition_id` (`display_order`,`competition_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + UNIQUE KEY `index_competition_tabs_on_display_order_and_competition_id` (`display_order`,`competition_id`), + KEY `index_competition_tabs_on_competition_id` (`competition_id`) +) ENGINE=InnoDB AUTO_INCREMENT=59314 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competition_venues` +-- + DROP TABLE IF EXISTS `competition_venues`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `competition_venues` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `wcif_id` int(11) NOT NULL, + `wcif_id` int NOT NULL, `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `latitude_microdegrees` int(11) NOT NULL, - `longitude_microdegrees` int(11) NOT NULL, + `latitude_microdegrees` int NOT NULL, + `longitude_microdegrees` int NOT NULL, `timezone_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, @@ -813,62 +621,284 @@ CREATE TABLE `competition_venues` ( PRIMARY KEY (`id`), UNIQUE KEY `index_competition_venues_on_competition_id_and_wcif_id` (`competition_id`,`wcif_id`), KEY `index_competition_venues_on_competition_id` (`competition_id`) +) ENGINE=InnoDB AUTO_INCREMENT=11712 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `competitions` +-- + +DROP TABLE IF EXISTS `competitions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `competitions` ( + `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `city_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `country_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `information` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `venue` varchar(240) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `venue_address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `venue_details` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `external_website` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `cell_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `show_at_all` tinyint(1) NOT NULL DEFAULT '0', + `latitude` int DEFAULT NULL, + `longitude` int DEFAULT NULL, + `contact` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `registration_open` datetime DEFAULT NULL, + `registration_close` datetime DEFAULT NULL, + `use_wca_registration` tinyint(1) NOT NULL DEFAULT '1', + `guests_enabled` tinyint(1) NOT NULL DEFAULT '1', + `results_posted_at` datetime DEFAULT NULL, + `results_nag_sent_at` datetime DEFAULT NULL, + `generate_website` tinyint(1) DEFAULT NULL, + `announced_at` datetime DEFAULT NULL, + `base_entry_fee_lowest_denomination` int DEFAULT NULL, + `currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'USD', + `connected_stripe_account_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `start_date` date DEFAULT NULL, + `end_date` date DEFAULT NULL, + `enable_donations` tinyint(1) DEFAULT NULL, + `competitor_limit_enabled` tinyint(1) DEFAULT NULL, + `competitor_limit` int DEFAULT NULL, + `competitor_limit_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `extra_registration_requirements` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `on_the_spot_registration` tinyint(1) DEFAULT NULL, + `on_the_spot_entry_fee_lowest_denomination` int DEFAULT NULL, + `refund_policy_percent` int DEFAULT NULL, + `refund_policy_limit_date` datetime DEFAULT NULL, + `guests_entry_fee_lowest_denomination` int DEFAULT NULL, + `created_at` datetime DEFAULT NULL, + `updated_at` datetime DEFAULT NULL, + `results_submitted_at` datetime DEFAULT NULL, + `early_puzzle_submission` tinyint(1) DEFAULT NULL, + `early_puzzle_submission_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `qualification_results` tinyint(1) DEFAULT NULL, + `qualification_results_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `name_reason` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `external_registration_page` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `confirmed_at` datetime DEFAULT NULL, + `event_restrictions` tinyint(1) DEFAULT NULL, + `event_restrictions_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `registration_reminder_sent_at` datetime DEFAULT NULL, + `announced_by` int DEFAULT NULL, + `results_posted_by` int DEFAULT NULL, + `main_event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `cancelled_at` datetime DEFAULT NULL, + `cancelled_by` int DEFAULT NULL, + `waiting_list_deadline_date` datetime DEFAULT NULL, + `event_change_deadline_date` datetime DEFAULT NULL, + `guest_entry_status` int NOT NULL DEFAULT '0', + `allow_registration_edits` tinyint(1) NOT NULL DEFAULT '0', + `competition_series_id` int DEFAULT NULL, + `use_wca_live_for_scoretaking` tinyint(1) NOT NULL DEFAULT '0', + `allow_registration_without_qualification` tinyint(1) DEFAULT '0', + `guests_per_registration_limit` int DEFAULT NULL, + `events_per_registration_limit` int DEFAULT NULL, + `force_comment_in_registration` tinyint(1) DEFAULT NULL, + `posting_by` int DEFAULT NULL, + `forbid_newcomers` tinyint(1) NOT NULL DEFAULT '0', + `forbid_newcomers_reason` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `competitor_can_cancel` int NOT NULL DEFAULT '0', + `newcomer_month_reserved_spots` int DEFAULT NULL, + `auto_close_threshold` int DEFAULT NULL, + `auto_accept_registrations` tinyint(1) NOT NULL DEFAULT '0', + `auto_accept_disable_threshold` int DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `index_competitions_on_cancelled_at` (`cancelled_at`), + KEY `index_Competitions_on_countryId` (`country_id`), + KEY `index_competitions_on_end_date` (`end_date`), + KEY `index_competitions_on_start_date` (`start_date`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `concise_average_results` +-- + +DROP TABLE IF EXISTS `concise_average_results`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `concise_average_results` ( + `id` int NOT NULL DEFAULT '0', + `average` int NOT NULL DEFAULT '0', + `value_and_id` bigint DEFAULT NULL, + `person_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `country_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `continent_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `year` smallint unsigned NOT NULL DEFAULT '0', + `month` smallint unsigned NOT NULL DEFAULT '0', + `day` smallint unsigned NOT NULL DEFAULT '0' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `concise_single_results` +-- + +DROP TABLE IF EXISTS `concise_single_results`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `concise_single_results` ( + `id` int NOT NULL DEFAULT '0', + `best` int NOT NULL DEFAULT '0', + `value_and_id` bigint DEFAULT NULL, + `person_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `country_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `continent_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `year` smallint unsigned NOT NULL DEFAULT '0', + `month` smallint unsigned NOT NULL DEFAULT '0', + `day` smallint unsigned NOT NULL DEFAULT '0' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `connected_paypal_accounts` +-- + +DROP TABLE IF EXISTS `connected_paypal_accounts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `connected_paypal_accounts` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `paypal_merchant_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `permissions_granted` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `account_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `consent_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `completed_jobs`; + +-- +-- Table structure for table `connected_stripe_accounts` +-- + +DROP TABLE IF EXISTS `connected_stripe_accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `completed_jobs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `priority` int(11) NOT NULL DEFAULT '0', - `attempts` int(11) NOT NULL DEFAULT '0', - `handler` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `run_at` datetime DEFAULT NULL, - `queue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `completed_at` datetime DEFAULT NULL, +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `connected_stripe_accounts` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `account_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `continents` +-- + +DROP TABLE IF EXISTS `continents`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `continents` ( + `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `record_name` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `latitude` int NOT NULL DEFAULT '0', + `longitude` int NOT NULL DEFAULT '0', + `zoom` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `countries` +-- + +DROP TABLE IF EXISTS `countries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `countries` ( + `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `continent_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `iso2` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `iso2` (`iso2`), + KEY `fk_continents` (`continent_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `country_band_details` +-- + +DROP TABLE IF EXISTS `country_band_details`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `country_band_details` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `number` int NOT NULL, + `start_date` date NOT NULL, + `end_date` date DEFAULT NULL, + `due_amount_per_competitor_us_cents` int NOT NULL, + `due_percent_registration_fee` int NOT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `country_bands` +-- + DROP TABLE IF EXISTS `country_bands`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `country_bands` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `number` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `number` int NOT NULL, `iso2` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_country_bands_on_iso2` (`iso2`), KEY `index_country_bands_on_number` (`number`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `delayed_jobs`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `delayed_jobs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `priority` int(11) NOT NULL DEFAULT '0', - `attempts` int(11) NOT NULL DEFAULT '0', - `handler` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `last_error` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `run_at` datetime DEFAULT NULL, - `locked_at` datetime DEFAULT NULL, - `failed_at` datetime DEFAULT NULL, - `locked_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `queue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `delayed_jobs_priority` (`priority`,`run_at`) + +-- +-- Table structure for table `cronjob_statistics` +-- + +DROP TABLE IF EXISTS `cronjob_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `cronjob_statistics` ( + `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `run_start` datetime DEFAULT NULL, + `run_end` datetime DEFAULT NULL, + `last_run_successful` tinyint(1) NOT NULL DEFAULT '0', + `last_error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `successful_run_start` datetime DEFAULT NULL, + `enqueued_at` datetime DEFAULT NULL, + `recently_rejected` int NOT NULL DEFAULT '0', + `recently_errored` int NOT NULL DEFAULT '0', + `times_completed` int NOT NULL DEFAULT '0', + `average_runtime` bigint DEFAULT NULL, + PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `delegate_reports` +-- + DROP TABLE IF EXISTS `delegate_reports`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `delegate_reports` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `version` int NOT NULL DEFAULT '0', + `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `equipment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `venue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `organization` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, @@ -876,64 +906,253 @@ CREATE TABLE `delegate_reports` ( `incidents` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `discussion_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `posted_by_user_id` int(11) DEFAULT NULL, + `posted_by_user_id` int DEFAULT NULL, `posted_at` datetime DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `nag_sent_at` datetime DEFAULT NULL, `wrc_feedback_requested` tinyint(1) NOT NULL DEFAULT '0', `wrc_incidents` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `wdc_feedback_requested` tinyint(1) NOT NULL DEFAULT '0', - `wdc_incidents` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `wrc_primary_user_id` int(11) DEFAULT NULL, - `wrc_secondary_user_id` int(11) DEFAULT NULL, + `wic_feedback_requested` tinyint(1) NOT NULL DEFAULT '0', + `wic_incidents` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `wrc_primary_user_id` int DEFAULT NULL, + `wrc_secondary_user_id` int DEFAULT NULL, `reminder_sent_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_delegate_reports_on_competition_id` (`competition_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=17412 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `eligible_country_iso2s_for_championship` +-- + DROP TABLE IF EXISTS `eligible_country_iso2s_for_championship`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `eligible_country_iso2s_for_championship` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, `championship_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `eligible_country_iso2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`id`), UNIQUE KEY `index_eligible_iso2s_for_championship_on_type_and_country_iso2` (`championship_type`,`eligible_country_iso2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `events` +-- + +DROP TABLE IF EXISTS `events`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `events` ( + `id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(54) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `rank` int NOT NULL DEFAULT '0', + `format` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `formats` +-- + +DROP TABLE IF EXISTS `formats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `formats` ( + `id` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `sort_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `sort_by_second` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `expected_solve_count` int NOT NULL, + `trim_fastest_n` int NOT NULL, + `trim_slowest_n` int NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `groups_metadata_board` +-- + +DROP TABLE IF EXISTS `groups_metadata_board`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups_metadata_board` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `groups_metadata_councils` +-- + +DROP TABLE IF EXISTS `groups_metadata_councils`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups_metadata_councils` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `friendly_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `groups_metadata_delegate_regions` +-- + +DROP TABLE IF EXISTS `groups_metadata_delegate_regions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups_metadata_delegate_regions` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + `friendly_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `groups_metadata_teams_committees` +-- + +DROP TABLE IF EXISTS `groups_metadata_teams_committees`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups_metadata_teams_committees` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `friendly_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + `preferred_contact_mode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'email', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `groups_metadata_translators` +-- + +DROP TABLE IF EXISTS `groups_metadata_translators`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `groups_metadata_translators` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `locale` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `inbox_persons` +-- + +DROP TABLE IF EXISTS `inbox_persons`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `inbox_persons` ( + `id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `wca_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_iso2` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `gender` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', + `dob` date NOT NULL, + `competition_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + UNIQUE KEY `index_InboxPersons_on_competitionId_and_id` (`competition_id`,`id`), + KEY `InboxPersons_fk_country` (`country_iso2`), + KEY `InboxPersons_name` (`name`), + KEY `InboxPersons_id` (`wca_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `inbox_results` +-- + +DROP TABLE IF EXISTS `inbox_results`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `inbox_results` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `person_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `pos` smallint NOT NULL DEFAULT '0', + `competition_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `round_type_id` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `format_id` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `value1` int NOT NULL DEFAULT '0', + `value2` int NOT NULL DEFAULT '0', + `value3` int NOT NULL DEFAULT '0', + `value4` int NOT NULL DEFAULT '0', + `value5` int NOT NULL DEFAULT '0', + `best` int NOT NULL DEFAULT '0', + `average` int NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `InboxResults_fk_tournament` (`competition_id`), + KEY `InboxResults_fk_event` (`event_id`), + KEY `InboxResults_fk_format` (`format_id`), + KEY `InboxResults_fk_round` (`round_type_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=0; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `incident_competitions` +-- + DROP TABLE IF EXISTS `incident_competitions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `incident_competitions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `incident_id` bigint(20) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `incident_id` bigint NOT NULL, `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `comments` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_incident_competitions_on_incident_id_and_competition_id` (`incident_id`,`competition_id`), KEY `index_incident_competitions_on_incident_id` (`incident_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=208 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `incident_tags` +-- + DROP TABLE IF EXISTS `incident_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `incident_tags` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `incident_id` bigint(20) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `incident_id` bigint NOT NULL, `tag` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_incident_tags_on_incident_id_and_tag` (`incident_id`,`tag`), KEY `index_incident_tags_on_incident_id` (`incident_id`), KEY `index_incident_tags_on_tag` (`tag`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=254 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `incidents` +-- + DROP TABLE IF EXISTS `incidents`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `incidents` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `private_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `private_wrc_decision` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, @@ -944,40 +1163,125 @@ CREATE TABLE `incidents` ( `digest_worthy` tinyint(1) DEFAULT '0', `digest_sent_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=159 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `linkings`; + +-- +-- Table structure for table `jwt_denylist` +-- + +DROP TABLE IF EXISTS `jwt_denylist`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `linkings` ( - `wca_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `wca_ids` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - UNIQUE KEY `index_linkings_on_wca_id` (`wca_id`) +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `jwt_denylist` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `jti` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `exp` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `index_jwt_denylist_on_jti` (`jti`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `live_attempt_history_entries` +-- + +DROP TABLE IF EXISTS `live_attempt_history_entries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `live_attempt_history_entries` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `entered_at` datetime(6) NOT NULL, + `entered_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `live_attempt_id` bigint NOT NULL, + `result` int NOT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `index_live_attempt_history_entries_on_live_attempt_id` (`live_attempt_id`), + CONSTRAINT `fk_rails_e9c979ea85` FOREIGN KEY (`live_attempt_id`) REFERENCES `live_attempts` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `live_attempts` +-- + +DROP TABLE IF EXISTS `live_attempts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `live_attempts` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `result` int NOT NULL, + `attempt_number` int NOT NULL, + `live_result_id` bigint DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `index_live_attempts_on_live_result_id` (`live_result_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `live_results` +-- + +DROP TABLE IF EXISTS `live_results`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `live_results` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `registration_id` bigint NOT NULL, + `round_id` bigint NOT NULL, + `last_attempt_entered_at` datetime(6) NOT NULL, + `ranking` int DEFAULT NULL, + `best` int NOT NULL, + `average` int NOT NULL, + `single_record_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `average_record_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `advancing` tinyint(1) NOT NULL DEFAULT '0', + `advancing_questionable` tinyint(1) NOT NULL DEFAULT '0', + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `index_live_results_on_registration_id_and_round_id` (`registration_id`,`round_id`), + KEY `index_live_results_on_registration_id` (`registration_id`), + KEY `index_live_results_on_round_id` (`round_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `locations` +-- + DROP TABLE IF EXISTS `locations`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `locations` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `latitude_microdegrees` int(11) DEFAULT NULL, - `longitude_microdegrees` int(11) DEFAULT NULL, - `notification_radius_km` int(11) DEFAULT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL, + `latitude_microdegrees` int DEFAULT NULL, + `longitude_microdegrees` int DEFAULT NULL, + `notification_radius_km` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `oauth_access_grants` +-- + DROP TABLE IF EXISTS `oauth_access_grants`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oauth_access_grants` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `resource_owner_id` int(11) NOT NULL, - `application_id` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `resource_owner_id` int NOT NULL, + `application_id` int NOT NULL, `token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `expires_in` int(11) NOT NULL, + `expires_in` int NOT NULL, `redirect_uri` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_at` datetime NOT NULL, `revoked_at` datetime DEFAULT NULL, @@ -986,16 +1290,21 @@ CREATE TABLE `oauth_access_grants` ( UNIQUE KEY `index_oauth_access_grants_on_token` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `oauth_access_tokens` +-- + DROP TABLE IF EXISTS `oauth_access_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oauth_access_tokens` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `resource_owner_id` int(11) DEFAULT NULL, - `application_id` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `resource_owner_id` int DEFAULT NULL, + `application_id` int DEFAULT NULL, `token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `refresh_token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `expires_in` int(11) DEFAULT NULL, + `expires_in` int DEFAULT NULL, `revoked_at` datetime DEFAULT NULL, `created_at` datetime NOT NULL, `scopes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, @@ -1005,11 +1314,16 @@ CREATE TABLE `oauth_access_tokens` ( KEY `index_oauth_access_tokens_on_resource_owner_id` (`resource_owner_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `oauth_applications` +-- + DROP TABLE IF EXISTS `oauth_applications`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oauth_applications` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `uid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, @@ -1017,7 +1331,7 @@ CREATE TABLE `oauth_applications` ( `scopes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, - `owner_id` int(11) DEFAULT NULL, + `owner_id` int DEFAULT NULL, `owner_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `dangerously_allow_any_redirect_uri` tinyint(1) NOT NULL DEFAULT '0', `confidential` tinyint(1) NOT NULL DEFAULT '1', @@ -1026,22 +1340,137 @@ CREATE TABLE `oauth_applications` ( KEY `index_oauth_applications_on_owner_id_and_owner_type` (`owner_id`,`owner_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `oauth_openid_requests` +-- + +DROP TABLE IF EXISTS `oauth_openid_requests`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `oauth_openid_requests` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `access_grant_id` int NOT NULL, + `nonce` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`), + KEY `index_oauth_openid_requests_on_access_grant_id` (`access_grant_id`), + CONSTRAINT `fk_rails_77114b3b09` FOREIGN KEY (`access_grant_id`) REFERENCES `oauth_access_grants` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `payment_intents` +-- + +DROP TABLE IF EXISTS `payment_intents`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `payment_intents` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `holder_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `holder_id` bigint DEFAULT NULL, + `payment_record_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `payment_record_id` bigint DEFAULT NULL, + `client_secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `error_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `created_at` datetime NOT NULL, + `updated_at` datetime NOT NULL, + `initiated_by_id` int DEFAULT NULL, + `confirmed_at` datetime DEFAULT NULL, + `confirmation_source_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `confirmation_source_id` bigint DEFAULT NULL, + `canceled_at` datetime DEFAULT NULL, + `cancellation_source_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `cancellation_source_id` bigint DEFAULT NULL, + `wca_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `index_stripe_payment_intents_on_canceled_by` (`cancellation_source_type`,`cancellation_source_id`), + KEY `index_stripe_payment_intents_on_confirmed_by` (`confirmation_source_type`,`confirmation_source_id`), + KEY `index_payment_intents_on_holder` (`holder_type`,`holder_id`), + KEY `fk_rails_2dbc373c0c` (`initiated_by_id`), + KEY `index_payment_intents_on_payment_record_id` (`payment_record_id`), + CONSTRAINT `fk_rails_d5d856472c` FOREIGN KEY (`initiated_by_id`) REFERENCES `users` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `paypal_records` +-- + +DROP TABLE IF EXISTS `paypal_records`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `paypal_records` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `paypal_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `paypal_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `amount_paypal_denomination` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `paypal_record_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `parent_record_id` bigint DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + `merchant_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at_remote` datetime(6) DEFAULT NULL, + `updated_at_remote` datetime(6) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `index_paypal_records_on_parent_record_id` (`parent_record_id`), + CONSTRAINT `fk_rails_566d8fdf3e` FOREIGN KEY (`parent_record_id`) REFERENCES `paypal_records` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `persons` +-- + +DROP TABLE IF EXISTS `persons`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `persons` ( + `id` int NOT NULL AUTO_INCREMENT, + `wca_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `sub_id` tinyint NOT NULL DEFAULT '1', + `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `gender` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', + `dob` date DEFAULT NULL, + `comments` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `incorrect_wca_id_claim_count` int NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + UNIQUE KEY `index_Persons_on_wca_id_and_subId` (`wca_id`,`sub_id`), + KEY `Persons_fk_country` (`country_id`), + KEY `Persons_name` (`name`), + KEY `index_persons_on_wca_id` (`wca_id`), + FULLTEXT KEY `index_persons_on_name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=262237 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `poll_options` +-- + DROP TABLE IF EXISTS `poll_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `poll_options` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `description` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `poll_id` int(11) NOT NULL, + `poll_id` int NOT NULL, PRIMARY KEY (`id`), - KEY `poll_id` (`poll_id`) USING BTREE + KEY `poll_id` (`poll_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `polls` +-- + DROP TABLE IF EXISTS `polls`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `polls` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `question` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `multiple` tinyint(1) NOT NULL, `deadline` datetime NOT NULL, @@ -1052,56 +1481,132 @@ CREATE TABLE `polls` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `post_tags` +-- + DROP TABLE IF EXISTS `post_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `post_tags` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `post_id` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `post_id` int NOT NULL, `tag` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_post_tags_on_post_id_and_tag` (`post_id`,`tag`), KEY `index_post_tags_on_post_id` (`post_id`), KEY `index_post_tags_on_tag` (`tag`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=22594 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `posts` +-- + DROP TABLE IF EXISTS `posts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `posts` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `slug` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `sticky` tinyint(1) NOT NULL DEFAULT '0', - `author_id` int(11) DEFAULT NULL, + `author_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `show_on_homepage` tinyint(1) NOT NULL DEFAULT '1', `unstick_at` date DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_posts_on_slug` (`slug`), - KEY `index_posts_on_world_readable_and_sticky_and_created_at` (`sticky`,`created_at`), KEY `index_posts_on_world_readable_and_created_at` (`created_at`), - KEY `idx_show_wr_sticky_created_at` (`show_on_homepage`,`sticky`,`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + KEY `idx_show_wr_sticky_created_at` (`show_on_homepage`,`sticky`,`created_at`), + KEY `index_posts_on_world_readable_and_sticky_and_created_at` (`sticky`,`created_at`) +) ENGINE=InnoDB AUTO_INCREMENT=14202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `preferred_formats` +-- + DROP TABLE IF EXISTS `preferred_formats`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `preferred_formats` ( `event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `format_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `ranking` int(11) NOT NULL, + `ranking` int NOT NULL, UNIQUE KEY `index_preferred_formats_on_event_id_and_format_id` (`event_id`,`format_id`), KEY `fk_rails_c3e0098ed3` (`format_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `ranks_average` +-- + +DROP TABLE IF EXISTS `ranks_average`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `ranks_average` ( + `id` int NOT NULL AUTO_INCREMENT, + `person_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `best` int NOT NULL DEFAULT '0', + `world_rank` int NOT NULL DEFAULT '0', + `continent_rank` int NOT NULL DEFAULT '0', + `country_rank` int NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `fk_events` (`event_id`), + KEY `fk_persons` (`person_id`) +) ENGINE=InnoDB AUTO_INCREMENT=784218 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `ranks_single` +-- + +DROP TABLE IF EXISTS `ranks_single`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `ranks_single` ( + `id` int NOT NULL AUTO_INCREMENT, + `person_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `best` int NOT NULL DEFAULT '0', + `world_rank` int NOT NULL DEFAULT '0', + `continent_rank` int NOT NULL DEFAULT '0', + `country_rank` int NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `fk_events` (`event_id`), + KEY `fk_persons` (`person_id`) +) ENGINE=InnoDB AUTO_INCREMENT=905974 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `record_evolution` +-- + +DROP TABLE IF EXISTS `record_evolution`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `record_evolution` ( + `event_id` varchar(6) NOT NULL, + `evolution` json NOT NULL, + PRIMARY KEY (`event_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `regional_organizations` +-- + DROP TABLE IF EXISTS `regional_organizations`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `regional_organizations` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `website` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, @@ -1117,431 +1622,276 @@ CREATE TABLE `regional_organizations` ( `future_plans` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `extra_information` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, PRIMARY KEY (`id`), - KEY `index_regional_organizations_on_name` (`name`), - KEY `index_regional_organizations_on_country` (`country`) + KEY `index_regional_organizations_on_country` (`country`), + KEY `index_regional_organizations_on_name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `regional_records_lookup` +-- + +DROP TABLE IF EXISTS `regional_records_lookup`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `regional_records_lookup` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `result_id` int NOT NULL, + `country_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `competition_end_date` date NOT NULL, + `best` int NOT NULL DEFAULT '0', + `average` int NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `idx_on_eventId_countryId_average_competitionEndDate_b424c59953` (`event_id`,`country_id`,`average`,`competition_end_date`), + KEY `idx_on_eventId_countryId_best_competitionEndDate_4e01b1ae38` (`event_id`,`country_id`,`best`,`competition_end_date`), + KEY `index_regional_records_lookup_on_resultId` (`result_id`), + CONSTRAINT `fk_rails_7928b195ce` FOREIGN KEY (`result_id`) REFERENCES `results` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `registration_competition_events` +-- + DROP TABLE IF EXISTS `registration_competition_events`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `registration_competition_events` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `registration_id` int(11) DEFAULT NULL, - `competition_event_id` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `registration_id` int DEFAULT NULL, + `competition_event_id` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `idx_registration_competition_events_on_reg_id_and_comp_event_id` (`registration_id`,`competition_event_id`), - KEY `index_reg_events_reg_id_comp_event_id` (`registration_id`,`competition_event_id`) + KEY `index_registration_competition_events_on_competition_event_id` (`competition_event_id`), + KEY `index_reg_events_reg_id_comp_event_id` (`registration_id`,`competition_event_id`), + KEY `index_registration_competition_events_on_registration_id` (`registration_id`) +) ENGINE=InnoDB AUTO_INCREMENT=6280024 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `registration_history_changes` +-- + +DROP TABLE IF EXISTS `registration_history_changes`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `registration_history_changes` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `registration_history_entry_id` bigint DEFAULT NULL, + `key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `idx_on_registration_history_entry_id_e1e6e4bed0` (`registration_history_entry_id`), + CONSTRAINT `fk_rails_c0c65a2353` FOREIGN KEY (`registration_history_entry_id`) REFERENCES `registration_history_entries` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `registration_history_entries` +-- + +DROP TABLE IF EXISTS `registration_history_entries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `registration_history_entries` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `registration_id` bigint DEFAULT NULL, + `actor_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `actor_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `action` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` datetime(6) NOT NULL, + `updated_at` datetime(6) NOT NULL, + PRIMARY KEY (`id`), + KEY `index_registration_history_entries_on_registration_id` (`registration_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `registration_payments` +-- + DROP TABLE IF EXISTS `registration_payments`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `registration_payments` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `registration_id` int(11) DEFAULT NULL, - `amount_lowest_denomination` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `registration_id` int DEFAULT NULL, + `amount_lowest_denomination` int DEFAULT NULL, `currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `receipt_id` bigint DEFAULT NULL, - `receipt_type` varchar(191) DEFAULT NULL, + `receipt_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `stripe_charge_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, - `refunded_registration_payment_id` int(11) DEFAULT NULL, - `user_id` int(11) DEFAULT NULL, + `refunded_registration_payment_id` int DEFAULT NULL, + `user_id` int DEFAULT NULL, PRIMARY KEY (`id`), - KEY `index_registration_payments_on_stripe_charge_id` (`stripe_charge_id`), + KEY `index_registration_payments_on_receipt` (`receipt_type`,`receipt_id`), KEY `idx_reg_payments_on_refunded_registration_payment_id` (`refunded_registration_payment_id`), - KEY `index_registration_payments_on_receipt` (`receipt_type`, `receipt_id`) + KEY `index_registration_payments_on_registration_id` (`registration_id`), + KEY `index_registration_payments_on_stripe_charge_id` (`stripe_charge_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `registrations` +-- + DROP TABLE IF EXISTS `registrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `registrations` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `competition_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `user_id` int(11) DEFAULT NULL, + `user_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, - `guests` int(11) NOT NULL DEFAULT '0', + `guests` int NOT NULL DEFAULT '0', `accepted_at` datetime DEFAULT NULL, - `accepted_by` int(11) DEFAULT NULL, + `accepted_by` int DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, - `deleted_by` int(11) DEFAULT NULL, + `deleted_by` int DEFAULT NULL, `roles` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `is_competing` tinyint(1) DEFAULT '1', `administrative_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `competing_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `registered_at` datetime(6) NOT NULL, PRIMARY KEY (`id`), - UNIQUE KEY `index_registrations_on_competition_id_and_user_id` (`competition_id`,`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `rounds`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `rounds` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `competition_event_id` int(11) NOT NULL, - `format_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `number` int(11) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `time_limit` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `cutoff` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `advancement_condition` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `scramble_set_count` int(11) NOT NULL DEFAULT '1', - `round_results` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `total_number_of_rounds` int(11) NOT NULL, - `old_type` varchar(1) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_rounds_on_competition_event_id_and_number` (`competition_event_id`,`number`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `sanity_check_categories`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `sanity_check_categories` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_sanity_check_categories_on_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `sanity_check_exclusions`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `sanity_check_exclusions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `sanity_check_id` bigint(20) NOT NULL, - `exclusion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - PRIMARY KEY (`id`), - KEY `fk_rails_c9112973d2` (`sanity_check_id`), - CONSTRAINT `fk_rails_c9112973d2` FOREIGN KEY (`sanity_check_id`) REFERENCES `sanity_checks` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `sanity_checks`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `sanity_checks` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `sanity_check_category_id` bigint(20) NOT NULL, - `topic` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `query` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_sanity_checks_on_topic` (`topic`), - KEY `fk_rails_fddad5fbb5` (`sanity_check_category_id`), - CONSTRAINT `fk_rails_fddad5fbb5` FOREIGN KEY (`sanity_check_category_id`) REFERENCES `sanity_check_categories` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `schedule_activities`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `schedule_activities` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `holder_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `holder_id` bigint(20) NOT NULL, - `wcif_id` int(11) NOT NULL, - `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `activity_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `start_time` datetime NOT NULL, - `end_time` datetime NOT NULL, - `scramble_set_id` int(11) DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_activities_on_their_id_within_holder` (`holder_type`,`holder_id`,`wcif_id`), - KEY `index_schedule_activities_on_holder_type_and_holder_id` (`holder_type`,`holder_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `schema_migrations`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `schema_migrations` ( - `version` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - UNIQUE KEY `unique_schema_migrations` (`version`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `starburst_announcement_views`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `starburst_announcement_views` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `announcement_id` int(11) DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `starburst_announcement_view_index` (`user_id`,`announcement_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `starburst_announcements`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `starburst_announcements` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `start_delivering_at` datetime DEFAULT NULL, - `stop_delivering_at` datetime DEFAULT NULL, - `limit_to_users` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `category` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `stripe_transactions`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `stripe_transactions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `api_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `stripe_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `amount_stripe_denomination` int(11) DEFAULT NULL, - `currency_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `error` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `account_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `parent_transaction_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_stripe_transactions_on_status` (`status`), - CONSTRAINT `fk_rails_6ad225b020` FOREIGN KEY (`parent_transaction_id`) REFERENCES `stripe_transactions` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `stripe_payment_intents`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `stripe_payment_intents` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `holder_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `holder_id` bigint(20) DEFAULT NULL, - `stripe_transaction_id` bigint(20) DEFAULT NULL, - `client_secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `error_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `user_id` int(11) DEFAULT NULL, - `confirmed_at` datetime DEFAULT NULL, - `confirmed_by_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `confirmed_by_id` bigint(20) DEFAULT NULL, - `canceled_at` datetime DEFAULT NULL, - `canceled_by_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `canceled_by_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_stripe_payment_intents_on_holder` (`holder_type`,`holder_id`), - KEY `index_stripe_payment_intents_on_confirmed_by` (`confirmed_by_type`,`confirmed_by_id`), - KEY `index_stripe_payment_intents_on_canceled_by` (`canceled_by_type`,`canceled_by_id`), - KEY `index_stripe_payment_intents_on_stripe_transaction_id` (`stripe_transaction_id`), - CONSTRAINT `fk_rails_81f3af31de` FOREIGN KEY (`stripe_transaction_id`) REFERENCES `stripe_transactions` (`id`), - CONSTRAINT `fk_rails_2dbc373c0c` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `stripe_webhook_events`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `stripe_webhook_events` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `stripe_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `event_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `account_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `handled` tinyint(1) NOT NULL DEFAULT '0', - `stripe_transaction_id` bigint(20) DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - PRIMARY KEY (`id`), - KEY `index_stripe_webhook_events_on_stripe_transaction_id` (`stripe_transaction_id`), - CONSTRAINT `fk_rails_44a72b44fd` FOREIGN KEY (`stripe_transaction_id`) REFERENCES `stripe_transactions` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `team_members`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `team_members` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `team_id` int(11) NOT NULL, - `user_id` int(11) NOT NULL, - `start_date` date NOT NULL, - `end_date` date DEFAULT NULL, - `team_leader` tinyint(1) NOT NULL DEFAULT '0', - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `team_senior_member` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `teams`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `teams` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `friendly_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `hidden` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `index_teams_on_friendly_id` (`friendly_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `timestamps`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `timestamps` ( - `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `date` datetime DEFAULT NULL, - UNIQUE KEY `index_timestamps_on_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + UNIQUE KEY `index_registrations_on_competition_id_and_user_id` (`competition_id`,`user_id`), + KEY `index_registrations_on_competition_id_and_competing_status` (`competition_id`,`competing_status`), + KEY `index_registrations_on_competition_id` (`competition_id`), + KEY `index_registrations_on_user_id` (`user_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1142220 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `uploaded_jsons`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `uploaded_jsons` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `competition_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `json_str` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - PRIMARY KEY (`id`), - KEY `index_uploaded_jsons_on_competition_id` (`competition_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `user_preferred_events`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `user_preferred_events` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `event_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + +-- +-- Table structure for table `results` +-- + +DROP TABLE IF EXISTS `results`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `results` ( + `id` int NOT NULL AUTO_INCREMENT, + `pos` smallint NOT NULL DEFAULT '0', + `person_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `person_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `competition_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `event_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `round_type_id` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `format_id` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `value1` int NOT NULL DEFAULT '0', + `value2` int NOT NULL DEFAULT '0', + `value3` int NOT NULL DEFAULT '0', + `value4` int NOT NULL DEFAULT '0', + `value5` int NOT NULL DEFAULT '0', + `best` int NOT NULL DEFAULT '0', + `average` int NOT NULL DEFAULT '0', + `regional_single_record` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `regional_average_record` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - UNIQUE KEY `index_user_preferred_events_on_user_id_and_event_id` (`user_id`,`event_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + KEY `index_Results_on_competitionId_and_updated_at` (`competition_id`,`updated_at`), + KEY `Results_fk_tournament` (`competition_id`), + KEY `_tmp_index_Results_on_countryId` (`country_id`), + KEY `Results_eventAndAverage` (`event_id`,`average`), + KEY `Results_eventAndBest` (`event_id`,`best`), + KEY `Results_regionalAverageRecordCheckSpeedup` (`event_id`,`competition_id`,`round_type_id`,`country_id`,`average`), + KEY `Results_regionalSingleRecordCheckSpeedup` (`event_id`,`competition_id`,`round_type_id`,`country_id`,`best`), + KEY `index_Results_on_eventId_and_value1` (`event_id`,`value1`), + KEY `index_Results_on_eventId_and_value2` (`event_id`,`value2`), + KEY `index_Results_on_eventId_and_value3` (`event_id`,`value3`), + KEY `index_Results_on_eventId_and_value4` (`event_id`,`value4`), + KEY `index_Results_on_eventId_and_value5` (`event_id`,`value5`), + KEY `Results_fk_event` (`event_id`), + KEY `Results_fk_format` (`format_id`), + KEY `Results_fk_competitor` (`person_id`), + KEY `index_Results_on_regionalAverageRecord_and_eventId` (`regional_average_record`,`event_id`), + KEY `index_Results_on_regionalSingleRecord_and_eventId` (`regional_single_record`,`event_id`), + KEY `Results_fk_round` (`round_type_id`) +) ENGINE=InnoDB AUTO_INCREMENT=7068314 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci PACK_KEYS=1; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `users`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `users` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `encrypted_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `reset_password_token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `reset_password_sent_at` datetime DEFAULT NULL, - `remember_created_at` datetime DEFAULT NULL, - `sign_in_count` int(11) NOT NULL DEFAULT '0', - `current_sign_in_at` datetime DEFAULT NULL, - `last_sign_in_at` datetime DEFAULT NULL, - `current_sign_in_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `last_sign_in_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `confirmation_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `confirmed_at` datetime DEFAULT NULL, - `confirmation_sent_at` datetime DEFAULT NULL, - `unconfirmed_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `created_at` datetime DEFAULT NULL, - `updated_at` datetime DEFAULT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `delegate_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `senior_delegate_id` int(11) DEFAULT NULL, - `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `wca_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `pending_avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `saved_avatar_crop_x` int(11) DEFAULT NULL, - `saved_avatar_crop_y` int(11) DEFAULT NULL, - `saved_avatar_crop_w` int(11) DEFAULT NULL, - `saved_avatar_crop_h` int(11) DEFAULT NULL, - `saved_pending_avatar_crop_x` int(11) DEFAULT NULL, - `saved_pending_avatar_crop_y` int(11) DEFAULT NULL, - `saved_pending_avatar_crop_w` int(11) DEFAULT NULL, - `saved_pending_avatar_crop_h` int(11) DEFAULT NULL, - `unconfirmed_wca_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `delegate_id_to_handle_wca_id_claim` int(11) DEFAULT NULL, - `dob` date DEFAULT NULL, - `gender` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `country_iso2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `results_notifications_enabled` tinyint(1) DEFAULT '0', - `preferred_locale` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `competition_notifications_enabled` tinyint(1) DEFAULT NULL, - `receive_delegate_reports` tinyint(1) NOT NULL DEFAULT '0', - `dummy_account` tinyint(1) NOT NULL DEFAULT '0', - `consumed_timestep` int(11) DEFAULT NULL, - `otp_required_for_login` tinyint(1) DEFAULT '0', - `otp_backup_codes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `session_validity_token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `cookies_acknowledged` tinyint(1) NOT NULL DEFAULT '0', - `registration_notifications_enabled` tinyint(1) DEFAULT '0', - `otp_secret` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_users_on_email` (`email`), - UNIQUE KEY `index_users_on_reset_password_token` (`reset_password_token`), - UNIQUE KEY `index_users_on_wca_id` (`wca_id`), - KEY `index_users_on_senior_delegate_id` (`senior_delegate_id`), - KEY `index_users_on_delegate_id_to_handle_wca_id_claim` (`delegate_id_to_handle_wca_id_claim`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `statistics` +-- + +DROP TABLE IF EXISTS `statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `statistics` ( + `path` varchar(100) NOT NULL, + `title` varchar(100) NOT NULL, + `explanation` varchar(200) DEFAULT NULL, + `display_mode` varchar(20) NOT NULL, + `group_name` varchar(20) NOT NULL, + `statistics` json NOT NULL, + `last_modified` datetime NOT NULL, + `export_date` datetime NOT NULL, + PRIMARY KEY (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `venue_rooms`; + +-- +-- Table structure for table `statistics_control` +-- + +DROP TABLE IF EXISTS `statistics_control`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `venue_rooms` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `competition_venue_id` bigint(20) NOT NULL, - `wcif_id` int(11) NOT NULL, - `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `statistics_control` ( + `path` varchar(100) NOT NULL, + `status` varchar(20) NOT NULL, + `message` varchar(200) DEFAULT NULL, `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - `color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_venue_rooms_on_competition_venue_id_and_wcif_id` (`competition_venue_id`,`wcif_id`), - KEY `index_venue_rooms_on_competition_venue_id` (`competition_venue_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -/*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `vote_options`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `vote_options` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vote_id` int(11) NOT NULL, - `poll_option_id` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + `completed_at` datetime DEFAULT NULL, + PRIMARY KEY (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `votes`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `votes` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `comment` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `poll_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `index_votes_on_user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `sum_of_ranks` +-- + +DROP TABLE IF EXISTS `sum_of_ranks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sum_of_ranks` ( + `region_rank` int DEFAULT NULL, + `region` varchar(100) NOT NULL, + `region_type` varchar(20) NOT NULL, + `wca_id` varchar(10) NOT NULL, + `name` varchar(255) DEFAULT NULL, + `country_iso2` varchar(2) DEFAULT NULL, + `result_type` varchar(7) NOT NULL, + `overall` int DEFAULT NULL, + `events` json NOT NULL, + PRIMARY KEY (`region`,`region_type`,`wca_id`,`result_type`), + KEY `sor_where_clause_idx` (`region`,`region_type`,`result_type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -DROP TABLE IF EXISTS `wcif_extensions`; + +-- +-- Table structure for table `sum_of_ranks_meta` +-- + +DROP TABLE IF EXISTS `sum_of_ranks_meta`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `wcif_extensions` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `extendable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `extendable_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `extension_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `spec_url` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - PRIMARY KEY (`id`), - KEY `index_wcif_extensions_on_extendable_type_and_extendable_id` (`extendable_type`,`extendable_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sum_of_ranks_meta` ( + `result_type` varchar(7) NOT NULL, + `region_type` varchar(20) NOT NULL, + `region` varchar(100) NOT NULL, + `total_size` int NOT NULL, + PRIMARY KEY (`result_type`,`region`,`region_type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -/*!50001 SET @saved_cs_client = @@character_set_client */; -/*!50001 SET @saved_cs_results = @@character_set_results */; -/*!50001 SET @saved_col_connection = @@collation_connection */; -/*!50001 SET character_set_client = utf8mb4 */; -/*!50001 SET character_set_results = utf8mb4 */; -/*!50001 SET collation_connection = utf8mb4_unicode_ci */; -/*!50001 SET character_set_client = @saved_cs_client */; -/*!50001 SET character_set_results = @saved_cs_results */; -/*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -1552,287 +1902,4 @@ CREATE TABLE `wcif_extensions` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -INSERT INTO `schema_migrations` (version) VALUES -('20150501004846'), -('20150504022234'), -('20150504163657'), -('20150520080634'), -('20150521000833'), -('20150521001340'), -('20150521005227'), -('20150521225109'), -('20150526035517'), -('20150601061358'), -('20150601224750'), -('20150602044759'), -('20150602062127'), -('20150602233220'), -('20150603015039'), -('20150718020058'), -('20150718020123'), -('20150806172310'), -('20150812014543'), -('20150819064257'), -('20150821164902'), -('20150826003626'), -('20150831195312'), -('20150903083847'), -('20150904062512'), -('20150908183742'), -('20150924011143'), -('20150924011919'), -('20150924155057'), -('20151001191340'), -('20151008211834'), -('20151014220307'), -('20151116195414'), -('20151117183214'), -('20151119063335'), -('20151119072940'), -('20151207230222'), -('20151209003851'), -('20151213232440'), -('20151214000352'), -('20151215193124'), -('20151217001125'), -('20151217054555'), -('20151217062612'), -('20151222013017'), -('20151230174411'), -('20160109070723'), -('20160120071503'), -('20160128023834'), -('20160218135313'), -('20160218234447'), -('20160223204831'), -('20160224013453'), -('20160303144700'), -('20160305170821'), -('20160406192349'), -('20160407005537'), -('20160407210623'), -('20160504170758'), -('20160504230105'), -('20160505231300'), -('20160513162613'), -('20160514124545'), -('20160514141051'), -('20160517140653'), -('20160518020433'), -('20160518045741'), -('20160520230353'), -('20160528071910'), -('20160531124049'), -('20160602105428'), -('20160610191605'), -('20160616183719'), -('20160627215744'), -('20160701034833'), -('20160705120632'), -('20160705121551'), -('20160727000015'), -('20160731181145'), -('20160811013347'), -('20160825124202'), -('20160831212003'), -('20160901120254'), -('20160902230822'), -('20160914122252'), -('20160930213354'), -('20161011005956'), -('20161018220122'), -('20161026201019'), -('20161031215932'), -('20161108081416'), -('20161108210423'), -('20161117085757'), -('20161118141833'), -('20161122014040'), -('20161122162029'), -('20161201211133'), -('20161206204738'), -('20161212200704'), -('20161221205552'), -('20161226223701'), -('20161227202950'), -('20170121202850'), -('20170212005142'), -('20170215221832'), -('20170223153915'), -('20170228140556'), -('20170320222511'), -('20170402223714'), -('20170404184332'), -('20170406170418'), -('20170417072301'), -('20170418171035'), -('20170421204700'), -('20170426145811'), -('20170502232234'), -('20170503205810'), -('20170510071858'), -('20170516002944'), -('20170517192919'), -('20170517194354'), -('20170517213035'), -('20170518011526'), -('20170523034604'), -('20170523185221'), -('20170524221221'), -('20170524224533'), -('20170624115851'), -('20170629134754'), -('20170726133627'), -('20170801010739'), -('20170812120421'), -('20170816115449'), -('20170816143703'), -('20170818141716'), -('20170818164058'), -('20170820023104'), -('20170823170616'), -('20170823203113'), -('20170824082448'), -('20170824133352'), -('20170830140540'), -('20170831170616'), -('20170916165728'), -('20171006182851'), -('20171113154922'), -('20171119143749'), -('20171122010954'), -('20171122220857'), -('20171124184454'), -('20171219000023'), -('20171219200237'), -('20171219204656'), -('20171221184910'), -('20171222100000'), -('20171222182940'), -('20180104132335'), -('20180107142301'), -('20180120132926'), -('20180201005000'), -('20180205000001'), -('20180205000002'), -('20180205000003'), -('20180206211650'), -('20180403194359'), -('20180526084857'), -('20180528130810'), -('20180621093155'), -('20180623171213'), -('20180629112054'), -('20180701160042'), -('20180703172949'), -('20180705231137'), -('20180708214503'), -('20180709220826'), -('20180710165401'), -('20180711124055'), -('20180729000001'), -('20180730182509'), -('20180731204733'), -('20180822165331'), -('20180825114051'), -('20180825115701'), -('20180831075355'), -('20180831164420'), -('20180908195553'), -('20180911140010'), -('20180912042457'), -('20181020004209'), -('20181021185003'), -('20181022031135'), -('20181109172930'), -('20181122233823'), -('20181208145408'), -('20181209171137'), -('20181222224850'), -('20181226115357'), -('20190105215446'), -('20190112130723'), -('20190113180945'), -('20190117112257'), -('20190124180224'), -('20190208175255'), -('20190216102110'), -('20190221194112'), -('20190514234342'), -('20190601105825'), -('20190601231550'), -('20190622173635'), -('20190716065618'), -('20190728084145'), -('20190803202212'), -('20190806173355'), -('20190814232833'), -('20190816001639'), -('20190816004605'), -('20190817170648'), -('20190817193315'), -('20190818102517'), -('20190825095512'), -('20190826005902'), -('20190916133253'), -('20191005203556'), -('20191013211511'), -('20191107212356'), -('20200125180554'), -('20200206012756'), -('20200304044931'), -('20200319193625'), -('20200331082313'), -('20200415151734'), -('20200419133415'), -('20200502095048'), -('20200522095030'), -('20200522125145'), -('20200607140007'), -('20200627195628'), -('20200725152218'), -('20201020193829'), -('20210129181657'), -('20210221190945'), -('20210301002636'), -('20210325202019'), -('20210501213332'), -('20210506205912'), -('20210521195423'), -('20210727081850'), -('20210802065056'), -('20211031152615'), -('20211031152616'), -('20211031152617'), -('20211031154101'), -('20211210100657'), -('20220223163446'), -('20220223163447'), -('20220511025003'), -('20220516124717'), -('20220619200832'), -('20220623121810'), -('20220627195217'), -('20220630233246'), -('20220706232200'), -('20220725045202'), -('20220725045819'), -('20220804193822'), -('20220822232936'), -('20220916132536'), -('20221121111430'), -('20221123090104'), -('20221123121220'), -('20221224215048'), -('20230119115432'), -('20230204111111'), -('20230303093411'), -('20230311165116'), -('20230311183558'), -('20230312182740'), -('20230315170143'), -('20230515103948'), -('20230517135741'), -('20230520171858'), -('20230520173123'), -('20230701100417'); +-- Dump completed on 2025-05-01 19:41:29 diff --git a/server/docker-compose-test.yaml b/server/docker-compose-test.yaml index ca3f8f27..0a09968b 100644 --- a/server/docker-compose-test.yaml +++ b/server/docker-compose-test.yaml @@ -1,7 +1,7 @@ version: "3.1" services: wca-test-db: - image: mysql:8.0 + image: mysql:8.4 environment: MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_DATABASE: wca_development diff --git a/server/src/main/resources/db/query/besteverranks/getDates.sql b/server/src/main/resources/db/query/besteverranks/getDates.sql index 73e5cbd9..80a68ed0 100644 --- a/server/src/main/resources/db/query/besteverranks/getDates.sql +++ b/server/src/main/resources/db/query/besteverranks/getDates.sql @@ -2,7 +2,7 @@ select distinct c.start_date from - Competitions c + competitions c inner join competition_events e on e.competition_id = c.id where event_id = :EVENT_ID @@ -10,9 +10,9 @@ where select 1 from - Results r + results r where - r.competitionId = c.id + r.competition_id = c.id ) order by start_date diff --git a/server/src/main/resources/db/query/besteverranks/getTodayCompetitors.sql b/server/src/main/resources/db/query/besteverranks/getTodayCompetitors.sql index 7c31aab5..db71b1c3 100644 --- a/server/src/main/resources/db/query/besteverranks/getTodayCompetitors.sql +++ b/server/src/main/resources/db/query/besteverranks/getTodayCompetitors.sql @@ -1,18 +1,18 @@ select - personId wca_id, + person_id wca_id, ct.name continent, c.name country, single, average, ( select - competitionId + competition_id from - Results results - inner join Competitions competitions on results.competitionId = competitions.id + results results + inner join competitions competitions on results.competition_id = competitions.id where - results.eventId = :EVENT_ID - and results.personId = today.personId + results.event_id = :EVENT_ID + and results.person_id = today.person_id and competitions.start_date = :DATE and ( results.best = today.single @@ -24,8 +24,8 @@ select from ( select - personId, - r.countryId, + person_id, + r.country_id, min( case when best > 0 then best @@ -39,18 +39,18 @@ from end ) average from - Results r - inner join Competitions c on r.competitionId = c.id + results r + inner join competitions c on r.competition_id = c.id where - eventId = :EVENT_ID + event_id = :EVENT_ID and c.start_date = :DATE group by - r.personId, - countryId + r.person_id, + country_id order by - personId + person_id ) today - inner join Countries c on today.countryId = c.id - inner join Continents ct on c.continentId = ct.id + inner join countries c on today.country_id = c.id + inner join continents ct on c.continent_id = ct.id where single is not null diff --git a/server/src/main/resources/db/query/event/findAll.sql b/server/src/main/resources/db/query/event/findAll.sql index 7a8b2a31..8b393975 100644 --- a/server/src/main/resources/db/query/event/findAll.sql +++ b/server/src/main/resources/db/query/event/findAll.sql @@ -1,5 +1,5 @@ select id, name, `rank` -from Events -- hibernate does not like capitalization +from events -- hibernate does not like capitalization order by `rank` diff --git a/server/src/main/resources/db/query/event/findAllById.sql b/server/src/main/resources/db/query/event/findAllById.sql index 0d483d45..a3154e1b 100644 --- a/server/src/main/resources/db/query/event/findAllById.sql +++ b/server/src/main/resources/db/query/event/findAllById.sql @@ -1,5 +1,5 @@ select id, name, `rank` -from Events -- hibernate does not like capitalization +from events -- hibernate does not like capitalization where id in (:ID) \ No newline at end of file diff --git a/server/src/main/resources/db/query/recordevolution/getAvailableEvents.sql b/server/src/main/resources/db/query/recordevolution/getAvailableEvents.sql index cd3893f5..7ab715fd 100644 --- a/server/src/main/resources/db/query/recordevolution/getAvailableEvents.sql +++ b/server/src/main/resources/db/query/recordevolution/getAvailableEvents.sql @@ -4,7 +4,7 @@ select e.`rank` from record_evolution re - inner join Events e on re.event_id collate utf8mb4_unicode_ci = e.id + inner join events e on re.event_id collate utf8mb4_unicode_ci = e.id where e.`rank` < 900 -- Active events order by diff --git a/server/src/main/resources/db/query/sumofranks/continentAverageInsert.sql b/server/src/main/resources/db/query/sumofranks/continentAverageInsert.sql index 0f8c682e..eb8cc3b8 100644 --- a/server/src/main/resources/db/query/sumofranks/continentAverageInsert.sql +++ b/server/src/main/resources/db/query/sumofranks/continentAverageInsert.sql @@ -20,12 +20,12 @@ insert into inner join users u on u.wca_id = r.personId inner join Countries c on c.iso2 = u.country_iso2 where - c.continentId = c2.id - and r.eventId = e.id + c.continent_id = c2.id + and r.event_id = e.id ) + 1 default_rank from - Events e, - Continents c2 + events e, + continents c2 where e.`rank` < 900 ) @@ -34,8 +34,8 @@ select select c2.name from - Countries c - left join Continents c2 on c.continentId = c2.id + countries c + left join continents c2 on c.continent_id = c2.id where u.country_iso2 = c.iso2 ) region, @@ -52,9 +52,9 @@ select ) result_type, sum( case - when continentRank is null - or continentRank = 0 then default_rank - else r.continentRank + when continent_rank is null + or continent_rank = 0 then default_rank + else r.continent_rank end ) overall, json_arrayagg( @@ -63,22 +63,22 @@ select json_object('id', e.id, 'name', e.name, 'rank', e.rank), 'regionalRank', case - when continentRank is null - or continentRank = 0 then default_rank - else r.continentRank + when continent_rank is null + or continent_rank = 0 then default_rank + else r.continent_rank end, 'completed', - continentRank is not null - and continentRank > 0 + continent_rank is not null + and continent_rank > 0 ) ) events from - Events e + events e left join users u on e.`rank` < 900 -- Filter by active ranks left join RanksAverage r on r.eventId = e.id - and r.personId = u.wca_id - left join Countries c on c.iso2 = u.country_iso2 - left join Continents c2 on c.continentId = c2.id + and r.person_id = u.wca_id + left join countries c on c.iso2 = u.country_iso2 + left join continents c2 on c.continent_id = c2.id left join default_ranks dr on dr.event_id = e.id and dr.region = c2.name where @@ -88,9 +88,9 @@ where select 1 from - RanksAverage ra2 + ranks_average ra2 where - ra2.eventId = e.id + ra2.event_id = e.id ) group by wca_id \ No newline at end of file diff --git a/server/src/main/resources/db/query/sumofranks/continentSingleInsert.sql b/server/src/main/resources/db/query/sumofranks/continentSingleInsert.sql index d686d800..c67b8b0c 100644 --- a/server/src/main/resources/db/query/sumofranks/continentSingleInsert.sql +++ b/server/src/main/resources/db/query/sumofranks/continentSingleInsert.sql @@ -14,18 +14,18 @@ insert into c2.name region, ( select - coalesce(max(continentRank), 0) + coalesce(max(continent_rank), 0) from - RanksSingle r - inner join users u on u.wca_id = r.personId - inner join Countries c on c.iso2 = u.country_iso2 + ranks_single r + inner join users u on u.wca_id = r.person_id + inner join countries c on c.iso2 = u.country_iso2 where - c.continentId = c2.id - and r.eventId = e.id + c.continent_id = c2.id + and r.event_id = e.id ) + 1 default_rank from - Events e, - Continents c2 + events e, + continents c2 where e.`rank` < 900 ) diff --git a/server/src/main/resources/db/query/sumofranks/countrySingleInsert.sql b/server/src/main/resources/db/query/sumofranks/countrySingleInsert.sql index 1adae8da..7b20b5fc 100644 --- a/server/src/main/resources/db/query/sumofranks/countrySingleInsert.sql +++ b/server/src/main/resources/db/query/sumofranks/countrySingleInsert.sql @@ -14,17 +14,17 @@ insert into c2.iso2 region, ( select - coalesce(max(countryRank), 0) + coalesce(max(country_rank), 0) from - RanksSingle r - inner join users u on u.wca_id = r.personId + ranks_single r + inner join persons p on p.wca_id = r.personId where - r.eventId = e.id - and u.country_iso2 = c2.iso2 + r.event_id = e.id + and p.country_id = c2.iso2 ) + 1 default_rank from - Events e, - Countries c2 + events e, + countries c2 where e.`rank` < 900 ) @@ -33,9 +33,9 @@ select select c.name from - Countries c + countries c where - u.country_iso2 = c.iso2 + p.country_id = c.id ) region, ( select @@ -50,9 +50,9 @@ select ) result_type, sum( case - when countryRank is null - or countryRank = 0 then default_rank - else r.countryRank + when country_rank is null + or country_rank = 0 then default_rank + else r.country_rank end ) overall, json_arrayagg( @@ -62,22 +62,22 @@ select 'regionalRank', case when countryRank is null - or countryRank = 0 then default_rank + or country_rank = 0 then default_rank else r.countryRank end, 'completed', - countryRank is not null - and countryRank > 0 + country_rank is not null + and country_rank > 0 ) ) events from - Events e - left join users u on e.`rank` < 900 -- Filter by active ranks - left join RanksSingle r on r.eventId = e.id - and r.personId = u.wca_id - left join Countries c on c.iso2 = u.country_iso2 + events e + left join persons p on e.`rank` < 900 -- Filter by active ranks + left join ranks_single r on r.eventId = e.id + and r.person_id = p.wca_id + left join countries c on c.id = p.country_id left join default_ranks dr on dr.event_id = e.id - and dr.region = c.iso2 + and dr.region = c.id where wca_id is not null group by diff --git a/server/src/main/resources/db/query/sumofranks/worldAverageInsert.sql b/server/src/main/resources/db/query/sumofranks/worldAverageInsert.sql index 89133c88..7834cdb9 100644 --- a/server/src/main/resources/db/query/sumofranks/worldAverageInsert.sql +++ b/server/src/main/resources/db/query/sumofranks/worldAverageInsert.sql @@ -13,14 +13,14 @@ insert into e.id event_id, ( select - coalesce(max(worldRank), 0) + coalesce(max(world_rank), 0) from - RanksAverage r + ranks_average r where - r.eventId = e.id + r.event_id = e.id ) + 1 default_rank from - Events e + events e where e.`rank` < 900 ) @@ -52,10 +52,10 @@ select ) ) events from - Events e + events e left join users u on e.`rank` < 900 -- Filter by active ranks - left join RanksAverage r on r.eventId = e.id - and r.personId = u.wca_id + left join ranks_average r on r.event_id = e.id + and r.person_id = u.wca_id left join default_ranks dr on dr.event_id = e.id where wca_id is not null @@ -64,9 +64,9 @@ where select 1 from - RanksAverage ra2 + ranks_average ra2 where - ra2.eventId = e.id + ra2.event_id = e.id ) group by wca_id \ No newline at end of file diff --git a/server/src/main/resources/db/query/sumofranks/worldSingleInsert.sql b/server/src/main/resources/db/query/sumofranks/worldSingleInsert.sql index 17d7f523..0b8c2c73 100644 --- a/server/src/main/resources/db/query/sumofranks/worldSingleInsert.sql +++ b/server/src/main/resources/db/query/sumofranks/worldSingleInsert.sql @@ -13,14 +13,14 @@ insert into e.id event_id, ( select - coalesce(max(worldRank), 0) + coalesce(max(world_rank), 0) from - RanksSingle r + ranks_single r where r.eventId = e.id ) + 1 default_rank from - Events e + events e where e.`rank` < 900 ) @@ -40,22 +40,22 @@ select select 'Single' ) result_type, - sum(coalesce(r.worldRank, default_rank)) overall, + sum(coalesce(r.world_rank, default_rank)) overall, json_arrayagg( json_object( 'event', json_object('id', e.id, 'name', e.name, 'rank', e.rank), 'regionalRank', - coalesce(r.worldRank, default_rank), + coalesce(r.world_rank, default_rank), 'completed', - r.worldRank is not null + r.world_rank is not null ) ) events from - Events e + events e left join users u on e.`rank` < 900 -- Filter by active ranks - left join RanksSingle r on r.eventId = e.id - and r.personId = u.wca_id + left join ranks_single r on r.event_id = e.id + and r.person_id = u.wca_id left join default_ranks dr on dr.event_id = e.id where wca_id is not null diff --git a/server/src/test/java/org/worldcubeassociation/statistics/integration/controller/DatabaseQueryControllerIT.java b/server/src/test/java/org/worldcubeassociation/statistics/integration/controller/DatabaseQueryControllerIT.java index 08c57ba5..da3a1138 100644 --- a/server/src/test/java/org/worldcubeassociation/statistics/integration/controller/DatabaseQueryControllerIT.java +++ b/server/src/test/java/org/worldcubeassociation/statistics/integration/controller/DatabaseQueryControllerIT.java @@ -64,11 +64,11 @@ public void query(int index, HttpStatus status, String token, Map queryArguments() { return Stream.of( - Arguments.of(0, HttpStatus.OK, "Bearer token", Map.of("sqlQuery", "select c.id competition_name, count(1) events from Competitions c inner join competition_events ce on c.id = ce.competition_id group by c.id"), "Happy path"), - Arguments.of(1, HttpStatus.BAD_REQUEST, "Bearer token", Map.of("sqlQuery", "celect * from Competitions"), "Querry with error"), - Arguments.of(2, HttpStatus.OK, "Bearer token", Map.of("page", 0, "size", 5, "sqlQuery", "select * from Events order by `rank`"), "Pagination 0"), - Arguments.of(3, HttpStatus.OK, "Bearer token", Map.of("page", 1, "size", 5, "sqlQuery", "select * from Events order by `rank`"), "Pagination 1"), - Arguments.of(4, HttpStatus.UNAUTHORIZED, "", Map.of("sqlQuery", "select * from Events order by `rank`"), "Unauthorized") + Arguments.of(0, HttpStatus.OK, "Bearer token", Map.of("sqlQuery", "select c.id competition_name, count(1) events from competitions c inner join competition_events ce on c.id = ce.competition_id group by c.id"), "Happy path"), + Arguments.of(1, HttpStatus.BAD_REQUEST, "Bearer token", Map.of("sqlQuery", "celect * from competitions"), "Querry with error"), + Arguments.of(2, HttpStatus.OK, "Bearer token", Map.of("page", 0, "size", 5, "sqlQuery", "select * from events order by `rank`"), "Pagination 0"), + Arguments.of(3, HttpStatus.OK, "Bearer token", Map.of("page", 1, "size", 5, "sqlQuery", "select * from events order by `rank`"), "Pagination 1"), + Arguments.of(4, HttpStatus.UNAUTHORIZED, "", Map.of("sqlQuery", "select * from events order by `rank`"), "Unauthorized") ); } } diff --git a/server/src/test/resources/jsons/database-query-controller-i-t/query_1.json b/server/src/test/resources/jsons/database-query-controller-i-t/query_1.json index f3a43a89..3acee0a9 100644 --- a/server/src/test/resources/jsons/database-query-controller-i-t/query_1.json +++ b/server/src/test/resources/jsons/database-query-controller-i-t/query_1.json @@ -1,4 +1,4 @@ { "status": 400, - "message": "StatementCallback; bad SQL grammar [select count(*) from (\ncelect * from Competitions\n) alias]" + "message": "StatementCallback; bad SQL grammar [select count(*) from (\ncelect * from competitions\n) alias]" } \ No newline at end of file diff --git a/server/src/test/resources/jsons/database-query-controller-i-t/query_2.json b/server/src/test/resources/jsons/database-query-controller-i-t/query_2.json index 43ef852f..0028314f 100644 --- a/server/src/test/resources/jsons/database-query-controller-i-t/query_2.json +++ b/server/src/test/resources/jsons/database-query-controller-i-t/query_2.json @@ -3,44 +3,38 @@ "id", "name", "rank", - "format", - "cellName" + "format" ], "content": [ [ "333", "3x3x3 Cube", "10", - "time", - "3x3x3 Cube" + "time" ], [ "444", "4x4x4 Cube", "30", - "time", - "4x4x4 Cube" + "time" ], [ "555", "5x5x5 Cube", "40", - "time", - "5x5x5 Cube" + "time" ], [ "333bf", "3x3x3 Blindfolded", "70", - "time", - "3x3x3 Blindfolded" + "time" ], [ "333fm", "3x3x3 Fewest Moves", "80", - "number", - "3x3x3 Fewest Moves" + "number" ] ], "number": 0, diff --git a/server/src/test/resources/jsons/database-query-controller-i-t/query_3.json b/server/src/test/resources/jsons/database-query-controller-i-t/query_3.json index 6240ba4d..487654cc 100644 --- a/server/src/test/resources/jsons/database-query-controller-i-t/query_3.json +++ b/server/src/test/resources/jsons/database-query-controller-i-t/query_3.json @@ -3,44 +3,38 @@ "id", "name", "rank", - "format", - "cellName" + "format" ], "content": [ [ "333oh", "3x3x3 One-Handed", "90", - "time", - "3x3x3 One-Handed" + "time" ], [ "clock", "Clock", "110", - "time", - "Clock" + "time" ], [ "minx", "Megaminx", "120", - "time", - "Megaminx" + "time" ], [ "pyram", "Pyraminx", "130", - "time", - "Pyraminx" + "time" ], [ "sq1", "Square-1", "150", - "time", - "Square-1" + "time" ] ], "number": 1, diff --git a/server/src/test/resources/jsons/statistics-controller-i-t/byPath_0.json b/server/src/test/resources/jsons/statistics-controller-i-t/byPath_0.json index 73899ca6..f316afd9 100644 --- a/server/src/test/resources/jsons/statistics-controller-i-t/byPath_0.json +++ b/server/src/test/resources/jsons/statistics-controller-i-t/byPath_0.json @@ -6,7 +6,7 @@ "keys": [ "3x3x3 Cube" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -208,7 +208,7 @@ "keys": [ "5x5x5 Cube" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -242,7 +242,7 @@ "keys": [ "3x3x3 Blindfolded" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -270,7 +270,7 @@ "keys": [ "4x4x4 Cube" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -304,7 +304,7 @@ "keys": [ "3x3x3 Fewest Moves" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -332,7 +332,7 @@ "keys": [ "3x3x3 One-Handed" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -420,7 +420,7 @@ "keys": [ "Clock" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -472,7 +472,7 @@ "keys": [ "Megaminx" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -518,7 +518,7 @@ "keys": [ "Pyraminx" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -570,7 +570,7 @@ "keys": [ "Square-1" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -610,7 +610,7 @@ "keys": [ "4x4x4 Blindfolded" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -632,7 +632,7 @@ "keys": [ "Magic" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -684,7 +684,7 @@ "keys": [ "Master Magic" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+eventId+%3D+%27%3AEVENT_ID%27%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28+case+when+pos+%3D+1+then+1+else+0+end+%29+Golds%2C%0A++++sum%28+case+when+pos+%3D+2+then+1+else+0+end+%29+Silvers%2C%0A++++sum%28+case+when+pos+%3D+3+then+1+else+0+end+%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+event_id+%3D+%27%3AEVENT_ID%27%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -730,7 +730,7 @@ "keys": [ "Overall" ], - "sqlQueryCustom": "select%0A++++personName%2C%0A++++sum%28case+when+pos+%3D+1+then+1+else+0+end%29+Golds%2C%0A++++sum%28case+when+pos+%3D+2+then+1+else+0+end%29+Silvers%2C%0A++++sum%28case+when+pos+%3D+3+then+1+else+0+end%29+Bronzes%0Afrom%0A++++Results%0Awhere%0A++++roundTypeId+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+personId+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++personName%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", + "sqlQueryCustom": "select%0A++++person_name%2C%0A++++sum%28case+when+pos+%3D+1+then+1+else+0+end%29+Golds%2C%0A++++sum%28case+when+pos+%3D+2+then+1+else+0+end%29+Silvers%2C%0A++++sum%28case+when+pos+%3D+3+then+1+else+0+end%29+Bronzes%0Afrom%0A++++results%0Awhere%0A++++round_type_id+in+%28%27c%27%2C+%27f%27%29%0A++++and+best+%3E+0%0A++++and+person_id+%3D+%27%3AWCA_ID%27%0Agroup+by%0A++++person_name%0Aorder+by%0A++++Golds+desc%0Alimit+20%0A", "headers": [ "Person", "Golds", @@ -805,6 +805,6 @@ "displayMode": "SELECTOR", "groupName": "Competitors", "path": "best-medal-collection", - "lastModified": "2024-09-30T00:25:08", + "lastModified": "2025-05-01T18:02:46", "exportDate": "2003-10-11T00:00:00" } \ No newline at end of file diff --git a/server/src/test/resources/jsons/statistics-controller-i-t/listByTerm_0.json b/server/src/test/resources/jsons/statistics-controller-i-t/listByTerm_0.json index 5edde12e..0a9dd7f0 100644 --- a/server/src/test/resources/jsons/statistics-controller-i-t/listByTerm_0.json +++ b/server/src/test/resources/jsons/statistics-controller-i-t/listByTerm_0.json @@ -3,6 +3,10 @@ { "group": "Competitors", "statistics": [ + { + "path": "best-first-single", + "title": "Best first single" + }, { "path": "best-medal-collection", "title": "Best medal collection" @@ -12,7 +16,7 @@ "title": "World records in most events" } ], - "size": 2 + "size": 3 }, { "group": "Events", @@ -39,6 +43,6 @@ "size": 2 } ], - "groups": 3, - "totalSize": 5 + "totalSize": 6, + "groups": 3 } \ No newline at end of file diff --git a/server/src/test/resources/test-scripts/BestEverRanksControllerIT.sql b/server/src/test/resources/test-scripts/BestEverRanksControllerIT.sql index 64932f9c..d094482e 100644 --- a/server/src/test/resources/test-scripts/BestEverRanksControllerIT.sql +++ b/server/src/test/resources/test-scripts/BestEverRanksControllerIT.sql @@ -8,16 +8,16 @@ VALUES ('1982FRID01', '[{"event": {"id": "333", "name": "3x3x3 Cube"}, "worlds": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 42118, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-01-23", "rank": 3, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 41741, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-01-23", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}}], "countries": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 274, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}, "bestRank": {"end": "2003-08-22", "rank": 0, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}}, "average": {"current": {"end": null, "rank": null, "start": "1982-06-05", "result": null, "competition": "WC1982"}, "bestRank": {"end": null, "rank": null, "start": null, "result": null, "competition": null}}, "country": "Czech Republic", "continent": "Europe"}, {"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 7105, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 2, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 7031, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}, "country": "United States", "continent": "North America"}], "continents": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 20380, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}, "bestRank": {"end": "2003-08-22", "rank": 6, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}}, "average": {"current": {"end": null, "rank": null, "start": "1982-06-05", "result": null, "competition": "WC1982"}, "bestRank": {"end": null, "rank": null, "start": null, "result": null, "competition": null}}, "continent": "Europe"}, {"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 9762, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 2, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 9667, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}, "continent": "North America"}]}]', '2022-01-18 06:00:25'); -- Competitions -INSERT INTO wca_development.Competitions - (id, name, cityName, countryId, information, venue, venueAddress, venueDetails, external_website, cellName, showAtAll, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, cancelled_at, cancelled_by, waiting_list_deadline_date, event_change_deadline_date, guest_entry_status, allow_registration_edits, allow_registration_self_delete_after_acceptance, competition_series_id, use_wca_live_for_scoretaking, allow_registration_without_qualification, guests_per_registration_limit, events_per_registration_limit, force_comment_in_registration) +INSERT INTO wca_development.competitions + (id, name, city_name, country_id, information, venue, venue_address, venue_details, external_website, cell_name, show_at_all, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, guest_entry_status, allow_registration_edits, competition_series_id, use_wca_live_for_scoretaking, allow_registration_without_qualification, force_comment_in_registration) VALUES - ('DutchOpen2003', 'Dutch Open 2003', 'Veldhoven', 'Netherlands', '', '[ASML](http://www.asml.com)', 'De Run 6501, 5504 DR Veldhoven', 'Building 7', '', 'Dutch Open 2003', 1, 51405966, 5414813, NULL, 'remarks to the board here', NULL, NULL, 0, 1, '2003-10-11 00:00:00', '2016-09-04 14:00:23', NULL, '2003-09-13 00:00:00', NULL, 'USD', NULL, '2003-10-11', '2003-10-11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2003-10-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, NULL), - ('WC1982', 'World Rubik''s Cube Championship 1982', 'Budapest', 'Hungary', '', '', '', '', '', 'World Championship 1982', 1, 47498403, 19040759, '', 'remarks to the board here', NULL, NULL, 0, 1, '1982-06-05 00:00:00', '2016-09-04 14:01:15', NULL, '1982-05-08 00:00:00', NULL, 'USD', NULL, '1982-06-05', '1982-06-05', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1982-06-05 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 1681, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, NULL), - ('WC2003', 'World Rubik''s Games Championship 2003', 'Toronto, Ontario', 'Canada', '', '[Ontario Science Center](http://www.osc.ca)', '770 Don Mills Rd, North York, ON M3C IT3, Canada', '', 'https://web.archive.org/web/20220820061419/http://www.speedcubing.com/events/wc2003/', 'World Championship 2003', 1, 43714618, -79339509, '', 'remarks to the board here', NULL, NULL, 0, 1, '2003-08-24 00:00:00', '2016-09-04 14:01:16', 0, '2003-07-26 00:00:00', NULL, 'USD', NULL, '2003-08-23', '2003-08-24', 0, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-03 05:20:36', '2003-08-24 00:00:00', 0, '', 0, '', '', '', '2018-09-15 17:46:45', 0, '', NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, 0); + ('DutchOpen2003', 'Dutch Open 2003', 'Veldhoven', 'Netherlands', '', '[ASML](http://www.asml.com)', 'De Run 6501, 5504 DR Veldhoven', 'Building 7', '', 'Dutch Open 2003', 1, 51405966, 5414813, NULL, 'remarks to the board here', NULL, NULL, 0, 1, '2003-10-11 00:00:00', '2016-09-04 14:00:23', NULL, '2003-09-13 00:00:00', NULL, 'USD', NULL, '2003-10-11', '2003-10-11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2003-10-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 125297, 1, '333', 0, 0, 0, 0, 0, NULL), + ('WC1982', 'World Rubik''s Cube Championship 1982', 'Budapest', 'Hungary', '', '', '', '', '', 'World Championship 1982', 1, 47498403, 19040759, '', 'remarks to the board here', NULL, NULL, 0, 1, '1982-06-05 00:00:00', '2016-09-04 14:01:15', NULL, '1982-05-08 00:00:00', NULL, 'USD', NULL, '1982-06-05', '1982-06-05', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1982-06-05 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 1681, 1, '333', 0, 0, 0, 0, 0, NULL), + ('WC2003', 'World Rubik''s Games Championship 2003', 'Toronto, Ontario', 'Canada', '', '[Ontario Science Center](http://www.osc.ca)', '770 Don Mills Rd, North York, ON M3C IT3, Canada', '', 'https://web.archive.org/web/20220820061419/http://www.speedcubing.com/events/wc2003/', 'World Championship 2003', 1, 43714618, -79339509, '', 'remarks to the board here', NULL, NULL, 0, 1, '2003-08-24 00:00:00', '2016-09-04 14:01:16', 0, '2003-07-26 00:00:00', NULL, 'USD', NULL, '2003-08-23', '2003-08-24', 0, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-03 05:20:36', '2003-08-24 00:00:00', 0, '', 0, '', '', '', '2018-09-15 17:46:45', 0, '', NULL, 125297, 1, '333', 0, 0, 0, 0, 0, 0); -- Continents -INSERT INTO wca_development.Continents - (id, name, recordName, latitude, longitude, zoom) +INSERT INTO wca_development.continents + (id, name, record_name, latitude, longitude, zoom) VALUES ('_Africa', 'Africa', 'AfR', 213671, 16984850, 3), ('_Asia', 'Asia', 'AsR', 34364439, 108330700, 2), @@ -27,8 +27,8 @@ VALUES ('_Oceania', 'Oceania', 'OcR', -25274398, 133775136, 3), ('_South America', 'South America', 'SAR', -21735104, -63281250, 3); -INSERT INTO wca_development.Countries - (id, name, continentId, iso2) +INSERT INTO wca_development.countries + (id, name, continent_id, iso2) VALUES ('Australia', 'Australia', '_Oceania', 'AU'), ('Austria', 'Austria', '_Europe', 'AT'), @@ -76,27 +76,27 @@ VALUES (8683, 'DutchOpen2003', '333', 0); -- Events -INSERT INTO wca_development.Events - (id, name, `rank`, format, cellName) +INSERT INTO wca_development.events + (id, name, `rank`, format) VALUES - ('333', '3x3x3 Cube', 10, 'time', '3x3x3 Cube'), - ('333bf', '3x3x3 Blindfolded', 70, 'time', '3x3x3 Blindfolded'), - ('333fm', '3x3x3 Fewest Moves', 80, 'number', '3x3x3 Fewest Moves'), - ('333oh', '3x3x3 One-Handed', 90, 'time', '3x3x3 One-Handed'), - ('444', '4x4x4 Cube', 30, 'time', '4x4x4 Cube'), - ('444bf', '4x4x4 Blindfolded', 160, 'time', '4x4x4 Blindfolded'), - ('555', '5x5x5 Cube', 40, 'time', '5x5x5 Cube'), - ('555bf', '5x5x5 Blindfolded', 170, 'time', '5x5x5 Blindfolded'), - ('clock', 'Clock', 110, 'time', 'Clock'), - ('magic', 'Magic', 997, 'time', 'Magic'), - ('minx', 'Megaminx', 120, 'time', 'Megaminx'), - ('mmagic', 'Master Magic', 998, 'time', 'Master Magic'), - ('pyram', 'Pyraminx', 130, 'time', 'Pyraminx'), - ('sq1', 'Square-1', 150, 'time', 'Square-1'); + ('333', '3x3x3 Cube', 10, 'time'), + ('333bf', '3x3x3 Blindfolded', 70, 'time'), + ('333fm', '3x3x3 Fewest Moves', 80, 'number'), + ('333oh', '3x3x3 One-Handed', 90, 'time'), + ('444', '4x4x4 Cube', 30, 'time'), + ('444bf', '4x4x4 Blindfolded', 160, 'time'), + ('555', '5x5x5 Cube', 40, 'time'), + ('555bf', '5x5x5 Blindfolded', 170, 'time'), + ('clock', 'Clock', 110, 'time'), + ('magic', 'Magic', 997, 'time'), + ('minx', 'Megaminx', 120, 'time'), + ('mmagic', 'Master Magic', 998, 'time'), + ('pyram', 'Pyraminx', 130, 'time'), + ('sq1', 'Square-1', 150, 'time'); -- Results -INSERT INTO wca_development.Results - (id, pos, personId, personName, countryId, competitionId, eventId, roundTypeId, formatId, value1, value2, value3, value4, value5, best, average, regionalSingleRecord, regionalAverageRecord, updated_at) +INSERT INTO wca_development.results + (id, pos, person_id, person_name, country_id, competition_id, event_id, round_type_id, format_id, value1, value2, value3, value4, value5, best, average, regional_single_record, regional_average_record, updated_at) VALUES (83462, 1, '1982THAI01', 'Minh Thai', 'USA', 'WC1982', '333', 'f', '3', 2716, 2295, 2797, 0, 0, 2295, 0, 'WR', NULL, '2018-10-04 06:09:31'), (83463, 2, '1982RAZO01', 'Guus Razoux Schultz', 'Netherlands', 'WC1982', '333', 'f', '3', 2432, 3151, 2615, 0, 0, 2432, 0, 'ER', NULL, '2018-10-04 06:09:31'), diff --git a/server/src/test/resources/test-scripts/DatabaseQueryControllerIT.sql b/server/src/test/resources/test-scripts/DatabaseQueryControllerIT.sql index 9bc3dcdd..994c0cee 100644 --- a/server/src/test/resources/test-scripts/DatabaseQueryControllerIT.sql +++ b/server/src/test/resources/test-scripts/DatabaseQueryControllerIT.sql @@ -1,6 +1,6 @@ --- Competitions -INSERT INTO wca_development.Competitions - (id, name, cityName, countryId, information, `year`, `month`, `day`, endMonth, endDay, venue, venueAddress, venueDetails, external_website, cellName, showAtAll, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, endYear, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, cancelled_at, cancelled_by, waiting_list_deadline_date, event_change_deadline_date, free_guest_entry_status, allow_registration_edits) +-- competitions +INSERT INTO wca_development.competitions + (id, name, city_name, country_id, information, `year`, `month`, `day`, end_month, end_day, venue, venue_address, venue_details, external_website, cell_name, show_at_all, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, endYear, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, cancelled_at, cancelled_by, waiting_list_deadline_date, event_change_deadline_date, free_guest_entry_status, allow_registration_edits) VALUES ('WC1982', 'World Rubik''s Cube Championship 1982', 'Budapest', 'Hungary', '', 1982, 6, 5, 6, 5, '', '', '', '', 'World Championship 1982', 1, 47498403, 19040759, '', 'remarks to the board here', NULL, NULL, 0, 1, '1982-06-05 00:00:00', '2016-09-04 14:01:15', NULL, '1982-05-08 00:00:00', NULL, 'USD', 1982, NULL, '1982-06-05', '1982-06-05', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1982-06-05 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 1681, 1, '333', NULL, NULL, NULL, NULL, 0, 0), ('WC2003', 'World Rubik''s Games Championship 2003', 'Toronto, Ontario', 'Canada', '', 2003, 8, 23, 8, 24, '[Ontario Science Center](http://www.osc.ca)', '', '', 'http://www.speedcubing.com/events/wc2003', 'World Championship 2003', 1, 43716470, -79338711, '', 'remarks to the board here', NULL, NULL, 0, 1, '2003-08-24 00:00:00', '2016-09-04 14:01:16', NULL, '2003-07-26 00:00:00', NULL, 'USD', 2003, NULL, '2003-08-23', '2003-08-24', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2003-08-24 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0), @@ -28,20 +28,20 @@ VALUES (8683, 'DutchOpen2003', '333', 0); -- Events -INSERT INTO wca_development.Events - (id, name, `rank`, format, cellName) +INSERT INTO wca_development.events + (id, name, `rank`, format) VALUES - ('333', '3x3x3 Cube', 10, 'time', '3x3x3 Cube'), - ('333bf', '3x3x3 Blindfolded', 70, 'time', '3x3x3 Blindfolded'), - ('333fm', '3x3x3 Fewest Moves', 80, 'number', '3x3x3 Fewest Moves'), - ('333oh', '3x3x3 One-Handed', 90, 'time', '3x3x3 One-Handed'), - ('444', '4x4x4 Cube', 30, 'time', '4x4x4 Cube'), - ('444bf', '4x4x4 Blindfolded', 160, 'time', '4x4x4 Blindfolded'), - ('555', '5x5x5 Cube', 40, 'time', '5x5x5 Cube'), - ('555bf', '5x5x5 Blindfolded', 170, 'time', '5x5x5 Blindfolded'), - ('clock', 'Clock', 110, 'time', 'Clock'), - ('magic', 'Magic', 997, 'time', 'Magic'), - ('minx', 'Megaminx', 120, 'time', 'Megaminx'), - ('mmagic', 'Master Magic', 998, 'time', 'Master Magic'), - ('pyram', 'Pyraminx', 130, 'time', 'Pyraminx'), - ('sq1', 'Square-1', 150, 'time', 'Square-1'); + ('333', '3x3x3 Cube', 10, 'time'), + ('333bf', '3x3x3 Blindfolded', 70, 'time'), + ('333fm', '3x3x3 Fewest Moves', 80, 'number'), + ('333oh', '3x3x3 One-Handed', 90, 'time'), + ('444', '4x4x4 Cube', 30, 'time'), + ('444bf', '4x4x4 Blindfolded', 160, 'time'), + ('555', '5x5x5 Cube', 40, 'time'), + ('555bf', '5x5x5 Blindfolded', 170, 'time'), + ('clock', 'Clock', 110, 'time'), + ('magic', 'Magic', 997, 'time'), + ('minx', 'Megaminx', 120, 'time'), + ('mmagic', 'Master Magic', 998, 'time'), + ('pyram', 'Pyraminx', 130, 'time'), + ('sq1', 'Square-1', 150, 'time'); diff --git a/server/src/test/resources/test-scripts/RecordEvolutionControllerIT.sql b/server/src/test/resources/test-scripts/RecordEvolutionControllerIT.sql index 3a9f1e42..7fb4c3d7 100644 --- a/server/src/test/resources/test-scripts/RecordEvolutionControllerIT.sql +++ b/server/src/test/resources/test-scripts/RecordEvolutionControllerIT.sql @@ -1,25 +1,25 @@ -- Events -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('222', '2x2x2 Cube', 20, 'time', '2x2x2 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333', '3x3x3 Cube', 10, 'time', '3x3x3 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333bf', '3x3x3 Blindfolded', 70, 'time', '3x3x3 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333fm', '3x3x3 Fewest Moves', 80, 'number', '3x3x3 Fewest Moves'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333ft', '3x3x3 With Feet', 996, 'time', '3x3x3 With Feet'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333mbf', '3x3x3 Multi-Blind', 180, 'multi', '3x3x3 Multi-Blind'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333mbo', '3x3x3 Multi-Blind Old Style', 999, 'multi', '3x3x3 Multi-Blind Old Style'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333oh', '3x3x3 One-Handed', 90, 'time', '3x3x3 One-Handed'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('444', '4x4x4 Cube', 30, 'time', '4x4x4 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('444bf', '4x4x4 Blindfolded', 160, 'time', '4x4x4 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('555', '5x5x5 Cube', 40, 'time', '5x5x5 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('555bf', '5x5x5 Blindfolded', 170, 'time', '5x5x5 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('666', '6x6x6 Cube', 50, 'time', '6x6x6 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('777', '7x7x7 Cube', 60, 'time', '7x7x7 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('clock', 'Clock', 110, 'time', 'Clock'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('magic', 'Magic', 997, 'time', 'Magic'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('minx', 'Megaminx', 120, 'time', 'Megaminx'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('mmagic', 'Master Magic', 998, 'time', 'Master Magic'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('pyram', 'Pyraminx', 130, 'time', 'Pyraminx'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('skewb', 'Skewb', 140, 'time', 'Skewb'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('sq1', 'Square-1', 150, 'time', 'Square-1'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('222', '2x2x2 Cube', 20, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333', '3x3x3 Cube', 10, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333bf', '3x3x3 Blindfolded', 70, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333fm', '3x3x3 Fewest Moves', 80, 'number'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333ft', '3x3x3 With Feet', 996, 'time' ); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbf', '3x3x3 Multi-Blind', 180, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbo', '3x3x3 Multi-Blind Old Style', 999, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333oh', '3x3x3 One-Handed', 90, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444', '4x4x4 Cube', 30, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444bf', '4x4x4 Blindfolded', 160, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555', '5x5x5 Cube', 40, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555bf', '5x5x5 Blindfolded', 170, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('666', '6x6x6 Cube', 50, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('777', '7x7x7 Cube', 60, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('clock', 'Clock', 110, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('magic', 'Magic', 997, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('minx', 'Megaminx', 120, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('mmagic', 'Master Magic', 998, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('pyram', 'Pyraminx', 130, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('skewb', 'Skewb', 140, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('sq1', 'Square-1', 150, 'time'); -- Record evolution (generated with best ever ranks) INSERT INTO wca_development.record_evolution (event_id, evolution) VALUES('333mbf', '[{"date": "2007-02-24", "best1": 960290501}, {"date": "2007-04-28", "best1": 960290501}, {"date": "2007-06-16", "best1": 960290501}, {"date": "2007-07-14", "best1": 960290501}, {"date": "2007-08-25", "best1": 950229200}, {"date": "2007-10-05", "best1": 930287800, "best10": 990034001}, {"date": "2007-10-13", "best1": 930287800, "best10": 980177101}, {"date": "2007-12-15", "best1": 930287800, "best10": 970356003}, {"date": "2008-02-02", "best1": 930287800, "best10": 970118700}, {"date": "2008-02-16", "best1": 930287800, "best10": 970070400}, {"date": "2008-03-08", "best1": 930287800, "best10": 970070400}, {"date": "2008-03-15", "best1": 930287800, "best10": 970070400}, {"date": "2008-03-22", "best1": 930287800, "best10": 970057300}, {"date": "2008-03-29", "best1": 930287800, "best10": 960120600}, {"date": "2008-04-19", "best1": 930287800, "best10": 960120600}, {"date": "2008-04-26", "best1": 930287800, "best10": 960120600}, {"date": "2008-05-02", "best1": 930287800, "best10": 960110800}, {"date": "2008-05-24", "best1": 930287800, "best10": 960090800}, {"date": "2008-05-31", "best1": 930287800, "best10": 960066300}, {"date": "2008-07-05", "best1": 930287800, "best10": 950229200}, {"date": "2008-07-12", "best1": 930287800, "best10": 950229200}, {"date": "2008-07-19", "best1": 930287800, "best10": 950229200}, {"date": "2008-07-27", "best1": 930287800, "best10": 950229200}, {"date": "2008-08-03", "best1": 930287800, "best10": 950229200}, {"date": "2008-08-15", "best1": 930287800, "best10": 950229200}, {"date": "2008-08-23", "best1": 910347500, "best10": 950229200}, {"date": "2008-09-06", "best1": 910347500, "best10": 950219501}, {"date": "2008-09-19", "best1": 910347500, "best10": 950219501}, {"date": "2008-09-20", "best1": 910347500, "best10": 950219501}, {"date": "2008-10-04", "best1": 910347500, "best10": 950219501}, {"date": "2008-10-11", "best1": 890264900, "best10": 950219501}, {"date": "2008-10-25", "best1": 890264900, "best10": 950213200}, {"date": "2008-12-06", "best1": 890264900, "best10": 950213200}, {"date": "2008-12-19", "best1": 890264900, "best10": 950213200}, {"date": "2009-01-10", "best1": 890264900, "best10": 950213200}, {"date": "2009-01-17", "best1": 890264900, "best10": 950213200}, {"date": "2009-01-31", "best1": 890264900, "best10": 950201000}, {"date": "2009-02-13", "best1": 890264900, "best10": 950201000}, {"date": "2009-02-21", "best1": 890264900, "best10": 950201000, "best100": 990111001}, {"date": "2009-02-28", "best1": 890264900, "best10": 950201000, "best100": 990109001}, {"date": "2009-03-14", "best1": 890264900, "best10": 950201000, "best100": 990106201}, {"date": "2009-03-15", "best1": 890264900, "best10": 950201000, "best100": 990102501}, {"date": "2009-03-28", "best1": 890264900, "best10": 950201000, "best100": 990102301}, {"date": "2009-04-04", "best1": 890264900, "best10": 950201000, "best100": 990102301}, {"date": "2009-04-06", "best1": 890264900, "best10": 950201000, "best100": 990102301}, {"date": "2009-04-24", "best1": 890264900, "best10": 950163100, "best100": 990102001}, {"date": "2009-04-25", "best1": 890252600, "best10": 940310101, "best100": 990099901}, {"date": "2009-05-02", "best1": 890252600, "best10": 940310101, "best100": 990099901}, {"date": "2009-06-05", "best1": 890252600, "best10": 940310101, "best100": 990099801}, {"date": "2009-06-13", "best1": 890252600, "best10": 940310101, "best100": 990099801}, {"date": "2009-07-03", "best1": 890252600, "best10": 940310101, "best100": 990098201}, {"date": "2009-07-10", "best1": 890252600, "best10": 940310101, "best100": 990098201}, {"date": "2009-07-11", "best1": 890252600, "best10": 940310101, "best100": 990093701}, {"date": "2009-07-17", "best1": 890252600, "best10": 940310101, "best100": 990092601}, {"date": "2009-07-18", "best1": 890252600, "best10": 940310101, "best100": 990092401}, {"date": "2009-08-01", "best1": 890252600, "best10": 940284200, "best100": 990091501}, {"date": "2009-08-08", "best1": 890252600, "best10": 940284200, "best100": 990088401}, {"date": "2009-08-14", "best1": 890252600, "best10": 940276700, "best100": 990080701}, {"date": "2009-08-16", "best1": 840312100, "best10": 940262100, "best100": 990075601}, {"date": "2009-08-30", "best1": 840312100, "best10": 940170100, "best100": 990071301}, {"date": "2009-09-05", "best1": 840312100, "best10": 940170100, "best100": 990071301}, {"date": "2009-09-26", "best1": 840312100, "best10": 940170100, "best100": 990070301}, {"date": "2009-10-01", "best1": 840312100, "best10": 940170100, "best100": 990067701}, {"date": "2009-10-02", "best1": 840312100, "best10": 930359301, "best100": 990066001}, {"date": "2009-10-09", "best1": 840312100, "best10": 930301200, "best100": 990063801}, {"date": "2009-10-16", "best1": 840312100, "best10": 930282701, "best100": 990063801}, {"date": "2009-10-31", "best1": 840312100, "best10": 930282701, "best100": 990063701}, {"date": "2009-11-14", "best1": 840312100, "best10": 930282701, "best100": 990060501}, {"date": "2009-11-21", "best1": 840312100, "best10": 930282701, "best100": 990060001}, {"date": "2009-12-05", "best1": 840312100, "best10": 930282701, "best100": 990050101}, {"date": "2009-12-07", "best1": 840312100, "best10": 930282701, "best100": 990045201}, {"date": "2009-12-29", "best1": 840312100, "best10": 930282701, "best100": 990045201}, {"date": "2010-01-16", "best1": 840312100, "best10": 930282701, "best100": 990038801}, {"date": "2010-01-23", "best1": 840312100, "best10": 930282701, "best100": 990033001}, {"date": "2010-01-30", "best1": 830341400, "best10": 930221900, "best100": 980300002}, {"date": "2010-02-06", "best1": 830341400, "best10": 930221900, "best100": 980266302}, {"date": "2010-02-12", "best1": 830341400, "best10": 920311500, "best100": 980213002}, {"date": "2010-02-13", "best1": 830341400, "best10": 920311500, "best100": 980135801}, {"date": "2010-02-20", "best1": 830341400, "best10": 920311500, "best100": 980118301}, {"date": "2010-02-27", "best1": 830341400, "best10": 920311500, "best100": 980118201}, {"date": "2010-03-06", "best1": 830341400, "best10": 920311500, "best100": 980118201}, {"date": "2010-03-07", "best1": 830341400, "best10": 920311500, "best100": 980114101}, {"date": "2010-03-20", "best1": 830341400, "best10": 920311500, "best100": 970327904}, {"date": "2010-03-27", "best1": 830341400, "best10": 920311500, "best100": 970133701}, {"date": "2010-04-17", "best1": 830341400, "best10": 920311500, "best100": 970116700}, {"date": "2010-04-24", "best1": 830341400, "best10": 920311500, "best100": 970112200}, {"date": "2010-04-25", "best1": 830341400, "best10": 920311500, "best100": 970112200}, {"date": "2010-05-01", "best1": 830341400, "best10": 920311500, "best100": 970112200}, {"date": "2010-05-15", "best1": 830341400, "best10": 920311500, "best100": 970109600}, {"date": "2010-05-22", "best1": 830341400, "best10": 920280200, "best100": 970109600}, {"date": "2010-05-23", "best1": 830341400, "best10": 920280200, "best100": 970109600}, {"date": "2010-06-05", "best1": 830341400, "best10": 920265500, "best100": 970108800}, {"date": "2010-06-12", "best1": 830341400, "best10": 920265500, "best100": 970108800}, {"date": "2010-06-26", "best1": 830341400, "best10": 920265500, "best100": 970108800}, {"date": "2010-07-03", "best1": 830341400, "best10": 920265500, "best100": 970104000}, {"date": "2010-07-09", "best1": 830341400, "best10": 920265500, "best100": 970103700}, {"date": "2010-07-16", "best1": 830341400, "best10": 920265500, "best100": 970103300}, {"date": "2010-07-23", "best1": 830341400, "best10": 920265500, "best100": 970102800}, {"date": "2010-07-24", "best1": 830341400, "best10": 910326602, "best100": 970101200}, {"date": "2010-07-26", "best1": 830341400, "best10": 910326602, "best100": 970101200}, {"date": "2010-07-31", "best1": 830341400, "best10": 910326602, "best100": 970099100}, {"date": "2010-08-06", "best1": 830341400, "best10": 910326602, "best100": 970099100}, {"date": "2010-08-14", "best1": 830341400, "best10": 910326602, "best100": 970097600}, {"date": "2010-08-21", "best1": 830341400, "best10": 910326602, "best100": 970097600}, {"date": "2010-08-28", "best1": 830341400, "best10": 910326602, "best100": 970097600}, {"date": "2010-09-03", "best1": 830341400, "best10": 910326602, "best100": 970097600}, {"date": "2010-09-04", "best1": 830341400, "best10": 910326602, "best100": 970094500}, {"date": "2010-09-11", "best1": 830341400, "best10": 910326602, "best100": 970094000}, {"date": "2010-09-12", "best1": 830341400, "best10": 910326602, "best100": 970094000}, {"date": "2010-09-18", "best1": 830341400, "best10": 910326602, "best100": 970089001}, {"date": "2010-09-25", "best1": 830341400, "best10": 910326602, "best100": 970089001}, {"date": "2010-10-01", "best1": 830341400, "best10": 900337600, "best100": 970083800}, {"date": "2010-10-02", "best1": 830341400, "best10": 900337600, "best100": 970083800}, {"date": "2010-10-03", "best1": 830341400, "best10": 900337600, "best100": 970083300}, {"date": "2010-10-09", "best1": 830341400, "best10": 900337600, "best100": 970083300}, {"date": "2010-10-16", "best1": 830341400, "best10": 900337600, "best100": 970083200}, {"date": "2010-10-23", "best1": 830341400, "best10": 900337600, "best100": 970074300}, {"date": "2010-10-29", "best1": 830341400, "best10": 900337600, "best100": 970073200}, {"date": "2010-10-30", "best1": 830341400, "best10": 900337600, "best100": 970070700}, {"date": "2010-10-31", "best1": 830341400, "best10": 900337600, "best100": 970070700}, {"date": "2010-11-13", "best1": 830341400, "best10": 900337600, "best100": 970070700}, {"date": "2010-11-20", "best1": 830341400, "best10": 900337600, "best100": 970070700}, {"date": "2010-11-21", "best1": 830341400, "best10": 900337600, "best100": 970070400}, {"date": "2010-11-27", "best1": 830341400, "best10": 900337600, "best100": 970063000}, {"date": "2010-12-17", "best1": 830341400, "best10": 900337600, "best100": 970063000}, {"date": "2010-12-19", "best1": 830341400, "best10": 900337600, "best100": 970063000}, {"date": "2010-12-27", "best1": 830341400, "best10": 900337600, "best100": 970063000}, {"date": "2011-01-04", "best1": 830341400, "best10": 900337600, "best100": 970058200}, {"date": "2011-01-08", "best1": 830341400, "best10": 900337600, "best100": 970051100}, {"date": "2011-01-14", "best1": 830341400, "best10": 900332600, "best100": 970038700}, {"date": "2011-01-15", "best1": 830341400, "best10": 900332600, "best100": 970038700}, {"date": "2011-01-22", "best1": 830341400, "best10": 900332600, "best100": 970038700}, {"date": "2011-01-29", "best1": 830341400, "best10": 900332600, "best100": 970038700}, {"date": "2011-02-05", "best1": 830341400, "best10": 900332600, "best100": 970038700}, {"date": "2011-02-12", "best1": 830341400, "best10": 900332600, "best100": 970037800}, {"date": "2011-02-17", "best1": 830341400, "best10": 900332600, "best100": 970037800}, {"date": "2011-02-19", "best1": 830341400, "best10": 900332600, "best100": 970037800}, {"date": "2011-03-05", "best1": 830341400, "best10": 900332600, "best100": 970037800}, {"date": "2011-03-12", "best1": 830341400, "best10": 900332600, "best100": 970037800}, {"date": "2011-03-19", "best1": 830341400, "best10": 900332600, "best100": 970025300}, {"date": "2011-03-26", "best1": 830341400, "best10": 900332600, "best100": 960306302}, {"date": "2011-04-09", "best1": 830341400, "best10": 900332600, "best100": 960306302}, {"date": "2011-04-16", "best1": 830341400, "best10": 900332600, "best100": 960300001}, {"date": "2011-04-21", "best1": 830341400, "best10": 900332600, "best100": 960300001}, {"date": "2011-04-22", "best1": 830341400, "best10": 900332600, "best100": 960295501}, {"date": "2011-04-30", "best1": 830341400, "best10": 900332600, "best100": 960261201}, {"date": "2011-05-07", "best1": 830341400, "best10": 900332600, "best100": 960261201}, {"date": "2011-05-14", "best1": 830341400, "best10": 900332600, "best100": 960258102}, {"date": "2011-05-22", "best1": 830341400, "best10": 890345702, "best100": 960246001}, {"date": "2011-05-28", "best1": 830341400, "best10": 890345702, "best100": 960246001}, {"date": "2011-06-10", "best1": 830341400, "best10": 890345702, "best100": 960246001}, {"date": "2011-06-11", "best1": 830341400, "best10": 890345702, "best100": 960246001}, {"date": "2011-06-18", "best1": 820318900, "best10": 890275500, "best100": 960246001}, {"date": "2011-06-25", "best1": 820318900, "best10": 890275500, "best100": 960239101}, {"date": "2011-07-09", "best1": 820318900, "best10": 890264900, "best100": 960199201}, {"date": "2011-07-15", "best1": 820318900, "best10": 890264900, "best100": 960164800}, {"date": "2011-07-22", "best1": 820318900, "best10": 890264900, "best100": 960160200}, {"date": "2011-07-23", "best1": 820318900, "best10": 890264900, "best100": 960160200}, {"date": "2011-07-29", "best1": 820318900, "best10": 890264900, "best100": 960160200}, {"date": "2011-07-30", "best1": 820318900, "best10": 890264900, "best100": 960157100}, {"date": "2011-08-06", "best1": 820318900, "best10": 890264900, "best100": 960157100}, {"date": "2011-08-12", "best1": 820318900, "best10": 890264900, "best100": 960146200}, {"date": "2011-08-13", "best1": 820318900, "best10": 890264900, "best100": 960146200}, {"date": "2011-08-20", "best1": 820318900, "best10": 890264900, "best100": 960146200}, {"date": "2011-08-21", "best1": 820318900, "best10": 890264900, "best100": 960146200}, {"date": "2011-08-27", "best1": 820318900, "best10": 880359900, "best100": 960131700}, {"date": "2011-09-03", "best1": 820318900, "best10": 880336101, "best100": 960130600}, {"date": "2011-09-04", "best1": 820318900, "best10": 880336101, "best100": 960130600}, {"date": "2011-09-16", "best1": 820318900, "best10": 880336101, "best100": 960130600}, {"date": "2011-09-17", "best1": 820318900, "best10": 880331000, "best100": 960124000}, {"date": "2011-09-24", "best1": 820318900, "best10": 880331000, "best100": 960116700}, {"date": "2011-10-01", "best1": 820318900, "best10": 880331000, "best100": 960110800}, {"date": "2011-10-03", "best1": 820318900, "best10": 880331000, "best100": 960110800}, {"date": "2011-10-14", "best1": 800322800, "best10": 880331000, "best100": 960110700}, {"date": "2011-10-22", "best1": 800322800, "best10": 880331000, "best100": 960102100}, {"date": "2011-10-29", "best1": 800322800, "best10": 880331000, "best100": 960102100}, {"date": "2011-10-30", "best1": 800322800, "best10": 880331000, "best100": 960102100}, {"date": "2011-11-05", "best1": 800322800, "best10": 880331000, "best100": 960102100}, {"date": "2011-11-19", "best1": 800322800, "best10": 880331000, "best100": 960102100}, {"date": "2011-11-26", "best1": 780346802, "best10": 880331000, "best100": 960102100}, {"date": "2011-12-03", "best1": 780346802, "best10": 880331000, "best100": 960102100}, {"date": "2011-12-10", "best1": 780346802, "best10": 880331000, "best100": 960094000}, {"date": "2011-12-16", "best1": 780346802, "best10": 880331000, "best100": 960093800}, {"date": "2011-12-17", "best1": 780346802, "best10": 880331000, "best100": 960072300}, {"date": "2011-12-25", "best1": 780346802, "best10": 880331000, "best100": 960066300}, {"date": "2011-12-31", "best1": 780346802, "best10": 880331000, "best100": 960066300}, {"date": "2012-01-14", "best1": 780346802, "best10": 880331000, "best100": 960066300}, {"date": "2012-01-21", "best1": 780346802, "best10": 880331000, "best100": 960066300}, {"date": "2012-01-26", "best1": 780346802, "best10": 880331000, "best100": 960066300}, {"date": "2012-01-28", "best1": 780346802, "best10": 880331000, "best100": 950329302}, {"date": "2012-02-03", "best1": 780346802, "best10": 880331000, "best100": 950329302}, {"date": "2012-02-04", "best1": 780346802, "best10": 880331000, "best100": 950329302}, {"date": "2012-02-11", "best1": 780346802, "best10": 880331000, "best100": 950329302}, {"date": "2012-02-18", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-02-25", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-03-02", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-03-10", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-03-17", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-03-24", "best1": 780346802, "best10": 880331000, "best100": 950326101}, {"date": "2012-03-31", "best1": 780346802, "best10": 870337800, "best100": 950326101}, {"date": "2012-04-01", "best1": 780346802, "best10": 870337800, "best100": 950326101}, {"date": "2012-04-06", "best1": 780346802, "best10": 870337800, "best100": 950323601}, {"date": "2012-04-07", "best1": 780346802, "best10": 870337800, "best100": 950311602}, {"date": "2012-04-14", "best1": 780346802, "best10": 870337800, "best100": 950311502}, {"date": "2012-04-21", "best1": 780346802, "best10": 850347503, "best100": 950253002}, {"date": "2012-04-28", "best1": 780346802, "best10": 850347503, "best100": 950233502}, {"date": "2012-05-05", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-05-12", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-05-13", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-05-19", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-05-26", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-06-02", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-06-09", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-06-16", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-06-23", "best1": 780346802, "best10": 850347503, "best100": 950229200}, {"date": "2012-06-30", "best1": 780321402, "best10": 850347503, "best100": 950219501}, {"date": "2012-07-07", "best1": 780321402, "best10": 850347503, "best100": 950219501}, {"date": "2012-07-13", "best1": 780321402, "best10": 850347503, "best100": 950213200}, {"date": "2012-07-14", "best1": 780321402, "best10": 850347503, "best100": 950213200}, {"date": "2012-07-20", "best1": 780321402, "best10": 850347503, "best100": 950213200}, {"date": "2012-07-21", "best1": 780321402, "best10": 850347503, "best100": 950201000}, {"date": "2012-07-28", "best1": 780321402, "best10": 850347503, "best100": 950201000}, {"date": "2012-08-03", "best1": 780321402, "best10": 850347503, "best100": 950163100}, {"date": "2012-08-04", "best1": 760318103, "best10": 850347503, "best100": 950153900}, {"date": "2012-08-05", "best1": 760318103, "best10": 850347503, "best100": 950153900}, {"date": "2012-08-11", "best1": 760318103, "best10": 850347503, "best100": 950152500}, {"date": "2012-08-12", "best1": 760318103, "best10": 850303300, "best100": 950152500}, {"date": "2012-08-18", "best1": 760318103, "best10": 850303300, "best100": 950152500}, {"date": "2012-08-25", "best1": 760318103, "best10": 850303300, "best100": 950152500}, {"date": "2012-08-31", "best1": 760318103, "best10": 850303300, "best100": 950147200}, {"date": "2012-09-01", "best1": 760318103, "best10": 850303300, "best100": 950146000}, {"date": "2012-09-07", "best1": 760318103, "best10": 850303300, "best100": 950139000}, {"date": "2012-09-08", "best1": 760318103, "best10": 850303300, "best100": 950139000}, {"date": "2012-09-15", "best1": 760318103, "best10": 850303300, "best100": 950139000}, {"date": "2012-09-16", "best1": 760318103, "best10": 850303300, "best100": 950133100}, {"date": "2012-09-22", "best1": 760318103, "best10": 850303300, "best100": 950133100}, {"date": "2012-09-29", "best1": 760318103, "best10": 850303300, "best100": 950133000}, {"date": "2012-10-05", "best1": 760318103, "best10": 850303300, "best100": 950133000}, {"date": "2012-10-06", "best1": 760318103, "best10": 850303300, "best100": 950125800}, {"date": "2012-10-12", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-10-27", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-11-03", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-11-10", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-11-11", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-11-17", "best1": 760318103, "best10": 830356205, "best100": 950125800}, {"date": "2012-11-24", "best1": 760318103, "best10": 830356205, "best100": 950120200}, {"date": "2012-12-01", "best1": 760318103, "best10": 830356205, "best100": 950120200}, {"date": "2012-12-08", "best1": 760318103, "best10": 830356205, "best100": 950086100}, {"date": "2012-12-14", "best1": 760318103, "best10": 830356205, "best100": 940345703}, {"date": "2012-12-29", "best1": 760318103, "best10": 830356205, "best100": 940345703}]'); diff --git a/server/src/test/resources/test-scripts/StatisticsControllerIT.sql b/server/src/test/resources/test-scripts/StatisticsControllerIT.sql index 64932f9c..01877f71 100644 --- a/server/src/test/resources/test-scripts/StatisticsControllerIT.sql +++ b/server/src/test/resources/test-scripts/StatisticsControllerIT.sql @@ -8,16 +8,16 @@ VALUES ('1982FRID01', '[{"event": {"id": "333", "name": "3x3x3 Cube"}, "worlds": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 42118, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-01-23", "rank": 3, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 41741, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-01-23", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}}], "countries": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 274, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}, "bestRank": {"end": "2003-08-22", "rank": 0, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}}, "average": {"current": {"end": null, "rank": null, "start": "1982-06-05", "result": null, "competition": "WC1982"}, "bestRank": {"end": null, "rank": null, "start": null, "result": null, "competition": null}}, "country": "Czech Republic", "continent": "Europe"}, {"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 7105, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 2, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 7031, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}, "country": "United States", "continent": "North America"}], "continents": [{"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 20380, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}, "bestRank": {"end": "2003-08-22", "rank": 6, "start": "1982-06-05", "result": 2911, "competition": "WC1982"}}, "average": {"current": {"end": null, "rank": null, "start": "1982-06-05", "result": null, "competition": "WC1982"}, "bestRank": {"end": null, "rank": null, "start": null, "result": null, "competition": null}}, "continent": "Europe"}, {"wcaId": "1982FRID01", "single": {"current": {"end": null, "rank": 9762, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 2, "start": "2003-08-23", "result": 1712, "competition": "WC2003"}}, "average": {"current": {"end": null, "rank": 9667, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}, "bestRank": {"end": "2004-07-09", "rank": 1, "start": "2003-08-23", "result": 2048, "competition": "WC2003"}}, "continent": "North America"}]}]', '2022-01-18 06:00:25'); -- Competitions -INSERT INTO wca_development.Competitions - (id, name, cityName, countryId, information, venue, venueAddress, venueDetails, external_website, cellName, showAtAll, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, cancelled_at, cancelled_by, waiting_list_deadline_date, event_change_deadline_date, guest_entry_status, allow_registration_edits, allow_registration_self_delete_after_acceptance, competition_series_id, use_wca_live_for_scoretaking, allow_registration_without_qualification, guests_per_registration_limit, events_per_registration_limit, force_comment_in_registration) +INSERT INTO wca_development.competitions + (id, name, city_name, country_id, information, venue, venue_address, venue_details, external_website, cell_name, show_at_all, latitude, longitude, contact, remarks, registration_open, registration_close, use_wca_registration, guests_enabled, results_posted_at, results_nag_sent_at, generate_website, announced_at, base_entry_fee_lowest_denomination, currency_code, connected_stripe_account_id, start_date, end_date, enable_donations, competitor_limit_enabled, competitor_limit, competitor_limit_reason, extra_registration_requirements, on_the_spot_registration, on_the_spot_entry_fee_lowest_denomination, refund_policy_percent, refund_policy_limit_date, guests_entry_fee_lowest_denomination, created_at, updated_at, results_submitted_at, early_puzzle_submission, early_puzzle_submission_reason, qualification_results, qualification_results_reason, name_reason, external_registration_page, confirmed_at, event_restrictions, event_restrictions_reason, registration_reminder_sent_at, announced_by, results_posted_by, main_event_id, cancelled_at, cancelled_by, waiting_list_deadline_date, event_change_deadline_date, guest_entry_status, allow_registration_edits, competition_series_id, use_wca_live_for_scoretaking, allow_registration_without_qualification, force_comment_in_registration) VALUES - ('DutchOpen2003', 'Dutch Open 2003', 'Veldhoven', 'Netherlands', '', '[ASML](http://www.asml.com)', 'De Run 6501, 5504 DR Veldhoven', 'Building 7', '', 'Dutch Open 2003', 1, 51405966, 5414813, NULL, 'remarks to the board here', NULL, NULL, 0, 1, '2003-10-11 00:00:00', '2016-09-04 14:00:23', NULL, '2003-09-13 00:00:00', NULL, 'USD', NULL, '2003-10-11', '2003-10-11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2003-10-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, NULL), - ('WC1982', 'World Rubik''s Cube Championship 1982', 'Budapest', 'Hungary', '', '', '', '', '', 'World Championship 1982', 1, 47498403, 19040759, '', 'remarks to the board here', NULL, NULL, 0, 1, '1982-06-05 00:00:00', '2016-09-04 14:01:15', NULL, '1982-05-08 00:00:00', NULL, 'USD', NULL, '1982-06-05', '1982-06-05', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1982-06-05 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 1681, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, NULL), - ('WC2003', 'World Rubik''s Games Championship 2003', 'Toronto, Ontario', 'Canada', '', '[Ontario Science Center](http://www.osc.ca)', '770 Don Mills Rd, North York, ON M3C IT3, Canada', '', 'https://web.archive.org/web/20220820061419/http://www.speedcubing.com/events/wc2003/', 'World Championship 2003', 1, 43714618, -79339509, '', 'remarks to the board here', NULL, NULL, 0, 1, '2003-08-24 00:00:00', '2016-09-04 14:01:16', 0, '2003-07-26 00:00:00', NULL, 'USD', NULL, '2003-08-23', '2003-08-24', 0, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-03 05:20:36', '2003-08-24 00:00:00', 0, '', 0, '', '', '', '2018-09-15 17:46:45', 0, '', NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, 0, NULL, NULL, 0); + ('DutchOpen2003', 'Dutch Open 2003', 'Veldhoven', 'Netherlands', '', '[ASML](http://www.asml.com)', 'De Run 6501, 5504 DR Veldhoven', 'Building 7', '', 'Dutch Open 2003', 1, 51405966, 5414813, NULL, 'remarks to the board here', NULL, NULL, 0, 1, '2003-10-11 00:00:00', '2016-09-04 14:00:23', NULL, '2003-09-13 00:00:00', NULL, 'USD', NULL, '2003-10-11', '2003-10-11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2003-10-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0, NULL), + ('WC1982', 'World Rubik''s Cube Championship 1982', 'Budapest', 'Hungary', '', '', '', '', '', 'World Championship 1982', 1, 47498403, 19040759, '', 'remarks to the board here', NULL, NULL, 0, 1, '1982-06-05 00:00:00', '2016-09-04 14:01:15', NULL, '1982-05-08 00:00:00', NULL, 'USD', NULL, '1982-06-05', '1982-06-05', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1982-06-05 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-15 17:46:45', NULL, NULL, NULL, 1681, 1, '333', NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0, NULL), + ('WC2003', 'World Rubik''s Games Championship 2003', 'Toronto, Ontario', 'Canada', '', '[Ontario Science Center](http://www.osc.ca)', '770 Don Mills Rd, North York, ON M3C IT3, Canada', '', 'https://web.archive.org/web/20220820061419/http://www.speedcubing.com/events/wc2003/', 'World Championship 2003', 1, 43714618, -79339509, '', 'remarks to the board here', NULL, NULL, 0, 1, '2003-08-24 00:00:00', '2016-09-04 14:01:16', 0, '2003-07-26 00:00:00', NULL, 'USD', NULL, '2003-08-23', '2003-08-24', 0, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-03 05:20:36', '2003-08-24 00:00:00', 0, '', 0, '', '', '', '2018-09-15 17:46:45', 0, '', NULL, 125297, 1, '333', NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0); -- Continents -INSERT INTO wca_development.Continents - (id, name, recordName, latitude, longitude, zoom) +INSERT INTO wca_development.continents + (id, name, record_name, latitude, longitude, zoom) VALUES ('_Africa', 'Africa', 'AfR', 213671, 16984850, 3), ('_Asia', 'Asia', 'AsR', 34364439, 108330700, 2), @@ -27,8 +27,8 @@ VALUES ('_Oceania', 'Oceania', 'OcR', -25274398, 133775136, 3), ('_South America', 'South America', 'SAR', -21735104, -63281250, 3); -INSERT INTO wca_development.Countries - (id, name, continentId, iso2) +INSERT INTO wca_development.countries + (id, name, continent_id, iso2) VALUES ('Australia', 'Australia', '_Oceania', 'AU'), ('Austria', 'Austria', '_Europe', 'AT'), @@ -76,27 +76,31 @@ VALUES (8683, 'DutchOpen2003', '333', 0); -- Events -INSERT INTO wca_development.Events - (id, name, `rank`, format, cellName) -VALUES - ('333', '3x3x3 Cube', 10, 'time', '3x3x3 Cube'), - ('333bf', '3x3x3 Blindfolded', 70, 'time', '3x3x3 Blindfolded'), - ('333fm', '3x3x3 Fewest Moves', 80, 'number', '3x3x3 Fewest Moves'), - ('333oh', '3x3x3 One-Handed', 90, 'time', '3x3x3 One-Handed'), - ('444', '4x4x4 Cube', 30, 'time', '4x4x4 Cube'), - ('444bf', '4x4x4 Blindfolded', 160, 'time', '4x4x4 Blindfolded'), - ('555', '5x5x5 Cube', 40, 'time', '5x5x5 Cube'), - ('555bf', '5x5x5 Blindfolded', 170, 'time', '5x5x5 Blindfolded'), - ('clock', 'Clock', 110, 'time', 'Clock'), - ('magic', 'Magic', 997, 'time', 'Magic'), - ('minx', 'Megaminx', 120, 'time', 'Megaminx'), - ('mmagic', 'Master Magic', 998, 'time', 'Master Magic'), - ('pyram', 'Pyraminx', 130, 'time', 'Pyraminx'), - ('sq1', 'Square-1', 150, 'time', 'Square-1'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('222', '2x2x2 Cube', 20, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333', '3x3x3 Cube', 10, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333bf', '3x3x3 Blindfolded', 70, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333fm', '3x3x3 Fewest Moves', 80, 'number'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333ft', '3x3x3 With Feet', 996, 'time' ); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbf', '3x3x3 Multi-Blind', 180, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbo', '3x3x3 Multi-Blind Old Style', 999, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333oh', '3x3x3 One-Handed', 90, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444', '4x4x4 Cube', 30, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444bf', '4x4x4 Blindfolded', 160, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555', '5x5x5 Cube', 40, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555bf', '5x5x5 Blindfolded', 170, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('666', '6x6x6 Cube', 50, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('777', '7x7x7 Cube', 60, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('clock', 'Clock', 110, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('magic', 'Magic', 997, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('minx', 'Megaminx', 120, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('mmagic', 'Master Magic', 998, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('pyram', 'Pyraminx', 130, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('skewb', 'Skewb', 140, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('sq1', 'Square-1', 150, 'time'); -- Results -INSERT INTO wca_development.Results - (id, pos, personId, personName, countryId, competitionId, eventId, roundTypeId, formatId, value1, value2, value3, value4, value5, best, average, regionalSingleRecord, regionalAverageRecord, updated_at) +INSERT INTO wca_development.results + (id, pos, person_id, person_name, country_id, competition_id, event_id, round_type_id, format_id, value1, value2, value3, value4, value5, best, average, regional_single_record, regional_average_record, updated_at) VALUES (83462, 1, '1982THAI01', 'Minh Thai', 'USA', 'WC1982', '333', 'f', '3', 2716, 2295, 2797, 0, 0, 2295, 0, 'WR', NULL, '2018-10-04 06:09:31'), (83463, 2, '1982RAZO01', 'Guus Razoux Schultz', 'Netherlands', 'WC1982', '333', 'f', '3', 2432, 3151, 2615, 0, 0, 2432, 0, 'ER', NULL, '2018-10-04 06:09:31'), diff --git a/server/src/test/resources/test-scripts/SumOfRanksControllerIT.sql b/server/src/test/resources/test-scripts/SumOfRanksControllerIT.sql index bab6c433..0b993e56 100644 --- a/server/src/test/resources/test-scripts/SumOfRanksControllerIT.sql +++ b/server/src/test/resources/test-scripts/SumOfRanksControllerIT.sql @@ -1,1117 +1,1078 @@ --- Users -INSERT INTO wca_development.users - (email, encrypted_password, reset_password_token, reset_password_sent_at, remember_created_at, sign_in_count, current_sign_in_at, last_sign_in_at, current_sign_in_ip, last_sign_in_ip, confirmation_token, confirmed_at, confirmation_sent_at, unconfirmed_email, created_at, updated_at, name, delegate_status, senior_delegate_id, region, wca_id, avatar, pending_avatar, saved_avatar_crop_x, saved_avatar_crop_y, saved_avatar_crop_w, saved_avatar_crop_h, saved_pending_avatar_crop_x, saved_pending_avatar_crop_y, saved_pending_avatar_crop_w, saved_pending_avatar_crop_h, unconfirmed_wca_id, delegate_id_to_handle_wca_id_claim, dob, gender, country_iso2, results_notifications_enabled, preferred_locale, competition_notifications_enabled, receive_delegate_reports, dummy_account, consumed_timestep, otp_required_for_login, otp_backup_codes, session_validity_token, cookies_acknowledged, registration_notifications_enabled, otp_secret) -VALUES - ('8659@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-27 19:27:18', '2023-07-16 01:41:19', NULL, NULL, NULL, '2016-01-16 20:35:53', NULL, NULL, '2016-01-16 20:35:25', '2023-07-27 19:27:18', 'Jan Bentlage', NULL, NULL, NULL, '2010BENT01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('7943@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-06-28 14:45:42', '2023-06-28 06:18:26', NULL, NULL, NULL, '2019-02-22 20:58:14', NULL, NULL, '2016-01-10 21:03:25', '2023-07-18 19:19:23', 'Wilhelm Kilders', NULL, NULL, '', '2010KILD02', '1506112706.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('7056@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-27 09:47:27', '2023-07-27 04:53:35', NULL, NULL, NULL, '2022-07-25 18:43:04', NULL, NULL, '2015-12-16 12:06:03', '2023-07-27 09:47:27', 'Linus Frész', NULL, NULL, 'Germany', '2011FRES01', '1530273532.jpg', NULL, 286, 174, 124, 124, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('6457@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2019-08-15 23:44:22', '2019-08-14 02:22:43', NULL, NULL, NULL, '2015-11-09 00:06:26', NULL, NULL, '2015-11-09 00:05:33', '2023-06-07 21:55:08', 'Allyson Dias de Lima', NULL, NULL, NULL, '2011LIMA01', '1536017051.jpeg', NULL, 108, 134, 316, 316, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('27783@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-19 13:51:41', '2023-07-12 02:43:32', NULL, NULL, NULL, '2019-08-30 00:42:08', NULL, NULL, '2016-08-22 01:59:33', '2023-07-19 13:51:41', 'Bruno Fonsêca Coelho Lima', 'candidate_delegate', 1312, 'Brazil (São Paulo)', '2011LIMA02', '1564412803.jpeg', NULL, 0, 130, 450, 450, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('14591@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2020-01-21 16:29:31', '2019-03-17 08:38:28', NULL, NULL, NULL, '2016-03-17 08:43:59', NULL, NULL, '2016-03-16 21:35:49', '2023-06-07 21:56:00', 'Emanuel Rheinert', NULL, NULL, NULL, '2011RHEI01', '1441150546.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('11116@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2019-06-17 17:15:37', '2018-10-19 12:23:20', NULL, NULL, NULL, '2018-04-11 21:41:23', NULL, NULL, '2016-02-07 10:21:30', '2023-06-07 21:55:38', 'Pedro Roque', NULL, NULL, NULL, '2012ROQU01', '1507314630.PNG', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('14654@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2018-08-27 18:36:57', '2018-08-16 20:14:40', NULL, NULL, NULL, '2016-03-18 16:34:58', NULL, NULL, '2016-03-17 21:21:48', '2023-06-07 21:56:00', 'Lucas Wesche', NULL, NULL, '', '2012WESC01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('7063@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-24 22:41:28', '2023-07-15 10:51:19', NULL, NULL, NULL, '2018-01-18 21:32:29', NULL, NULL, '2015-12-16 15:08:20', '2023-07-24 22:41:28', 'Alexander Botz', NULL, NULL, NULL, '2013BOTZ01', '1674179228.jpeg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('14574@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-01 17:57:36', '2023-08-01 17:51:11', NULL, NULL, NULL, '2016-03-16 17:35:15', NULL, NULL, '2016-03-16 17:34:54', '2023-08-01 17:57:36', 'Kevin Gerhardt', NULL, NULL, NULL, '2013GERH01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('15460@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-03 07:42:14', '2023-08-01 17:56:30', NULL, NULL, NULL, '2016-03-29 18:48:07', NULL, NULL, '2016-03-29 18:40:17', '2023-08-03 07:42:14', 'Oliver Fritz', NULL, NULL, NULL, '2014FRIT02', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('18101@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-01 22:09:46', '2023-08-01 20:41:44', NULL, NULL, NULL, '2016-04-30 17:32:48', NULL, NULL, '2016-04-30 17:32:24', '2023-08-01 22:09:46', 'Henri Gerber', NULL, NULL, NULL, '2014GERB01', '1683317832.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('7250@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-02 21:22:56', '2023-08-01 21:07:28', NULL, NULL, NULL, '2015-12-27 23:42:07', NULL, NULL, '2015-12-27 23:41:51', '2023-08-02 21:22:56', 'Aharon Campoli Tono', NULL, NULL, NULL, '2014TONO01', '1646250543.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('10414@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-06-28 19:01:23', '2023-06-27 22:00:18', NULL, NULL, NULL, '2016-02-01 19:42:58', NULL, NULL, '2016-02-01 19:42:31', '2023-06-28 19:01:23', 'Lucas Ichiro Yunomae', NULL, NULL, NULL, '2014YUNO01', '1554303614.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 1, NULL), - ('10358@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-18 10:50:42', '2023-07-01 23:31:08', NULL, NULL, NULL, '2016-02-01 15:50:36', NULL, NULL, '2016-02-01 15:50:03', '2023-07-18 10:50:42', 'Vicenzo Guerino Cecchini', NULL, NULL, NULL, '2015CECC01', '1669038655.jpg', NULL, 18, 176, 490, 490, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('14457@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2022-08-21 09:59:05', '2022-08-20 08:31:28', NULL, NULL, NULL, '2016-03-15 12:21:09', NULL, NULL, '2016-03-15 12:20:45', '2023-06-07 21:55:59', 'Christian König', NULL, NULL, '', '2015KOEN01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('981@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-02 13:46:31', '2023-08-02 00:14:31', NULL, NULL, NULL, '2019-09-30 18:19:18', NULL, NULL, '2015-07-10 14:48:39', '2023-08-02 13:46:31', 'Enzo Mattos', 'candidate_delegate', 1312, 'Brazil (São Paulo)', '2015MATT05', '1636252326.jpg', NULL, 82, 126, 396, 396, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('28108@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-06-29 21:08:00', '2023-06-28 18:18:58', NULL, NULL, NULL, '2016-08-25 17:39:42', NULL, NULL, '2016-08-25 17:39:06', '2023-06-29 21:08:00', 'Anuar Miguel Abib Onofre', NULL, NULL, NULL, '2015ONOF01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('228@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-26 02:35:40', '2023-03-08 16:59:29', NULL, NULL, NULL, '2017-02-02 19:17:01', NULL, NULL, '2015-05-31 20:05:00', '2023-07-26 02:35:40', 'Antonio Gabriel Freitas da Silva', NULL, NULL, NULL, '2015SILV55', '1477789139.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('31527@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-31 21:05:42', '2023-07-18 22:20:27', NULL, NULL, NULL, '2016-10-10 17:35:05', NULL, NULL, '2016-10-09 17:19:40', '2023-07-31 21:05:42', 'Joel Cetra', NULL, NULL, '', '2016CETR01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('49811@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-02 13:22:47', '2023-08-02 10:31:30', NULL, NULL, NULL, '2022-01-08 13:02:37', NULL, NULL, '2017-03-12 14:12:46', '2023-08-02 13:22:47', 'Laura Holzhauer', 'delegate', 454, 'Germany', '2016HOLZ01', '1641847100.jpg', NULL, 286, 458, 114, 114, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'f', 'DE', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('14969@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-03 13:41:28', '2023-08-02 14:53:00', NULL, NULL, NULL, '2016-03-22 00:48:26', NULL, NULL, '2016-03-22 00:43:40', '2023-08-03 13:41:28', 'Malte Ihlefeld', NULL, NULL, '', '2016IHLE01', '1658481357.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('17160@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-31 06:30:34', '2023-07-27 19:44:56', NULL, NULL, NULL, '2016-04-17 16:42:12', NULL, NULL, '2016-04-17 16:41:27', '2023-07-31 06:30:34', 'Noah Kraft', NULL, NULL, NULL, '2016KRAF01', '1671547487.jpg', NULL, 148, 14, 512, 512, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('37007@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-02 18:58:56', '2023-08-01 23:55:39', NULL, NULL, NULL, '2022-07-14 04:25:34', NULL, NULL, '2016-12-05 22:37:30', '2023-08-02 18:58:56', 'João Vinícius de A. Santos', 'candidate_delegate', 1312, 'Brazil (Bahia)', '2016SANT66', '1688425887.jpeg', NULL, 388, 130, 200, 200, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('11806@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-03 14:07:26', '2023-08-03 13:11:28', NULL, NULL, NULL, '2022-11-01 19:05:00', NULL, NULL, '2016-02-13 15:21:49', '2023-08-03 14:07:26', 'Caio Hideaki Sato', NULL, NULL, NULL, '2016SATO01', '1690300948.JPG', NULL, 108, 0, 570, 570, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('166225@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-27 23:07:27', '2023-07-22 19:22:17', NULL, NULL, NULL, '2019-07-22 23:16:59', NULL, NULL, '2019-07-22 00:28:40', '2023-07-27 23:07:27', 'Ana Beatriz M. Tannenbaum', NULL, NULL, NULL, '2016TANN01', '1682604914.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'f', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('45951@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-01 17:59:26', '2023-07-23 18:19:10', NULL, NULL, NULL, '2017-02-13 05:17:23', NULL, NULL, '2017-02-13 05:15:05', '2023-08-01 17:59:26', 'Leonard Wetzel', NULL, NULL, '', '2016WETZ01', '1583579426.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('35228@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-01 11:20:08', '2023-07-08 16:47:00', NULL, NULL, NULL, '2016-11-18 19:41:08', NULL, NULL, '2016-11-18 19:40:13', '2023-08-01 11:20:08', 'Gabriel Bergue', NULL, NULL, NULL, '2017BORG02', '1675172053.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 1, NULL), - ('83248@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-25 04:12:18', '2023-05-26 21:54:48', NULL, NULL, NULL, '2017-11-27 23:30:15', NULL, NULL, '2017-11-27 23:29:41', '2023-07-25 04:12:18', 'Francisco Moraes Mandalozzo', NULL, NULL, NULL, '2017MAND13', '1540336447.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('73516@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-01 23:24:55', '2023-07-01 22:24:13', NULL, NULL, NULL, '2022-08-12 21:50:05', NULL, NULL, '2017-09-11 12:52:55', '2023-07-01 23:24:55', 'Gabriel Lincon Souza', NULL, NULL, NULL, '2017SOUZ10', '1660340266.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('123647@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-08-02 20:52:37', '2023-08-02 15:41:51', NULL, NULL, NULL, '2018-09-15 22:56:19', NULL, NULL, '2018-09-15 22:49:55', '2023-08-02 20:52:37', 'Frederico Canal Gomes', NULL, NULL, NULL, '2018GOME29', '1689828881.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('110502@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-06-29 11:04:09', '2023-04-29 03:22:24', NULL, NULL, NULL, '2018-05-25 00:27:17', NULL, NULL, '2018-05-25 00:26:53', '2023-06-29 11:04:09', 'Niclas Mach', NULL, NULL, '', '2018MACH13', '1540753510.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'DE', 1, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('147276@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-07-28 22:27:41', '2023-07-24 18:20:00', NULL, NULL, NULL, '2019-03-09 21:21:31', NULL, NULL, '2019-03-09 21:20:31', '2023-07-28 22:27:41', 'Tiago Akihiro Fujita', NULL, NULL, NULL, '2019FUJI09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL), - ('175846@worldcubeassociation.org', '', NULL, NULL, NULL, 0, '2023-02-22 19:43:46', '2022-11-18 18:33:55', NULL, NULL, NULL, '2019-10-07 02:27:35', NULL, NULL, '2019-10-07 02:26:52', '2023-06-07 22:13:50', 'Pedro Lobeto Miyamoto', NULL, NULL, NULL, '2019MIYA05', '1577998474.jpg', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1954-12-04', 'm', 'BR', 0, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 0, NULL); - -- Continent -INSERT INTO wca_development.Continents (id, name, recordName, latitude, longitude, zoom) VALUES('_Europe', 'Europe', 'ER', 58299984, 23049300, 3); -INSERT INTO wca_development.Continents (id, name, recordName, latitude, longitude, zoom) VALUES('_South America', 'South America', 'SAR', -21735104, -63281250, 3); +INSERT INTO wca_development.continents (id, name, record_name, latitude, longitude, zoom) VALUES('_Europe', 'Europe', 'ER', 58299984, 23049300, 3); +INSERT INTO wca_development.continents (id, name, record_name, latitude, longitude, zoom) VALUES('_South America', 'South America', 'SAR', -21735104, -63281250, 3); -- Countries -INSERT INTO wca_development.Countries (id, name, continentId, iso2) VALUES('Brazil', 'Brazil', '_South America', 'BR'); -INSERT INTO wca_development.Countries (id, name, continentId, iso2) VALUES('Germany', 'Germany', '_Europe', 'DE'); +INSERT INTO wca_development.countries (id, name, continent_id, iso2) VALUES('Brazil', 'Brazil', '_South America', 'BR'); +INSERT INTO wca_development.countries (id, name, continent_id, iso2) VALUES('Germany', 'Germany', '_Europe', 'DE'); -- Ranks single -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526727877, '2013GERH01', '222', 66, 32, 15, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526727943, '2014FRIT02', '222', 80, 97, 42, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728045, '2012ROQU01', '222', 93, 199, 3, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728058, '2011LIMA01', '222', 94, 211, 4, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728125, '2015CECC01', '222', 100, 268, 6, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728160, '2014TONO01', '222', 104, 308, 9, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728170, '2010BENT01', '222', 105, 325, 146, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728279, '2014GERB01', '222', 112, 419, 183, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728321, '2015MATT05', '222', 115, 472, 15, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728456, '2015SILV55', '222', 123, 601, 21, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728493, '2016KRAF01', '222', 124, 622, 257, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728555, '2018MACH13', '222', 127, 690, 281, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728703, '2018GOME29', '222', 134, 857, 31, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728763, '2019MIYA05', '222', 136, 912, 34, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728808, '2016CETR01', '222', 138, 952, 380, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728824, '2015KOEN01', '222', 139, 973, 390, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728842, '2016SATO01', '222', 139, 973, 42, 20); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728929, '2017MAND13', '222', 142, 1068, 55, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526728948, '2010KILD02', '222', 143, 1100, 435, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729201, '2011RHEI01', '222', 152, 1335, 510, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729296, '2012WESC01', '222', 155, 1429, 541, 35); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729570, '2013BOTZ01', '222', 163, 1703, 640, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729571, '2011FRES01', '222', 163, 1703, 640, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729681, '2016WETZ01', '222', 166, 1808, 671, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729724, '2017BORG02', '222', 167, 1851, 121, 39); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729905, '2019FUJI09', '222', 172, 2044, 139, 44); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729944, '2011LIMA02', '222', 173, 2076, 143, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526729953, '2016IHLE01', '222', 174, 2105, 769, 52); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526730284, '2015ONOF01', '222', 182, 2426, 168, 53); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526730490, '2016HOLZ01', '222', 187, 2630, 950, 59); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526730570, '2014YUNO01', '222', 189, 2700, 191, 56); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526731776, '2016SANT66', '222', 212, 3900, 283, 79); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526734585, '2016TANN01', '222', 251, 6688, 498, 122); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526737982, '2017SOUZ10', '222', 287, 10105, 753, 183); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825755, '2013GERH01', '333', 494, 43, 13, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825797, '2016SATO01', '333', 529, 86, 2, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825854, '2014GERB01', '333', 555, 140, 44, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825864, '2015SILV55', '333', 558, 151, 5, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825873, '2015CECC01', '333', 562, 161, 7, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526825942, '2017MAND13', '333', 588, 230, 8, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826048, '2014FRIT02', '333', 613, 337, 121, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826076, '2012WESC01', '333', 618, 360, 127, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826276, '2011RHEI01', '333', 651, 561, 184, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826284, '2019FUJI09', '333', 652, 571, 23, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826425, '2015MATT05', '333', 669, 710, 35, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826437, '2012ROQU01', '333', 672, 723, 37, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826647, '2013BOTZ01', '333', 694, 935, 302, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826730, '2014YUNO01', '333', 702, 1014, 57, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826919, '2016CETR01', '333', 719, 1202, 377, 30); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526826922, '2016WETZ01', '333', 720, 1211, 379, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827010, '2016IHLE01', '333', 727, 1292, 404, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827057, '2015KOEN01', '333', 731, 1339, 424, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827610, '2016KRAF01', '333', 772, 1899, 587, 52); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827658, '2018GOME29', '333', 774, 1934, 110, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827675, '2016HOLZ01', '333', 775, 1951, 604, 54); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827695, '2016TANN01', '333', 777, 1983, 114, 30); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827747, '2019MIYA05', '333', 780, 2022, 117, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827856, '2010BENT01', '333', 786, 2134, 657, 60); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526827948, '2011FRES01', '333', 791, 2234, 679, 63); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526828361, '2010KILD02', '333', 814, 2643, 798, 71); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526828582, '2018MACH13', '333', 824, 2853, 859, 75); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526828826, '2015ONOF01', '333', 837, 3108, 191, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526829398, '2016SANT66', '333', 862, 3680, 240, 56); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526829975, '2017BORG02', '333', 883, 4247, 286, 64); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526830278, '2017SOUZ10', '333', 893, 4549, 303, 69); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526830651, '2011LIMA02', '333', 906, 4907, 332, 73); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526832489, '2011LIMA01', '333', 964, 6766, 493, 107); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526832723, '2014TONO01', '333', 970, 6986, 510, 112); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979048, '2014FRIT02', '333bf', 2258, 83, 26, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979060, '2016KRAF01', '333bf', 2340, 95, 31, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979150, '2014GERB01', '333bf', 2961, 185, 56, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979228, '2011FRES01', '333bf', 3506, 263, 84, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979270, '2017MAND13', '333bf', 3797, 305, 17, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979377, '2010BENT01', '333bf', 4436, 412, 139, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979419, '2015CECC01', '333bf', 4655, 454, 26, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979505, '2016IHLE01', '333bf', 5069, 540, 188, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979516, '2015ONOF01', '333bf', 5127, 550, 34, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979582, '2013GERH01', '333bf', 5554, 617, 215, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979595, '2015MATT05', '333bf', 5629, 629, 40, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979643, '2012WESC01', '333bf', 5909, 678, 236, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979653, '2013BOTZ01', '333bf', 5946, 688, 243, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979655, '2019MIYA05', '333bf', 5955, 690, 42, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979745, '2016HOLZ01', '333bf', 6396, 780, 271, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526979825, '2015KOEN01', '333bf', 6882, 860, 310, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980053, '2018MACH13', '333bf', 7919, 1087, 389, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980054, '2018GOME29', '333bf', 7920, 1089, 63, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980062, '2011LIMA01', '333bf', 7946, 1096, 64, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980111, '2011RHEI01', '333bf', 8150, 1146, 406, 43); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980202, '2016CETR01', '333bf', 8531, 1237, 438, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526980484, '2010KILD02', '333bf', 9622, 1519, 524, 51); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526981303, '2014YUNO01', '333bf', 13148, 2338, 140, 51); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526981776, '2012ROQU01', '333bf', 15225, 2811, 161, 58); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526981904, '2014TONO01', '333bf', 15817, 2939, 171, 64); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526983280, '2016WETZ01', '333bf', 22045, 4314, 1416, 125); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526983697, '2017SOUZ10', '333bf', 24417, 4732, 309, 112); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526984274, '2016SANT66', '333bf', 27991, 5309, 346, 127); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526984425, '2015SILV55', '333bf', 28998, 5460, 358, 130); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526984430, '2011LIMA02', '333bf', 29012, 5465, 359, 131); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526985984, '2017BORG02', '333bf', 53462, 7019, 515, 194); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986217, '2010BENT01', '333fm', 20, 17, 10, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986227, '2016KRAF01', '333fm', 21, 33, 17, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986229, '2016IHLE01', '333fm', 21, 33, 17, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986257, '2011FRES01', '333fm', 21, 33, 17, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986303, '2013GERH01', '333fm', 23, 109, 52, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986313, '2011LIMA02', '333fm', 23, 109, 4, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986315, '2011RHEI01', '333fm', 23, 109, 52, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986374, '2018MACH13', '333fm', 24, 168, 79, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986410, '2015CECC01', '333fm', 24, 168, 10, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986432, '2013BOTZ01', '333fm', 25, 225, 107, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986455, '2010KILD02', '333fm', 25, 225, 107, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986478, '2015MATT05', '333fm', 25, 225, 14, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986510, '2014GERB01', '333fm', 26, 299, 139, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986590, '2016CETR01', '333fm', 26, 299, 139, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986611, '2014FRIT02', '333fm', 27, 401, 190, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986701, '2015KOEN01', '333fm', 27, 401, 190, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986834, '2012WESC01', '333fm', 28, 517, 249, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986837, '2012ROQU01', '333fm', 28, 517, 19, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986927, '2016SANT66', '333fm', 29, 664, 30, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526986981, '2011LIMA01', '333fm', 29, 664, 30, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526987162, '2018GOME29', '333fm', 30, 840, 39, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526987302, '2019MIYA05', '333fm', 31, 1009, 51, 34); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526987480, '2014YUNO01', '333fm', 32, 1207, 64, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526987557, '2017MAND13', '333fm', 32, 1207, 64, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526988059, '2015SILV55', '333fm', 35, 1850, 119, 67); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526988309, '2015ONOF01', '333fm', 36, 2067, 126, 68); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526988485, '2017BORG02', '333fm', 36, 2067, 126, 68); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526988503, '2016HOLZ01', '333fm', 36, 2067, 889, 74); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526989640, '2016WETZ01', '333fm', 41, 3294, 1330, 109); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526990175, '2017SOUZ10', '333fm', 43, 3829, 243, 129); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526990349, '2014TONO01', '333fm', 44, 4091, 268, 137); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993174, '2014GERB01', '333ft', 1855, 4, 1, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993185, '2015KOEN01', '333ft', 2167, 15, 5, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993197, '2016CETR01', '333ft', 2406, 27, 10, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993218, '2017BORG02', '333ft', 2680, 48, 2, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993232, '2015CECC01', '333ft', 2846, 62, 3, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993267, '2016TANN01', '333ft', 3250, 97, 6, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993310, '2016SATO01', '333ft', 3515, 140, 7, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993358, '2010BENT01', '333ft', 3919, 188, 52, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993379, '2012WESC01', '333ft', 4071, 209, 62, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993388, '2016IHLE01', '333ft', 4131, 217, 64, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993397, '2016WETZ01', '333ft', 4197, 227, 67, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993421, '2018MACH13', '333ft', 4309, 251, 76, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993462, '2013GERH01', '333ft', 4546, 291, 98, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993542, '2015MATT05', '333ft', 5032, 372, 24, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993554, '2011FRES01', '333ft', 5115, 384, 131, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993598, '2010KILD02', '333ft', 5338, 428, 141, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993638, '2016SANT66', '333ft', 5610, 468, 31, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993671, '2012ROQU01', '333ft', 5790, 501, 37, 20); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993820, '2013BOTZ01', '333ft', 6733, 650, 216, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526993955, '2011RHEI01', '333ft', 7515, 785, 249, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526994076, '2011LIMA02', '333ft', 8111, 906, 65, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526994190, '2016KRAF01', '333ft', 8603, 1020, 306, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526994269, '2011LIMA01', '333ft', 9041, 1099, 82, 41); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526994420, '2017SOUZ10', '333ft', 9946, 1250, 98, 47); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526994607, '2018GOME29', '333ft', 11051, 1437, 111, 53); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526995415, '2019MIYA05', '333ft', 16917, 2245, 182, 90); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526995694, '2014TONO01', '333ft', 19733, 2524, 203, 103); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996528, '2010BENT01', '333mbf', 800338702, 90, 37, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996550, '2017MAND13', '333mbf', 820338200, 112, 6, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996676, '2011FRES01', '333mbf', 870229200, 238, 104, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996689, '2014GERB01', '333mbf', 870330901, 251, 109, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996797, '2015MATT05', '333mbf', 890355000, 359, 21, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996818, '2011LIMA01', '333mbf', 900300000, 380, 22, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996846, '2019MIYA05', '333mbf', 900332502, 408, 27, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996876, '2013BOTZ01', '333mbf', 910224401, 438, 187, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996902, '2011RHEI01', '333mbf', 910299100, 464, 197, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996971, '2016KRAF01', '333mbf', 920207400, 533, 220, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996974, '2016IHLE01', '333mbf', 920238200, 536, 222, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526996996, '2012WESC01', '333mbf', 920298000, 558, 234, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997023, '2015CECC01', '333mbf', 920330001, 585, 39, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997112, '2015ONOF01', '333mbf', 930280101, 674, 45, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997226, '2015KOEN01', '333mbf', 940208301, 788, 325, 36); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997234, '2016CETR01', '333mbf', 940221900, 796, 328, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997317, '2014FRIT02', '333mbf', 950047100, 879, 356, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997405, '2018MACH13', '333mbf', 950209300, 967, 394, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997523, '2016HOLZ01', '333mbf', 960084500, 1085, 438, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997572, '2010KILD02', '333mbf', 960110300, 1134, 455, 48); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526997873, '2018GOME29', '333mbf', 970051300, 1435, 90, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526998026, '2014TONO01', '333mbf', 970084700, 1588, 110, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526998168, '2012ROQU01', '333mbf', 970110000, 1730, 131, 53); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526998891, '2013GERH01', '333mbf', 990356705, 2453, 983, 101); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999153, '2014FRIT02', '333oh', 943, 119, 43, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999155, '2013GERH01', '333oh', 944, 123, 47, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999163, '2016KRAF01', '333oh', 951, 132, 49, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999239, '2014GERB01', '333oh', 1003, 208, 72, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999382, '2015CECC01', '333oh', 1078, 351, 23, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999400, '2016SATO01', '333oh', 1085, 368, 26, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999446, '2015ONOF01', '333oh', 1102, 414, 28, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999495, '2017MAND13', '333oh', 1118, 461, 33, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999510, '2018GOME29', '333oh', 1123, 478, 34, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999527, '2013BOTZ01', '333oh', 1130, 495, 155, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999594, '2015KOEN01', '333oh', 1151, 561, 172, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999717, '2016SANT66', '333oh', 1188, 686, 48, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999772, '2012ROQU01', '333oh', 1202, 739, 52, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999784, '2010BENT01', '333oh', 1203, 746, 229, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999798, '2015MATT05', '333oh', 1207, 766, 55, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999821, '2012WESC01', '333oh', 1212, 786, 240, 20); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999835, '2017BORG02', '333oh', 1215, 801, 60, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(526999978, '2016HOLZ01', '333oh', 1249, 945, 293, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000065, '2015SILV55', '333oh', 1266, 1027, 77, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000142, '2010KILD02', '333oh', 1281, 1108, 338, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000146, '2014YUNO01', '333oh', 1283, 1115, 83, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000635, '2011RHEI01', '333oh', 1370, 1604, 478, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000686, '2017SOUZ10', '333oh', 1377, 1648, 121, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000825, '2016CETR01', '333oh', 1398, 1789, 526, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000965, '2016WETZ01', '333oh', 1416, 1925, 556, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527000987, '2016IHLE01', '333oh', 1420, 1956, 561, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001076, '2016TANN01', '333oh', 1434, 2041, 147, 34); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001208, '2014TONO01', '333oh', 1452, 2177, 160, 36); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001396, '2019FUJI09', '333oh', 1477, 2358, 177, 40); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001407, '2019MIYA05', '333oh', 1478, 2370, 180, 41); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001532, '2011LIMA01', '333oh', 1494, 2498, 194, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001629, '2011FRES01', '333oh', 1509, 2595, 724, 62); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527001957, '2018MACH13', '333oh', 1553, 2924, 799, 70); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527003851, '2011LIMA02', '333oh', 1763, 4818, 381, 82); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039766, '2013GERH01', '444', 2308, 35, 11, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039799, '2014GERB01', '444', 2438, 68, 21, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039849, '2016SATO01', '444', 2530, 117, 6, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039869, '2014FRIT02', '444', 2546, 137, 43, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039872, '2012ROQU01', '444', 2549, 141, 7, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039873, '2016HOLZ01', '444', 2549, 141, 44, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039905, '2017MAND13', '444', 2588, 174, 8, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039908, '2014YUNO01', '444', 2596, 177, 9, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039918, '2015CECC01', '444', 2605, 186, 10, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039962, '2012WESC01', '444', 2653, 231, 73, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527039986, '2011RHEI01', '444', 2671, 254, 79, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040155, '2016CETR01', '444', 2818, 423, 135, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040160, '2013BOTZ01', '444', 2821, 429, 137, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040168, '2016IHLE01', '444', 2829, 437, 141, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040253, '2019FUJI09', '444', 2889, 522, 35, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040373, '2016WETZ01', '444', 2958, 641, 206, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040422, '2015SILV55', '444', 2992, 691, 43, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040493, '2018GOME29', '444', 3033, 760, 45, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040495, '2016TANN01', '444', 3034, 763, 46, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040538, '2016KRAF01', '444', 3060, 807, 257, 29); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040585, '2010KILD02', '444', 3081, 854, 272, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040678, '2015MATT05', '444', 3119, 944, 67, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040778, '2018MACH13', '444', 3166, 1046, 335, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527040949, '2017SOUZ10', '444', 3241, 1216, 83, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527041156, '2015KOEN01', '444', 3322, 1424, 442, 50); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527041532, '2010BENT01', '444', 3436, 1801, 564, 64); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527042130, '2016SANT66', '444', 3605, 2397, 169, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527042467, '2014TONO01', '444', 3697, 2733, 207, 35); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527042714, '2011FRES01', '444', 3749, 2982, 872, 91); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527042878, '2015ONOF01', '444', 3785, 3143, 237, 41); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527043260, '2011LIMA02', '444', 3869, 3524, 266, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527044099, '2017BORG02', '444', 4042, 4366, 330, 58); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527044612, '2019MIYA05', '444', 4136, 4879, 373, 63); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527045756, '2011LIMA01', '444', 4350, 6025, 467, 77); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085768, '2014FRIT02', '444bf', 12311, 20, 6, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085802, '2011FRES01', '444bf', 16761, 54, 21, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085858, '2014GERB01', '444bf', 23132, 110, 43, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085877, '2016KRAF01', '444bf', 24548, 129, 52, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085884, '2010BENT01', '444bf', 25463, 136, 56, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527085948, '2017MAND13', '444bf', 30659, 200, 10, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086142, '2015CECC01', '444bf', 45968, 394, 16, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086143, '2016CETR01', '444bf', 46175, 395, 145, 20); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086156, '2015ONOF01', '444bf', 47385, 408, 18, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086165, '2016IHLE01', '444bf', 48783, 417, 153, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086186, '2011RHEI01', '444bf', 50591, 438, 161, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086292, '2012WESC01', '444bf', 57434, 544, 202, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086302, '2016HOLZ01', '444bf', 58211, 554, 206, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086327, '2015MATT05', '444bf', 60800, 579, 27, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086363, '2011LIMA01', '444bf', 64100, 614, 29, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086398, '2018GOME29', '444bf', 68500, 650, 30, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086409, '2015KOEN01', '444bf', 69800, 661, 252, 39); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086555, '2013BOTZ01', '444bf', 87700, 807, 300, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086752, '2010KILD02', '444bf', 140700, 1004, 373, 51); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086835, '2017MAND13', '555', 4332, 21, 2, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086841, '2013GERH01', '555', 4497, 27, 8, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086950, '2012WESC01', '555', 5076, 136, 41, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086982, '2016HOLZ01', '555', 5181, 167, 53, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086991, '2014GERB01', '555', 5207, 177, 59, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527086996, '2014FRIT02', '555', 5222, 181, 61, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087027, '2012ROQU01', '555', 5301, 213, 6, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087073, '2016CETR01', '555', 5414, 259, 84, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087097, '2016IHLE01', '555', 5464, 283, 94, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087108, '2013BOTZ01', '555', 5492, 294, 99, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087144, '2015CECC01', '555', 5554, 329, 13, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087275, '2016SATO01', '555', 5789, 461, 19, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087376, '2010KILD02', '555', 5972, 562, 182, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087446, '2014YUNO01', '555', 6060, 630, 29, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087449, '2011RHEI01', '555', 6064, 635, 206, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087545, '2015MATT05', '555', 6181, 731, 40, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087561, '2016WETZ01', '555', 6198, 747, 239, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087622, '2015KOEN01', '555', 6274, 808, 260, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087670, '2018MACH13', '555', 6337, 856, 272, 35); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087679, '2015SILV55', '555', 6343, 865, 50, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087750, '2019FUJI09', '555', 6412, 935, 55, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527087925, '2018GOME29', '555', 6573, 1109, 70, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088183, '2010BENT01', '555', 6794, 1369, 415, 52); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088252, '2016SANT66', '555', 6868, 1438, 93, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088287, '2016TANN01', '555', 6896, 1473, 97, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088376, '2011FRES01', '555', 6965, 1562, 459, 56); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088749, '2017SOUZ10', '555', 7257, 1935, 127, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527088909, '2014TONO01', '555', 7369, 2095, 142, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527089039, '2016KRAF01', '555', 7455, 2224, 654, 67); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527089353, '2017BORG02', '555', 7650, 2537, 180, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527089979, '2019MIYA05', '555', 8057, 3165, 228, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527090603, '2011LIMA02', '555', 8380, 3789, 266, 49); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527092171, '2015ONOF01', '555', 9239, 5357, 371, 69); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527094731, '2011LIMA01', '555', 10562, 7916, 567, 108); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109240, '2014FRIT02', '555bf', 37364, 34, 14, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109247, '2011FRES01', '555bf', 40178, 41, 18, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109296, '2010BENT01', '555bf', 57784, 90, 34, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109344, '2014GERB01', '555bf', 73200, 138, 51, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109447, '2016KRAF01', '555bf', 106000, 240, 92, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109472, '2011RHEI01', '555bf', 112600, 266, 101, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109505, '2016HOLZ01', '555bf', 121300, 299, 113, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109524, '2017MAND13', '555bf', 129200, 318, 12, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109577, '2012WESC01', '555bf', 147400, 371, 141, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109658, '2015MATT05', '555bf', 188400, 451, 18, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109692, '2015ONOF01', '555bf', 215100, 486, 19, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109725, '2010KILD02', '555bf', 257200, 519, 193, 30); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109812, '2012WESC01', '666', 9321, 62, 18, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109835, '2013GERH01', '666', 9701, 85, 22, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109873, '2014GERB01', '666', 10063, 123, 36, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109919, '2016HOLZ01', '666', 10523, 169, 52, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109949, '2013BOTZ01', '666', 10726, 199, 62, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527109950, '2016IHLE01', '666', 10727, 200, 63, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110013, '2010KILD02', '666', 11108, 263, 85, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110044, '2014FRIT02', '666', 11270, 293, 94, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110081, '2015CECC01', '666', 11467, 331, 11, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110087, '2016CETR01', '666', 11505, 337, 114, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110168, '2014TONO01', '666', 11780, 418, 15, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110229, '2015MATT05', '666', 12065, 479, 22, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110230, '2012ROQU01', '666', 12067, 480, 23, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110242, '2015KOEN01', '666', 12125, 492, 156, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110324, '2011RHEI01', '666', 12415, 574, 178, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110342, '2014YUNO01', '666', 12465, 592, 32, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110391, '2016WETZ01', '666', 12647, 641, 204, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110454, '2010BENT01', '666', 12869, 704, 221, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110779, '2017BORG02', '666', 13796, 1029, 62, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110787, '2018GOME29', '666', 13821, 1037, 66, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110844, '2019FUJI09', '666', 13948, 1094, 73, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527110854, '2016SANT66', '666', 13970, 1104, 74, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111117, '2016TANN01', '666', 14672, 1366, 94, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111134, '2016KRAF01', '666', 14707, 1384, 399, 43); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111167, '2018MACH13', '666', 14803, 1417, 408, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111217, '2011FRES01', '666', 14930, 1467, 420, 49); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111420, '2017SOUZ10', '666', 15410, 1670, 115, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527111880, '2017MAND13', '666', 16392, 2130, 147, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527112321, '2011LIMA02', '666', 17431, 2571, 181, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527112519, '2015SILV55', '666', 17886, 2768, 194, 35); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527113675, '2015ONOF01', '666', 20376, 3925, 279, 53); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527114221, '2011LIMA01', '666', 21764, 4470, 320, 63); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527116731, '2016SATO01', '666', 31078, 6981, 503, 104); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118308, '2012WESC01', '777', 13500, 30, 10, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118385, '2014GERB01', '777', 14955, 107, 30, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118390, '2016IHLE01', '777', 15028, 111, 31, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118392, '2013GERH01', '777', 15049, 114, 33, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118394, '2016HOLZ01', '777', 15100, 116, 34, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118405, '2014TONO01', '777', 15279, 127, 7, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118417, '2013BOTZ01', '777', 15377, 139, 41, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118443, '2010KILD02', '777', 15647, 165, 51, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118546, '2014FRIT02', '777', 16840, 268, 84, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118548, '2016CETR01', '777', 16876, 270, 86, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118653, '2015CECC01', '777', 17624, 375, 14, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118689, '2010BENT01', '777', 17908, 411, 121, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118900, '2014YUNO01', '777', 19192, 622, 33, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118903, '2011RHEI01', '777', 19202, 625, 178, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118913, '2015KOEN01', '777', 19235, 635, 182, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118925, '2015MATT05', '777', 19329, 647, 34, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527118948, '2016WETZ01', '777', 19512, 670, 190, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119053, '2017BORG02', '777', 20051, 775, 39, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119409, '2018MACH13', '777', 21824, 1131, 327, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119420, '2016KRAF01', '777', 21863, 1142, 331, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119603, '2016SANT66', '777', 22580, 1325, 81, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119683, '2011FRES01', '777', 22853, 1405, 401, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119889, '2019FUJI09', '777', 23679, 1611, 106, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527119952, '2012ROQU01', '777', 23883, 1674, 118, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527120701, '2017SOUZ10', '777', 26773, 2423, 158, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527120830, '2016TANN01', '777', 27333, 2552, 170, 30); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527121669, '2011LIMA02', '777', 30991, 3391, 228, 44); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527121884, '2017MAND13', '777', 31885, 3606, 244, 50); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527122133, '2018GOME29', '777', 33088, 3855, 263, 52); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527122491, '2015ONOF01', '777', 34728, 4213, 300, 60); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527123188, '2011LIMA01', '777', 38508, 4910, 346, 73); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125409, '2019MIYA05', 'clock', 526, 107, 4, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125465, '2016HOLZ01', 'clock', 565, 164, 62, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125484, '2017MAND13', 'clock', 577, 182, 8, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125499, '2010BENT01', 'clock', 583, 196, 72, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125500, '2016CETR01', 'clock', 584, 199, 74, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125521, '2010KILD02', 'clock', 594, 220, 83, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125534, '2014GERB01', 'clock', 599, 233, 92, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125544, '2017SOUZ10', 'clock', 605, 242, 13, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125699, '2016IHLE01', 'clock', 670, 398, 141, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125742, '2015CECC01', 'clock', 686, 441, 22, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125765, '2016SATO01', 'clock', 696, 463, 23, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125944, '2015KOEN01', 'clock', 762, 640, 222, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125947, '2013GERH01', 'clock', 763, 645, 226, 22); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527125981, '2018MACH13', 'clock', 774, 677, 235, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126035, '2016KRAF01', 'clock', 785, 730, 264, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126190, '2012WESC01', 'clock', 830, 886, 325, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126271, '2013BOTZ01', 'clock', 857, 970, 352, 31); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126378, '2015MATT05', 'clock', 889, 1075, 43, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126451, '2016WETZ01', 'clock', 910, 1148, 418, 33); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126512, '2011FRES01', 'clock', 927, 1208, 446, 34); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126790, '2011RHEI01', 'clock', 991, 1487, 541, 43); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126832, '2016SANT66', 'clock', 1001, 1529, 65, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126891, '2014FRIT02', 'clock', 1016, 1589, 574, 47); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126927, '2019FUJI09', 'clock', 1023, 1623, 72, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527126965, '2014TONO01', 'clock', 1032, 1663, 77, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527127076, '2017BORG02', 'clock', 1060, 1773, 81, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527127124, '2011LIMA01', 'clock', 1069, 1819, 87, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527127820, '2011LIMA02', 'clock', 1239, 2517, 121, 41); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527127895, '2018GOME29', 'clock', 1256, 2591, 124, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527128167, '2015SILV55', 'clock', 1320, 2863, 135, 46); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527128572, '2012ROQU01', 'clock', 1426, 3271, 157, 49); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527129176, '2016TANN01', 'clock', 1587, 3874, 195, 59); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527129441, '2015ONOF01', 'clock', 1666, 4134, 210, 63); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527130867, '2014YUNO01', 'clock', 2191, 5564, 296, 85); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527134484, '2011LIMA01', 'magic', 103, 203, 7, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527134795, '2010BENT01', 'magic', 118, 511, 123, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527136257, '2010KILD02', 'magic', 159, 1950, 497, 75); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139201, '2013GERH01', 'minx', 3116, 13, 4, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139224, '2014GERB01', 'minx', 3559, 35, 10, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139265, '2017MAND13', 'minx', 3799, 77, 7, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139299, '2016HOLZ01', 'minx', 3992, 111, 32, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139331, '2012WESC01', 'minx', 4108, 143, 48, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139353, '2016SATO01', 'minx', 4191, 165, 15, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139368, '2015MATT05', 'minx', 4256, 180, 18, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139491, '2014FRIT02', 'minx', 4594, 303, 95, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139578, '2015CECC01', 'minx', 4761, 390, 41, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139656, '2016WETZ01', 'minx', 4900, 468, 155, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139689, '2014YUNO01', 'minx', 4946, 499, 52, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139728, '2011FRES01', 'minx', 4995, 540, 176, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139747, '2013BOTZ01', 'minx', 5051, 559, 181, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139805, '2016IHLE01', 'minx', 5164, 616, 198, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527139859, '2010BENT01', 'minx', 5266, 671, 214, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140169, '2017BORG02', 'minx', 5729, 980, 108, 20); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140182, '2015KOEN01', 'minx', 5751, 994, 318, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140187, '2012ROQU01', 'minx', 5753, 999, 111, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140206, '2016CETR01', 'minx', 5773, 1017, 324, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140221, '2010KILD02', 'minx', 5800, 1033, 331, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140524, '2019MIYA05', 'minx', 6236, 1336, 144, 30); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140829, '2019FUJI09', 'minx', 6606, 1640, 178, 34); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140862, '2016KRAF01', 'minx', 6647, 1671, 514, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140884, '2018GOME29', 'minx', 6685, 1696, 186, 36); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140926, '2018MACH13', 'minx', 6730, 1738, 531, 39); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527140964, '2011LIMA02', 'minx', 6773, 1776, 199, 39); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141109, '2011RHEI01', 'minx', 6927, 1921, 588, 48); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141193, '2015SILV55', 'minx', 7021, 2005, 216, 41); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141280, '2017SOUZ10', 'minx', 7115, 2092, 225, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141528, '2016SANT66', 'minx', 7379, 2340, 252, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141568, '2011LIMA01', 'minx', 7418, 2380, 262, 47); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527141569, '2016TANN01', 'minx', 7419, 2381, 263, 48); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527143580, '2015ONOF01', 'minx', 9287, 4391, 482, 92); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527144551, '2014TONO01', 'minx', 10189, 5363, 586, 115); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527155957, '2010BENT01', 'mmagic', 283, 295, 91, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527156233, '2011LIMA01', 'mmagic', 336, 570, 15, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527157825, '2013GERH01', 'pyram', 150, 87, 36, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527157841, '2014FRIT02', 'pyram', 154, 101, 40, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527157950, '2016SATO01', 'pyram', 180, 209, 8, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527157965, '2015KOEN01', 'pyram', 181, 217, 92, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527157987, '2015CECC01', 'pyram', 184, 245, 11, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158070, '2011RHEI01', 'pyram', 197, 332, 140, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158159, '2014GERB01', 'pyram', 207, 417, 171, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158165, '2010BENT01', 'pyram', 208, 425, 174, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158295, '2010KILD02', 'pyram', 222, 556, 217, 12); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158330, '2016CETR01', 'pyram', 225, 590, 229, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158417, '2014YUNO01', 'pyram', 232, 677, 39, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158501, '2016TANN01', 'pyram', 240, 760, 41, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158528, '2017MAND13', 'pyram', 241, 780, 43, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158644, '2015MATT05', 'pyram', 251, 901, 47, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158650, '2016SANT66', 'pyram', 252, 911, 49, 18); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527158896, '2016IHLE01', 'pyram', 269, 1155, 437, 21); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159019, '2016WETZ01', 'pyram', 277, 1271, 473, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159195, '2016HOLZ01', 'pyram', 287, 1446, 541, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159218, '2018GOME29', 'pyram', 289, 1476, 89, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159311, '2015SILV55', 'pyram', 294, 1555, 94, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159448, '2018MACH13', 'pyram', 301, 1696, 611, 35); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159457, '2011FRES01', 'pyram', 302, 1715, 619, 36); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159473, '2016KRAF01', 'pyram', 303, 1730, 621, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527159562, '2013BOTZ01', 'pyram', 307, 1814, 652, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160008, '2019FUJI09', 'pyram', 330, 2260, 133, 36); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160044, '2011LIMA01', 'pyram', 331, 2288, 134, 37); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160209, '2017BORG02', 'pyram', 338, 2454, 151, 39); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160526, '2012WESC01', 'pyram', 352, 2780, 1000, 56); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160583, '2011LIMA02', 'pyram', 354, 2825, 178, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527160603, '2019MIYA05', 'pyram', 355, 2848, 180, 47); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527161691, '2014TONO01', 'pyram', 399, 3954, 270, 72); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527161803, '2012ROQU01', 'pyram', 402, 4048, 276, 73); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527162678, '2017SOUZ10', 'pyram', 430, 4919, 341, 91); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527163698, '2015ONOF01', 'pyram', 461, 5943, 419, 107); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222708, '2013GERH01', 'skewb', 122, 16, 9, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222827, '2010BENT01', 'skewb', 168, 134, 52, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222848, '2015MATT05', 'skewb', 173, 157, 8, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222881, '2016SATO01', 'skewb', 180, 189, 10, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222888, '2014GERB01', 'skewb', 182, 197, 79, 4); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527222977, '2015CECC01', 'skewb', 198, 286, 15, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223023, '2014FRIT02', 'skewb', 206, 330, 119, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223127, '2016WETZ01', 'skewb', 221, 433, 154, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223131, '2016SANT66', 'skewb', 222, 440, 27, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223278, '2014TONO01', 'skewb', 237, 580, 36, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223418, '2017SOUZ10', 'skewb', 250, 724, 44, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223423, '2015SILV55', 'skewb', 250, 724, 44, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223444, '2016KRAF01', 'skewb', 252, 748, 273, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223470, '2010KILD02', 'skewb', 255, 774, 282, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223472, '2016HOLZ01', 'skewb', 256, 780, 285, 17); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223548, '2016CETR01', 'skewb', 262, 847, 312, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223549, '2015KOEN01', 'skewb', 262, 847, 312, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223682, '2017MAND13', 'skewb', 273, 986, 63, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223714, '2017BORG02', 'skewb', 276, 1016, 67, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223741, '2013BOTZ01', 'skewb', 278, 1043, 380, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223768, '2016IHLE01', 'skewb', 281, 1077, 390, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527223817, '2018GOME29', 'skewb', 284, 1121, 76, 16); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527224361, '2014YUNO01', 'skewb', 318, 1666, 118, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527224378, '2019FUJI09', 'skewb', 318, 1666, 118, 19); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527225072, '2012WESC01', 'skewb', 356, 2380, 856, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527225084, '2018MACH13', 'skewb', 356, 2380, 856, 45); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527225444, '2011LIMA01', 'skewb', 374, 2744, 191, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527225932, '2011LIMA02', 'skewb', 395, 3227, 226, 38); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527226077, '2016TANN01', 'skewb', 403, 3384, 244, 42); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527226227, '2011RHEI01', 'skewb', 409, 3529, 1220, 64); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527227486, '2019MIYA05', 'skewb', 459, 4770, 346, 56); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527227562, '2011FRES01', 'skewb', 462, 4855, 1605, 86); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527229498, '2012ROQU01', 'skewb', 536, 6793, 479, 92); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527232125, '2015ONOF01', 'skewb', 631, 9422, 634, 129); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258672, '2015CECC01', 'sq1', 500, 11, 1, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258685, '2015ONOF01', 'sq1', 550, 24, 2, 2); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258731, '2015SILV55', 'sq1', 656, 70, 3, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258772, '2013GERH01', 'sq1', 709, 111, 31, 1); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258831, '2014GERB01', 'sq1', 765, 170, 53, 3); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258844, '2016IHLE01', 'sq1', 781, 183, 57, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258846, '2017SOUZ10', 'sq1', 782, 184, 13, 5); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258861, '2015MATT05', 'sq1', 796, 199, 14, 6); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258868, '2017MAND13', 'sq1', 802, 206, 15, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258883, '2011RHEI01', 'sq1', 815, 221, 67, 7); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258968, '2010BENT01', 'sq1', 872, 306, 93, 8); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258980, '2010KILD02', 'sq1', 877, 317, 98, 9); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527258999, '2016CETR01', 'sq1', 888, 338, 106, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259004, '2014FRIT02', 'sq1', 892, 343, 109, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259038, '2012WESC01', 'sq1', 919, 377, 122, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259114, '2013BOTZ01', 'sq1', 968, 452, 146, 15); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259235, '2019FUJI09', 'sq1', 1038, 574, 40, 10); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259273, '2018GOME29', 'sq1', 1061, 611, 42, 11); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259395, '2011LIMA02', 'sq1', 1118, 734, 46, 13); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259420, '2019MIYA05', 'sq1', 1128, 759, 48, 14); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259718, '2016HOLZ01', 'sq1', 1269, 1057, 340, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259867, '2014YUNO01', 'sq1', 1335, 1206, 82, 23); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259874, '2015KOEN01', 'sq1', 1339, 1212, 385, 24); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259894, '2016SANT66', 'sq1', 1348, 1232, 86, 25); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259909, '2011FRES01', 'sq1', 1352, 1241, 394, 26); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259913, '2016WETZ01', 'sq1', 1354, 1252, 398, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259951, '2016TANN01', 'sq1', 1370, 1290, 90, 27); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527259954, '2018MACH13', 'sq1', 1371, 1292, 414, 28); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527260258, '2016KRAF01', 'sq1', 1491, 1592, 507, 32); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527261167, '2011LIMA01', 'sq1', 1830, 2506, 187, 61); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527261896, '2012ROQU01', 'sq1', 2101, 3234, 244, 76); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527263352, '2016SATO01', 'sq1', 2603, 4690, 344, 112); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527263494, '2014TONO01', 'sq1', 2659, 4832, 353, 117); -INSERT INTO wca_development.RanksSingle (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(527263822, '2017BORG02', 'sq1', 2779, 5159, 380, 123); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526727877, '2013GERH01', '222', 66, 32, 15, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526727943, '2014FRIT02', '222', 80, 97, 42, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728045, '2012ROQU01', '222', 93, 199, 3, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728058, '2011LIMA01', '222', 94, 211, 4, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728125, '2015CECC01', '222', 100, 268, 6, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728160, '2014TONO01', '222', 104, 308, 9, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728170, '2010BENT01', '222', 105, 325, 146, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728279, '2014GERB01', '222', 112, 419, 183, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728321, '2015MATT05', '222', 115, 472, 15, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728456, '2015SILV55', '222', 123, 601, 21, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728493, '2016KRAF01', '222', 124, 622, 257, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728555, '2018MACH13', '222', 127, 690, 281, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728703, '2018GOME29', '222', 134, 857, 31, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728763, '2019MIYA05', '222', 136, 912, 34, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728808, '2016CETR01', '222', 138, 952, 380, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728824, '2015KOEN01', '222', 139, 973, 390, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728842, '2016SATO01', '222', 139, 973, 42, 20); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728929, '2017MAND13', '222', 142, 1068, 55, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526728948, '2010KILD02', '222', 143, 1100, 435, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729201, '2011RHEI01', '222', 152, 1335, 510, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729296, '2012WESC01', '222', 155, 1429, 541, 35); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729570, '2013BOTZ01', '222', 163, 1703, 640, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729571, '2011FRES01', '222', 163, 1703, 640, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729681, '2016WETZ01', '222', 166, 1808, 671, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729724, '2017BORG02', '222', 167, 1851, 121, 39); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729905, '2019FUJI09', '222', 172, 2044, 139, 44); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729944, '2011LIMA02', '222', 173, 2076, 143, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526729953, '2016IHLE01', '222', 174, 2105, 769, 52); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526730284, '2015ONOF01', '222', 182, 2426, 168, 53); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526730490, '2016HOLZ01', '222', 187, 2630, 950, 59); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526730570, '2014YUNO01', '222', 189, 2700, 191, 56); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526731776, '2016SANT66', '222', 212, 3900, 283, 79); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526734585, '2016TANN01', '222', 251, 6688, 498, 122); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526737982, '2017SOUZ10', '222', 287, 10105, 753, 183); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825755, '2013GERH01', '333', 494, 43, 13, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825797, '2016SATO01', '333', 529, 86, 2, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825854, '2014GERB01', '333', 555, 140, 44, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825864, '2015SILV55', '333', 558, 151, 5, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825873, '2015CECC01', '333', 562, 161, 7, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526825942, '2017MAND13', '333', 588, 230, 8, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826048, '2014FRIT02', '333', 613, 337, 121, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826076, '2012WESC01', '333', 618, 360, 127, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826276, '2011RHEI01', '333', 651, 561, 184, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826284, '2019FUJI09', '333', 652, 571, 23, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826425, '2015MATT05', '333', 669, 710, 35, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826437, '2012ROQU01', '333', 672, 723, 37, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826647, '2013BOTZ01', '333', 694, 935, 302, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826730, '2014YUNO01', '333', 702, 1014, 57, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826919, '2016CETR01', '333', 719, 1202, 377, 30); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526826922, '2016WETZ01', '333', 720, 1211, 379, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827010, '2016IHLE01', '333', 727, 1292, 404, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827057, '2015KOEN01', '333', 731, 1339, 424, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827610, '2016KRAF01', '333', 772, 1899, 587, 52); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827658, '2018GOME29', '333', 774, 1934, 110, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827675, '2016HOLZ01', '333', 775, 1951, 604, 54); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827695, '2016TANN01', '333', 777, 1983, 114, 30); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827747, '2019MIYA05', '333', 780, 2022, 117, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827856, '2010BENT01', '333', 786, 2134, 657, 60); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526827948, '2011FRES01', '333', 791, 2234, 679, 63); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526828361, '2010KILD02', '333', 814, 2643, 798, 71); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526828582, '2018MACH13', '333', 824, 2853, 859, 75); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526828826, '2015ONOF01', '333', 837, 3108, 191, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526829398, '2016SANT66', '333', 862, 3680, 240, 56); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526829975, '2017BORG02', '333', 883, 4247, 286, 64); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526830278, '2017SOUZ10', '333', 893, 4549, 303, 69); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526830651, '2011LIMA02', '333', 906, 4907, 332, 73); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526832489, '2011LIMA01', '333', 964, 6766, 493, 107); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526832723, '2014TONO01', '333', 970, 6986, 510, 112); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979048, '2014FRIT02', '333bf', 2258, 83, 26, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979060, '2016KRAF01', '333bf', 2340, 95, 31, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979150, '2014GERB01', '333bf', 2961, 185, 56, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979228, '2011FRES01', '333bf', 3506, 263, 84, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979270, '2017MAND13', '333bf', 3797, 305, 17, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979377, '2010BENT01', '333bf', 4436, 412, 139, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979419, '2015CECC01', '333bf', 4655, 454, 26, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979505, '2016IHLE01', '333bf', 5069, 540, 188, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979516, '2015ONOF01', '333bf', 5127, 550, 34, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979582, '2013GERH01', '333bf', 5554, 617, 215, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979595, '2015MATT05', '333bf', 5629, 629, 40, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979643, '2012WESC01', '333bf', 5909, 678, 236, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979653, '2013BOTZ01', '333bf', 5946, 688, 243, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979655, '2019MIYA05', '333bf', 5955, 690, 42, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979745, '2016HOLZ01', '333bf', 6396, 780, 271, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526979825, '2015KOEN01', '333bf', 6882, 860, 310, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980053, '2018MACH13', '333bf', 7919, 1087, 389, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980054, '2018GOME29', '333bf', 7920, 1089, 63, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980062, '2011LIMA01', '333bf', 7946, 1096, 64, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980111, '2011RHEI01', '333bf', 8150, 1146, 406, 43); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980202, '2016CETR01', '333bf', 8531, 1237, 438, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526980484, '2010KILD02', '333bf', 9622, 1519, 524, 51); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526981303, '2014YUNO01', '333bf', 13148, 2338, 140, 51); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526981776, '2012ROQU01', '333bf', 15225, 2811, 161, 58); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526981904, '2014TONO01', '333bf', 15817, 2939, 171, 64); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526983280, '2016WETZ01', '333bf', 22045, 4314, 1416, 125); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526983697, '2017SOUZ10', '333bf', 24417, 4732, 309, 112); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526984274, '2016SANT66', '333bf', 27991, 5309, 346, 127); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526984425, '2015SILV55', '333bf', 28998, 5460, 358, 130); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526984430, '2011LIMA02', '333bf', 29012, 5465, 359, 131); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526985984, '2017BORG02', '333bf', 53462, 7019, 515, 194); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986217, '2010BENT01', '333fm', 20, 17, 10, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986227, '2016KRAF01', '333fm', 21, 33, 17, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986229, '2016IHLE01', '333fm', 21, 33, 17, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986257, '2011FRES01', '333fm', 21, 33, 17, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986303, '2013GERH01', '333fm', 23, 109, 52, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986313, '2011LIMA02', '333fm', 23, 109, 4, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986315, '2011RHEI01', '333fm', 23, 109, 52, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986374, '2018MACH13', '333fm', 24, 168, 79, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986410, '2015CECC01', '333fm', 24, 168, 10, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986432, '2013BOTZ01', '333fm', 25, 225, 107, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986455, '2010KILD02', '333fm', 25, 225, 107, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986478, '2015MATT05', '333fm', 25, 225, 14, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986510, '2014GERB01', '333fm', 26, 299, 139, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986590, '2016CETR01', '333fm', 26, 299, 139, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986611, '2014FRIT02', '333fm', 27, 401, 190, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986701, '2015KOEN01', '333fm', 27, 401, 190, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986834, '2012WESC01', '333fm', 28, 517, 249, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986837, '2012ROQU01', '333fm', 28, 517, 19, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986927, '2016SANT66', '333fm', 29, 664, 30, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526986981, '2011LIMA01', '333fm', 29, 664, 30, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526987162, '2018GOME29', '333fm', 30, 840, 39, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526987302, '2019MIYA05', '333fm', 31, 1009, 51, 34); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526987480, '2014YUNO01', '333fm', 32, 1207, 64, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526987557, '2017MAND13', '333fm', 32, 1207, 64, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526988059, '2015SILV55', '333fm', 35, 1850, 119, 67); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526988309, '2015ONOF01', '333fm', 36, 2067, 126, 68); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526988485, '2017BORG02', '333fm', 36, 2067, 126, 68); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526988503, '2016HOLZ01', '333fm', 36, 2067, 889, 74); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526989640, '2016WETZ01', '333fm', 41, 3294, 1330, 109); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526990175, '2017SOUZ10', '333fm', 43, 3829, 243, 129); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526990349, '2014TONO01', '333fm', 44, 4091, 268, 137); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993174, '2014GERB01', '333ft', 1855, 4, 1, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993185, '2015KOEN01', '333ft', 2167, 15, 5, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993197, '2016CETR01', '333ft', 2406, 27, 10, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993218, '2017BORG02', '333ft', 2680, 48, 2, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993232, '2015CECC01', '333ft', 2846, 62, 3, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993267, '2016TANN01', '333ft', 3250, 97, 6, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993310, '2016SATO01', '333ft', 3515, 140, 7, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993358, '2010BENT01', '333ft', 3919, 188, 52, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993379, '2012WESC01', '333ft', 4071, 209, 62, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993388, '2016IHLE01', '333ft', 4131, 217, 64, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993397, '2016WETZ01', '333ft', 4197, 227, 67, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993421, '2018MACH13', '333ft', 4309, 251, 76, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993462, '2013GERH01', '333ft', 4546, 291, 98, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993542, '2015MATT05', '333ft', 5032, 372, 24, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993554, '2011FRES01', '333ft', 5115, 384, 131, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993598, '2010KILD02', '333ft', 5338, 428, 141, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993638, '2016SANT66', '333ft', 5610, 468, 31, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993671, '2012ROQU01', '333ft', 5790, 501, 37, 20); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993820, '2013BOTZ01', '333ft', 6733, 650, 216, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526993955, '2011RHEI01', '333ft', 7515, 785, 249, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526994076, '2011LIMA02', '333ft', 8111, 906, 65, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526994190, '2016KRAF01', '333ft', 8603, 1020, 306, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526994269, '2011LIMA01', '333ft', 9041, 1099, 82, 41); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526994420, '2017SOUZ10', '333ft', 9946, 1250, 98, 47); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526994607, '2018GOME29', '333ft', 11051, 1437, 111, 53); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526995415, '2019MIYA05', '333ft', 16917, 2245, 182, 90); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526995694, '2014TONO01', '333ft', 19733, 2524, 203, 103); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996528, '2010BENT01', '333mbf', 800338702, 90, 37, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996550, '2017MAND13', '333mbf', 820338200, 112, 6, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996676, '2011FRES01', '333mbf', 870229200, 238, 104, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996689, '2014GERB01', '333mbf', 870330901, 251, 109, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996797, '2015MATT05', '333mbf', 890355000, 359, 21, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996818, '2011LIMA01', '333mbf', 900300000, 380, 22, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996846, '2019MIYA05', '333mbf', 900332502, 408, 27, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996876, '2013BOTZ01', '333mbf', 910224401, 438, 187, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996902, '2011RHEI01', '333mbf', 910299100, 464, 197, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996971, '2016KRAF01', '333mbf', 920207400, 533, 220, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996974, '2016IHLE01', '333mbf', 920238200, 536, 222, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526996996, '2012WESC01', '333mbf', 920298000, 558, 234, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997023, '2015CECC01', '333mbf', 920330001, 585, 39, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997112, '2015ONOF01', '333mbf', 930280101, 674, 45, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997226, '2015KOEN01', '333mbf', 940208301, 788, 325, 36); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997234, '2016CETR01', '333mbf', 940221900, 796, 328, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997317, '2014FRIT02', '333mbf', 950047100, 879, 356, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997405, '2018MACH13', '333mbf', 950209300, 967, 394, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997523, '2016HOLZ01', '333mbf', 960084500, 1085, 438, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997572, '2010KILD02', '333mbf', 960110300, 1134, 455, 48); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526997873, '2018GOME29', '333mbf', 970051300, 1435, 90, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526998026, '2014TONO01', '333mbf', 970084700, 1588, 110, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526998168, '2012ROQU01', '333mbf', 970110000, 1730, 131, 53); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526998891, '2013GERH01', '333mbf', 990356705, 2453, 983, 101); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999153, '2014FRIT02', '333oh', 943, 119, 43, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999155, '2013GERH01', '333oh', 944, 123, 47, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999163, '2016KRAF01', '333oh', 951, 132, 49, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999239, '2014GERB01', '333oh', 1003, 208, 72, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999382, '2015CECC01', '333oh', 1078, 351, 23, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999400, '2016SATO01', '333oh', 1085, 368, 26, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999446, '2015ONOF01', '333oh', 1102, 414, 28, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999495, '2017MAND13', '333oh', 1118, 461, 33, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999510, '2018GOME29', '333oh', 1123, 478, 34, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999527, '2013BOTZ01', '333oh', 1130, 495, 155, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999594, '2015KOEN01', '333oh', 1151, 561, 172, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999717, '2016SANT66', '333oh', 1188, 686, 48, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999772, '2012ROQU01', '333oh', 1202, 739, 52, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999784, '2010BENT01', '333oh', 1203, 746, 229, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999798, '2015MATT05', '333oh', 1207, 766, 55, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999821, '2012WESC01', '333oh', 1212, 786, 240, 20); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999835, '2017BORG02', '333oh', 1215, 801, 60, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(526999978, '2016HOLZ01', '333oh', 1249, 945, 293, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000065, '2015SILV55', '333oh', 1266, 1027, 77, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000142, '2010KILD02', '333oh', 1281, 1108, 338, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000146, '2014YUNO01', '333oh', 1283, 1115, 83, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000635, '2011RHEI01', '333oh', 1370, 1604, 478, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000686, '2017SOUZ10', '333oh', 1377, 1648, 121, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000825, '2016CETR01', '333oh', 1398, 1789, 526, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000965, '2016WETZ01', '333oh', 1416, 1925, 556, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527000987, '2016IHLE01', '333oh', 1420, 1956, 561, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001076, '2016TANN01', '333oh', 1434, 2041, 147, 34); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001208, '2014TONO01', '333oh', 1452, 2177, 160, 36); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001396, '2019FUJI09', '333oh', 1477, 2358, 177, 40); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001407, '2019MIYA05', '333oh', 1478, 2370, 180, 41); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001532, '2011LIMA01', '333oh', 1494, 2498, 194, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001629, '2011FRES01', '333oh', 1509, 2595, 724, 62); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527001957, '2018MACH13', '333oh', 1553, 2924, 799, 70); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527003851, '2011LIMA02', '333oh', 1763, 4818, 381, 82); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039766, '2013GERH01', '444', 2308, 35, 11, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039799, '2014GERB01', '444', 2438, 68, 21, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039849, '2016SATO01', '444', 2530, 117, 6, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039869, '2014FRIT02', '444', 2546, 137, 43, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039872, '2012ROQU01', '444', 2549, 141, 7, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039873, '2016HOLZ01', '444', 2549, 141, 44, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039905, '2017MAND13', '444', 2588, 174, 8, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039908, '2014YUNO01', '444', 2596, 177, 9, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039918, '2015CECC01', '444', 2605, 186, 10, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039962, '2012WESC01', '444', 2653, 231, 73, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527039986, '2011RHEI01', '444', 2671, 254, 79, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040155, '2016CETR01', '444', 2818, 423, 135, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040160, '2013BOTZ01', '444', 2821, 429, 137, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040168, '2016IHLE01', '444', 2829, 437, 141, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040253, '2019FUJI09', '444', 2889, 522, 35, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040373, '2016WETZ01', '444', 2958, 641, 206, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040422, '2015SILV55', '444', 2992, 691, 43, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040493, '2018GOME29', '444', 3033, 760, 45, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040495, '2016TANN01', '444', 3034, 763, 46, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040538, '2016KRAF01', '444', 3060, 807, 257, 29); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040585, '2010KILD02', '444', 3081, 854, 272, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040678, '2015MATT05', '444', 3119, 944, 67, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040778, '2018MACH13', '444', 3166, 1046, 335, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527040949, '2017SOUZ10', '444', 3241, 1216, 83, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527041156, '2015KOEN01', '444', 3322, 1424, 442, 50); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527041532, '2010BENT01', '444', 3436, 1801, 564, 64); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527042130, '2016SANT66', '444', 3605, 2397, 169, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527042467, '2014TONO01', '444', 3697, 2733, 207, 35); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527042714, '2011FRES01', '444', 3749, 2982, 872, 91); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527042878, '2015ONOF01', '444', 3785, 3143, 237, 41); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527043260, '2011LIMA02', '444', 3869, 3524, 266, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527044099, '2017BORG02', '444', 4042, 4366, 330, 58); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527044612, '2019MIYA05', '444', 4136, 4879, 373, 63); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527045756, '2011LIMA01', '444', 4350, 6025, 467, 77); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085768, '2014FRIT02', '444bf', 12311, 20, 6, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085802, '2011FRES01', '444bf', 16761, 54, 21, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085858, '2014GERB01', '444bf', 23132, 110, 43, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085877, '2016KRAF01', '444bf', 24548, 129, 52, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085884, '2010BENT01', '444bf', 25463, 136, 56, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527085948, '2017MAND13', '444bf', 30659, 200, 10, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086142, '2015CECC01', '444bf', 45968, 394, 16, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086143, '2016CETR01', '444bf', 46175, 395, 145, 20); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086156, '2015ONOF01', '444bf', 47385, 408, 18, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086165, '2016IHLE01', '444bf', 48783, 417, 153, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086186, '2011RHEI01', '444bf', 50591, 438, 161, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086292, '2012WESC01', '444bf', 57434, 544, 202, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086302, '2016HOLZ01', '444bf', 58211, 554, 206, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086327, '2015MATT05', '444bf', 60800, 579, 27, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086363, '2011LIMA01', '444bf', 64100, 614, 29, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086398, '2018GOME29', '444bf', 68500, 650, 30, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086409, '2015KOEN01', '444bf', 69800, 661, 252, 39); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086555, '2013BOTZ01', '444bf', 87700, 807, 300, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086752, '2010KILD02', '444bf', 140700, 1004, 373, 51); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086835, '2017MAND13', '555', 4332, 21, 2, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086841, '2013GERH01', '555', 4497, 27, 8, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086950, '2012WESC01', '555', 5076, 136, 41, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086982, '2016HOLZ01', '555', 5181, 167, 53, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086991, '2014GERB01', '555', 5207, 177, 59, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527086996, '2014FRIT02', '555', 5222, 181, 61, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087027, '2012ROQU01', '555', 5301, 213, 6, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087073, '2016CETR01', '555', 5414, 259, 84, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087097, '2016IHLE01', '555', 5464, 283, 94, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087108, '2013BOTZ01', '555', 5492, 294, 99, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087144, '2015CECC01', '555', 5554, 329, 13, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087275, '2016SATO01', '555', 5789, 461, 19, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087376, '2010KILD02', '555', 5972, 562, 182, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087446, '2014YUNO01', '555', 6060, 630, 29, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087449, '2011RHEI01', '555', 6064, 635, 206, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087545, '2015MATT05', '555', 6181, 731, 40, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087561, '2016WETZ01', '555', 6198, 747, 239, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087622, '2015KOEN01', '555', 6274, 808, 260, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087670, '2018MACH13', '555', 6337, 856, 272, 35); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087679, '2015SILV55', '555', 6343, 865, 50, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087750, '2019FUJI09', '555', 6412, 935, 55, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527087925, '2018GOME29', '555', 6573, 1109, 70, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088183, '2010BENT01', '555', 6794, 1369, 415, 52); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088252, '2016SANT66', '555', 6868, 1438, 93, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088287, '2016TANN01', '555', 6896, 1473, 97, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088376, '2011FRES01', '555', 6965, 1562, 459, 56); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088749, '2017SOUZ10', '555', 7257, 1935, 127, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527088909, '2014TONO01', '555', 7369, 2095, 142, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527089039, '2016KRAF01', '555', 7455, 2224, 654, 67); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527089353, '2017BORG02', '555', 7650, 2537, 180, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527089979, '2019MIYA05', '555', 8057, 3165, 228, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527090603, '2011LIMA02', '555', 8380, 3789, 266, 49); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527092171, '2015ONOF01', '555', 9239, 5357, 371, 69); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527094731, '2011LIMA01', '555', 10562, 7916, 567, 108); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109240, '2014FRIT02', '555bf', 37364, 34, 14, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109247, '2011FRES01', '555bf', 40178, 41, 18, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109296, '2010BENT01', '555bf', 57784, 90, 34, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109344, '2014GERB01', '555bf', 73200, 138, 51, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109447, '2016KRAF01', '555bf', 106000, 240, 92, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109472, '2011RHEI01', '555bf', 112600, 266, 101, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109505, '2016HOLZ01', '555bf', 121300, 299, 113, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109524, '2017MAND13', '555bf', 129200, 318, 12, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109577, '2012WESC01', '555bf', 147400, 371, 141, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109658, '2015MATT05', '555bf', 188400, 451, 18, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109692, '2015ONOF01', '555bf', 215100, 486, 19, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109725, '2010KILD02', '555bf', 257200, 519, 193, 30); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109812, '2012WESC01', '666', 9321, 62, 18, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109835, '2013GERH01', '666', 9701, 85, 22, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109873, '2014GERB01', '666', 10063, 123, 36, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109919, '2016HOLZ01', '666', 10523, 169, 52, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109949, '2013BOTZ01', '666', 10726, 199, 62, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527109950, '2016IHLE01', '666', 10727, 200, 63, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110013, '2010KILD02', '666', 11108, 263, 85, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110044, '2014FRIT02', '666', 11270, 293, 94, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110081, '2015CECC01', '666', 11467, 331, 11, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110087, '2016CETR01', '666', 11505, 337, 114, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110168, '2014TONO01', '666', 11780, 418, 15, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110229, '2015MATT05', '666', 12065, 479, 22, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110230, '2012ROQU01', '666', 12067, 480, 23, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110242, '2015KOEN01', '666', 12125, 492, 156, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110324, '2011RHEI01', '666', 12415, 574, 178, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110342, '2014YUNO01', '666', 12465, 592, 32, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110391, '2016WETZ01', '666', 12647, 641, 204, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110454, '2010BENT01', '666', 12869, 704, 221, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110779, '2017BORG02', '666', 13796, 1029, 62, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110787, '2018GOME29', '666', 13821, 1037, 66, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110844, '2019FUJI09', '666', 13948, 1094, 73, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527110854, '2016SANT66', '666', 13970, 1104, 74, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111117, '2016TANN01', '666', 14672, 1366, 94, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111134, '2016KRAF01', '666', 14707, 1384, 399, 43); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111167, '2018MACH13', '666', 14803, 1417, 408, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111217, '2011FRES01', '666', 14930, 1467, 420, 49); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111420, '2017SOUZ10', '666', 15410, 1670, 115, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527111880, '2017MAND13', '666', 16392, 2130, 147, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527112321, '2011LIMA02', '666', 17431, 2571, 181, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527112519, '2015SILV55', '666', 17886, 2768, 194, 35); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527113675, '2015ONOF01', '666', 20376, 3925, 279, 53); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527114221, '2011LIMA01', '666', 21764, 4470, 320, 63); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527116731, '2016SATO01', '666', 31078, 6981, 503, 104); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118308, '2012WESC01', '777', 13500, 30, 10, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118385, '2014GERB01', '777', 14955, 107, 30, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118390, '2016IHLE01', '777', 15028, 111, 31, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118392, '2013GERH01', '777', 15049, 114, 33, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118394, '2016HOLZ01', '777', 15100, 116, 34, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118405, '2014TONO01', '777', 15279, 127, 7, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118417, '2013BOTZ01', '777', 15377, 139, 41, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118443, '2010KILD02', '777', 15647, 165, 51, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118546, '2014FRIT02', '777', 16840, 268, 84, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118548, '2016CETR01', '777', 16876, 270, 86, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118653, '2015CECC01', '777', 17624, 375, 14, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118689, '2010BENT01', '777', 17908, 411, 121, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118900, '2014YUNO01', '777', 19192, 622, 33, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118903, '2011RHEI01', '777', 19202, 625, 178, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118913, '2015KOEN01', '777', 19235, 635, 182, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118925, '2015MATT05', '777', 19329, 647, 34, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527118948, '2016WETZ01', '777', 19512, 670, 190, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119053, '2017BORG02', '777', 20051, 775, 39, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119409, '2018MACH13', '777', 21824, 1131, 327, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119420, '2016KRAF01', '777', 21863, 1142, 331, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119603, '2016SANT66', '777', 22580, 1325, 81, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119683, '2011FRES01', '777', 22853, 1405, 401, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119889, '2019FUJI09', '777', 23679, 1611, 106, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527119952, '2012ROQU01', '777', 23883, 1674, 118, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527120701, '2017SOUZ10', '777', 26773, 2423, 158, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527120830, '2016TANN01', '777', 27333, 2552, 170, 30); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527121669, '2011LIMA02', '777', 30991, 3391, 228, 44); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527121884, '2017MAND13', '777', 31885, 3606, 244, 50); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527122133, '2018GOME29', '777', 33088, 3855, 263, 52); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527122491, '2015ONOF01', '777', 34728, 4213, 300, 60); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527123188, '2011LIMA01', '777', 38508, 4910, 346, 73); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125409, '2019MIYA05', 'clock', 526, 107, 4, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125465, '2016HOLZ01', 'clock', 565, 164, 62, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125484, '2017MAND13', 'clock', 577, 182, 8, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125499, '2010BENT01', 'clock', 583, 196, 72, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125500, '2016CETR01', 'clock', 584, 199, 74, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125521, '2010KILD02', 'clock', 594, 220, 83, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125534, '2014GERB01', 'clock', 599, 233, 92, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125544, '2017SOUZ10', 'clock', 605, 242, 13, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125699, '2016IHLE01', 'clock', 670, 398, 141, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125742, '2015CECC01', 'clock', 686, 441, 22, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125765, '2016SATO01', 'clock', 696, 463, 23, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125944, '2015KOEN01', 'clock', 762, 640, 222, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125947, '2013GERH01', 'clock', 763, 645, 226, 22); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527125981, '2018MACH13', 'clock', 774, 677, 235, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126035, '2016KRAF01', 'clock', 785, 730, 264, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126190, '2012WESC01', 'clock', 830, 886, 325, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126271, '2013BOTZ01', 'clock', 857, 970, 352, 31); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126378, '2015MATT05', 'clock', 889, 1075, 43, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126451, '2016WETZ01', 'clock', 910, 1148, 418, 33); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126512, '2011FRES01', 'clock', 927, 1208, 446, 34); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126790, '2011RHEI01', 'clock', 991, 1487, 541, 43); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126832, '2016SANT66', 'clock', 1001, 1529, 65, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126891, '2014FRIT02', 'clock', 1016, 1589, 574, 47); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126927, '2019FUJI09', 'clock', 1023, 1623, 72, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527126965, '2014TONO01', 'clock', 1032, 1663, 77, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527127076, '2017BORG02', 'clock', 1060, 1773, 81, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527127124, '2011LIMA01', 'clock', 1069, 1819, 87, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527127820, '2011LIMA02', 'clock', 1239, 2517, 121, 41); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527127895, '2018GOME29', 'clock', 1256, 2591, 124, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527128167, '2015SILV55', 'clock', 1320, 2863, 135, 46); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527128572, '2012ROQU01', 'clock', 1426, 3271, 157, 49); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527129176, '2016TANN01', 'clock', 1587, 3874, 195, 59); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527129441, '2015ONOF01', 'clock', 1666, 4134, 210, 63); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527130867, '2014YUNO01', 'clock', 2191, 5564, 296, 85); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527134484, '2011LIMA01', 'magic', 103, 203, 7, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527134795, '2010BENT01', 'magic', 118, 511, 123, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527136257, '2010KILD02', 'magic', 159, 1950, 497, 75); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139201, '2013GERH01', 'minx', 3116, 13, 4, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139224, '2014GERB01', 'minx', 3559, 35, 10, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139265, '2017MAND13', 'minx', 3799, 77, 7, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139299, '2016HOLZ01', 'minx', 3992, 111, 32, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139331, '2012WESC01', 'minx', 4108, 143, 48, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139353, '2016SATO01', 'minx', 4191, 165, 15, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139368, '2015MATT05', 'minx', 4256, 180, 18, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139491, '2014FRIT02', 'minx', 4594, 303, 95, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139578, '2015CECC01', 'minx', 4761, 390, 41, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139656, '2016WETZ01', 'minx', 4900, 468, 155, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139689, '2014YUNO01', 'minx', 4946, 499, 52, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139728, '2011FRES01', 'minx', 4995, 540, 176, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139747, '2013BOTZ01', 'minx', 5051, 559, 181, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139805, '2016IHLE01', 'minx', 5164, 616, 198, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527139859, '2010BENT01', 'minx', 5266, 671, 214, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140169, '2017BORG02', 'minx', 5729, 980, 108, 20); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140182, '2015KOEN01', 'minx', 5751, 994, 318, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140187, '2012ROQU01', 'minx', 5753, 999, 111, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140206, '2016CETR01', 'minx', 5773, 1017, 324, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140221, '2010KILD02', 'minx', 5800, 1033, 331, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140524, '2019MIYA05', 'minx', 6236, 1336, 144, 30); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140829, '2019FUJI09', 'minx', 6606, 1640, 178, 34); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140862, '2016KRAF01', 'minx', 6647, 1671, 514, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140884, '2018GOME29', 'minx', 6685, 1696, 186, 36); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140926, '2018MACH13', 'minx', 6730, 1738, 531, 39); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527140964, '2011LIMA02', 'minx', 6773, 1776, 199, 39); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141109, '2011RHEI01', 'minx', 6927, 1921, 588, 48); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141193, '2015SILV55', 'minx', 7021, 2005, 216, 41); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141280, '2017SOUZ10', 'minx', 7115, 2092, 225, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141528, '2016SANT66', 'minx', 7379, 2340, 252, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141568, '2011LIMA01', 'minx', 7418, 2380, 262, 47); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527141569, '2016TANN01', 'minx', 7419, 2381, 263, 48); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527143580, '2015ONOF01', 'minx', 9287, 4391, 482, 92); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527144551, '2014TONO01', 'minx', 10189, 5363, 586, 115); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527155957, '2010BENT01', 'mmagic', 283, 295, 91, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527156233, '2011LIMA01', 'mmagic', 336, 570, 15, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527157825, '2013GERH01', 'pyram', 150, 87, 36, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527157841, '2014FRIT02', 'pyram', 154, 101, 40, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527157950, '2016SATO01', 'pyram', 180, 209, 8, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527157965, '2015KOEN01', 'pyram', 181, 217, 92, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527157987, '2015CECC01', 'pyram', 184, 245, 11, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158070, '2011RHEI01', 'pyram', 197, 332, 140, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158159, '2014GERB01', 'pyram', 207, 417, 171, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158165, '2010BENT01', 'pyram', 208, 425, 174, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158295, '2010KILD02', 'pyram', 222, 556, 217, 12); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158330, '2016CETR01', 'pyram', 225, 590, 229, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158417, '2014YUNO01', 'pyram', 232, 677, 39, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158501, '2016TANN01', 'pyram', 240, 760, 41, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158528, '2017MAND13', 'pyram', 241, 780, 43, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158644, '2015MATT05', 'pyram', 251, 901, 47, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158650, '2016SANT66', 'pyram', 252, 911, 49, 18); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527158896, '2016IHLE01', 'pyram', 269, 1155, 437, 21); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159019, '2016WETZ01', 'pyram', 277, 1271, 473, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159195, '2016HOLZ01', 'pyram', 287, 1446, 541, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159218, '2018GOME29', 'pyram', 289, 1476, 89, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159311, '2015SILV55', 'pyram', 294, 1555, 94, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159448, '2018MACH13', 'pyram', 301, 1696, 611, 35); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159457, '2011FRES01', 'pyram', 302, 1715, 619, 36); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159473, '2016KRAF01', 'pyram', 303, 1730, 621, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527159562, '2013BOTZ01', 'pyram', 307, 1814, 652, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160008, '2019FUJI09', 'pyram', 330, 2260, 133, 36); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160044, '2011LIMA01', 'pyram', 331, 2288, 134, 37); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160209, '2017BORG02', 'pyram', 338, 2454, 151, 39); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160526, '2012WESC01', 'pyram', 352, 2780, 1000, 56); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160583, '2011LIMA02', 'pyram', 354, 2825, 178, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527160603, '2019MIYA05', 'pyram', 355, 2848, 180, 47); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527161691, '2014TONO01', 'pyram', 399, 3954, 270, 72); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527161803, '2012ROQU01', 'pyram', 402, 4048, 276, 73); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527162678, '2017SOUZ10', 'pyram', 430, 4919, 341, 91); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527163698, '2015ONOF01', 'pyram', 461, 5943, 419, 107); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222708, '2013GERH01', 'skewb', 122, 16, 9, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222827, '2010BENT01', 'skewb', 168, 134, 52, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222848, '2015MATT05', 'skewb', 173, 157, 8, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222881, '2016SATO01', 'skewb', 180, 189, 10, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222888, '2014GERB01', 'skewb', 182, 197, 79, 4); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527222977, '2015CECC01', 'skewb', 198, 286, 15, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223023, '2014FRIT02', 'skewb', 206, 330, 119, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223127, '2016WETZ01', 'skewb', 221, 433, 154, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223131, '2016SANT66', 'skewb', 222, 440, 27, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223278, '2014TONO01', 'skewb', 237, 580, 36, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223418, '2017SOUZ10', 'skewb', 250, 724, 44, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223423, '2015SILV55', 'skewb', 250, 724, 44, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223444, '2016KRAF01', 'skewb', 252, 748, 273, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223470, '2010KILD02', 'skewb', 255, 774, 282, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223472, '2016HOLZ01', 'skewb', 256, 780, 285, 17); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223548, '2016CETR01', 'skewb', 262, 847, 312, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223549, '2015KOEN01', 'skewb', 262, 847, 312, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223682, '2017MAND13', 'skewb', 273, 986, 63, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223714, '2017BORG02', 'skewb', 276, 1016, 67, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223741, '2013BOTZ01', 'skewb', 278, 1043, 380, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223768, '2016IHLE01', 'skewb', 281, 1077, 390, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527223817, '2018GOME29', 'skewb', 284, 1121, 76, 16); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527224361, '2014YUNO01', 'skewb', 318, 1666, 118, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527224378, '2019FUJI09', 'skewb', 318, 1666, 118, 19); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527225072, '2012WESC01', 'skewb', 356, 2380, 856, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527225084, '2018MACH13', 'skewb', 356, 2380, 856, 45); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527225444, '2011LIMA01', 'skewb', 374, 2744, 191, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527225932, '2011LIMA02', 'skewb', 395, 3227, 226, 38); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527226077, '2016TANN01', 'skewb', 403, 3384, 244, 42); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527226227, '2011RHEI01', 'skewb', 409, 3529, 1220, 64); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527227486, '2019MIYA05', 'skewb', 459, 4770, 346, 56); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527227562, '2011FRES01', 'skewb', 462, 4855, 1605, 86); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527229498, '2012ROQU01', 'skewb', 536, 6793, 479, 92); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527232125, '2015ONOF01', 'skewb', 631, 9422, 634, 129); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258672, '2015CECC01', 'sq1', 500, 11, 1, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258685, '2015ONOF01', 'sq1', 550, 24, 2, 2); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258731, '2015SILV55', 'sq1', 656, 70, 3, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258772, '2013GERH01', 'sq1', 709, 111, 31, 1); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258831, '2014GERB01', 'sq1', 765, 170, 53, 3); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258844, '2016IHLE01', 'sq1', 781, 183, 57, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258846, '2017SOUZ10', 'sq1', 782, 184, 13, 5); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258861, '2015MATT05', 'sq1', 796, 199, 14, 6); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258868, '2017MAND13', 'sq1', 802, 206, 15, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258883, '2011RHEI01', 'sq1', 815, 221, 67, 7); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258968, '2010BENT01', 'sq1', 872, 306, 93, 8); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258980, '2010KILD02', 'sq1', 877, 317, 98, 9); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527258999, '2016CETR01', 'sq1', 888, 338, 106, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259004, '2014FRIT02', 'sq1', 892, 343, 109, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259038, '2012WESC01', 'sq1', 919, 377, 122, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259114, '2013BOTZ01', 'sq1', 968, 452, 146, 15); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259235, '2019FUJI09', 'sq1', 1038, 574, 40, 10); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259273, '2018GOME29', 'sq1', 1061, 611, 42, 11); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259395, '2011LIMA02', 'sq1', 1118, 734, 46, 13); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259420, '2019MIYA05', 'sq1', 1128, 759, 48, 14); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259718, '2016HOLZ01', 'sq1', 1269, 1057, 340, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259867, '2014YUNO01', 'sq1', 1335, 1206, 82, 23); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259874, '2015KOEN01', 'sq1', 1339, 1212, 385, 24); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259894, '2016SANT66', 'sq1', 1348, 1232, 86, 25); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259909, '2011FRES01', 'sq1', 1352, 1241, 394, 26); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259913, '2016WETZ01', 'sq1', 1354, 1252, 398, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259951, '2016TANN01', 'sq1', 1370, 1290, 90, 27); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527259954, '2018MACH13', 'sq1', 1371, 1292, 414, 28); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527260258, '2016KRAF01', 'sq1', 1491, 1592, 507, 32); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527261167, '2011LIMA01', 'sq1', 1830, 2506, 187, 61); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527261896, '2012ROQU01', 'sq1', 2101, 3234, 244, 76); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527263352, '2016SATO01', 'sq1', 2603, 4690, 344, 112); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527263494, '2014TONO01', 'sq1', 2659, 4832, 353, 117); +INSERT INTO wca_development.ranks_single (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(527263822, '2017BORG02', 'sq1', 2779, 5159, 380, 123); -- Ranks average -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255760, '2013GERH01', '222', 137, 12, 5, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255839, '2017MAND13', '222', 169, 91, 2, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255847, '2014FRIT02', '222', 172, 100, 32, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255865, '2014GERB01', '222', 176, 113, 39, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255883, '2015CECC01', '222', 180, 131, 4, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255884, '2016KRAF01', '222', 181, 137, 51, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255973, '2015MATT05', '222', 199, 222, 9, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447255981, '2016CETR01', '222', 200, 228, 82, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256019, '2018GOME29', '222', 207, 272, 11, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256036, '2016SATO01', '222', 211, 289, 13, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256195, '2011RHEI01', '222', 235, 448, 161, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256239, '2015SILV55', '222', 239, 491, 22, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256337, '2010BENT01', '222', 247, 579, 206, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256564, '2019MIYA05', '222', 262, 798, 42, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256570, '2013BOTZ01', '222', 263, 820, 288, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256645, '2019FUJI09', '222', 267, 885, 48, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256749, '2016WETZ01', '222', 273, 981, 345, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256876, '2012ROQU01', '222', 281, 1124, 63, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447256929, '2010KILD02', '222', 283, 1167, 417, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257058, '2015KOEN01', '222', 290, 1288, 461, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257244, '2012WESC01', '222', 300, 1495, 541, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257540, '2018MACH13', '222', 312, 1766, 618, 34); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257570, '2016SANT66', '222', 313, 1798, 103, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257758, '2016HOLZ01', '222', 319, 1986, 699, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257848, '2011LIMA02', '222', 322, 2073, 120, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447257881, '2015ONOF01', '222', 323, 2105, 122, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447258185, '2016TANN01', '222', 333, 2426, 147, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447258265, '2014YUNO01', '222', 336, 2514, 155, 38); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447258401, '2016IHLE01', '222', 339, 2621, 895, 58); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447259447, '2017BORG02', '222', 366, 3695, 236, 56); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447259826, '2014TONO01', '222', 374, 4078, 266, 60); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447259869, '2011FRES01', '222', 374, 4078, 1320, 93); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447262003, '2011LIMA01', '222', 412, 6235, 412, 90); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447262539, '2017SOUZ10', '222', 420, 6747, 455, 95); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350124, '2013GERH01', '333', 658, 40, 10, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350149, '2015CECC01', '333', 678, 65, 2, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350188, '2016SATO01', '333', 709, 104, 5, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350192, '2014GERB01', '333', 711, 108, 30, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350195, '2017MAND13', '333', 711, 108, 6, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350378, '2015SILV55', '333', 779, 292, 9, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350435, '2012ROQU01', '333', 791, 347, 12, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350457, '2014FRIT02', '333', 796, 373, 113, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350550, '2015MATT05', '333', 813, 460, 19, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350869, '2016KRAF01', '333', 858, 782, 231, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350876, '2012WESC01', '333', 859, 790, 237, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447350969, '2011RHEI01', '333', 870, 886, 267, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351094, '2016TANN01', '333', 882, 1006, 50, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351157, '2016CETR01', '333', 888, 1072, 331, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351195, '2014YUNO01', '333', 891, 1106, 53, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351236, '2018GOME29', '333', 897, 1149, 59, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351309, '2019FUJI09', '333', 904, 1222, 66, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351376, '2013BOTZ01', '333', 910, 1289, 391, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351388, '2016IHLE01', '333', 910, 1289, 391, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351448, '2016HOLZ01', '333', 916, 1365, 414, 34); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447351731, '2018MACH13', '333', 940, 1645, 494, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447352016, '2015KOEN01', '333', 962, 1927, 594, 51); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447352053, '2016WETZ01', '333', 963, 1951, 603, 54); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447352284, '2015ONOF01', '333', 979, 2197, 134, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447352520, '2010KILD02', '333', 993, 2427, 742, 66); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447352954, '2010BENT01', '333', 1017, 2867, 870, 79); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447353798, '2019MIYA05', '333', 1059, 3715, 223, 52); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447353883, '2017BORG02', '333', 1062, 3784, 229, 54); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447353920, '2011LIMA02', '333', 1064, 3823, 234, 55); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447354203, '2017SOUZ10', '333', 1076, 4089, 255, 59); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447355134, '2014TONO01', '333', 1112, 5039, 336, 74); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447355147, '2011FRES01', '333', 1112, 5039, 1446, 117); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447357432, '2016SANT66', '333', 1192, 7335, 500, 106); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447361471, '2011LIMA01', '333', 1305, 11340, 822, 176); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499135, '2014FRIT02', '333bf', 2708, 64, 24, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499219, '2014GERB01', '333bf', 3700, 148, 51, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499264, '2017MAND13', '333bf', 4439, 193, 14, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499287, '2016KRAF01', '333bf', 4683, 216, 79, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499319, '2011FRES01', '333bf', 5010, 248, 89, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499393, '2010BENT01', '333bf', 5770, 322, 118, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499492, '2015ONOF01', '333bf', 6899, 421, 25, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499510, '2012WESC01', '333bf', 7099, 439, 167, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499528, '2016IHLE01', '333bf', 7290, 457, 175, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499530, '2015CECC01', '333bf', 7343, 459, 26, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499700, '2011RHEI01', '333bf', 9264, 629, 234, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499705, '2016HOLZ01', '333bf', 9361, 634, 236, 28); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499753, '2019MIYA05', '333bf', 9769, 682, 40, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499774, '2015MATT05', '333bf', 9964, 703, 42, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499801, '2013BOTZ01', '333bf', 10214, 729, 276, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499847, '2015KOEN01', '333bf', 10662, 776, 289, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447499863, '2018GOME29', '333bf', 10825, 792, 50, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500027, '2018MACH13', '333bf', 12576, 956, 348, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500050, '2013GERH01', '333bf', 12871, 979, 357, 42); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500062, '2010KILD02', '333bf', 13024, 991, 362, 43); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500072, '2011LIMA01', '333bf', 13201, 1001, 68, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500465, '2016CETR01', '333bf', 18265, 1394, 506, 57); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500776, '2014TONO01', '333bf', 25021, 1705, 127, 50); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500793, '2014YUNO01', '333bf', 25399, 1722, 128, 51); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447500870, '2017SOUZ10', '333bf', 28826, 1799, 137, 56); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501063, '2011FRES01', '333fm', 2400, 21, 8, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501066, '2016IHLE01', '333fm', 2400, 21, 8, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501069, '2010BENT01', '333fm', 2433, 31, 14, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501077, '2016KRAF01', '333fm', 2467, 35, 16, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501089, '2011RHEI01', '333fm', 2533, 50, 23, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501186, '2015CECC01', '333fm', 2833, 141, 7, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501205, '2013BOTZ01', '333fm', 2867, 161, 64, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501226, '2014FRIT02', '333fm', 2900, 187, 80, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501257, '2011LIMA02', '333fm', 2933, 208, 10, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501270, '2013GERH01', '333fm', 2967, 225, 97, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501276, '2015MATT05', '333fm', 2967, 225, 11, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501349, '2012WESC01', '333fm', 3067, 290, 125, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501366, '2010KILD02', '333fm', 3100, 314, 138, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501372, '2016CETR01', '333fm', 3100, 314, 138, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501477, '2018MACH13', '333fm', 3233, 422, 188, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501481, '2014GERB01', '333fm', 3233, 422, 188, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501621, '2016SANT66', '333fm', 3400, 574, 23, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501682, '2015KOEN01', '333fm', 3467, 644, 281, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501756, '2012ROQU01', '333fm', 3533, 705, 29, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447501849, '2018GOME29', '333fm', 3600, 806, 37, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502065, '2014YUNO01', '333fm', 3800, 1027, 57, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502142, '2011LIMA01', '333fm', 3833, 1065, 60, 34); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502339, '2017BORG02', '333fm', 4000, 1294, 78, 44); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502393, '2015SILV55', '333fm', 4033, 1329, 81, 46); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502467, '2015ONOF01', '333fm', 4100, 1414, 85, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447502709, '2016WETZ01', '333fm', 4267, 1643, 628, 56); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503029, '2016HOLZ01', '333fm', 4533, 1980, 739, 68); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503563, '2019MIYA05', '333fm', 5200, 2515, 165, 91); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503818, '2014TONO01', '333fm', 6300, 2779, 189, 103); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503856, '2014GERB01', '333ft', 2651, 7, 1, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503866, '2016CETR01', '333ft', 2845, 17, 4, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503891, '2017BORG02', '333ft', 3211, 42, 2, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503893, '2015CECC01', '333ft', 3258, 44, 4, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503913, '2015KOEN01', '333ft', 3610, 64, 18, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447503938, '2016TANN01', '333ft', 3900, 89, 7, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504024, '2016WETZ01', '333ft', 4694, 174, 50, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504035, '2013GERH01', '333ft', 4793, 186, 55, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504044, '2016IHLE01', '333ft', 4897, 195, 58, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504069, '2016SATO01', '333ft', 5126, 220, 14, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504073, '2010BENT01', '333ft', 5143, 224, 65, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504096, '2018MACH13', '333ft', 5299, 247, 75, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504129, '2012WESC01', '333ft', 5485, 280, 89, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504302, '2015MATT05', '333ft', 6782, 452, 28, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504309, '2016SANT66', '333ft', 6845, 460, 29, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504310, '2011FRES01', '333ft', 6848, 461, 147, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504361, '2010KILD02', '333ft', 7157, 512, 161, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504423, '2013BOTZ01', '333ft', 7810, 574, 183, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504461, '2012ROQU01', '333ft', 8114, 612, 42, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504676, '2011LIMA02', '333ft', 9483, 827, 59, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447504721, '2011RHEI01', '333ft', 9803, 872, 272, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505010, '2016KRAF01', '333ft', 11814, 1161, 345, 34); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505017, '2017SOUZ10', '333ft', 11848, 1168, 86, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505023, '2011LIMA01', '333ft', 11901, 1174, 87, 42); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505623, '2018GOME29', '333ft', 17145, 1774, 149, 77); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505881, '2014TONO01', '333ft', 21309, 2032, 168, 87); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447505890, '2019MIYA05', '333ft', 21458, 2041, 169, 88); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506282, '2014FRIT02', '333oh', 1141, 47, 15, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506299, '2013GERH01', '333oh', 1166, 63, 22, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506350, '2014GERB01', '333oh', 1223, 115, 44, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506361, '2016SATO01', '333oh', 1235, 126, 5, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506365, '2017MAND13', '333oh', 1238, 130, 6, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506395, '2015ONOF01', '333oh', 1261, 160, 8, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506457, '2015CECC01', '333oh', 1303, 222, 10, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506542, '2012ROQU01', '333oh', 1350, 303, 17, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506634, '2015MATT05', '333oh', 1401, 397, 26, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506672, '2013BOTZ01', '333oh', 1418, 437, 133, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506778, '2016KRAF01', '333oh', 1468, 543, 166, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506834, '2015KOEN01', '333oh', 1484, 599, 184, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506850, '2015SILV55', '333oh', 1488, 614, 39, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506866, '2018GOME29', '333oh', 1494, 628, 43, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506883, '2016HOLZ01', '333oh', 1498, 643, 195, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506889, '2017SOUZ10', '333oh', 1499, 651, 45, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506903, '2014YUNO01', '333oh', 1504, 665, 48, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447506907, '2012WESC01', '333oh', 1505, 670, 201, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507097, '2016CETR01', '333oh', 1560, 858, 253, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507294, '2016WETZ01', '333oh', 1609, 1059, 310, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507374, '2016IHLE01', '333oh', 1627, 1139, 334, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507452, '2011RHEI01', '333oh', 1647, 1217, 361, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507516, '2019FUJI09', '333oh', 1659, 1281, 92, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507545, '2018MACH13', '333oh', 1664, 1305, 379, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507554, '2010BENT01', '333oh', 1665, 1314, 383, 36); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447507774, '2010KILD02', '333oh', 1713, 1537, 435, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447508156, '2017BORG02', '333oh', 1785, 1915, 136, 33); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447508171, '2016TANN01', '333oh', 1787, 1929, 139, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447508993, '2019MIYA05', '333oh', 1913, 2758, 208, 44); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447509157, '2016SANT66', '333oh', 1939, 2920, 224, 48); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447509568, '2011LIMA01', '333oh', 1994, 3323, 259, 60); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447510517, '2014TONO01', '333oh', 2115, 4279, 326, 74); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447511220, '2011LIMA02', '333oh', 2202, 4980, 382, 89); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447511602, '2011FRES01', '333oh', 2248, 5362, 1416, 111); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538568, '2013GERH01', '444', 2661, 26, 7, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538599, '2016SATO01', '444', 2808, 57, 3, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538617, '2015CECC01', '444', 2871, 75, 6, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538632, '2017MAND13', '444', 2898, 89, 7, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538639, '2014GERB01', '444', 2909, 97, 27, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538665, '2012ROQU01', '444', 2967, 123, 8, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538701, '2012WESC01', '444', 3021, 159, 41, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538714, '2014FRIT02', '444', 3044, 172, 48, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538865, '2011RHEI01', '444', 3202, 322, 99, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538879, '2016CETR01', '444', 3212, 337, 105, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538909, '2016HOLZ01', '444', 3240, 366, 112, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447538938, '2014YUNO01', '444', 3264, 396, 26, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539038, '2013BOTZ01', '444', 3345, 496, 155, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539061, '2015SILV55', '444', 3366, 519, 31, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539106, '2016TANN01', '444', 3390, 562, 37, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539161, '2016IHLE01', '444', 3427, 619, 198, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539279, '2019FUJI09', '444', 3497, 737, 49, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539288, '2010KILD02', '444', 3504, 745, 235, 28); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539327, '2015MATT05', '444', 3532, 784, 54, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539366, '2018GOME29', '444', 3556, 824, 58, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539524, '2016WETZ01', '444', 3643, 981, 299, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539605, '2015KOEN01', '444', 3678, 1062, 319, 36); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447539779, '2018MACH13', '444', 3762, 1235, 377, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540146, '2016KRAF01', '444', 3907, 1603, 500, 54); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540606, '2010BENT01', '444', 4057, 2063, 622, 65); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540679, '2017SOUZ10', '444', 4083, 2134, 157, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540783, '2016SANT66', '444', 4117, 2240, 165, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540895, '2014TONO01', '444', 4155, 2352, 172, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447540997, '2011LIMA02', '444', 4184, 2454, 179, 33); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447542043, '2011FRES01', '444', 4445, 3500, 1006, 100); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447542062, '2015ONOF01', '444', 4450, 3520, 257, 45); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447542397, '2017BORG02', '444', 4533, 3855, 290, 53); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447543472, '2019MIYA05', '444', 4771, 4922, 364, 68); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447546998, '2011LIMA01', '444', 5436, 8450, 661, 114); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569247, '2010BENT01', '444bf', 29971, 49, 17, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569386, '2017MAND13', '555', 4896, 17, 1, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569399, '2013GERH01', '555', 5123, 29, 8, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569466, '2012WESC01', '555', 5547, 97, 29, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569502, '2014GERB01', '555', 5679, 133, 44, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569592, '2015CECC01', '555', 5948, 223, 8, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569624, '2016HOLZ01', '555', 6041, 255, 81, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569629, '2016CETR01', '555', 6052, 260, 83, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569638, '2013BOTZ01', '555', 6072, 269, 87, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569664, '2016IHLE01', '555', 6130, 294, 98, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569698, '2012ROQU01', '555', 6186, 329, 13, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569744, '2014FRIT02', '555', 6296, 375, 130, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569806, '2015MATT05', '555', 6421, 437, 18, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569938, '2016SATO01', '555', 6646, 569, 23, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447569998, '2014YUNO01', '555', 6724, 629, 28, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570042, '2015KOEN01', '555', 6787, 673, 217, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570139, '2011RHEI01', '555', 6924, 768, 243, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570221, '2010KILD02', '555', 7038, 852, 270, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570235, '2018GOME29', '555', 7050, 864, 43, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570244, '2019FUJI09', '555', 7059, 873, 45, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570364, '2016WETZ01', '555', 7198, 995, 304, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570399, '2015SILV55', '555', 7226, 1030, 60, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570595, '2016TANN01', '555', 7420, 1225, 81, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570710, '2010BENT01', '555', 7534, 1340, 396, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447570976, '2016SANT66', '555', 7765, 1605, 110, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571022, '2014TONO01', '555', 7799, 1651, 113, 22); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571035, '2018MACH13', '555', 7806, 1664, 486, 54); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571067, '2011FRES01', '555', 7833, 1696, 498, 56); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571269, '2017SOUZ10', '555', 7999, 1899, 128, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571501, '2016KRAF01', '555', 8177, 2132, 617, 66); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571658, '2017BORG02', '555', 8308, 2288, 156, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447571873, '2019MIYA05', '555', 8464, 2503, 175, 36); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447572792, '2011LIMA02', '555', 9090, 3422, 237, 48); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447574016, '2015ONOF01', '555', 9810, 4646, 326, 61); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447577480, '2011LIMA01', '555', 11854, 8111, 588, 113); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584245, '2010BENT01', '555bf', 81700, 33, 15, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584315, '2012WESC01', '666', 9891, 44, 14, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584346, '2013GERH01', '666', 10286, 75, 21, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584366, '2014GERB01', '666', 10511, 95, 26, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584402, '2013BOTZ01', '666', 10975, 131, 39, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584417, '2016HOLZ01', '666', 11110, 146, 44, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584484, '2016IHLE01', '666', 11568, 213, 65, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584507, '2016CETR01', '666', 11735, 236, 74, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584527, '2010KILD02', '666', 11825, 255, 82, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584529, '2015CECC01', '666', 11847, 258, 10, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584631, '2014FRIT02', '666', 12380, 360, 115, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584685, '2014TONO01', '666', 12639, 414, 16, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584707, '2015MATT05', '666', 12770, 436, 19, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584714, '2012ROQU01', '666', 12800, 443, 20, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584738, '2015KOEN01', '666', 12917, 466, 148, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584780, '2011RHEI01', '666', 13075, 509, 156, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447584999, '2016WETZ01', '666', 13907, 728, 225, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585018, '2010BENT01', '666', 13969, 747, 230, 28); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585256, '2017BORG02', '666', 14675, 985, 59, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585272, '2014YUNO01', '666', 14710, 1001, 61, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585379, '2019FUJI09', '666', 15028, 1108, 71, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585432, '2018GOME29', '666', 15170, 1161, 74, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585518, '2016TANN01', '666', 15449, 1247, 81, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585524, '2018MACH13', '666', 15460, 1252, 370, 38); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585534, '2011FRES01', '666', 15506, 1263, 372, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585539, '2016SANT66', '666', 15514, 1268, 83, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585614, '2016KRAF01', '666', 15731, 1342, 392, 43); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447585631, '2017SOUZ10', '666', 15780, 1359, 93, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447586264, '2017MAND13', '666', 17339, 1993, 138, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447587011, '2011LIMA02', '666', 19150, 2740, 198, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447587483, '2015SILV55', '666', 20200, 3212, 227, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447587751, '2015ONOF01', '666', 20857, 3480, 245, 44); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447589200, '2011LIMA01', '666', 25930, 4929, 352, 74); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590500, '2012WESC01', '777', 14559, 45, 13, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590562, '2013GERH01', '777', 15832, 107, 30, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590576, '2014GERB01', '777', 16042, 121, 34, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590579, '2013BOTZ01', '777', 16111, 124, 35, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590585, '2016HOLZ01', '777', 16214, 130, 38, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590587, '2014TONO01', '777', 16240, 132, 7, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590598, '2010KILD02', '777', 16410, 143, 40, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590605, '2016IHLE01', '777', 16483, 150, 42, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590722, '2014FRIT02', '777', 17820, 267, 84, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590732, '2016CETR01', '777', 17872, 277, 89, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590775, '2015CECC01', '777', 18301, 320, 14, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447590989, '2015KOEN01', '777', 19842, 534, 158, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591021, '2011RHEI01', '777', 20058, 566, 165, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591048, '2015MATT05', '777', 20270, 593, 30, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591078, '2010BENT01', '777', 20475, 623, 181, 22); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591109, '2014YUNO01', '777', 20647, 654, 33, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591152, '2016WETZ01', '777', 20873, 696, 205, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591268, '2017BORG02', '777', 21535, 813, 44, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591479, '2016KRAF01', '777', 22575, 1024, 303, 33); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591535, '2018MACH13', '777', 22842, 1080, 318, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591772, '2011FRES01', '777', 23850, 1317, 381, 44); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447591906, '2019FUJI09', '777', 24433, 1451, 92, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447592059, '2016SANT66', '777', 25066, 1604, 105, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447592202, '2012ROQU01', '777', 25664, 1747, 119, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447592730, '2017SOUZ10', '777', 27924, 2274, 148, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447592872, '2016TANN01', '777', 28538, 2417, 162, 31); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447593633, '2011LIMA02', '777', 32405, 3178, 206, 42); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447594152, '2018GOME29', '777', 35508, 3697, 244, 49); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447594379, '2017MAND13', '777', 37327, 3924, 272, 60); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447594401, '2015ONOF01', '777', 37527, 3946, 274, 62); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447594643, '2011LIMA01', '777', 39747, 4188, 284, 65); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595499, '2016HOLZ01', 'clock', 686, 136, 47, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595529, '2010BENT01', 'clock', 705, 166, 61, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595540, '2010KILD02', 'clock', 712, 176, 64, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595571, '2017MAND13', 'clock', 724, 206, 7, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595602, '2017SOUZ10', 'clock', 745, 238, 9, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595610, '2016CETR01', 'clock', 748, 246, 92, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595612, '2014GERB01', 'clock', 749, 249, 93, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595644, '2015CECC01', 'clock', 766, 278, 11, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595698, '2016IHLE01', 'clock', 789, 333, 120, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595804, '2019MIYA05', 'clock', 834, 440, 18, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595882, '2016KRAF01', 'clock', 876, 519, 191, 22); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447595919, '2018MACH13', 'clock', 886, 555, 204, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596089, '2016SATO01', 'clock', 946, 724, 28, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596171, '2013GERH01', 'clock', 980, 807, 294, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596195, '2015MATT05', 'clock', 989, 831, 30, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596250, '2016WETZ01', 'clock', 1011, 884, 319, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596317, '2015KOEN01', 'clock', 1031, 954, 345, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596389, '2013BOTZ01', 'clock', 1054, 1024, 378, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596528, '2016SANT66', 'clock', 1101, 1164, 46, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596665, '2011RHEI01', 'clock', 1148, 1301, 485, 39); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596690, '2012WESC01', 'clock', 1157, 1327, 495, 40); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596838, '2014FRIT02', 'clock', 1201, 1473, 544, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447596910, '2011LIMA01', 'clock', 1222, 1546, 69, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447597038, '2017BORG02', 'clock', 1260, 1673, 76, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447597127, '2014TONO01', 'clock', 1284, 1761, 83, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447597191, '2011FRES01', 'clock', 1305, 1828, 664, 54); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447597276, '2019FUJI09', 'clock', 1329, 1913, 89, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447597483, '2018GOME29', 'clock', 1389, 2120, 96, 32); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447598305, '2011LIMA02', 'clock', 1660, 2941, 136, 43); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447598446, '2012ROQU01', 'clock', 1717, 3083, 145, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447599035, '2015SILV55', 'clock', 1927, 3671, 181, 53); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447599461, '2016TANN01', 'clock', 2116, 4096, 211, 62); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447599945, '2015ONOF01', 'clock', 2397, 4581, 248, 73); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447600546, '2014YUNO01', 'clock', 2796, 5183, 295, 89); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447602267, '2011LIMA01', 'magic', 117, 160, 5, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447602479, '2010BENT01', 'magic', 134, 362, 95, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447603381, '2010KILD02', 'magic', 178, 1269, 358, 51); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606769, '2013GERH01', 'minx', 3724, 21, 6, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606787, '2014GERB01', 'minx', 4044, 39, 14, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606810, '2017MAND13', 'minx', 4247, 62, 6, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606857, '2012WESC01', 'minx', 4549, 109, 30, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606975, '2016SATO01', 'minx', 4935, 226, 21, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447606986, '2016HOLZ01', 'minx', 4969, 238, 74, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607022, '2014FRIT02', 'minx', 5087, 274, 83, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607048, '2015CECC01', 'minx', 5158, 300, 29, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607145, '2014YUNO01', 'minx', 5373, 397, 43, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607185, '2015MATT05', 'minx', 5477, 437, 48, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607284, '2016IHLE01', 'minx', 5671, 536, 180, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607330, '2016WETZ01', 'minx', 5746, 582, 189, 17); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607474, '2010BENT01', 'minx', 6017, 726, 227, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607488, '2011FRES01', 'minx', 6044, 739, 234, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607536, '2013BOTZ01', 'minx', 6127, 787, 255, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607568, '2015KOEN01', 'minx', 6187, 819, 267, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607572, '2016CETR01', 'minx', 6198, 824, 268, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607672, '2012ROQU01', 'minx', 6378, 924, 92, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607694, '2010KILD02', 'minx', 6408, 944, 310, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447607973, '2019MIYA05', 'minx', 6877, 1225, 125, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608113, '2017BORG02', 'minx', 7073, 1365, 146, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608199, '2019FUJI09', 'minx', 7207, 1451, 155, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608394, '2011RHEI01', 'minx', 7458, 1645, 497, 37); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608452, '2017SOUZ10', 'minx', 7519, 1703, 191, 36); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608524, '2018GOME29', 'minx', 7598, 1776, 197, 37); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608578, '2018MACH13', 'minx', 7660, 1830, 552, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608783, '2011LIMA02', 'minx', 7926, 2035, 219, 39); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447608870, '2015SILV55', 'minx', 8048, 2122, 228, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447609026, '2016KRAF01', 'minx', 8225, 2278, 699, 56); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447609107, '2016SANT66', 'minx', 8320, 2358, 253, 46); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447609142, '2016TANN01', 'minx', 8358, 2394, 260, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447609332, '2011LIMA01', 'minx', 8560, 2583, 283, 51); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447612299, '2015ONOF01', 'minx', 11648, 5551, 610, 123); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447613538, '2014TONO01', 'minx', 13396, 6790, 724, 153); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447617089, '2010BENT01', 'mmagic', 304, 184, 59, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447618004, '2011LIMA01', 'mmagic', 524, 1094, 43, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619021, '2016TANN01', 'pyram', 257, 78, 3, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619062, '2017MAND13', 'pyram', 272, 119, 5, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619136, '2015CECC01', 'pyram', 295, 193, 9, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619211, '2013GERH01', 'pyram', 311, 263, 91, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619227, '2014FRIT02', 'pyram', 313, 280, 95, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619299, '2016CETR01', 'pyram', 328, 356, 120, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619381, '2015KOEN01', 'pyram', 341, 434, 145, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619434, '2014GERB01', 'pyram', 352, 488, 171, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619444, '2016SATO01', 'pyram', 355, 499, 29, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619557, '2015SILV55', 'pyram', 373, 610, 33, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619682, '2019FUJI09', 'pyram', 392, 739, 43, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619778, '2010BENT01', 'pyram', 404, 832, 302, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619827, '2013BOTZ01', 'pyram', 410, 882, 320, 19); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447619887, '2016WETZ01', 'pyram', 417, 944, 345, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620077, '2018MACH13', 'pyram', 436, 1126, 405, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620124, '2016IHLE01', 'pyram', 442, 1179, 416, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620241, '2015MATT05', 'pyram', 453, 1290, 72, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620256, '2019MIYA05', 'pyram', 455, 1310, 73, 21); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620330, '2016SANT66', 'pyram', 462, 1379, 81, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620437, '2010KILD02', 'pyram', 472, 1486, 516, 30); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620497, '2016HOLZ01', 'pyram', 477, 1548, 538, 33); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620535, '2018GOME29', 'pyram', 480, 1583, 96, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620600, '2011RHEI01', 'pyram', 486, 1649, 576, 34); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447620883, '2016KRAF01', 'pyram', 509, 1939, 665, 39); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447621055, '2011LIMA02', 'pyram', 523, 2111, 135, 35); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447621437, '2017BORG02', 'pyram', 549, 2483, 158, 42); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447621566, '2012WESC01', 'pyram', 557, 2617, 886, 51); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447621776, '2014YUNO01', 'pyram', 570, 2832, 183, 45); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447621893, '2014TONO01', 'pyram', 578, 2933, 188, 47); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447622359, '2011FRES01', 'pyram', 605, 3399, 1160, 68); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447623013, '2015ONOF01', 'pyram', 642, 4070, 272, 66); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447623357, '2012ROQU01', 'pyram', 658, 4414, 299, 71); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447623956, '2011LIMA01', 'pyram', 684, 5004, 343, 81); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447624082, '2017SOUZ10', 'pyram', 690, 5132, 354, 82); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680492, '2014GERB01', 'skewb', 280, 49, 25, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680516, '2013GERH01', 'skewb', 298, 74, 35, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680599, '2015CECC01', 'skewb', 332, 153, 6, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680634, '2016SATO01', 'skewb', 342, 191, 10, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680637, '2016KRAF01', 'skewb', 343, 194, 71, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680684, '2014FRIT02', 'skewb', 357, 238, 90, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680775, '2015SILV55', 'skewb', 378, 331, 19, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680823, '2017MAND13', 'skewb', 390, 381, 20, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680841, '2010KILD02', 'skewb', 393, 395, 147, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680868, '2010BENT01', 'skewb', 397, 418, 152, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447680961, '2016WETZ01', 'skewb', 414, 517, 185, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681063, '2016HOLZ01', 'skewb', 432, 613, 219, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681136, '2015MATT05', 'skewb', 443, 688, 36, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681138, '2016SANT66', 'skewb', 443, 688, 36, 9); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681172, '2015KOEN01', 'skewb', 447, 725, 264, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681249, '2013BOTZ01', 'skewb', 457, 800, 287, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681430, '2017BORG02', 'skewb', 479, 987, 60, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681448, '2017SOUZ10', 'skewb', 480, 997, 61, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681468, '2014TONO01', 'skewb', 483, 1024, 67, 15); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681608, '2016CETR01', 'skewb', 496, 1158, 421, 23); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681632, '2012WESC01', 'skewb', 498, 1181, 426, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681703, '2018MACH13', 'skewb', 505, 1250, 445, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681730, '2016IHLE01', 'skewb', 508, 1288, 458, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681872, '2016TANN01', 'skewb', 519, 1424, 91, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447681960, '2018GOME29', 'skewb', 527, 1517, 97, 20); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447682272, '2011RHEI01', 'skewb', 551, 1815, 616, 39); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447682415, '2019FUJI09', 'skewb', 561, 1962, 133, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447682906, '2019MIYA05', 'skewb', 597, 2455, 162, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447684426, '2011LIMA02', 'skewb', 691, 3978, 271, 41); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447685179, '2014YUNO01', 'skewb', 733, 4732, 321, 53); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447685931, '2011LIMA01', 'skewb', 774, 5469, 364, 63); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447687867, '2011FRES01', 'skewb', 872, 7409, 2326, 122); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447688297, '2015ONOF01', 'skewb', 894, 7835, 523, 102); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447689906, '2012ROQU01', 'skewb', 972, 9461, 626, 121); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714411, '2015CECC01', 'sq1', 644, 6, 1, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714427, '2015ONOF01', 'sq1', 729, 22, 2, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714495, '2014GERB01', 'sq1', 915, 90, 20, 1); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714500, '2013GERH01', 'sq1', 921, 94, 22, 2); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714521, '2011RHEI01', 'sq1', 957, 116, 29, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714561, '2016IHLE01', 'sq1', 1004, 156, 45, 6); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714587, '2015SILV55', 'sq1', 1039, 182, 10, 3); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714591, '2017MAND13', 'sq1', 1044, 186, 12, 4); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714665, '2017SOUZ10', 'sq1', 1130, 260, 17, 5); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714703, '2010KILD02', 'sq1', 1183, 297, 85, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714718, '2012WESC01', 'sq1', 1201, 313, 91, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714767, '2016CETR01', 'sq1', 1251, 361, 106, 10); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714770, '2015MATT05', 'sq1', 1253, 365, 30, 7); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714780, '2014FRIT02', 'sq1', 1260, 374, 111, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714798, '2018GOME29', 'sq1', 1271, 392, 32, 8); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714857, '2013BOTZ01', 'sq1', 1307, 450, 136, 14); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447714906, '2010BENT01', 'sq1', 1346, 499, 152, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715000, '2016HOLZ01', 'sq1', 1414, 595, 187, 18); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715122, '2019FUJI09', 'sq1', 1493, 717, 47, 11); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715133, '2011LIMA02', 'sq1', 1501, 727, 51, 12); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715193, '2016TANN01', 'sq1', 1538, 788, 53, 13); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715259, '2019MIYA05', 'sq1', 1591, 854, 57, 16); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715439, '2016WETZ01', 'sq1', 1706, 1033, 316, 22); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715565, '2015KOEN01', 'sq1', 1784, 1160, 350, 24); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715574, '2016KRAF01', 'sq1', 1790, 1169, 355, 25); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715719, '2018MACH13', 'sq1', 1878, 1314, 402, 27); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715790, '2011FRES01', 'sq1', 1918, 1384, 422, 29); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447715791, '2016SANT66', 'sq1', 1919, 1386, 98, 26); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447716089, '2014YUNO01', 'sq1', 2071, 1683, 124, 36); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447717835, '2011LIMA01', 'sq1', 2927, 3428, 252, 76); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447718692, '2012ROQU01', 'sq1', 3325, 4286, 322, 94); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447719177, '2016SATO01', 'sq1', 3540, 4771, 357, 107); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447719265, '2014TONO01', 'sq1', 3581, 4860, 362, 108); -INSERT INTO wca_development.RanksAverage (id, personId, eventId, best, worldRank, continentRank, countryRank) VALUES(447719575, '2017BORG02', 'sq1', 3730, 5167, 386, 120); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255760, '2013GERH01', '222', 137, 12, 5, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255839, '2017MAND13', '222', 169, 91, 2, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255847, '2014FRIT02', '222', 172, 100, 32, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255865, '2014GERB01', '222', 176, 113, 39, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255883, '2015CECC01', '222', 180, 131, 4, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255884, '2016KRAF01', '222', 181, 137, 51, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255973, '2015MATT05', '222', 199, 222, 9, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447255981, '2016CETR01', '222', 200, 228, 82, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256019, '2018GOME29', '222', 207, 272, 11, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256036, '2016SATO01', '222', 211, 289, 13, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256195, '2011RHEI01', '222', 235, 448, 161, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256239, '2015SILV55', '222', 239, 491, 22, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256337, '2010BENT01', '222', 247, 579, 206, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256564, '2019MIYA05', '222', 262, 798, 42, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256570, '2013BOTZ01', '222', 263, 820, 288, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256645, '2019FUJI09', '222', 267, 885, 48, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256749, '2016WETZ01', '222', 273, 981, 345, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256876, '2012ROQU01', '222', 281, 1124, 63, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447256929, '2010KILD02', '222', 283, 1167, 417, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257058, '2015KOEN01', '222', 290, 1288, 461, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257244, '2012WESC01', '222', 300, 1495, 541, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257540, '2018MACH13', '222', 312, 1766, 618, 34); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257570, '2016SANT66', '222', 313, 1798, 103, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257758, '2016HOLZ01', '222', 319, 1986, 699, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257848, '2011LIMA02', '222', 322, 2073, 120, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447257881, '2015ONOF01', '222', 323, 2105, 122, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447258185, '2016TANN01', '222', 333, 2426, 147, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447258265, '2014YUNO01', '222', 336, 2514, 155, 38); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447258401, '2016IHLE01', '222', 339, 2621, 895, 58); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447259447, '2017BORG02', '222', 366, 3695, 236, 56); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447259826, '2014TONO01', '222', 374, 4078, 266, 60); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447259869, '2011FRES01', '222', 374, 4078, 1320, 93); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447262003, '2011LIMA01', '222', 412, 6235, 412, 90); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447262539, '2017SOUZ10', '222', 420, 6747, 455, 95); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350124, '2013GERH01', '333', 658, 40, 10, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350149, '2015CECC01', '333', 678, 65, 2, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350188, '2016SATO01', '333', 709, 104, 5, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350192, '2014GERB01', '333', 711, 108, 30, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350195, '2017MAND13', '333', 711, 108, 6, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350378, '2015SILV55', '333', 779, 292, 9, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350435, '2012ROQU01', '333', 791, 347, 12, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350457, '2014FRIT02', '333', 796, 373, 113, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350550, '2015MATT05', '333', 813, 460, 19, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350869, '2016KRAF01', '333', 858, 782, 231, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350876, '2012WESC01', '333', 859, 790, 237, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447350969, '2011RHEI01', '333', 870, 886, 267, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351094, '2016TANN01', '333', 882, 1006, 50, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351157, '2016CETR01', '333', 888, 1072, 331, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351195, '2014YUNO01', '333', 891, 1106, 53, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351236, '2018GOME29', '333', 897, 1149, 59, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351309, '2019FUJI09', '333', 904, 1222, 66, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351376, '2013BOTZ01', '333', 910, 1289, 391, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351388, '2016IHLE01', '333', 910, 1289, 391, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351448, '2016HOLZ01', '333', 916, 1365, 414, 34); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447351731, '2018MACH13', '333', 940, 1645, 494, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447352016, '2015KOEN01', '333', 962, 1927, 594, 51); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447352053, '2016WETZ01', '333', 963, 1951, 603, 54); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447352284, '2015ONOF01', '333', 979, 2197, 134, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447352520, '2010KILD02', '333', 993, 2427, 742, 66); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447352954, '2010BENT01', '333', 1017, 2867, 870, 79); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447353798, '2019MIYA05', '333', 1059, 3715, 223, 52); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447353883, '2017BORG02', '333', 1062, 3784, 229, 54); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447353920, '2011LIMA02', '333', 1064, 3823, 234, 55); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447354203, '2017SOUZ10', '333', 1076, 4089, 255, 59); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447355134, '2014TONO01', '333', 1112, 5039, 336, 74); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447355147, '2011FRES01', '333', 1112, 5039, 1446, 117); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447357432, '2016SANT66', '333', 1192, 7335, 500, 106); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447361471, '2011LIMA01', '333', 1305, 11340, 822, 176); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499135, '2014FRIT02', '333bf', 2708, 64, 24, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499219, '2014GERB01', '333bf', 3700, 148, 51, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499264, '2017MAND13', '333bf', 4439, 193, 14, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499287, '2016KRAF01', '333bf', 4683, 216, 79, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499319, '2011FRES01', '333bf', 5010, 248, 89, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499393, '2010BENT01', '333bf', 5770, 322, 118, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499492, '2015ONOF01', '333bf', 6899, 421, 25, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499510, '2012WESC01', '333bf', 7099, 439, 167, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499528, '2016IHLE01', '333bf', 7290, 457, 175, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499530, '2015CECC01', '333bf', 7343, 459, 26, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499700, '2011RHEI01', '333bf', 9264, 629, 234, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499705, '2016HOLZ01', '333bf', 9361, 634, 236, 28); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499753, '2019MIYA05', '333bf', 9769, 682, 40, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499774, '2015MATT05', '333bf', 9964, 703, 42, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499801, '2013BOTZ01', '333bf', 10214, 729, 276, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499847, '2015KOEN01', '333bf', 10662, 776, 289, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447499863, '2018GOME29', '333bf', 10825, 792, 50, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500027, '2018MACH13', '333bf', 12576, 956, 348, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500050, '2013GERH01', '333bf', 12871, 979, 357, 42); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500062, '2010KILD02', '333bf', 13024, 991, 362, 43); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500072, '2011LIMA01', '333bf', 13201, 1001, 68, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500465, '2016CETR01', '333bf', 18265, 1394, 506, 57); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500776, '2014TONO01', '333bf', 25021, 1705, 127, 50); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500793, '2014YUNO01', '333bf', 25399, 1722, 128, 51); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447500870, '2017SOUZ10', '333bf', 28826, 1799, 137, 56); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501063, '2011FRES01', '333fm', 2400, 21, 8, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501066, '2016IHLE01', '333fm', 2400, 21, 8, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501069, '2010BENT01', '333fm', 2433, 31, 14, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501077, '2016KRAF01', '333fm', 2467, 35, 16, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501089, '2011RHEI01', '333fm', 2533, 50, 23, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501186, '2015CECC01', '333fm', 2833, 141, 7, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501205, '2013BOTZ01', '333fm', 2867, 161, 64, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501226, '2014FRIT02', '333fm', 2900, 187, 80, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501257, '2011LIMA02', '333fm', 2933, 208, 10, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501270, '2013GERH01', '333fm', 2967, 225, 97, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501276, '2015MATT05', '333fm', 2967, 225, 11, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501349, '2012WESC01', '333fm', 3067, 290, 125, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501366, '2010KILD02', '333fm', 3100, 314, 138, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501372, '2016CETR01', '333fm', 3100, 314, 138, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501477, '2018MACH13', '333fm', 3233, 422, 188, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501481, '2014GERB01', '333fm', 3233, 422, 188, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501621, '2016SANT66', '333fm', 3400, 574, 23, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501682, '2015KOEN01', '333fm', 3467, 644, 281, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501756, '2012ROQU01', '333fm', 3533, 705, 29, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447501849, '2018GOME29', '333fm', 3600, 806, 37, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502065, '2014YUNO01', '333fm', 3800, 1027, 57, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502142, '2011LIMA01', '333fm', 3833, 1065, 60, 34); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502339, '2017BORG02', '333fm', 4000, 1294, 78, 44); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502393, '2015SILV55', '333fm', 4033, 1329, 81, 46); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502467, '2015ONOF01', '333fm', 4100, 1414, 85, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447502709, '2016WETZ01', '333fm', 4267, 1643, 628, 56); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503029, '2016HOLZ01', '333fm', 4533, 1980, 739, 68); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503563, '2019MIYA05', '333fm', 5200, 2515, 165, 91); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503818, '2014TONO01', '333fm', 6300, 2779, 189, 103); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503856, '2014GERB01', '333ft', 2651, 7, 1, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503866, '2016CETR01', '333ft', 2845, 17, 4, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503891, '2017BORG02', '333ft', 3211, 42, 2, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503893, '2015CECC01', '333ft', 3258, 44, 4, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503913, '2015KOEN01', '333ft', 3610, 64, 18, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447503938, '2016TANN01', '333ft', 3900, 89, 7, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504024, '2016WETZ01', '333ft', 4694, 174, 50, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504035, '2013GERH01', '333ft', 4793, 186, 55, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504044, '2016IHLE01', '333ft', 4897, 195, 58, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504069, '2016SATO01', '333ft', 5126, 220, 14, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504073, '2010BENT01', '333ft', 5143, 224, 65, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504096, '2018MACH13', '333ft', 5299, 247, 75, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504129, '2012WESC01', '333ft', 5485, 280, 89, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504302, '2015MATT05', '333ft', 6782, 452, 28, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504309, '2016SANT66', '333ft', 6845, 460, 29, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504310, '2011FRES01', '333ft', 6848, 461, 147, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504361, '2010KILD02', '333ft', 7157, 512, 161, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504423, '2013BOTZ01', '333ft', 7810, 574, 183, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504461, '2012ROQU01', '333ft', 8114, 612, 42, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504676, '2011LIMA02', '333ft', 9483, 827, 59, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447504721, '2011RHEI01', '333ft', 9803, 872, 272, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505010, '2016KRAF01', '333ft', 11814, 1161, 345, 34); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505017, '2017SOUZ10', '333ft', 11848, 1168, 86, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505023, '2011LIMA01', '333ft', 11901, 1174, 87, 42); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505623, '2018GOME29', '333ft', 17145, 1774, 149, 77); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505881, '2014TONO01', '333ft', 21309, 2032, 168, 87); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447505890, '2019MIYA05', '333ft', 21458, 2041, 169, 88); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506282, '2014FRIT02', '333oh', 1141, 47, 15, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506299, '2013GERH01', '333oh', 1166, 63, 22, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506350, '2014GERB01', '333oh', 1223, 115, 44, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506361, '2016SATO01', '333oh', 1235, 126, 5, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506365, '2017MAND13', '333oh', 1238, 130, 6, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506395, '2015ONOF01', '333oh', 1261, 160, 8, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506457, '2015CECC01', '333oh', 1303, 222, 10, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506542, '2012ROQU01', '333oh', 1350, 303, 17, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506634, '2015MATT05', '333oh', 1401, 397, 26, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506672, '2013BOTZ01', '333oh', 1418, 437, 133, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506778, '2016KRAF01', '333oh', 1468, 543, 166, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506834, '2015KOEN01', '333oh', 1484, 599, 184, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506850, '2015SILV55', '333oh', 1488, 614, 39, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506866, '2018GOME29', '333oh', 1494, 628, 43, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506883, '2016HOLZ01', '333oh', 1498, 643, 195, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506889, '2017SOUZ10', '333oh', 1499, 651, 45, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506903, '2014YUNO01', '333oh', 1504, 665, 48, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447506907, '2012WESC01', '333oh', 1505, 670, 201, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507097, '2016CETR01', '333oh', 1560, 858, 253, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507294, '2016WETZ01', '333oh', 1609, 1059, 310, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507374, '2016IHLE01', '333oh', 1627, 1139, 334, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507452, '2011RHEI01', '333oh', 1647, 1217, 361, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507516, '2019FUJI09', '333oh', 1659, 1281, 92, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507545, '2018MACH13', '333oh', 1664, 1305, 379, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507554, '2010BENT01', '333oh', 1665, 1314, 383, 36); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447507774, '2010KILD02', '333oh', 1713, 1537, 435, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447508156, '2017BORG02', '333oh', 1785, 1915, 136, 33); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447508171, '2016TANN01', '333oh', 1787, 1929, 139, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447508993, '2019MIYA05', '333oh', 1913, 2758, 208, 44); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447509157, '2016SANT66', '333oh', 1939, 2920, 224, 48); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447509568, '2011LIMA01', '333oh', 1994, 3323, 259, 60); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447510517, '2014TONO01', '333oh', 2115, 4279, 326, 74); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447511220, '2011LIMA02', '333oh', 2202, 4980, 382, 89); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447511602, '2011FRES01', '333oh', 2248, 5362, 1416, 111); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538568, '2013GERH01', '444', 2661, 26, 7, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538599, '2016SATO01', '444', 2808, 57, 3, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538617, '2015CECC01', '444', 2871, 75, 6, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538632, '2017MAND13', '444', 2898, 89, 7, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538639, '2014GERB01', '444', 2909, 97, 27, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538665, '2012ROQU01', '444', 2967, 123, 8, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538701, '2012WESC01', '444', 3021, 159, 41, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538714, '2014FRIT02', '444', 3044, 172, 48, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538865, '2011RHEI01', '444', 3202, 322, 99, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538879, '2016CETR01', '444', 3212, 337, 105, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538909, '2016HOLZ01', '444', 3240, 366, 112, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447538938, '2014YUNO01', '444', 3264, 396, 26, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539038, '2013BOTZ01', '444', 3345, 496, 155, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539061, '2015SILV55', '444', 3366, 519, 31, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539106, '2016TANN01', '444', 3390, 562, 37, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539161, '2016IHLE01', '444', 3427, 619, 198, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539279, '2019FUJI09', '444', 3497, 737, 49, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539288, '2010KILD02', '444', 3504, 745, 235, 28); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539327, '2015MATT05', '444', 3532, 784, 54, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539366, '2018GOME29', '444', 3556, 824, 58, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539524, '2016WETZ01', '444', 3643, 981, 299, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539605, '2015KOEN01', '444', 3678, 1062, 319, 36); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447539779, '2018MACH13', '444', 3762, 1235, 377, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540146, '2016KRAF01', '444', 3907, 1603, 500, 54); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540606, '2010BENT01', '444', 4057, 2063, 622, 65); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540679, '2017SOUZ10', '444', 4083, 2134, 157, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540783, '2016SANT66', '444', 4117, 2240, 165, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540895, '2014TONO01', '444', 4155, 2352, 172, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447540997, '2011LIMA02', '444', 4184, 2454, 179, 33); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447542043, '2011FRES01', '444', 4445, 3500, 1006, 100); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447542062, '2015ONOF01', '444', 4450, 3520, 257, 45); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447542397, '2017BORG02', '444', 4533, 3855, 290, 53); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447543472, '2019MIYA05', '444', 4771, 4922, 364, 68); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447546998, '2011LIMA01', '444', 5436, 8450, 661, 114); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569247, '2010BENT01', '444bf', 29971, 49, 17, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569386, '2017MAND13', '555', 4896, 17, 1, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569399, '2013GERH01', '555', 5123, 29, 8, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569466, '2012WESC01', '555', 5547, 97, 29, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569502, '2014GERB01', '555', 5679, 133, 44, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569592, '2015CECC01', '555', 5948, 223, 8, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569624, '2016HOLZ01', '555', 6041, 255, 81, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569629, '2016CETR01', '555', 6052, 260, 83, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569638, '2013BOTZ01', '555', 6072, 269, 87, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569664, '2016IHLE01', '555', 6130, 294, 98, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569698, '2012ROQU01', '555', 6186, 329, 13, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569744, '2014FRIT02', '555', 6296, 375, 130, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569806, '2015MATT05', '555', 6421, 437, 18, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569938, '2016SATO01', '555', 6646, 569, 23, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447569998, '2014YUNO01', '555', 6724, 629, 28, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570042, '2015KOEN01', '555', 6787, 673, 217, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570139, '2011RHEI01', '555', 6924, 768, 243, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570221, '2010KILD02', '555', 7038, 852, 270, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570235, '2018GOME29', '555', 7050, 864, 43, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570244, '2019FUJI09', '555', 7059, 873, 45, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570364, '2016WETZ01', '555', 7198, 995, 304, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570399, '2015SILV55', '555', 7226, 1030, 60, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570595, '2016TANN01', '555', 7420, 1225, 81, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570710, '2010BENT01', '555', 7534, 1340, 396, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447570976, '2016SANT66', '555', 7765, 1605, 110, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571022, '2014TONO01', '555', 7799, 1651, 113, 22); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571035, '2018MACH13', '555', 7806, 1664, 486, 54); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571067, '2011FRES01', '555', 7833, 1696, 498, 56); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571269, '2017SOUZ10', '555', 7999, 1899, 128, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571501, '2016KRAF01', '555', 8177, 2132, 617, 66); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571658, '2017BORG02', '555', 8308, 2288, 156, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447571873, '2019MIYA05', '555', 8464, 2503, 175, 36); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447572792, '2011LIMA02', '555', 9090, 3422, 237, 48); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447574016, '2015ONOF01', '555', 9810, 4646, 326, 61); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447577480, '2011LIMA01', '555', 11854, 8111, 588, 113); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584245, '2010BENT01', '555bf', 81700, 33, 15, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584315, '2012WESC01', '666', 9891, 44, 14, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584346, '2013GERH01', '666', 10286, 75, 21, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584366, '2014GERB01', '666', 10511, 95, 26, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584402, '2013BOTZ01', '666', 10975, 131, 39, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584417, '2016HOLZ01', '666', 11110, 146, 44, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584484, '2016IHLE01', '666', 11568, 213, 65, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584507, '2016CETR01', '666', 11735, 236, 74, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584527, '2010KILD02', '666', 11825, 255, 82, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584529, '2015CECC01', '666', 11847, 258, 10, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584631, '2014FRIT02', '666', 12380, 360, 115, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584685, '2014TONO01', '666', 12639, 414, 16, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584707, '2015MATT05', '666', 12770, 436, 19, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584714, '2012ROQU01', '666', 12800, 443, 20, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584738, '2015KOEN01', '666', 12917, 466, 148, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584780, '2011RHEI01', '666', 13075, 509, 156, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447584999, '2016WETZ01', '666', 13907, 728, 225, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585018, '2010BENT01', '666', 13969, 747, 230, 28); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585256, '2017BORG02', '666', 14675, 985, 59, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585272, '2014YUNO01', '666', 14710, 1001, 61, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585379, '2019FUJI09', '666', 15028, 1108, 71, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585432, '2018GOME29', '666', 15170, 1161, 74, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585518, '2016TANN01', '666', 15449, 1247, 81, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585524, '2018MACH13', '666', 15460, 1252, 370, 38); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585534, '2011FRES01', '666', 15506, 1263, 372, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585539, '2016SANT66', '666', 15514, 1268, 83, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585614, '2016KRAF01', '666', 15731, 1342, 392, 43); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447585631, '2017SOUZ10', '666', 15780, 1359, 93, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447586264, '2017MAND13', '666', 17339, 1993, 138, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447587011, '2011LIMA02', '666', 19150, 2740, 198, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447587483, '2015SILV55', '666', 20200, 3212, 227, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447587751, '2015ONOF01', '666', 20857, 3480, 245, 44); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447589200, '2011LIMA01', '666', 25930, 4929, 352, 74); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590500, '2012WESC01', '777', 14559, 45, 13, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590562, '2013GERH01', '777', 15832, 107, 30, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590576, '2014GERB01', '777', 16042, 121, 34, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590579, '2013BOTZ01', '777', 16111, 124, 35, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590585, '2016HOLZ01', '777', 16214, 130, 38, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590587, '2014TONO01', '777', 16240, 132, 7, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590598, '2010KILD02', '777', 16410, 143, 40, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590605, '2016IHLE01', '777', 16483, 150, 42, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590722, '2014FRIT02', '777', 17820, 267, 84, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590732, '2016CETR01', '777', 17872, 277, 89, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590775, '2015CECC01', '777', 18301, 320, 14, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447590989, '2015KOEN01', '777', 19842, 534, 158, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591021, '2011RHEI01', '777', 20058, 566, 165, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591048, '2015MATT05', '777', 20270, 593, 30, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591078, '2010BENT01', '777', 20475, 623, 181, 22); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591109, '2014YUNO01', '777', 20647, 654, 33, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591152, '2016WETZ01', '777', 20873, 696, 205, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591268, '2017BORG02', '777', 21535, 813, 44, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591479, '2016KRAF01', '777', 22575, 1024, 303, 33); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591535, '2018MACH13', '777', 22842, 1080, 318, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591772, '2011FRES01', '777', 23850, 1317, 381, 44); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447591906, '2019FUJI09', '777', 24433, 1451, 92, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447592059, '2016SANT66', '777', 25066, 1604, 105, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447592202, '2012ROQU01', '777', 25664, 1747, 119, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447592730, '2017SOUZ10', '777', 27924, 2274, 148, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447592872, '2016TANN01', '777', 28538, 2417, 162, 31); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447593633, '2011LIMA02', '777', 32405, 3178, 206, 42); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447594152, '2018GOME29', '777', 35508, 3697, 244, 49); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447594379, '2017MAND13', '777', 37327, 3924, 272, 60); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447594401, '2015ONOF01', '777', 37527, 3946, 274, 62); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447594643, '2011LIMA01', '777', 39747, 4188, 284, 65); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595499, '2016HOLZ01', 'clock', 686, 136, 47, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595529, '2010BENT01', 'clock', 705, 166, 61, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595540, '2010KILD02', 'clock', 712, 176, 64, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595571, '2017MAND13', 'clock', 724, 206, 7, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595602, '2017SOUZ10', 'clock', 745, 238, 9, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595610, '2016CETR01', 'clock', 748, 246, 92, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595612, '2014GERB01', 'clock', 749, 249, 93, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595644, '2015CECC01', 'clock', 766, 278, 11, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595698, '2016IHLE01', 'clock', 789, 333, 120, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595804, '2019MIYA05', 'clock', 834, 440, 18, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595882, '2016KRAF01', 'clock', 876, 519, 191, 22); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447595919, '2018MACH13', 'clock', 886, 555, 204, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596089, '2016SATO01', 'clock', 946, 724, 28, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596171, '2013GERH01', 'clock', 980, 807, 294, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596195, '2015MATT05', 'clock', 989, 831, 30, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596250, '2016WETZ01', 'clock', 1011, 884, 319, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596317, '2015KOEN01', 'clock', 1031, 954, 345, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596389, '2013BOTZ01', 'clock', 1054, 1024, 378, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596528, '2016SANT66', 'clock', 1101, 1164, 46, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596665, '2011RHEI01', 'clock', 1148, 1301, 485, 39); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596690, '2012WESC01', 'clock', 1157, 1327, 495, 40); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596838, '2014FRIT02', 'clock', 1201, 1473, 544, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447596910, '2011LIMA01', 'clock', 1222, 1546, 69, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447597038, '2017BORG02', 'clock', 1260, 1673, 76, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447597127, '2014TONO01', 'clock', 1284, 1761, 83, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447597191, '2011FRES01', 'clock', 1305, 1828, 664, 54); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447597276, '2019FUJI09', 'clock', 1329, 1913, 89, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447597483, '2018GOME29', 'clock', 1389, 2120, 96, 32); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447598305, '2011LIMA02', 'clock', 1660, 2941, 136, 43); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447598446, '2012ROQU01', 'clock', 1717, 3083, 145, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447599035, '2015SILV55', 'clock', 1927, 3671, 181, 53); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447599461, '2016TANN01', 'clock', 2116, 4096, 211, 62); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447599945, '2015ONOF01', 'clock', 2397, 4581, 248, 73); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447600546, '2014YUNO01', 'clock', 2796, 5183, 295, 89); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447602267, '2011LIMA01', 'magic', 117, 160, 5, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447602479, '2010BENT01', 'magic', 134, 362, 95, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447603381, '2010KILD02', 'magic', 178, 1269, 358, 51); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606769, '2013GERH01', 'minx', 3724, 21, 6, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606787, '2014GERB01', 'minx', 4044, 39, 14, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606810, '2017MAND13', 'minx', 4247, 62, 6, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606857, '2012WESC01', 'minx', 4549, 109, 30, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606975, '2016SATO01', 'minx', 4935, 226, 21, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447606986, '2016HOLZ01', 'minx', 4969, 238, 74, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607022, '2014FRIT02', 'minx', 5087, 274, 83, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607048, '2015CECC01', 'minx', 5158, 300, 29, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607145, '2014YUNO01', 'minx', 5373, 397, 43, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607185, '2015MATT05', 'minx', 5477, 437, 48, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607284, '2016IHLE01', 'minx', 5671, 536, 180, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607330, '2016WETZ01', 'minx', 5746, 582, 189, 17); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607474, '2010BENT01', 'minx', 6017, 726, 227, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607488, '2011FRES01', 'minx', 6044, 739, 234, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607536, '2013BOTZ01', 'minx', 6127, 787, 255, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607568, '2015KOEN01', 'minx', 6187, 819, 267, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607572, '2016CETR01', 'minx', 6198, 824, 268, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607672, '2012ROQU01', 'minx', 6378, 924, 92, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607694, '2010KILD02', 'minx', 6408, 944, 310, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447607973, '2019MIYA05', 'minx', 6877, 1225, 125, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608113, '2017BORG02', 'minx', 7073, 1365, 146, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608199, '2019FUJI09', 'minx', 7207, 1451, 155, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608394, '2011RHEI01', 'minx', 7458, 1645, 497, 37); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608452, '2017SOUZ10', 'minx', 7519, 1703, 191, 36); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608524, '2018GOME29', 'minx', 7598, 1776, 197, 37); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608578, '2018MACH13', 'minx', 7660, 1830, 552, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608783, '2011LIMA02', 'minx', 7926, 2035, 219, 39); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447608870, '2015SILV55', 'minx', 8048, 2122, 228, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447609026, '2016KRAF01', 'minx', 8225, 2278, 699, 56); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447609107, '2016SANT66', 'minx', 8320, 2358, 253, 46); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447609142, '2016TANN01', 'minx', 8358, 2394, 260, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447609332, '2011LIMA01', 'minx', 8560, 2583, 283, 51); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447612299, '2015ONOF01', 'minx', 11648, 5551, 610, 123); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447613538, '2014TONO01', 'minx', 13396, 6790, 724, 153); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447617089, '2010BENT01', 'mmagic', 304, 184, 59, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447618004, '2011LIMA01', 'mmagic', 524, 1094, 43, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619021, '2016TANN01', 'pyram', 257, 78, 3, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619062, '2017MAND13', 'pyram', 272, 119, 5, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619136, '2015CECC01', 'pyram', 295, 193, 9, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619211, '2013GERH01', 'pyram', 311, 263, 91, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619227, '2014FRIT02', 'pyram', 313, 280, 95, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619299, '2016CETR01', 'pyram', 328, 356, 120, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619381, '2015KOEN01', 'pyram', 341, 434, 145, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619434, '2014GERB01', 'pyram', 352, 488, 171, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619444, '2016SATO01', 'pyram', 355, 499, 29, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619557, '2015SILV55', 'pyram', 373, 610, 33, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619682, '2019FUJI09', 'pyram', 392, 739, 43, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619778, '2010BENT01', 'pyram', 404, 832, 302, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619827, '2013BOTZ01', 'pyram', 410, 882, 320, 19); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447619887, '2016WETZ01', 'pyram', 417, 944, 345, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620077, '2018MACH13', 'pyram', 436, 1126, 405, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620124, '2016IHLE01', 'pyram', 442, 1179, 416, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620241, '2015MATT05', 'pyram', 453, 1290, 72, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620256, '2019MIYA05', 'pyram', 455, 1310, 73, 21); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620330, '2016SANT66', 'pyram', 462, 1379, 81, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620437, '2010KILD02', 'pyram', 472, 1486, 516, 30); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620497, '2016HOLZ01', 'pyram', 477, 1548, 538, 33); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620535, '2018GOME29', 'pyram', 480, 1583, 96, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620600, '2011RHEI01', 'pyram', 486, 1649, 576, 34); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447620883, '2016KRAF01', 'pyram', 509, 1939, 665, 39); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447621055, '2011LIMA02', 'pyram', 523, 2111, 135, 35); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447621437, '2017BORG02', 'pyram', 549, 2483, 158, 42); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447621566, '2012WESC01', 'pyram', 557, 2617, 886, 51); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447621776, '2014YUNO01', 'pyram', 570, 2832, 183, 45); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447621893, '2014TONO01', 'pyram', 578, 2933, 188, 47); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447622359, '2011FRES01', 'pyram', 605, 3399, 1160, 68); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447623013, '2015ONOF01', 'pyram', 642, 4070, 272, 66); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447623357, '2012ROQU01', 'pyram', 658, 4414, 299, 71); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447623956, '2011LIMA01', 'pyram', 684, 5004, 343, 81); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447624082, '2017SOUZ10', 'pyram', 690, 5132, 354, 82); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680492, '2014GERB01', 'skewb', 280, 49, 25, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680516, '2013GERH01', 'skewb', 298, 74, 35, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680599, '2015CECC01', 'skewb', 332, 153, 6, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680634, '2016SATO01', 'skewb', 342, 191, 10, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680637, '2016KRAF01', 'skewb', 343, 194, 71, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680684, '2014FRIT02', 'skewb', 357, 238, 90, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680775, '2015SILV55', 'skewb', 378, 331, 19, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680823, '2017MAND13', 'skewb', 390, 381, 20, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680841, '2010KILD02', 'skewb', 393, 395, 147, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680868, '2010BENT01', 'skewb', 397, 418, 152, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447680961, '2016WETZ01', 'skewb', 414, 517, 185, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681063, '2016HOLZ01', 'skewb', 432, 613, 219, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681136, '2015MATT05', 'skewb', 443, 688, 36, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681138, '2016SANT66', 'skewb', 443, 688, 36, 9); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681172, '2015KOEN01', 'skewb', 447, 725, 264, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681249, '2013BOTZ01', 'skewb', 457, 800, 287, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681430, '2017BORG02', 'skewb', 479, 987, 60, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681448, '2017SOUZ10', 'skewb', 480, 997, 61, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681468, '2014TONO01', 'skewb', 483, 1024, 67, 15); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681608, '2016CETR01', 'skewb', 496, 1158, 421, 23); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681632, '2012WESC01', 'skewb', 498, 1181, 426, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681703, '2018MACH13', 'skewb', 505, 1250, 445, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681730, '2016IHLE01', 'skewb', 508, 1288, 458, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681872, '2016TANN01', 'skewb', 519, 1424, 91, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447681960, '2018GOME29', 'skewb', 527, 1517, 97, 20); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447682272, '2011RHEI01', 'skewb', 551, 1815, 616, 39); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447682415, '2019FUJI09', 'skewb', 561, 1962, 133, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447682906, '2019MIYA05', 'skewb', 597, 2455, 162, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447684426, '2011LIMA02', 'skewb', 691, 3978, 271, 41); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447685179, '2014YUNO01', 'skewb', 733, 4732, 321, 53); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447685931, '2011LIMA01', 'skewb', 774, 5469, 364, 63); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447687867, '2011FRES01', 'skewb', 872, 7409, 2326, 122); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447688297, '2015ONOF01', 'skewb', 894, 7835, 523, 102); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447689906, '2012ROQU01', 'skewb', 972, 9461, 626, 121); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714411, '2015CECC01', 'sq1', 644, 6, 1, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714427, '2015ONOF01', 'sq1', 729, 22, 2, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714495, '2014GERB01', 'sq1', 915, 90, 20, 1); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714500, '2013GERH01', 'sq1', 921, 94, 22, 2); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714521, '2011RHEI01', 'sq1', 957, 116, 29, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714561, '2016IHLE01', 'sq1', 1004, 156, 45, 6); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714587, '2015SILV55', 'sq1', 1039, 182, 10, 3); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714591, '2017MAND13', 'sq1', 1044, 186, 12, 4); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714665, '2017SOUZ10', 'sq1', 1130, 260, 17, 5); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714703, '2010KILD02', 'sq1', 1183, 297, 85, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714718, '2012WESC01', 'sq1', 1201, 313, 91, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714767, '2016CETR01', 'sq1', 1251, 361, 106, 10); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714770, '2015MATT05', 'sq1', 1253, 365, 30, 7); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714780, '2014FRIT02', 'sq1', 1260, 374, 111, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714798, '2018GOME29', 'sq1', 1271, 392, 32, 8); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714857, '2013BOTZ01', 'sq1', 1307, 450, 136, 14); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447714906, '2010BENT01', 'sq1', 1346, 499, 152, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715000, '2016HOLZ01', 'sq1', 1414, 595, 187, 18); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715122, '2019FUJI09', 'sq1', 1493, 717, 47, 11); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715133, '2011LIMA02', 'sq1', 1501, 727, 51, 12); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715193, '2016TANN01', 'sq1', 1538, 788, 53, 13); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715259, '2019MIYA05', 'sq1', 1591, 854, 57, 16); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715439, '2016WETZ01', 'sq1', 1706, 1033, 316, 22); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715565, '2015KOEN01', 'sq1', 1784, 1160, 350, 24); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715574, '2016KRAF01', 'sq1', 1790, 1169, 355, 25); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715719, '2018MACH13', 'sq1', 1878, 1314, 402, 27); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715790, '2011FRES01', 'sq1', 1918, 1384, 422, 29); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447715791, '2016SANT66', 'sq1', 1919, 1386, 98, 26); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447716089, '2014YUNO01', 'sq1', 2071, 1683, 124, 36); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447717835, '2011LIMA01', 'sq1', 2927, 3428, 252, 76); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447718692, '2012ROQU01', 'sq1', 3325, 4286, 322, 94); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447719177, '2016SATO01', 'sq1', 3540, 4771, 357, 107); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447719265, '2014TONO01', 'sq1', 3581, 4860, 362, 108); +INSERT INTO wca_development.ranks_average (id, person_id, event_id, best, world_rank, continent_rank, country_rank) VALUES(447719575, '2017BORG02', 'sq1', 3730, 5167, 386, 120); -- Events -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('222', '2x2x2 Cube', 20, 'time', '2x2x2 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333', '3x3x3 Cube', 10, 'time', '3x3x3 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333bf', '3x3x3 Blindfolded', 70, 'time', '3x3x3 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333fm', '3x3x3 Fewest Moves', 80, 'number', '3x3x3 Fewest Moves'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333ft', '3x3x3 With Feet', 996, 'time', '3x3x3 With Feet'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333mbf', '3x3x3 Multi-Blind', 180, 'multi', '3x3x3 Multi-Blind'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333mbo', '3x3x3 Multi-Blind Old Style', 999, 'multi', '3x3x3 Multi-Blind Old Style'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('333oh', '3x3x3 One-Handed', 90, 'time', '3x3x3 One-Handed'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('444', '4x4x4 Cube', 30, 'time', '4x4x4 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('444bf', '4x4x4 Blindfolded', 160, 'time', '4x4x4 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('555', '5x5x5 Cube', 40, 'time', '5x5x5 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('555bf', '5x5x5 Blindfolded', 170, 'time', '5x5x5 Blindfolded'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('666', '6x6x6 Cube', 50, 'time', '6x6x6 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('777', '7x7x7 Cube', 60, 'time', '7x7x7 Cube'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('clock', 'Clock', 110, 'time', 'Clock'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('magic', 'Magic', 997, 'time', 'Magic'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('minx', 'Megaminx', 120, 'time', 'Megaminx'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('mmagic', 'Master Magic', 998, 'time', 'Master Magic'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('pyram', 'Pyraminx', 130, 'time', 'Pyraminx'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('skewb', 'Skewb', 140, 'time', 'Skewb'); -INSERT INTO wca_development.Events (id, name, `rank`, format, cellName) VALUES('sq1', 'Square-1', 150, 'time', 'Square-1'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('222', '2x2x2 Cube', 20, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333', '3x3x3 Cube', 10, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333bf', '3x3x3 Blindfolded', 70, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333fm', '3x3x3 Fewest Moves', 80, 'number'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333ft', '3x3x3 With Feet', 996, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbf', '3x3x3 Multi-Blind', 180, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333mbo', '3x3x3 Multi-Blind Old Style', 999, 'multi'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('333oh', '3x3x3 One-Handed', 90, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444', '4x4x4 Cube', 30, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('444bf', '4x4x4 Blindfolded', 160, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555', '5x5x5 Cube', 40, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('555bf', '5x5x5 Blindfolded', 170, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('666', '6x6x6 Cube', 50, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('777', '7x7x7 Cube', 60, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('clock', 'Clock', 110, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('magic', 'Magic', 997, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('minx', 'Megaminx', 120, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('mmagic', 'Master Magic', 998, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('pyram', 'Pyraminx', 130, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('skewb', 'Skewb', 140, 'time'); +INSERT INTO wca_development.events (id, name, `rank`, format) VALUES('sq1', 'Square-1', 150, 'time'); diff --git a/server/src/test/resources/test-scripts/cleanTestData.sql b/server/src/test/resources/test-scripts/cleanTestData.sql index bee1cc45..4e18f985 100644 --- a/server/src/test/resources/test-scripts/cleanTestData.sql +++ b/server/src/test/resources/test-scripts/cleanTestData.sql @@ -2,33 +2,31 @@ set foreign_key_checks = 0; truncate wca_development.best_ever_rank; -truncate wca_development.Competitions; +truncate wca_development.competitions; truncate wca_development.competition_events; -truncate wca_development.Results; +truncate wca_development.results; -truncate wca_development.Continents; +truncate wca_development.continents; -truncate wca_development.Countries; +truncate wca_development.countries; -truncate wca_development.Events; +truncate wca_development.events; truncate wca_development.record_evolution; -truncate wca_development.users; - truncate wca_development.sum_of_ranks; truncate wca_development.sum_of_ranks_meta; -truncate wca_development.Countries; +truncate wca_development.countries; -truncate wca_development.Continents; +truncate wca_development.continents; -truncate wca_development.RanksSingle; +truncate wca_development.ranks_single; -truncate wca_development.RanksAverage; +truncate wca_development.ranks_average; truncate wca_development.statistics_control;