Question: What are the names and locations of all metro stations in the Paris Métro system?

SELECT DISTINCT ?station ?stationLabel ?coord WHERE { wd:Q50716 wdt:P527 ?line . ?station wdt:P31 wd:Q928830 ; wdt:P81 ?line ; wdt:P625 ?coord . ?station rdfs:label ?stationLabel . FILTER(LANG(?stationLabel) = "en") } ORDER BY ASC(?stationLabel)

List the English-named stations of the Paris Métro along with their geographic coordinates.

Show me the metro stations in Paris, their labels in English, and where they are located on the map.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q928830> ; <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q50716> ; <http://www.wikidata.org/prop/direct/P138> + ?var2 ; <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: What properties are used on items that are instances or subclasses of the electoral college?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q1141323 .
  ?item ?property ?value .
}
LIMIT 100

Show all properties associated with the electoral college and its subtypes.

Which attributes or relationships are linked to the electoral college and its related organizations?

SELECT DISTINCT ?var1 WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1141323> . ?var2 ?var3 ?var4 . OPTIONAL { ?var4 ?var3 ?var5 . } { BIND ( ?var3 AS ?var1 ). } }


Question: What are the French names of countries and their heads of government?

SELECT ?country ?countryLabel ?headLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country rdfs:label ?countryLabel . FILTER (LANG(?countryLabel) = "fr") . OPTIONAL { ?country wdt:P6 ?headOfGovernment . ?headOfGovernment rdfs:label ?headLabel . FILTER (LANG(?headLabel) = "fr") . } } LIMIT 10

Can you list countries in French along with the French names of their current heads of government?

Show me up to 10 countries that have French labels, along with the French labels of their heads of government.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P6> ?var3 . } FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } LIMIT 10


Question: British politicians born in January of a leap year

Who are the British politicians born in January during a leap year?

List the names and birth dates of British politicians born in January of a leap year between 1804 and 2024.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { BIND ( STR ( YEAR ( ?var2 ) ) AS ?var4 ). BIND ( MONTH ( ?var2 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q145> . FILTER ( ( ( ?var3 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19828> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . FILTER ( ( ( STR ( ?var6 ) = ?var4 ) ) ) . } LIMIT 1000


Question: Danish-labeled prime ministers, their birthplaces in Danish, and dates of birth

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?birthPlace ?personLabel ?birthPlaceLabel ?dateOfBirth WHERE {
  ?person wdt:P39 wd:Q14212 .
  ?person wdt:P19 ?birthPlace .
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "da")
  }
  OPTIONAL {
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER(LANG(?birthPlaceLabel) = "da")
  }
  ?person wdt:P569 ?dateOfBirth .
}
LIMIT 200

Who are the prime ministers with Danish labels for themselves and their birthplaces, and what are their dates of birth?

List prime ministers along with their Danish-language names, birthplaces in Danish, and birth dates.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q8792536> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "da" ) ) ) . } OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "da" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . } } LIMIT 200


Question: What are some examples of official positions or roles listed in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?position ?positionLabel WHERE {
  ?position wdt:P31 wd:Q4164871 .
  ?position rdfs:label ?positionLabel .
  FILTER(LANG(?positionLabel) = "en")
}
ORDER BY ?positionLabel

List all known job titles and offices in Wikidata with their English names.

Which roles or positions in organizations are documented in Wikidata, and what are their English labels?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4164871> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } }


Question: Types of volcanoes that are subclasses of volcano.

SELECT DISTINCT ?volcanoType ?volcanoTypeLabel WHERE { ?volcanoType wdt:P279 wd:Q8072 . ?volcanoType rdfs:label ?volcanoTypeLabel . FILTER(LANG(?volcanoTypeLabel) = "en") } LIMIT 11

What are some different kinds of volcanoes classified as subclasses of volcano?

List up to 11 types of volcanoes, such as stratovolcano or shield volcano.

SELECT ?var1 ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q8072> . } LIMIT 11 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nb". } }


Question: Which entities with an ISNI have Portuguese labels and descriptions?

SELECT ?entity ?entityLabel ?entityDescription WHERE { ?entity wdt:P213 ?isni . ?entity rdfs:label ?entityLabel . ?entity schema:description ?entityDescription . FILTER (LANG(?entityLabel) = "pt") . FILTER (LANG(?entityDescription) = "pt") . } LIMIT 100

Portuguese labels and descriptions of entities that have an ISNI identifier.

Show me up to 100 entities that have an ISNI and are described in Portuguese.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P2237> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: Organizations in Sweden with ISNI identifiers

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?organizationLabel ?isni WHERE {
  ?organization(wdt:P31 / wdt:P279 *) wd:Q43229 .
  ?organization wdt:P17 wd:Q34 .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P213 ?isni .
  }
}

What are the English-named organizations in Sweden, and what are their ISNI numbers?

List all organizations located in Sweden that have an English label and their International Standard Name Identifiers, if available.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q43229> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } }


Question: What are the names, birth places, and birth dates of astronauts, along with the year, month, and day of their birth?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?personLabel ?birthPlaceLabel ?birthDate(YEAR(?birthDate) AS ?birthYear)(MONTH(?birthDate) AS ?birthMonth)(DAY(?birthDate) AS ?birthDay) WHERE {
  ?person wdt:P106 wd:Q11631 .
  ?person wdt:P19 ?birthPlace .
  ?person wdt:P569 ?birthDate .
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "en")
  }
  OPTIONAL {
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER(LANG(?birthPlaceLabel) = "en")
  }
}
ORDER BY ?personLabel
LIMIT 10

Show me a list of astronauts with their English labels, birth locations, and exact birth dates, including the year, month, and day.

