Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Davidfmccluskey
.
Toggle Highlighting
SQL
SELECT DISTINCT ?company ?companyLabel ?headquarters ?headquartersLabel ?streetAddress ?coords ?postalCode ?country ?countryLabel WHERE { ?company wdt:P31/wdt:P279* wd:Q4830453 . ?company wdt:P452 ?industry . ?company p:P159 ?hq . ?hq ps:P159 ?headquarters . OPTIONAL{ ?hq pq:P969 ?streetAddress . } OPTIONAL{ ?hq pq:P281 ?postalCode . } OPTIONAL{ ?hq pq:P625 ?coords . } OPTIONAL{ ?hq pq:P17 ?country . } #FILTER ( ?industry IN (wd:Q862571) ) SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } }
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...