Semantic 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
SQLStore debug output
ASK Query
[[Category:High schools]] [[City.In county.In region::Bay Area]]
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, idst4.smw_sort
FROM
  `wiki_smw_object_ids` AS t0
INNER JOIN
  (`wiki_smw_fpt_inst` AS t2
INNER JOIN
  `wiki_t3` AS t3 ON t2.o_id=t3.id
INNER JOIN
  (`wiki_smw_di_wikipage` AS t4
INNER JOIN
  `wiki_smw_object_ids` AS idst4 ON idst4.smw_id=t4.o_id
INNER JOIN
  (`wiki_smw_di_wikipage` AS t6
INNER JOIN
  `wiki_smw_di_wikipage` AS t8 ON t6.o_id=t8.s_id) ON t4.o_id=t6.s_id) ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
WHERE
  (
   (t4.p_id='318791'
   AND (t6.p_id='318798'
   AND (t8.p_id='318803' AND t8.o_id='9617')
  ))
  )
  AND t0.smw_iw!=':smw'
  AND t0.smw_iw!=':smw-delete'
  AND t0.smw_iw!=':smw-redi'
ORDER BY
  idst4.smw_sort ASC
LIMIT
  205
OFFSET
  200
SQL Explain
IDselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEt8refs_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3o_id5const9Using where; Using temporary; Using filesort
1SIMPLEt6refs_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3o_id_39transitunlimited.t8.s_id,const3
1SIMPLEt4refs_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3o_id_39transitunlimited.t6.s_id,const3
1SIMPLEt0eq_refPRIMARY,smw_id,smw_iw,smw_iw_2PRIMARY4transitunlimited.t4.s_id1Using where
1SIMPLEidst4eq_refPRIMARY,smw_idPRIMARY4transitunlimited.t6.s_id1
1SIMPLEt2refs_id,o_id,s_id_2,o_id_2s_id_24transitunlimited.t4.s_id1Using where; Using index; Distinct
1SIMPLEt3eq_refPRIMARYPRIMARY4transitunlimited.t2.o_id1Distinct
Auxilliary Tables
  • Temporary table t3
      Recursively computed hierarchy for element(s) ('1840').
      SELECT s_id FROM `wiki_smw_fpt_subc` WHERE o_id='1840' LIMIT 1
Query Metrics
Query-Size:5
Query-Depth:3
Errors and Warnings
None
 City
Aragon High SchoolSan Mateo
Hillsdale High SchoolSan Mateo
San Mateo High SchoolSan Mateo
Junipero Serra High School (San Mateo)San Mateo
The Nueva School San Mateo CampusSan Mateo
San Rafael High SchoolSan Rafael
Marin AcademySan Rafael
Terra Linda High SchoolSan Rafael
Dougherty Valley High SchoolSan Ramon
California High School (San Ramon)San Ramon
Santa Clara High SchoolSanta Clara
Adrian Wilcox High SchoolSanta Clara
Montgomery High SchoolSanta Rosa
Cardinal Newman High SchoolSanta Rosa
Elsie Allen High SchoolSanta Rosa
Santa Rosa High SchoolSanta Rosa
Maria Carrillo High SchoolSanta Rosa
Piner High SchoolSanta Rosa
Saratoga High SchoolSaratoga
Prospect High SchoolSaratoga
Analy High SchoolSebastopol
Archbishop Hanna High SchoolSonoma
Sonoma Valley High SchoolSonoma
South San Francisco High SchoolSouth San Francisco
El Camino High School (South San Francisco)South San Francisco
St. Helena High SchoolSt. Helena
Fremont High School (Sunnyvale)Sunnyvale
The King's AcademySunnyvale
James Logan High SchoolUnion City
Vacaville High SchoolVacaville
Will C. Wood High SchoolVacaville
St. Patrick-St. Vincent High SchoolVallejo
Vallejo High SchoolVallejo
Jesse Bethel High SchoolVallejo
North Gate High SchoolWalnut Creek
Las Lomas High SchoolWalnut Creek
Berean Christian High SchoolWalnut Creek
Windsor High SchoolWindsor
Woodside High SchoolWoodside