Can you list the top astronauts with their birth information (place and date) in English?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ( YEAR ( ?var4 ) AS ?var5 )( MONTH ( ?var4 ) AS ?var6 )( DAY ( ?var4 ) AS ?var7 ) WHERE { { ?var8 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q11631> . } ?var8 <http://www.wikidata.org/prop/direct/P19> ?var9 . ?var8 <http://wikiba.se/ontology#sitelinks> ?var3 . ?var8 <http://www.wikidata.org/prop/direct/P569> ?var4 . OPTIONAL { ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } OPTIONAL { ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var2 ?var1 ?var3 ?var4 HAVING ( ( ?var3 > "10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 ) LIMIT 10


Question: What sports are most popular among athletes born in Palma, Spain?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sport ?sportLabel(COUNT(*) AS ?count) WHERE {
  ?athlete wdt:P19 / wdt:P131 * wd:Q8826 ; wdt:P641 ?sport ; wdt:P106 / wdt:P279 * wd:Q2066131 .
  ?sport rdfs:label ?sportLabel .
  FILTER(LANG(?sportLabel) = "en")
}
GROUP BY ?sport ?sportLabel
ORDER BY DESC(?count)

Which sports have the highest number of athletes from Palma, Spain, and how many athletes play each?

Show me a list of sports played by people born in Palma, Spain, ranked by how many athletes play each sport, with English labels.

SELECT ?var1 ?var1Label ( COUNT (* ) AS ?var2 ) WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P19> / <http://www.wikidata.org/prop/direct/P131> *) <http://www.wikidata.org/entity/Q8826> ; <http://www.wikidata.org/prop/direct/P641> ?var1 ; ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2066131> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var2 )


Question: Railway stations operated by Nankai Electric Railway with their station codes and opening dates.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?station ?stationLabel ?stationCode ?openingDate WHERE {
  ?railwayLine wdt:P31 wd:Q728937 ; wdt:P137 wd:Q1188230 .
  ?station wdt:P81 ?railwayLine ; wdt:P31 wd:Q55488 .
  OPTIONAL {
    ?station p:P296 ?codeStmt .
    ?codeStmt ps:P296 ?stationCode ; pq:P81 ?railwayLine .
  }
  OPTIONAL {
    ?station wdt:P1619 ?openingDate .
  }
  ?station rdfs:label ?stationLabel .
  FILTER ( LANG( ?stationLabel ) = "en" )
}
ORDER BY ASC ( ?stationCode )
LIMIT 20

Which stations are connected to Nankai Electric Railway lines, and what are their station codes and opening dates?

List the stations on Nankai Electric Railway lines, including their station identifiers and when they opened.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4Label ?var5 ?var6Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q728937> . ?var1 <http://www.wikidata.org/prop/direct/P137> <http://www.wikidata.org/entity/Q1188230> . ?var2 <http://www.wikidata.org/prop/direct/P81> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/P296> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P296> ?var3 . ?var7 <http://www.wikidata.org/prop/qualifier/P81> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P1619> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } } ORDER BY ASC( ?var3 )


Question: What are all the broader categories (superclasses) of volcanic landform?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?superclass WHERE {
  wd:Q29025902 wdt:P279 * ?superclass .
}

List all the classes that volcanic landform belongs to, including indirect parent classes.

What is the full hierarchy of categories above volcanic landform in Wikidata’s classification system?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q23021277> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: Islands in Indonesia that are not directly classified as "island"

SELECT ?island ?islandLabel WHERE { ?island (wdt:P31 / wdt:P279*) wd:Q23442 . MINUS { ?island wdt:P31 wd:Q23442 . } ?island wdt:P17 wd:Q252 . ?island rdfs:label ?islandLabel . FILTER(LANG(?islandLabel) = "en") }

What are the islands in Indonesia that are classified as subclasses of island rather than direct instances?

List all island-like entities in Indonesia, excluding those explicitly labeled as "island".

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23442> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23442> . } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q252> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "id,en". } }


Question: Organizations in the British Indian Ocean Territory with their ISNI identifiers.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?organizationLabel ?isni WHERE {
  ?organization ( wdt:P31 / wdt:P279 * ) wd:Q43229 .
  ?organization wdt:P17 wd:Q43448 .
  OPTIONAL {
    ?organization wdt:P213 ?isni .
  }
  ?organization rdfs:label ?organizationLabel .
  FILTER ( LANG( ?organizationLabel ) = "en" )
}

What organizations located in the British Indian Ocean Territory have an International Standard Name Identifier (ISNI)?

List the English labels of all organizations (including subclasses) in the British Indian Ocean Territory, along with their ISNI codes if available.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q43229> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q43448> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } }


Question: What are the railway stations operated by the London Underground, and which stations are adjacent to them?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT DISTINCT ?station ?stationLabel ?adjacentStation ?adjacentStationLabel WHERE {
  ?station wdt:P137 wd:Q20075 .
  ?station wdt:P31 wd:Q55488 .
  ?station p:P197 ?adjacentStatement .
  ?adjacentStatement ps:P197 ?adjacentStation .
  ?station rdfs:label ?stationLabel .
  ?adjacentStation rdfs:label ?adjacentStationLabel .
  FILTER(LANG(?stationLabel) = "en")
  FILTER(LANG(?adjacentStationLabel) = "en")
}

List the stations on the London Underground and their neighboring stations, including their English labels.

Which stations are next to each other on the London Underground network?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q20075> . ?var1 <http://www.wikidata.org/prop/P197> ?var3 . FILTER ( ( NOT EXISTS { ?var3 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var4 . ?var4 <http://www.wikidata.org/prop/reference/P854> [] . } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q55488> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P527> ?var5 . ?var5 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q55488> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Rivers in Russia with Russian names, excluding Crimea and those registered in the State Water Register, sorted by their administrative region in Russian.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label(SAMPLE(?adminLabel) AS ?adminLabelSample) WHERE {
  ?var1 wdt:P31 wd:Q4022 .
  ?var1 wdt:P17 wd:Q159 .
  OPTIONAL {
    ?var1 wdt:P131 ?admin .
    ?admin rdfs:label ?adminLabel .
    FILTER(LANG(?adminLabel) = "ru")
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "ru") MINUS {
    ?var1 wdt:P17 wd:Q15966495 .
  } MINUS {
    ?var1 wdt:P884 [] .
  }
}
GROUP BY ?var1 ?var1Label
ORDER BY DESC(?adminLabelSample)

What are the rivers in Russia that have Russian-language names and are not located in Crimea or assigned a State Water Register Code, and what administrative regions are they in?

List Russian-named rivers in Russia (excluding Crimea and those with a State Water Register Code), along with the Russian names of the regions they flow through, sorted by region name.

SELECT ?var1 ?var1Label ( SAMPLE ( ?var2Label ) AS ?var2Label ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q159> . ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "ru". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "ru" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ru" ) ) ) . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q15966495> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P884> ?var4 . } MINUS { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/prop/novalue/P884> . } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var2Label )


Question: What places and entities are located in Banten Province?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P131 wd:Q3540 .
}

Which items are administratively part of Banten Province in Indonesia?

List all entities, such as cities, districts, and institutions, that are located within the administrative boundaries of Banten Province.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q3540> . }


Question: Biological authors with names starting with L and their ISNI, ORCID, IPNI, and ZooBank IDs.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?isni ?viaf ?image ?orcid ?ipni ?zoobank WHERE {
  ?species_page schema:about ?item ; schema:isPartOf <https://species.wikimedia.org/> .
  ?item wdt:P31 wd:Q5 .
  ?item rdfs:label ?label .
  FILTER ( STRSTARTS( LCASE( ?label ) , "l" ) ) .
  OPTIONAL {
    ?item wdt:P213 ?isni .
  }
  OPTIONAL {
    ?item wdt:P214 ?viaf .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P496 ?orcid .
  }
  OPTIONAL {
    ?item wdt:P586 ?ipni .
  }
  OPTIONAL {
    ?item wdt:P2006 ?zoobank .
  }
}
LIMIT 100

Who are the biological authors whose names start with the letter L, and what are their identifiers like ISNI, ORCID, and ZooBank ID?

List all human taxonomists with names starting with "L" who are referenced on Species Wikidata, along with their image and identifiers such as ISNI, VIAF, ORCID, IPNI, and ZooBank ID.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "L"@en . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://species.wikimedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P586> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2006> ?var8 . } }


Question: What Wikipedia articles are about broccoli?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?article WHERE {
  ?article schema:about wd:Q47722 .
}

In which languages is there a Wikipedia article about broccoli?

Show me all the Wikimedia project pages (like Wikipedia in different languages) that are about the plant species broccoli.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://schema.org/about> <http://www.wikidata.org/entity/Q47722> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } }


Question: Railway stations in Switzerland and the property linking them to Switzerland

SELECT DISTINCT ?station ?property WHERE { ?station wdt:P31 wd:Q55488 . ?station ?property wd:Q39 . }

What property links railway stations in Switzerland to the country, and which stations are they?

