Semantic search
From Who Called Me
SQLStore debug output
ASK Query
[[Category:Companies:CompanyContact]] [[Companies:postcode::AB10 6SD]]
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
`smw_object_ids` AS t0
INNER JOIN
(`smw_fpt_inst` AS t2
INNER JOIN
`smw_di_wikipage` AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.o_id='518'
AND (t4.p_id='523' AND t4.o_id='1108296')
)
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
1
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
`smw_object_ids` AS t0
INNER JOIN
(`smw_fpt_inst` AS t2
INNER JOIN
`smw_di_wikipage` AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.o_id='518'
AND (t4.p_id='523' AND t4.o_id='1108296')
)
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
1
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t4 | ref | s_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3 | o_id | 5 | const | 18 | Using where; Using temporary; Using filesort |
1 | SIMPLE | t2 | ref | s_id,o_id,s_id_2,o_id_2 | s_id | 4 | callto_wikidb.t4.s_id | 1 | Using where |
1 | SIMPLE | t0 | eq_ref | PRIMARY,smw_id,smw_iw,smw_iw_2 | PRIMARY | 4 | callto_wikidb.t4.s_id | 1 | Using where |
Auxilliary Tables
No auxilliary tables used.Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
NoneCompanies:town | Companies:county | Has coordinates | |
---|---|---|---|
01224576977 | ABERDEEN | 57° 8' 47.57" N, 2° 5' 26.85" W | |
01224708470 | ABERDEEN | SCOTLAND | 57° 11' 27.47" N, 2° 5' 0.50" W |
01224735483 | ABERDEEN | 57° 5' 47.88" N, 2° 15' 57.95" W | |
01224781257 | ABERDEEN | 57° 4' 10.75" N, 2° 9' 15.47" W | |
01224862415 | ABERDEEN | 57° 7' 1.57" N, 2° 11' 57.44" W | |
01224898810 | ABERDEEN | 57° 6' 35.00" N, 2° 4' 47.57" W | |
01224937888 | ABERDEEN | 57° 8' 54.37" N, 2° 16' 43.29" W | |
01236606599 | ABERDEEN | 55° 50' 46.90" N, 4° 0' 46.53" W | |
01358743470 | ABERDEEN | 57° 15' 0.44" N, 2° 3' 39.07" W | |
01467629926 | ABERDEEN | 57° 16' 13.81" N, 2° 22' 9.73" W | |
01479811161 | ABERDEEN | 57° 11' 28.37" N, 3° 49' 46.61" W | |
01674672157 | ABERDEEN | 56° 42' 55.04" N, 2° 27' 13.06" W | |
01708686268 | ABERDEEN | 51° 28' 29.10" N, 0° 17' 19.49" E | |
01738564080 | ABERDEEN | 56° 23' 56.30" N, 3° 25' 13.68" W | |
01779475718 | ABERDEEN | 57° 29' 28.59" N, 1° 48' 54.02" W | |
01779491144 | ABERDEEN | 57° 30' 39.09" N, 1° 46' 51.99" W | |
07737174571 | ABERDEEN | 55° 56' 8.19" N, 3° 13' 35.93" W |