Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 43::~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, t0.smw_sort
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
(`wiki_smw_di_blob` AS t4
INNER JOIN
`wiki_t5` AS t5 ON t4.p_id=t5.id) ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash LIKE 'Complaint% Upheld')
))
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
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, t0.smw_sort
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
(`wiki_smw_di_blob` AS t4
INNER JOIN
`wiki_t5` AS t5 ON t4.p_id=t5.id) ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash LIKE 'Complaint% Upheld')
))
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
55
OFFSET
0
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t5 | ALL | PRIMARY | 3 | Using temporary; Using filesort | ||||
1 | SIMPLE | t4 | ref | s_id, p_id, o_hash, s_id_2 | p_id | 4 | alexsken_foiwiki.t5.id | 38 | Using index condition | |
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | alexsken_foiwiki.t4.s_id | 1 | Using where | |
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; Distinct |
Auxilliary Tables
- Temporary table t5
Recursively computed hierarchy for element(s) (17723).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17723 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FER0098306/7 - Department for Environment Food and Rural Affairs - 24/08/2006
- FS50063478(P) - National Maritime Museum - 20/06/2005
- FS50065663(P) - Farndon Green Medical Centre - 03/04/2006
- FS50065853 - Wolverhampton City Council - 28/09/2006
- FS50066753 - Derry City Council - 21/02/2006
- FS50069394 - Department of Trade and Industry - 13/02/2007
- FS50070465 - BBC - 17/03/2008
- FS50072198(P) - BBC - 27/02/2008
- FS50072940 - University College London - 02/04/2008
- FS50073979 - Invest (Northern Ireland) - 24/07/2006
- FS50075781 - Financial Services Authority - 07/08/2007
- FS50076806 - Medicines and Healthcare Products Regulatory Agency - 22/01/2007
- FS50078602(P) - Waverley Borough Council - 27/11/2007
- FS50078603 - London Borough of Southwark - 05/06/2007
- FS50079486 - Liverpool City Council - 10/01/2007
- FS50079488 - Export Credits Guarantee Department - 27/11/2006
- FS50080353 - De Montefort University - 07/03/2006
- FS50080412 - Exeter City Council - 07/08/2006
- FS50082255 - National Portrait Gallery - 30/01/2007
- FS50083102 - Department for Children, Schools and Families - 31/03/2009
- FS50083103 - Department for Work and Pensions - 05/06/2006
- FS50083358 - Home Office - 10/10/2007
- FS50083381 - Department of Health - 21/01/2008
- FS50083667 - Tameside Metropolitan Borough Council - 22/01/2007
- FS50084359(P) - Plymouth Primary Care Trust - 05/06/2008
- FS50085710(P) - BBC - 08/01/2008
- FS50085775(P) - Scotland Office - 29/10/2007
- FS50087630 - Department for Culture, Media and Sport - 30/08/2007
- FS50088016 - Department for International Development - 27/11/2008
- FS50088494 - Royal Mail - 05/02/2007
- FS50088736 - Department of Health - 29/01/2009
- FS50089555(P) - Ministry of Defence - 17/11/2009
- FS50089556(P) - Department for Business, Innovation and Skills - 15/10/2009
- FS50090393(P) - BBC - 09/02/2009
- FS50090685 - East Riding of Yorkshire Council - 28/01/2008
- FS50090744 - Oxford City Council - 01/02/2007
- FS50090866 - Waverley Borough Council - 02/07/2007
- FS50090867 - Financial Services Authority - 04/06/2007
- FS50094472 - Department for Business, Enterprise and Regulatory Reform - 12/11/2007
- FS50094496 - Department for Environment Food and Rural Affairs - 03/07/2008
- FS50094595 - Financial Services Authority - 16/08/2007
- FS50097759 - South Shropshire District Council - 17/08/2006
- FS50101105 - Department for Environment Food and Rural Affairs - 23/04/2007
- FS50101351(P) - Brightlingsea Town Council - 31/03/2008
- FS50102206 - BBC - 01/10/2007
- FS50102474 - BBC - 11/12/2006
- FS50105262 - BBC - 27/03/2007
- FS50105478 - Chief Constable of Cumbria Constabulary - 20/02/2008
- FS50105734 - Maritime and Coastguard Agency - 25/09/2006
- FS50106712 - Financial Services Authority - 11/08/2008