Show me all railway stations located in Switzerland and the property used to indicate their country.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> . ?var1 ?var3 <http://www.wikidata.org/entity/Q39> . }


Question: What are the subunits of the University of Illinois Urbana-Champaign?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?child ?childLabel WHERE {
  ?child p:P749 ?statement .
  ?statement ps:P749 wd:Q457281 .
  ?child rdfs:label ?childLabel .
  FILTER ( LANG( ?childLabel ) = "en" )
}

Which organizations are directly under the University of Illinois Urbana-Champaign as their parent institution?

List the colleges, offices, and research centers that are part of the University of Illinois Urbana-Champaign.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P749> <http://www.wikidata.org/entity/Q457281> . ?var1 <http://www.wikidata.org/prop/P749> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: List all villages in Indonesia at the fourth level of administrative division.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?village WHERE {
  ?village wdt:P31 / wdt:P279 * wd:Q2225692 .
}

What are all the villages in Indonesia that are classified as fourth-level administrative divisions?

Can you provide a complete list of all Indonesian villages and equivalent administrative units (like kelurahan or desa) that fall under the fourth-level administrative division category?

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2225692> . }


Question: Does the German National Library ID 1013423631 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "1013423631" .
}

Is there an entity in Wikidata with the GND identifier 1013423631?

Can you confirm that the person with GND ID 1013423631 is represented in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "1013423631". }


Question: Is there a Wikidata item with GND ID 4222220-5?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "4222220-5" .
}

Does the German National Library ID 4222220-5 exist in Wikidata?

Confirm whether the GND identifier 4222220-5 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4222220-5". }


Question: People who worked at the University of Mannheim and then at the University of Kiel with no gap or overlap between jobs.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person(SAMPLE(?label) AS ?personLabel) ?mannheimStart ?mannheimEnd ?kielStart ?kielEnd WHERE {
  ?person p:P108 ?mannheimJob ; p:P108 ?kielJob .
  ?mannheimJob ps:P108 wd:Q317070 ; pq:P582 ?mannheimEnd .
  OPTIONAL {
    ?mannheimJob pq:P580 ?mannheimStart .
  }
  ?kielJob ps:P108 wd:Q156737 ; pq:P580 ?kielStart .
  OPTIONAL {
    ?kielJob pq:P582 ?kielEnd .
  }
  FILTER(?mannheimEnd <= ?kielStart)
  OPTIONAL {
    ?person rdfs:label ?label .
  }
}
GROUP BY ?person ?mannheimStart ?mannheimEnd ?kielStart ?kielEnd
LIMIT 10

Which people worked at the University of Mannheim and later started working at the University of Kiel, with their Mannheim employment ending at or before the Kiel employment began?

Show me the list of individuals who transitioned directly from being employed at the University of Mannheim to the University of Kiel, including the start and end dates of both positions.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/P108> ?var6 , ?var7 . ?var6 <http://www.wikidata.org/prop/statement/P108> <http://www.wikidata.org/entity/Q317070> ; <http://www.wikidata.org/prop/qualifier/P582> ?var3 . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } ?var7 <http://www.wikidata.org/prop/statement/P108> <http://www.wikidata.org/entity/Q156737> ; <http://www.wikidata.org/prop/qualifier/P580> ?var4 . OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } FILTER ( ( ( ?var3 <= ?var4 ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/P108> ?var8 . ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var9 . FILTER ( ( ( ?var10 != ?var6 ) || ?var7 ) ) . FILTER ( ( ( ?var9 >= ?var3 ) ) ) . FILTER ( ( ( ?var9 < ?var4 ) ) ) . } ) ) . } LIMIT 10


Question: Airports in Germany

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?airport ?airportLabel WHERE {
  ?airport wdt:P31 wd:Q1248784 .
  ?airport wdt:P17 wd:Q183 .
  ?airport rdfs:label ?airportLabel .
  FILTER ( LANG( ?airportLabel ) = "en" )
}

What are the airports located in Germany?

List the English names of all airports in Germany.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . ?var1 ?var2 <http://www.wikidata.org/entity/Q183> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What is the English label for the position of President of the United States?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?positionLabel WHERE {
  wd:Q6279 wdt:P39 wd:Q11696 .
  wd:Q11696 rdfs:label ?positionLabel .
  FILTER ( LANG( ?positionLabel ) = "en" )
}

Does Joe Biden hold the position of President of the United States?

Show the English name of the office held by Joe Biden that is President of the United States.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2371629> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: What are the governments and cabinets of Canada and Italy?

SELECT ?country ?countryLabel ?government ?governmentLabel WHERE {  VALUES ?country { wd:Q38 wd:Q16 }  ?government wdt:P31/wdt:P279* wd:Q7188 ;            wdt:P1001 ?country .  ?country rdfs:label ?countryLabel .  ?government rdfs:label ?governmentLabel .  FILTER(LANG(?countryLabel) = "en")  FILTER(LANG(?governmentLabel) = "en")} ORDER BY ?country ?governmentLabel

Can you list all the government entities that apply to Canada and Italy, along with their labels?

Show me the official governments and cabinets of Canada and Italy as recorded in Wikidata.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 ?var5Label ?var6 ?var6Label WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q38> ) ( <http://www.wikidata.org/entity/Q16> ) } ?var5 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7188> ; <http://www.wikidata.org/prop/direct/P1001> ?var1 . OPTIONAL { ?var5 ( <http://www.wikidata.org/prop/direct/P527> |^ <http://www.wikidata.org/prop/direct/P361> ) ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Japanese labels for volcanic landforms and their subclasses in Wikidata.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  {
    ?item wdt:P31 wd:Q29025902 .
  } UNION {
    ?item wdt:P279 * wd:Q29025902 .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "ja")
}

What are the Japanese names for volcanic landforms and their subtypes?

Show me all Japanese-labeled entities that are either instances of or subclasses of volcanic landform.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15943455> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ja" ) ) ) . }


Question: Is there a Wikidata entity with GND ID 1066833095?

Does the German National Library ID 1066833095 correspond to any person or organization in Wikidata?

Confirm if the GND identifier 1066833095 is registered in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "1066833095". }


Question: English label and description of the Great Russian Encyclopedia entry with ID 2334183

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P2924 "2334183" . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?item schema:description ?description . FILTER(LANG(?description) = "en") } }

What is the English name and description of the entry in the Great Russian Encyclopedia Online with ID 2334183?

Show me the English label and description for the Great Russian Encyclopedia Online entry identified by 2334183.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "2632168". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Members of the 18th German Bundestag with their birth dates and political party affiliations.

SELECT ?member ?positionStmt ?memberLabel ?affiliationLabel ?birthDate ?startDate ?endDate WHERE { ?member p:P39 ?positionStmt . ?positionStmt pq:P2937 wd:Q15081430 . OPTIONAL { ?positionStmt pq:P580 ?startDate . } MINUS { ?positionStmt pq:P582 ?endDate . } ?member rdfs:label ?memberLabel . FILTER (LANG(?memberLabel) = "en") OPTIONAL { ?member wdt:P569 ?birthDate . } OPTIONAL { ?member p:P1416 ?affStmt . ?affStmt ps:P1416 ?affiliation . ?affiliation rdfs:label ?affiliationLabel . MINUS { ?affStmt pq:P582 ?endDate . } FILTER (LANG(?affiliationLabel) = "en") } }

