Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 41::~Complaint* Upheld]]
SQL Query
SELECT DISTINCT
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t7.o_sortkey
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
`wiki_smw_di_blob` AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
INNER JOIN
`wiki_smw_di_time` AS t7 ON t0.smw_id=t7.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash LIKE 'Complaint% Upheld') AND t4.p_id=17718)
)
AND (t7.p_id=17617)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t7.o_sortkey DESC
LIMIT
55
OFFSET
0
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t7.o_sortkey
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
`wiki_smw_di_blob` AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
INNER JOIN
`wiki_smw_di_time` AS t7 ON t0.smw_id=t7.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash LIKE 'Complaint% Upheld') AND t4.p_id=17718)
)
AND (t7.p_id=17617)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t7.o_sortkey DESC
LIMIT
55
OFFSET
0
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t4 | range | s_id, p_id, o_hash, s_id_2 | p_id | 262 | 185 | Using index condition; Using temporary; Using filesort | ||
1 | SIMPLE | t2 | ref | s_id, o_id, s_id_2, o_id_2 | s_id_2 | 9 | alexsken_foiwiki.t4.s_id, const | 1 | Using index | |
1 | SIMPLE | t7 | ref | s_id, p_id, p_id_2, s_id_2 | s_id_2 | 8 | alexsken_foiwiki.t4.s_id, const | 1 | Using index | |
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | alexsken_foiwiki.t4.s_id | 1 | Using where |
Auxilliary Tables
No auxilliary tables used.Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50197502 - Cabinet Office - 16/03/2010
- FS50191352 - Ministry of Defence - 02/02/2010
- FS50197952 - Cabinet Office - 28/01/2010
- FS50169315 - North West London Hospitals NHS Trust - 16/11/2009
- FS50178553 - Wakefield Metropolitan District Council - 14/10/2009
- FS50171494 - University of East Anglia - 21/09/2009
- FS50222633 - Coventry City Council - 03/08/2009
- FS50130316 - Food Standards Agency - 27/07/2009
- FS50156313(P) - Department for Transport - 01/07/2009
- FS50125005(P) - Trafford Metropolitan Borough Council - 17/06/2009
- FS50125350 - National Police Improvement Agency - 16/06/2009
- FS50124622 - University of Cambridge - 03/06/2009
- FS50164262 - Bristol City Council - 27/05/2009
- FS50121803(P) - Ministry of Justice - 14/04/2009
- FS50188864 - Higher Education Funding Council for England - 31/03/2009
- FS50140374(P) - University of Central Lancashire - 30/03/2009
- FS5073382 - Chief Constable of West Yorkshire Police - 16/03/2009
- FS50128406 - Export Credits Guarantee Department - 23/02/2009
- FS50090393 - BBC - 09/02/2009
- FS50088736 - Department of Health - 29/01/2009
- FS50149375 - Department of Health - 22/12/2008
- FS50149373 - Department of Health - 22/12/2008
- FS50149374 - Department of Health - 22/12/2008
- FS50146033 - Vehicle and Operator Services Agency - 23/10/2008
- FS50123184(P) - Office for Standards in Education - 24/09/2008
- FS50145663 - Department for Environment Food and Rural Affairs - 11/09/2008
- FS50121687 - The Broads Authority - 10/09/2008
- FS50104541 - Health and Safety Executive - 21/07/2008
- FS50123005 - UK Atomic Energy Authority (UKAEA) - 16/06/2008
- FS50084359(P) - Plymouth Primary Care Trust - 05/06/2008
- FS50124800 - Hertfordshire Partnership NHS Trust - 02/06/2008
- FS50120314 - Department of Health - 15/04/2008
- FS50072940 - University College London - 02/04/2008
- FS50142318(P) - Somerset NHS Primary Care Trust - 26/02/2008
- FS50105478 - Chief Constable of Cumbria Constabulary - 20/02/2008
- FS50155412(P) - London Borough of Southwark - 19/02/2008
- FS50155394(P) - Hampshire County Council - 19/02/2008
- FS50155411(P) - London Borough of Redbridge - 19/02/2008
- FS50155395(P) - Hertfordshire County Council - 19/02/2008
- FS50155409(P) - London Borough of Lambeth - 19/02/2008
- FS50155404(P) - London Borough of Hammersmith and Fulham - 19/02/2008
- FS50155386(P) - Devon County Council - 19/02/2008
- FS50155429 - Wiltshire County Council - 13/02/2008
- FS50155406(P) - Harrow Council - 13/02/2008
- FS50155410(P) - London Borough of Islington - 13/02/2008
- FS50155417(P) - Norfolk County Council - 06/02/2008
- FS50155397(P) - Kent County Council - 06/02/2008
- FS50155421(P) - Royal Borough of Windsor and Maidenhead - 06/02/2008
- FS50155403(P) - London Borough of Newham - 06/02/2008
- FS50155416(P) - London Borough of Sutton - 06/02/2008