0.0022 |
SELECT
c.comment_id, COUNT(DISTINCT c.`id`) AS num
FROM comments AS c
WHERE c.`active` = 1 AND c.device = 'web' AND c.to_review=0
AND c.comment_id!=0
AND c.lang = '1'
AND c.`league_id` = '15065' AND c.`match_id` = '8105'
AND c.comment_id IN (10078724,10099154,10095976,10078726,10078723)
GROUP BY c.comment_id
|
0.0173 | SELECT c.*, c.stadium as real_stadium, 2016 AS year, dt1.id AS dteam1_id, dt1.nameShow as team1_name, dt1.basealias AS team1_basealias, dt1.fullName as team1_fullName, dt1.color1 AS team1_color1, dt1.seats, dt1.size, dt1.yearBuilt, dt2.id AS dteam2_id, dt2.nameShow as team2_name, dt2.basealias AS team2_basealias, dt2.fullName as team2_fullName, dt2.color1 AS team2_color1, t1.name as team1_Oname, t2.name as team2_Oname, s.id as stadium_id, rs.teamId as stadium_team_id, s.name AS stadium_name, s.size AS stadium_size, s.seats AS stadium_seats, s.yearBuilt AS stadium_yearBuilt, dt1.managerNow AS manager1, dt2.managerNow AS manager2 FROM calendars2016 AS c
INNER JOIN teams AS t1 ON c.team1 = t1.id
INNER JOIN datateams AS dt1 ON t1.teamId = dt1.id
INNER JOIN teams AS t2 ON c.team2 = t2.id
INNER JOIN datateams AS dt2 ON t2.teamId = dt2.id
LEFT JOIN futbol.rel_stadiums as rs ON rs.teamId=dt1.id AND rs.active=1
LEFT JOIN datastadiums AS s ON s.id = c.stadium
WHERE c.extra != 1 AND dt1.basealias = 'Caen' AND dt2.basealias = 'Troyes' |
0.0133 | SELECT
c.*,
2016 AS year,
dt1.id AS dteam1_id,
dt1.nameShow AS team1_name,
dt1.basealias AS team1_basealias,
dt1.fullName AS team1_fullName,
dt1.color1 AS team1_color1,
dt1.seats,
dt1.size,
dt1.yearBuilt,
dt2.id AS dteam2_id,
dt2.nameShow AS team2_name,
dt2.basealias AS team2_basealias,
dt2.fullName AS team2_fullName,
dt2.color1 AS team2_color1,
t1.name AS team1_Oname,
t2.name AS team2_Oname,
s.id AS stadium_id,
dt1.id AS stadium_team_id,
s.name AS stadium_name,
s.size AS stadium_size,
s.seats AS stadium_seats,
s.yearBuilt AS stadium_yearBuilt,
dt1.managerNow AS manager1,
dt2.managerNow AS manager2
FROM
calendars2016 AS c
INNER JOIN teams AS t1 ON c.team1 = t1.id
INNER JOIN datateams AS dt1 ON t1.teamId = dt1.id
INNER JOIN teams AS t2 ON c.team2 = t2.id
INNER JOIN datateams AS dt2 ON t2.teamId = dt2.id
LEFT JOIN datastadiums AS s ON s.id = c.stadium
WHERE c.extra != 1
AND dt1.basealias = 'Caen'
AND dt2.basealias = 'Troyes' |
0.0255 | SELECT
c.*, l.*, cou.name as namec, ct.table_sufix
FROM (leagues l INNER JOIN categories c ON c.id = l.categoryId INNER JOIN categories_types ct ON c.ctype=ct.id LEFT JOIN country cou ON cou.Code2 = c.CountryCode) WHERE l.id = 15065 |
0.0127 |
SELECT ev.id AS event_id, ev.player_id, ev.action, ev.minute, ev.teamId AS event_teamId
FROM events2016 AS ev
WHERE ev.match_id=8105
ORDER BY (ev.action=1 OR ev.action=2 OR ev.action=6 OR ev.action=11 OR ev.action=12 OR ev.action=13) DESC,(ev.action=3 OR ev.action=4 OR ev.action=5) DESC,(ev.action=14 OR ev.action=15 OR ev.action=16 OR ev.action=17 OR ev.action=21) DESC,(ev.action=18 OR ev.action=19) DESC,(ev.action=20 OR ev.action=22) DESC, minute ASC, ev.real_date ASC, ev.id DESC, ev.action DESC
|
0.0129 |
SELECT dp.id AS player_id, dp.nick, dp.alias, dp.name, dp.last_name, rp.team_id, rp.teamId, rp.squadNumber AS num
FROM dataplayers AS dp INNER JOIN rel_players AS rp ON dp.id=rp.player_id AND league_id=15065
WHERE dp.id IN (52503,8641,21201,24233,121214,185667,4663,250906,9119,191290,223076,200203,3276,183246,3261,21282) AND (rp.team_id=210434 OR rp.team_id=210451)
|
0.0126 |
SELECT ev.id AS event_id, ev.player_id, ev.action, ev.minute, ev.teamId AS event_teamId
FROM events2016 AS ev
WHERE ev.match_id=8105
ORDER BY ev.minute ASC, ev.real_date ASC, ev.id DESC
|
0.0128 |
SELECT dp.id AS player_id, dp.nick, dp.alias, dp.name, dp.last_name, rp.team_id, rp.teamId, rp.squadNumber AS num
FROM dataplayers AS dp INNER JOIN rel_players AS rp ON dp.id=rp.player_id AND league_id=15065
WHERE dp.id IN (52503,3261,24233,8641,21282,21201,185667,121214,223076,4663,250906,9119,191290,200203,3276,183246) AND (rp.team_id=210434 OR rp.team_id=210451)
|
0.0124 | SELECT data1 FROM stats2016 t WHERE league_id = 15065 AND teamId = 210434 and type = 33 |
0.0124 | SELECT data1 FROM stats2016 t WHERE league_id = 15065 AND teamId = 210451 and type = 33 |
0.0125 | SELECT id,team_id,tactica FROM dreamteam_data_real WHERE league_id = 15065 AND id_match = 8105 |
0.0128 | SELECT rel.*,relp.squadNumber as num,dp.alias,dp.role,dp.name,dp.nick,dp.last_name,dp.id as player_id, 0 AS rating FROM rel_dreamteam_real rel INNER JOIN dreamteam_data_real drea ON drea.id = rel.team_number INNER JOIN dataplayers dp ON dp.id = rel.player_id INNER JOIN rel_players AS relp ON relp.player_id=dp.id AND relp.league_id='15065' AND relp.team_id = drea.team_id WHERE rel.team_number=161915 GROUP BY dp.id ORDER BY role ASC, pos ASC |
0.0128 | SELECT rel.*,relp.squadNumber as num,dp.alias,dp.role,dp.name,dp.nick,dp.last_name,dp.id as player_id, 0 AS rating FROM rel_dreamteam_real rel INNER JOIN dreamteam_data_real drea ON drea.id = rel.team_number INNER JOIN dataplayers dp ON dp.id = rel.player_id INNER JOIN rel_players AS relp ON relp.player_id=dp.id AND relp.league_id='15065' AND relp.team_id = drea.team_id WHERE rel.team_number=161916 GROUP BY dp.id ORDER BY role ASC, pos ASC |
0.0133 | SELECT mp.`player_id`, p.`nick`, p.`name`, p.`last_name`, mp.`team`, p.role, p.alias, relp.squadNumber as num, p.CountryCode
FROM `matchs_players_called` AS mp INNER JOIN `dataplayers` AS p ON mp.`player_id` = p.`id`
INNER JOIN rel_players AS relp ON relp.player_id=p.id AND relp.league_id='15065' AND relp.team_id=210434
WHERE mp.`match_id` = '8105' AND mp.year='2016' AND p.id NOT IN (67062,58556,8641,3276,67636,3099,21282,223076,212537,149519,21201,21174,32140,24233,52503,224746,9119,3265,121214,3261,47631,183705)
ORDER BY mp.`team` ASC, p.`role` ASC |
0.0132 | SELECT mp.`player_id`, p.`nick`, p.`name`, p.`last_name`, mp.`team`, p.role, p.alias, relp.squadNumber as num, p.CountryCode
FROM `matchs_players_called` AS mp INNER JOIN `dataplayers` AS p ON mp.`player_id` = p.`id`
INNER JOIN rel_players AS relp ON relp.player_id=p.id AND relp.league_id='15065' AND relp.team_id=210451
WHERE mp.`match_id` = '8105' AND mp.year='2016' AND p.id NOT IN (67062,58556,8641,3276,67636,3099,21282,223076,212537,149519,21201,21174,32140,24233,52503,224746,9119,3265,121214,3261,47631,183705)
ORDER BY mp.`team` ASC, p.`role` ASC |
0.0126 | SELECT kit FROM kit_data_real WHERE league_id = 15065 AND id_match = 8105 |
0.0125 | SELECT p.*
FROM `pictures` as p INNER JOIN `rel_pictures` as rp ON p.id = rp.id_picture WHERE rp.id_content = '8105' and rp.type = 2016 GROUP BY p.id ORDER BY p.id DESC LIMIT 0, 16 |
0.0126 | SELECT p.*
FROM `videos` as p INNER JOIN `rel_videos` as rp ON p.id = rp.id_video WHERE rp.id_content = '8105' and rp.type = 2016 and p.revised = 1 GROUP BY p.id ORDER BY p.id DESC LIMIT 0, 16 |
0.0127 | SELECT *,rel.id as rel_id FROM `rel_media_match` rel LEFT JOIN media m ON m.id = rel.media_id WHERE m.type='10' AND rel.active = 1 AND rel.league_id = 15065 AND rel.team1 = 210434 AND rel.team2 = 210451 ORDER BY FIELD(m.location,'es','en') DESC |
0.0125 | SELECT iframe, title FROM futbol.match_videos WHERE matchId = 8105 AND year = 2016 AND channel = 'Footters' LIMIT 1 |
0.0125 | SELECT iframe, title FROM futbol.match_videos WHERE matchId = 8105 AND year = 2016 AND channel = 'Footters' LIMIT 1 |
0.0127 | SELECT *,rel.id as rel_id FROM `rel_media_match` rel LEFT JOIN media m ON m.id = rel.media_id WHERE m.type='11' AND rel.active = 1 AND rel.league_id = 15065 AND rel.team1 = 210434 AND rel.team2 = 210451 ORDER BY FIELD(m.location,'es','en') DESC |
0.0126 | SELECT dt.nameShow,dt.basealias,t.id,t.teamId FROM teams t INNER JOIN datateams dt ON t.teamId = dt.id WHERE t.league_id = 15065 ORDER BY dt.relations DESC, dt.nameShow ASC LIMIT 50 |
0.0124 | SELECT teamId FROM teams WHERE id = 210434 |
0.0124 | SELECT c.id,c.r1,r2,c.shedule,comments,c.team1,c.team2,c.datateam1,c.datateam2,c.league_id,2016 as year,dt1.basealias as basealias1,dt2.basealias as basealias2,dt1.nameShow as team1_name,dt2.nameShow as team2_name, c.extra FROM calendars2016 as c INNER JOIN datateams dt1 ON dt1.id = c.datateam1 INNER JOIN datateams dt2 ON dt2.id = c.datateam2 WHERE (c.r1 != 99 or c.r2 != 99) AND (c.datateam1 = 606 OR c.datateam2 = 606) ORDER BY shedule DESC LIMIT 10 |
0.0128 | SELECT teamId FROM teams WHERE id = 210434 |
0.0132 | SELECT c.id,c.r1,r2,c.shedule,comments,c.team1,c.team2,c.datateam1,c.datateam2,c.league_id,2016 as year,dt1.basealias as basealias1,dt2.basealias as basealias2,dt1.nameShow as team1_name,dt2.nameShow as team2_name, c.extra FROM calendars2016 as c INNER JOIN datateams dt1 ON dt1.id = c.datateam1 INNER JOIN datateams dt2 ON dt2.id = c.datateam2 WHERE (c.r1 = 99 or c.r2 = 99) AND (c.datateam1 = 606 OR c.datateam2 = 606) ORDER BY shedule ASC LIMIT 10 |
0.0126 | SELECT c.team1, c.team2,c.extra,c.datateam1,c.datateam2, c.shedule,c.id, c.r1, c.r2, c.round, dt1.nameShow as team1_name, dt2.nameShow as team2_name, dt1.basealias as basealias1, dt2.basealias as basealias2,c.comments,c.league_id FROM `calendars2016` as c INNER JOIN teams t1 ON t1.id = c.team1 AND t1.league_id = c.league_id INNER JOIN teams t2 ON t2.id = c.team2 AND t2.league_id = c.league_id INNER JOIN datateams as dt1 ON dt1.id = t1.teamId INNER JOIN datateams as dt2 ON dt2.id = t2.teamId WHERE c.`league_id` = 15065 AND c.`round` = 31 ORDER BY shedule ASC LIMIT 12 |
0.0130 | SELECT t.*,dt.nameShow,dt.basealias,dt.id as teamId,(cast(t.gf as signed) - cast(t.ga as signed) + 100) as diff,team.teamId FROM `tables2016` as t
INNER JOIN teams as team ON team.id = t.team
INNER JOIN datateams as dt ON team.teamId = dt.id
WHERE t.league_id = 15065
AND t.round = 31 ORDER BY team.conference ASC,t.points DESC,t.priority DESC, diff DESC, t.gf DESC, dt.nameShow ASC |
0.0135 | SELECT points,gf,ga,win_h,win_a,draw_h,draw_a,lose_h,lose_a FROM `tables2016`
WHERE league_id = 15065
AND round >= 38 AND round <= 38 AND team = 210434 ORDER BY round ASC |
0.0126 | SELECT t.*,dt.nameShow,dt.basealias,dt.id as teamId,(cast(t.gf as signed) - cast(t.ga as signed) + 100) as diff,team.teamId FROM `tables2016` as t
INNER JOIN teams as team ON team.id = t.team
INNER JOIN datateams as dt ON team.teamId = dt.id
WHERE t.league_id = 15065
AND t.round = 38 ORDER BY team.conference ASC,t.points DESC,t.priority DESC, diff DESC, t.gf DESC, dt.nameShow ASC |
0.0126 |
SELECT
c.comment,c.id,c.author_id,c.author_name,c.last_update,c.creation_date,c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, c.template,
NOW() AS difference_time, fau.changeA AS changeA
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active` = 1 AND c.device = 'web' AND c.to_review=0
AND c.comment_id=0
AND c.lang = '1'
AND c.language = 'es'
AND c.`league_id` = '15065' AND c.`match_id` = '8105'
ORDER BY c.last_update DESC, c.creation_date DESC
LIMIT 0,15
|
0.0126 |
SELECT
c.id, c.author_name, c.comment, c.comment_id, c.author_id, c.creation_date, c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, template,
NOW() AS difference_time
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active`=1 AND c.to_review=0 AND c.device = 'web'
AND c.comment_id = '10078724'
AND c.lang = '1'
ORDER BY creation_date DESC
LIMIT 20
|
0.0125 |
SELECT
c.id, c.author_name, c.comment, c.comment_id, c.author_id, c.creation_date, c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, template,
NOW() AS difference_time
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active`=1 AND c.to_review=0 AND c.device = 'web'
AND c.comment_id = '10099154'
AND c.lang = '1'
ORDER BY creation_date DESC
LIMIT 20
|
0.0126 |
SELECT
c.id, c.author_name, c.comment, c.comment_id, c.author_id, c.creation_date, c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, template,
NOW() AS difference_time
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active`=1 AND c.to_review=0 AND c.device = 'web'
AND c.comment_id = '10095976'
AND c.lang = '1'
ORDER BY creation_date DESC
LIMIT 20
|
0.0127 |
SELECT
c.id, c.author_name, c.comment, c.comment_id, c.author_id, c.creation_date, c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, template,
NOW() AS difference_time
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active`=1 AND c.to_review=0 AND c.device = 'web'
AND c.comment_id = '10078726'
AND c.lang = '1'
ORDER BY creation_date DESC
LIMIT 20
|
0.0125 |
SELECT
c.id, c.author_name, c.comment, c.comment_id, c.author_id, c.creation_date, c.votes_up, c.device,
fau.user_name, fau.adm AS user_adm, fau.role AS user_role, fau.adm_type AS user_adm_type, template,
NOW() AS difference_time
FROM comments AS c LEFT JOIN fa_user_mini AS fau
ON fau.id = c.author_id
WHERE c.`active`=1 AND c.to_review=0 AND c.device = 'web'
AND c.comment_id = '10078723'
AND c.lang = '1'
ORDER BY creation_date DESC
LIMIT 20
|
0.0125 | SELECT dr.name as showName, dr2.name as referee_var
FROM calendars2016 as c INNER JOIN rel_calendars_referee as r ON c.id = r.match_id and r.year=2016 and r.role=1
INNER JOIN datareferees dr on dr.id=r.referee_id
INNER JOIN rel_calendars_referee as r2 ON c.id = r2.match_id and r2.year=2016 and r2.role=2
INNER JOIN datareferees dr2 on dr2.id=r2.referee_id WHERE c.team1 = 210434
AND c.team2 = 210451
AND c.league_id = 15065 |
0.0133 | SELECT `id`, `text` FROM `matchs_news_keys` WHERE `match_id`='8105' AND `active` = 1 AND year = 2016 |
0.0132 | SELECT `id`, `text`, `link`, `media` FROM `matchs_news_headlines` WHERE `match_id`='8105' AND `active` = 1 AND year = 2016 |
0.0125 | SELECT mp.`player_id`, p.`nick`, p.`name`, p.`last_name`, mp.`team`, p.role, p.alias, relp.squadNumber as num, p.CountryCode
FROM `matchs_players_called` AS mp INNER JOIN `dataplayers` AS p ON mp.`player_id` = p.`id`
INNER JOIN rel_players AS relp ON relp.player_id=p.id AND relp.league_id='15065' AND relp.team_id=210434
WHERE relp.in_squad=1 and mp.`match_id` = '8105' AND mp.year='2016'
ORDER BY mp.`team` ASC, p.`role` ASC |
0.0125 | SELECT mp.`player_id`, p.`nick`, p.`name`, p.`last_name`, mp.`team`, p.role, p.alias, relp.squadNumber as num, p.CountryCode
FROM `matchs_players_called` AS mp INNER JOIN `dataplayers` AS p ON mp.`player_id` = p.`id`
INNER JOIN rel_players AS relp ON relp.player_id=p.id AND relp.league_id='15065' AND relp.team_id=210451
WHERE relp.in_squad=1 and mp.`match_id` = '8105' AND mp.year='2016'
ORDER BY mp.`team` ASC, p.`role` ASC |
0.0125 | SELECT id, team_id FROM dreamteam_data_real WHERE league_id = '15065' AND id_match = '8105' |
0.0125 |
SELECT
rel.*,
dp.name, dp.nick, dp.last_name, dp.id as player_id,
0 AS rating
FROM rel_dreamteam_real rel INNER JOIN dataplayers dp
ON dp.id = rel.player_id
WHERE rel.team_number = '161915'
ORDER BY rating DESC
LIMIT 1
|
0.0125 |
SELECT
rel.*,
dp.name, dp.nick, dp.last_name, dp.id as player_id,
0 AS rating
FROM rel_dreamteam_real rel INNER JOIN dataplayers dp
ON dp.id = rel.player_id
WHERE rel.team_number = '161916'
ORDER BY rating DESC
LIMIT 1
|
0.0126 | SELECT total FROM bs_rel_resume_items WHERE ln = 'es' AND itemId=8105 AND extraId = 15065 AND type_rel = 4 |
0.0125 | SELECT total FROM bs_rel_resume_items WHERE ln = 'es' AND itemId=16 AND type_rel = 3 |
0.0125 | SELECT rating1, rating2 FROM calendars_elo WHERE id=8105 AND league_id=15065 AND year=2016 |
0.0125 | SELECT position FROM tables2016 WHERE team=210434 AND league_id=15065 AND round=31 |
0.0125 | SELECT position FROM tables2016 WHERE team=210451 AND league_id=15065 AND round=31 |
0.0125 | SELECT * FROM futbol.calendars_lineups WHERE id = 8105 AND league_id = 15065 AND year = 2016 |