Who were the members of the 18th German Bundestag, and what are their birth dates and party affiliations?

List all members of the 18th German Bundestag, including their names, dates of birth, and political party affiliations, excluding those whose terms have ended.

SELECT ?var1 ?var2 ?var3Label ?var4Label ?var5 ?var6 ?var7 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q15081430> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . } MINUS { ?var2 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P1416> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . MINUS { ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: What are some examples of volcanic landforms?

SELECT ?volcanicLandform ?volcanicLandformLabel WHERE { ?volcanicLandform wdt:P31 wd:Q29025902 . ?volcanicLandform rdfs:label ?volcanicLandformLabel . FILTER(LANG(?volcanicLandformLabel) = "en") } LIMIT 100

Can you list the English names of all known volcanic landforms?

Which geographic features on Earth are classified as volcanic landforms?

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,it". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3931950> . } LIMIT 100


Question: What are all the types of volcanic landforms?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?subclass WHERE {
  ?subclass wdt:P279 * wd:Q29025902 .
}

Can you list all subclasses of volcanic landform in Wikidata?

Show me the hierarchy of volcanic landform types, including all subtypes like caldera and volcanic island.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q4638724> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: What are the names of the villages in Punung District, Indonesia?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?village ?label WHERE {
  ?village wdt:P31 wd:Q26211545 .
  ?village wdt:P131 wd:Q10779193 .
  ?village rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 100

List the English-labeled villages that are part of the Punung District.

Which administrative villages are located in Punung, East Java?

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q26211545> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q10779193> . } LIMIT 100


Question: What is the English label and description of the institution with ISNI 0000000405014057?

SELECT ?item ?label ?description WHERE { ?item wdt:P213 "0000000405014057" . OPTIONAL { ?item rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Find the name and description in English of the organization identified by the ISNI number 0000000405014057.

Which court has the ISNI 0000000405014057, and what is its official name and description in English?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P213> "0000000405014057". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List 101 people who play rugby.

SELECT ?item ?statement WHERE { ?item p:P641 ?statement . ?statement ps:P641 wd:Q5378 . } LIMIT 101

Who are 101 athletes that participate in rugby?

Show me up to 101 individuals associated with the sport of rugby.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P641> <http://www.wikidata.org/entity/Q5378> . ?var1 <http://www.wikidata.org/prop/P641> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: What Wikipedia pages are about the Chamber of Deputies of Italy?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?wikiPage ?relation WHERE {
  ?wikiPage schema:about wd:Q841424 .
}
LIMIT 10

Can you list the external links from Wikipedia and Wikinews that point to the Italian Chamber of Deputies?

Which language versions of Wikipedia have articles on the Chamber of Deputies of Italy?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/Q841424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10


Question: Spanish names of countries and their current heads of government in English.

SELECT ?countryLabel ?headOfGovernmentLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country p:P6 ?statement . ?statement ps:P6 ?head . ?head rdfs:label ?headOfGovernmentLabel . ?country rdfs:label ?countryLabel . FILTER (LANG(?countryLabel) = "es") . FILTER (LANG(?headOfGovernmentLabel) = "en") }

What are the Spanish names of countries and who are their heads of government (in English)?

List all countries with their Spanish labels and the English labels of their heads of government.

SELECT ?var1Label ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var3 <http://www.wikidata.org/prop/P6> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . }


Question: Wikipedia and other Wikimedia pages about the movie The Matrix in all languages.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?page WHERE {
  ?page schema:about wd:Q83495 .
  FILTER(STRSTARTS(STR(?page) , "http"))
}

What language versions of Wikipedia and other Wikimedia sites have articles about the film The Matrix?

List all the language-specific Wikipedia and Wikiquote pages about the 1999 film The Matrix.

SELECT ?var1 WHERE { ?var1 <http://schema.org/about> <http://www.wikidata.org/entity/Q83495> . }


Question: What are the coordinate locations of entities that are part of the New York City Subway system?

SELECT ?stationLabel ?coord WHERE { ?station wdt:P361 wd:Q7733 . ?station wdt:P625 ?coord . ?station rdfs:label ?stationLabel . FILTER(LANG(?stationLabel) = 'en') }

Show me the labels and geographic coordinates of all items associated with the New York City Subway.

Which parts of the New York City Subway have defined coordinates, and where are they located?

SELECT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P625> <http://www.wikidata.org/entity/Q7733> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } }


Question: Australian federal electoral divisions established in 1901 that are still active, and their states.

SELECT ?division ?divisionLabel ?locationLabel WHERE { ?division wdt:P31 wd:Q2713747 . ?division wdt:P571 "1901-01-01T00:00:00Z"^^xsd:dateTime . ?division wdt:P131 ?location . FILTER NOT EXISTS { ?division p:P576 ?dissolution . } ?division rdfs:label ?divisionLabel . ?location rdfs:label ?locationLabel . FILTER(LANG(?divisionLabel) = "en") . FILTER(LANG(?locationLabel) = "en") . } ORDER BY ASC(?divisionLabel)

Which current Australian House of Representatives divisions were created in 1901, and in which states are they located?

List all currently existing Australian federal electoral divisions that were established in 1901, along with the state or territory they are located in, sorted alphabetically by division name.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2713747> . ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . FILTER ( ( ( ?var3 = "1901-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/P576> ?var4 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Rivers in Russia with a Cebuano Wikipedia page but no Russian Wikipedia page.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?river ?riverName WHERE {
  ?river wdt:P31 wd:Q4022 ; wdt:P17 wd:Q159 .
  ?wikipediaArticle schema:about ?river ; schema:inLanguage "ceb" ; schema:name ?riverName .
  FILTER NOT EXISTS {
    ?otherArticle schema:about ?river ; schema:inLanguage "ru" .
  }
  FILTER ( BOUND( ?riverName ) )
}
ORDER BY ASC ( ?riverName )

Which rivers in Russia are documented in Cebuano Wikipedia but not in Russian Wikipedia?

Show me the names of rivers in Russia that have a Cebuano-language Wikipedia article but lack a Russian-language one.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q159> . FILTER ( ( EXISTS { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "ceb". } ) ) . FILTER ( ( NOT EXISTS { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "ru". } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ceb,en,ru,ba,kk,tt,uk". } } ORDER BY ASC( ?var1Label )


Question: Airports in Belgium with coordinates and GeoNames IDs

SELECT DISTINCT ?airport ?coordinates ?officialName ?geonamesId WHERE { ?airport wdt:P31 wd:Q1248784 . ?airport wdt:P17 wd:Q31 . ?airport wdt:P625 ?coordinates . OPTIONAL { ?airport wdt:P1448 ?officialName . } OPTIONAL { ?airport wdt:P1566 ?geonamesId . } }

What are the airports in Belgium, their geographic coordinates, official names, and GeoNames IDs?

List all airports located in Belgium, including their coordinates and GeoNames identifiers, along with their official names if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . ?var1 ?var3 <http://www.wikidata.org/entity/Q31> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var6 . } }


Question: List English-named theatre troupes in Switzerland and their administrative locations.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?troupe ?troupeLabel ?administrativeEntityLabel WHERE {
  ?troupe wdt:P31 wd:Q2416217 .
  ?troupe wdt:P17 wd:Q39 .
  OPTIONAL {
    ?troupe wdt:P131 ?administrativeEntity .
  }
  OPTIONAL {
    ?troupe rdfs:label ?troupeLabel .
    FILTER(LANG(?troupeLabel) = "en")
  }
  OPTIONAL {
    ?administrativeEntity rdfs:label ?administrativeEntityLabel .
    FILTER(LANG(?administrativeEntityLabel) = "en")
  }
}
LIMIT 100

What are the theatre troupes in Switzerland, and in which cities or cantons are they based?

Show me the names of theatre groups in Switzerland and where they are located administratively, using English labels.

SELECT DISTINCT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2416217> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10000


Question: What are the English and German Wikipedia pages about the movie with IMDb ID tt0133093?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipediaPage WHERE {
  ?item wdt:P345 "tt0133093" .
  ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Show me the Wikipedia articles in English and German for The Matrix.

Which language versions of Wikipedia pages are linked to the film The Matrix on Wikidata?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1174684". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label of the entity with Great Russian Encyclopedia Online ID 1864931?

SELECT ?item ?itemLabel ?description WHERE { ?item ?p ?statement . ?statement ps:P2924 "1864931" . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Which item in Wikidata has the Great Russian Encyclopedia Online ID 1864931, and what is its English name and description?

Show me the English name of the item that has the Great Russian Encyclopedia Online ID 1864931, along with its English description if available.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "1864931". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English names, Catalan causes of death, birth and death dates of U.S. presidents.

SELECT ?presidentName ?causeOfDeathLabel ?dateOfBirth ?dateOfDeath WHERE { ?president wdt:P39 wd:Q11696 . ?president wdt:P509 ?causeOfDeath . ?president wdt:P569 ?dateOfBirth . ?president wdt:P570 ?dateOfDeath . OPTIONAL { ?president rdfs:label ?presidentName . FILTER (LANG(?presidentName) = "en") . } OPTIONAL { ?causeOfDeath rdfs:label ?causeOfDeathLabel . FILTER (LANG(?causeOfDeathLabel) = "ca") . } }

What are the English names, Catalan labels for causes of death, and birth and death dates of all U.S. presidents?

Please list the U.S. presidents with their English names, the causes of their death in Catalan, and their dates of birth and death.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var5 <http://www.wikidata.org/prop/direct/P509> ?var6 . ?var5 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var5 <http://www.wikidata.org/prop/direct/P570> ?var4 . OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ca" ) ) ) . } }


Question: What are the English and Serbian Wikipedia pages for the film with IMDb ID tt0064011?

SELECT ?film ?wikipedia_page WHERE { ?film wdt:P345 "tt0064011" . ?wikipedia_page schema:about ?film . { ?wikipedia_page schema:inLanguage "en" . } UNION { ?wikipedia_page schema:inLanguage "de" . } UNION { ?wikipedia_page schema:inLanguage "sr" . } }

Which language versions of Wikipedia have articles about the movie "The Ambush" (1969)?

Show me the Wikipedia links in English, German, or Serbian for the film identified by IMDb number tt0064011.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0064011". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } UNION { ?var2 <http://schema.org/inLanguage> "sr". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What Wikidata item has the GND ID 4125655-4?

SELECT ?item WHERE { ?item wdt:P227 "4125655-4" . }

Which entity in Wikidata is identified by the German National Library ID 4125655-4?

Find the Wikidata item for the GND identifier 4125655-4.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4125655-4". } LIMIT 1


Question: Italian national legislatures with ordinal numbers, start and end dates, and predecessors.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT DISTINCT ?legislativeTerm ?legislativeTermLabel ?ordinal ?startDate ?endDate ?inception ?dissolved ?replacedBy ?countryLabel WHERE {
  ?legislativeTerm wdt:P17 wd:Q38 ; p:P31 ?statement .
  ?statement ps:P31 wd:Q15238777 ; pq:P1545 ?ordinal .
  OPTIONAL {
    ?legislativeTerm wdt:P580 ?startDate .
  }
  OPTIONAL {
    ?legislativeTerm wdt:P582 ?endDate .
  }
  OPTIONAL {
    ?legislativeTerm wdt:P571 ?inception .
  }
  OPTIONAL {
    ?legislativeTerm wdt:P576 ?dissolved .
  }
  OPTIONAL {
    ?legislativeTerm wdt:P1365 ?replacedBy .
  }
  OPTIONAL {
    ?legislativeTerm rdfs:label ?legislativeTermLabel .
    FILTER ( LANG( ?legislativeTermLabel ) = "en" )
  }
  OPTIONAL {
    wd:Q38 rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  FILTER ( CONTAINS( ?legislativeTermLabel , "Legislature of Italy" ) )
}
ORDER BY ASC ( xsd:integer ( ?ordinal ) )

What are the 18 legislative terms of the Italian Parliament, in order, and when did each begin and end?

Please list all the national legislatures of Italy, ordered by their series number, along with their start date, end date, and the legislature they replaced.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8Label WHERE { { ?var9 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/qualifier/P642> <http://www.wikidata.org/entity/Q1117578> . ?var1 <http://www.wikidata.org/prop/P31> ?var9 . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> ; <http://www.wikidata.org/prop/P31> ?var9 . } OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P1545> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1365> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) )


Question: List all legislative terms in Italy with their start and end dates, ordered by sequence number.

SELECT DISTINCT ?legislativeTerm ?legislativeTermLabel ?ordinal ?start ?end ?countryLabel WHERE { ?legislativeTerm (wdt:P31/wdt:P279*) wd:Q15238777 ; wdt:P17 wd:Q38 ; wdt:P580 ?start ; wdt:P582 ?end ; p:P31 ?statement . ?statement pq:P1545 ?ordinal . ?legislativeTerm rdfs:label ?legislativeTermLabel . wd:Q38 rdfs:label ?countryLabel . FILTER(LANG(?legislativeTermLabel) = "en") FILTER(LANG(?countryLabel) = "en") } ORDER BY ASC(xsd:integer(?ordinal))

What are the start and end dates of each legislative term in Italy, from the 1st to the 18th?

Show me the names, start dates, end dates, and sequence numbers of all legislative terms in Italy, including regional ones like Tuscany.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5Label WHERE { { ?var6 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/qualifier/P642> <http://www.wikidata.org/entity/Q1117578> . ?var1 <http://www.wikidata.org/prop/P31> ?var6 . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> ; <http://www.wikidata.org/prop/P31> ?var6 . } ?var6 <http://www.wikidata.org/prop/qualifier/P1545> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 ; <http://www.wikidata.org/prop/direct/P582> ?var4 ; <http://www.wikidata.org/prop/direct/P17> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) )


Question: Who are the U.S. presidents and what were their causes of death?

SELECT ?president ?presidentLabel ?causeOfDeath ?causeOfDeathLabel WHERE { ?president wdt:P39 wd:Q11696 . ?president wdt:P31 wd:Q5 . ?president rdfs:label ?presidentLabel . FILTER(LANG(?presidentLabel) = "en") OPTIONAL { ?president wdt:P509 ?causeOfDeath . ?causeOfDeath rdfs:label ?causeOfDeathLabel . FILTER(LANG(?causeOfDeathLabel) = "en") } } LIMIT 100

List U.S. presidents with their causes of death in English

Show me the names of all U.S. presidents who have died and the medical or other causes of their death, with labels in English

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P509> ?var2 . } } LIMIT 100


Question: What are the ISNI, VIAF, ZooBank ID, and other identifiers for the entomologist Dwight M. DeLong, as linked on Species Wikidata?

SELECT ?person ?species_page ?isni ?viaf ?image ?orcid ?ipni ?zoobank WHERE { ?person rdfs:label "Dwight M. DeLong"@en . ?species_page schema:about ?person ; schema:isPartOf <https://species.wikimedia.org/> . OPTIONAL { ?person wdt:P213 ?isni . } OPTIONAL { ?person wdt:P214 ?viaf . } OPTIONAL { ?person wdt:P18 ?image . } OPTIONAL { ?person wdt:P496 ?orcid . } OPTIONAL { ?person wdt:P586 ?ipni . } OPTIONAL { ?person wdt:P2006 ?zoobank . } }

Who is Dwight M. DeLong, and what are his academic identifiers (like ISNI, VIAF, and ZooBank ID) associated with his profile on Species Wikidata?

Please retrieve the VIAF ID, ISNI, and ZooBank ID for Dwight M. DeLong, along with any image or ORCID linked from Species Wikidata.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "D M Delong"@en . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://species.wikimedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P586> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2006> ?var8 . } }


Question: What properties are most commonly used to link entities to the football position "midfielder"?

SELECT ?property ?propertyLabel ?count WHERE { { SELECT ?property ( COUNT(*) AS ?count ) WHERE { ?item ?p wd:Q193592 . ?property wikibase:directClaim ?p . } GROUP BY ?property HAVING (?count > 1) } ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } ORDER BY DESC(?count)

Which properties are used more than once to indicate that someone is a midfielder in Wikidata, and how often are they used?

List the properties that connect entities to the midfielder role, sorted by how frequently they are used, along with their English labels and usage counts.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q193592> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: What are the names of all political parties in Italy?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?party ?partyLabel WHERE {
  ?party wdt:P31 wd:Q7278 ; wdt:P17 wd:Q38 .
  ?party rdfs:label ?partyLabel .
  FILTER(LANG(?partyLabel) = "en")
}

List the English labels of political parties that are based in Italy.

Which political parties exist in Italy according to Wikidata?

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7278> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } }


Question: Humans who held a position with both end date and latest date qualifiers.

SELECT ?person ?personLabel ?endTime ?latestDate WHERE { ?person wdt:P31 wd:Q5 . ?person p:P39 ?statement . ?statement pq:P582 ?endTime . ?statement pq:P1326 ?latestDate . OPTIONAL { ?person rdfs:label ?personLabel FILTER(LANG(?personLabel) = "en") } } LIMIT 10

Which humans have positions that ended on a specific date and also have a latest associated date recorded?

Show me the names of people who held a position, along with the end date and the latest date associated with that position.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P569> ?var4 . ?var4 <http://www.wikidata.org/prop/qualifier/P582> ?var2 . ?var4 <http://www.wikidata.org/prop/qualifier/P1326> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: What is the English name, description, and image of the river Nissan in southern Sweden?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?description ?image WHERE {
  wd:Q958359 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  wd:Q958359 schema:description ?description .
  FILTER ( LANG( ?description ) = "en" ) .
  OPTIONAL {
    wd:Q958359 wdt:P18 ?image .
  }
}

English label, description, and image of the river Nissan (Q958359).

Can you show me the English name and description of the river Nissan, along with its image from Wikimedia Commons?

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q958359> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q958359> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q958359> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: Underground stations near Berlin Hauptbahnhof within 2 km

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?station ?stationLabel ?coord WHERE {
  wd:Q1097 wdt:P625 ?centerCoord .
  ?station wdt:P625 ?coord .
  ?station wdt:P31 wd:Q22808403 .
  ?station rdfs:label ?stationLabel .
  FILTER ( LANG( ?stationLabel ) = "en" ) FILTER ( geof:latitude ( ?coord ) >= 52.507083 ) FILTER ( geof:latitude ( ?coord ) <= 52.543083 ) FILTER ( geof:longitude ( ?coord ) >= 13.339789 ) FILTER ( geof:longitude ( ?coord ) <= 13.398989 )
}
LIMIT 100

What are the underground stations located within 2 kilometers of Berlin Hauptbahnhof?

List the English-named underground stations within a 2-kilometer radius of Berlin Hauptbahnhof, along with their coordinates.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "2". } FILTER ( ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q928830> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What properties are used to describe the Seoul Metropolitan Subway Line 1, and what are their English labels and descriptions?

SELECT ?property ?propertyLabel ?propertyDescription WHERE { wd:Q20280 ?property ?value . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . ?propertyItem schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Show me the English labels and descriptions of all properties linked to Seoul Subway Line 1 in Wikidata.

Which properties describe Seoul Metropolitan Subway Line 1, and what do they mean in English?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q20280> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Humans who are members of political parties and their party names.

SELECT ?person ?personLabel ?partyLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P102 ?party . ?person rdfs:label ?personLabel . ?party rdfs:label ?partyLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?partyLabel) = "en") } LIMIT 100

Which humans are members of political parties, and what parties do they belong to?

List 100 humans along with the political parties they are affiliated with, using English labels.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q729> . ?var1 <http://www.wikidata.org/prop/direct/P102> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } } LIMIT 100


Question: Guangzhou Metro patronage and image

SELECT ?item ?itemLabel ?image WHERE { ?item wdt:P3872 ?patronage . FILTER(?patronage >= 2800000000 && ?patronage <= 2810000000) OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

Which public transit system has approximately 2.8 billion annual riders, and what is its image on Wikimedia Commons?

Show me the image and name of the metro system with around 2.8 billion annual passengers.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3872> "+280600000."^^<http://www.w3.org/2001/XMLSchema#decimal> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Is there a Wikidata item associated with the GND ID 4053559-9?

Does the German National Library ID 4053559-9 correspond to any entity in Wikidata?

Does the entity with GND identifier 4053559-9 exist in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4053559-9". }


Question: Current UK MPs with Twitter accounts and their political parties.

SELECT ?mp ?mpLabel ?twitter ?party ?partyLabel WHERE { ?mp wdt:P39 wd:Q126063447 . ?mp wdt:P2002 ?twitter . ?mp wdt:P102 ?party . ?mp rdfs:label ?mpLabel . ?party rdfs:label ?partyLabel . FILTER(LANG(?mpLabel) = "en") FILTER(LANG(?partyLabel) = "en") } LIMIT 10

Who are the current members of the UK House of Commons who have Twitter accounts, and which parties do they belong to?

List the names, Twitter usernames, and political parties of current UK MPs.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q16707842> . ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P102> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1448> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List all transmitter masts in Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?transmitterMast WHERE {
  ?transmitterMast wdt:P31 wd:Q1068623 .
}

What are some examples of transmitter masts?

Can you show me all the known structures that are instances of a transmitter mast?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1068623> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } }


Question: List all species in the genus Pseudotsuga with their scientific names and images.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?species ?scientificName ?image WHERE {
  ?species wdt:P171 wd:Q158771 .
  ?species wdt:P225 ?scientificName .
  OPTIONAL {
    ?species wdt:P18 ?image .
  }
}
ORDER BY ASC ( ?scientificName )

What are the scientific names of all species that belong to the genus Pseudotsuga, and do any of them have images available?

Show me the complete list of Pseudotsuga species, sorted alphabetically by their scientific names, along with any associated images from Wikimedia Commons.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q158771> . ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } ORDER BY ASC( ?var2 )


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt0133093?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipedia_page ?imdb_id WHERE {
  ?movie wdt:P345 ?imdb_id .
  ?wikipedia_page schema:about ?movie .
  {
    ?wikipedia_page schema:inLanguage "en" .
  } UNION {
    ?wikipedia_page schema:inLanguage "de" .
  }
  FILTER ( ?imdb_id = "tt0133093" )
}

Show me the Wikipedia and Wikiquote links in English and German for The Matrix, along with its IMDb identifier.

Which language versions of Wikipedia pages are linked to the film The Matrix on Wikidata, and what is its IMDb ID?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1843097". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of the person with SNAC ARK ID w69k4h40

SELECT ?image WHERE { ?person wdt:P3430 "w69k4h40" . OPTIONAL { ?person wdt:P18 ?image . } }

What is the image of Pat McCarran, identified by the SNAC ARK ID w69k4h40?

Please show the Wikimedia Commons image associated with the SNAC ARK ID w69k4h40.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w69k4h40". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Living members of the European Parliament, their electoral districts, birth dates, and start dates, ordered by district name.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?districtLabel ?birthDate ?startDate WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person p:P39 ?positionStatement .
  ?positionStatement ps:P39 wd:Q27169 .
  OPTIONAL {
    ?positionStatement pq:P768 ?district .
    ?district rdfs:label ?districtLabel .
    FILTER(LANG(?districtLabel) = "en")
  }
  OPTIONAL {
    ?positionStatement pq:P580 ?startDate .
  }
  ?person wdt:P569 ?birthDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  .
  FILTER(NOT EXISTS {
    ?person wdt:P570 ?deathDate .
  })
  .
  FILTER(NOT EXISTS {
    ?positionStatement pq:P582 ?endDate .
  })
  .
  FILTER(NOT EXISTS {
    ?positionStatement pq:P1366 ?replacedBy .
  })
}
ORDER BY DESC(?districtLabel)

Who are the currently serving living members of the European Parliament, what electoral districts do they represent, when were they born, and when did their terms begin?

List all currently active European Parliament members who are still alive, along with their electoral districts, dates of birth, and the start dates of their terms, sorted by district name in descending order.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q13217683> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P768> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } ) ) . FILTER ( ( NOT EXISTS { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } ) ) . FILTER ( ( NOT EXISTS { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var8 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2Label )


Question: All tributaries of the Mississippi River, including indirect ones.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?tributary ?label WHERE {
  wd:Q1497 wdt:P974 * ?tributary .
  ?tributary rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

What rivers flow into the Mississippi River, either directly or through other tributaries?

List the English names of all rivers that are tributaries of the Mississippi River, even if they flow into it via other rivers.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q1497> <http://www.wikidata.org/prop/direct/P974> * ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Does the TV series Das Arsenal have a VIAF ID of 311358401?

Is there a Wikidata item with the VIAF identifier 311358401?

Confirm if the Virtual International Authority File ID 311358401 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "311358401". }


Question: List all railway stations in Switzerland with their IBNR identifiers.

SELECT ?station ?stationLabel ?ibnr WHERE { ?station wdt:P31 wd:Q55488 . ?station wdt:P17 wd:Q39 . OPTIONAL { ?station wdt:P954 ?ibnr . } ?station rdfs:label ?stationLabel . FILTER(LANG(?stationLabel) = "en") }

What are the names and IBNR codes of all railway stations in Switzerland?

Please provide the English names and IBNR IDs of every railway station located in Switzerland.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P954> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,fr,it". } }


Question: Italian Chamber of Deputies ID r503, English label and description

SELECT ?deputy ?deputyLabel ?description WHERE { ?deputy wdt:P1341 "r503" . OPTIONAL { ?deputy rdfs:label ?deputyLabel . FILTER (LANG(?deputyLabel) = "en") } OPTIONAL { ?deputy schema:description ?description . FILTER (LANG(?description) = "en") } }

Who is the Italian politician with the Chamber of Deputies ID r503, and what is their English label and description?

Please provide the English name and description of the person identified by r503 in the Italian Chamber of Deputies.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1341> "r503". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Mountains in Slovakia with their English names

SELECT ?var1 ?var1Label ?var3 WHERE { ?var1 wdt:P31 wd:Q8502 . ?var1 wdt:P17 wd:Q214 . OPTIONAL { ?var1 wdt:P242 ?var3 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } LIMIT 500

What are the names of mountains located in Slovakia in English?

List the English names of all mountains in Slovakia, along with any available locator map images.

SELECT ?var1 ?var2Label ?var3 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q8502> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P242> ?var3 . } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q214> . } LIMIT 500


Question: Find the ISNI, VIAF, ORCID, IPNI, ZooBank ID, and image for Baliah Vasantharaj David.

SELECT ?label ?isni ?viaf ?orcid ?ipni ?zoobank ?image WHERE { wd:Q106409398 rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { wd:Q106409398 wdt:P213 ?isni } OPTIONAL { wd:Q106409398 wdt:P214 ?viaf } OPTIONAL { wd:Q106409398 wdt:P496 ?orcid } OPTIONAL { wd:Q106409398 wdt:P586 ?ipni } OPTIONAL { wd:Q106409398 wdt:P2006 ?zoobank } OPTIONAL { wd:Q106409398 wdt:P18 ?image } }

What are the academic identifiers (ISNI, VIAF, etc.) and image of the Indian entomologist Baliah Vasantharaj David?

Please provide the ISNI and VIAF numbers for Baliah Vasantharaj David, along with any available image and other identifiers like ORCID or IPNI.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "B V David"@en . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://species.wikimedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P586> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2006> ?var8 . } }


Question: What rivers flow into the Pend Oreille River, and what lakes or rivers feed into those rivers?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?inflow ?inflowLabel ?receiving_river ?receiving_riverLabel ?basin ?basinLabel WHERE {
  ?receiving_river wdt:P403 wd:Q270499 .
  ?receiving_river(wdt:P31 / wdt:P279 *) wd:Q355304 .
  ?receiving_river wdt:P4614 ?basin .
  ?inflow wdt:P200 ?receiving_river .
  ?inflow rdfs:label ?inflowLabel .
  ?receiving_river rdfs:label ?receiving_riverLabel .
  ?basin rdfs:label ?basinLabel .
  FILTER(LANG(?inflowLabel) = "en" && LANG(?receiving_riverLabel) = "en" && LANG(?basinLabel) = "en")
}

Show the chain of water flow from tributaries to the Pend Oreille River, including their drainage basins.

Which inflows feed into rivers that drain into the Pend Oreille River, and what basin do they belong to?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P403> * <http://www.wikidata.org/entity/Q270499> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var3 <http://www.wikidata.org/prop/direct/P4614> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P200> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P4614> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the largest islands in Mauritania by area, and what are their coordinates?

SELECT DISTINCT
  ?island
  ?area
  ?latitude
  ?longitude
WHERE {
  ?island (wdt:P31/wdt:P279*) wd:Q23442 .
  ?island wdt:P17 wd:Q1025 .

  OPTIONAL {
    ?island wdt:P625 ?coord .
    BIND(geof:latitude(?coord) AS ?latitude)
    BIND(geof:longitude(?coord) AS ?longitude)
  }

  OPTIONAL {
    ?island p:P2046 / psv:P2046 ?areaStmt .
    ?areaStmt wikibase:quantityAmount ?area .
  }

  FILTER(BOUND(?area))
}
ORDER BY DESC(?area)
LIMIT 10

Can you list islands in Mauritania with their area and geographic coordinates, sorted from largest to smallest?

Show me the top 10 islands in Mauritania by area, along with their latitude and longitude.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var5Label ?var6 ?var7 ?var7Label ?var8 ?var9 ?var9Label ?var10 ?var11Label ?var12 ?var13 ?var13Label ?var14 ?var14Label ?var15 ?var15Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23442> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1025> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var10 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,es,se,sv,it,ru". } } ORDER BY DESC( ?var4 )


Question: Scottish football players who do not represent another country in sports.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P106 wd:Q937857 .
  ?person wdt:P27 wd:Q22 . MINUS {
    ?person wdt:P1532 ?sportCountry .
  }
}
LIMIT 300

Who are the association football players from Scotland that do not have a different sporting nationality?

List all human association football players who are citizens of Scotland and have no specified country for sport.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q22> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1532> _:b1 . } } LIMIT 300


