Semantic search

Jump to navigation Jump to search
Condition
Printout selection
Options
Parameters [
limit:

The maximum number of results to return
offset:

The offset of the first result
link:

Show values as links
headers:

Display the headers/property names
mainlabel:

The label to give to the main page name
intro:

The text to display before the query results, if there are any
outro:

The text to display after the query results, if there are any
searchlabel:

Text for continuing the search
default:

The text to display if there are no query results
class:

An additional CSS class to set for the table
transpose:

Display table headers vertically and results horizontally
sep:

The separator between results
Sort options
Delete
Add sorting condition
Debug output SQLStore
ASK Query
[[Category:Village]] [[Location::+]]
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_coords" AS t4 ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
  (t2.o_id=1052
   AND (t4.p_id=510)
  )
  AND t0.smw_iw!=':smw'
  AND t0.smw_iw!=':smw-delete'
  AND t0.smw_iw!=':smw-redi'
ORDER BY
  t0.smw_sort ASC
LIMIT
  6
OFFSET
  1
SQL Explain
Limit  (cost=29.13..29.21 rows=4 width=76)
  └──   Unique  (cost=29.11..29.21 rows=5 width=76)
        └──   Sort  (cost=29.11..29.12 rows=5 width=76)
              Sort Key: t0.smw_sort, t0.smw_id, t0.smw_title, t0.smw_namespace, t0.smw_iw, t0.smw_subobject, t0.smw_sortkey
              └──   Nested Loop  (cost=2.32..29.05 rows=5 width=76)
                    └──   Hash Join  (cost=2.05..7.05 rows=5 width=8)
                          Hash Cond: (t2.s_id = t4.s_id)
                          └──   Index Only Scan using smw_fpt_inst_idx_oid_sid on smw_fpt_inst t2  (cost=0.27..5.06 rows=45 width=4)
                                Index Cond: (o_id = 1052)
                          └──   Hash  (cost=1.39..1.39 rows=31 width=4)
                                └──   Seq Scan on smw_di_coords t4  (cost=0.00..1.39 rows=31 width=4)
                                      Filter: (p_id = 510)
                    └──   Index Scan using smw_object_ids_pkey on smw_object_ids t0  (cost=0.28..4.39 rows=1 width=76)
                          Index Cond: (smw_id = t2.s_id)
                          Filter: ((smw_iw <> ':smw'::text) AND (smw_iw <> ':smw-delete'::text) AND (smw_iw <> ':smw-redi'::text))
Auxilliary Tables
No auxilliary tables used.
Query Metrics
Query-Size:2
Query-Depth:1
Errors and Warnings
None
 Location
Villages:Bristol Hackspace51° 58' 1.63" N, 0° 47' 39.44" W