Question: What lakes or waterbodies flow into tributaries of the Deschutes River?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?waterbody ?waterbodyLabel ?basin ?basinLabel ?tributary ?tributaryLabel WHERE {
  ?tributary wdt:P403 wd:Q387103 .
  ?tributary ( wdt:P31 / wdt:P279 * ) wd:Q355304 .
  ?tributary wdt:P4614 ?basin .
  ?waterbody wdt:P201 ?tributary .
}

Show me waterbodies that outflow into watercourses draining into the Deschutes River, along with their drainage basins and the tributaries they feed.

Which bodies of water feed into streams that flow into the Deschutes River in Oregon?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P403> * <http://www.wikidata.org/entity/Q387103> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var3 <http://www.wikidata.org/prop/direct/P4614> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P201> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P4614> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What properties are used to link entities to the position "Member of the Parliament of Bangladesh"?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?prop ?propLabel ?propDescription WHERE {
  ?item ?stmt wd:Q13058882 .
  FILTER ( STRSTARTS( STR( ?stmt ) , "http://www.wikidata.org/prop/statement/" ) ) BIND( IRI( REPLACE( STR( ?stmt ) , "http://www.wikidata.org/prop/statement/" , "http://www.wikidata.org/entity/" ) ) AS ?prop ) .
  ?prop a wikibase:Property .
  ?prop rdfs:label ?propLabel .
  ?prop schema:description ?propDescription .
  FILTER ( LANG( ?propLabel ) = 'en' ) .
  FILTER ( LANG( ?propDescription ) = 'en' ) .
}

Which Wikidata properties have "Member of the Parliament of Bangladesh" as their object, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that are used to assign the position "Member of the Parliament of Bangladesh" to entities.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q21272758> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Volcanic landform instances and their names

SELECT ?item ?itemLabel WHERE { ?item p:P31 ?statement . ?statement ( ps:P31 / wdt:P279* ) wd:Q29025902 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What are the named entities that are examples of volcanic landforms or their subclasses?

List all named volcanic features such as volcanoes, craters, and mud volcanoes that are classified under volcanic landforms.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P31> ?var2 . ?var2 ( <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/11410> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Theatre buildings in Italy and their administrative locations.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?theatre ?theatreLabel ?administrativeEntityLabel WHERE {
  ?theatre wdt:P31 wd:Q24354 .
  ?theatre wdt:P17 wd:Q38 .
  ?theatre wdt:P131 ?administrativeEntity .
  ?theatre rdfs:label ?theatreLabel .
  ?administrativeEntity rdfs:label ?administrativeEntityLabel .
}
LIMIT 1000

What are the theatre buildings in Italy, and in which cities or regions are they located?

List all theatre buildings in Italy along with the administrative entities they are located in.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q24354> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,it". } } LIMIT 1000


Question: Geographical features in Greater Fatra mountain range and their continents

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label ?var3 WHERE {
  ?var1 wdt:P4552 wd:Q778954 .
  OPTIONAL {
    ?var1 wdt:P30 ?var3 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}
LIMIT 100

What are the names of the geographical features located in the Greater Fatra mountain range, and which continents are they part of?

List all the features in the Greater Fatra mountain range in Slovakia along with their English names and the continents they belong to.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4552> <http://www.wikidata.org/entity/Q778954> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sk". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P30> ?var3 . } } LIMIT 100


Question: Football stadiums in Argentina with their coordinates and images.

SELECT ?venue ?venueLabel ?image ?coordinates WHERE { ?venue wdt:P31 wd:Q1154710 . ?venue wdt:P17 wd:Q414 . ?venue wdt:P625 ?coordinates . OPTIONAL { ?venue wdt:P18 ?image . } ?venue rdfs:label ?venueLabel . FILTER(LANG(?venueLabel) = "en") }

What are the names, locations, and images of football stadiums in Argentina?

List all association football venues in Argentina, including their English names, geographic coordinates, and any available Wikimedia Commons images.

SELECT ?var1 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1154710> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q414> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } }


Question: What are the subclasses of volcanic landform?

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q29025902 . } LIMIT 1000

List all types of landforms that are classified as volcanic landforms.

Which geological features are considered specific forms of volcanic landforms?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q27902549> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: What is one edition of the Super Bowl that took place in the United States?

SELECT ?superBowlEdition ?label WHERE { ?superBowlEdition wdt:P31 wd:Q32096 . ?superBowlEdition wdt:P17 wd:Q30 . ?superBowlEdition rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ?superBowlEdition LIMIT 1

Which Super Bowl games are held in the United States?

Show me a Super Bowl event that is associated with the United States as its host country.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q32096> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q30> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the English label and description of the mathematical concept with Great Russian Encyclopedia Online ID 2711571?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P2924 "2711571" . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

What is called "primitive root modulo n" in English, and what does it mean according to the Great Russian Encyclopedia?

Please provide the English name and definition of the concept identified by ID 2711571 in the old version of the Great Russian Encyclopedia online.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "2711571". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Tributaries of the Umpqua River and their drainage basins

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?tributary ?tributaryLabel ?basin ?basinLabel WHERE {
  ?tributary wdt:P403 wd:Q1326803 .
  ?tributary wdt:P31 / wdt:P279 * wd:Q355304 .
  OPTIONAL {
    ?tributary wdt:P4614 ?basin .
  }
  OPTIONAL {
    ?tributary rdfs:label ?tributaryLabel .
    FILTER(LANG(?tributaryLabel) = "en")
  }
  OPTIONAL {
    ?basin rdfs:label ?basinLabel .
    FILTER(LANG(?basinLabel) = "en")
  }
}

Which rivers and creeks flow into the Umpqua River, and what drainage basins do they belong to?

List the English names of all watercourses that drain into the Umpqua River along with their drainage basins.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P403> * <http://www.wikidata.org/entity/Q1326803> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P4614> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English name, birth date, and death date of Mitsuyo Maeda

SELECT ?label ?birthDate ?deathDate WHERE { BIND( wd:Q2456537 AS ?person ) . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?label . FILTER(LANG(?label) = "en") }

What is the birth and death date of Mitsuyo Maeda, and what is his name in English?

Please provide the English name, date of birth, and date of death for the Japanese judoka Mitsuyo Maeda.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2456537> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }