Question: Lists of association football players with qualifiers like league or occupation.

SELECT ?list (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { ?list p:P360 ?statement . ?statement ps:P360 wd:Q937857 . OPTIONAL { ?statement pq:P118 ?p118 . BIND(pq:P118 AS ?qualifierProperty) } OPTIONAL { ?statement pq:P106 ?p106 . BIND(pq:P106 AS ?qualifierProperty) } } GROUP BY ?list LIMIT 101

Which lists of association football players include additional details such as the league or occupation?

Show me the lists of association football players and indicate if they are qualified by a league or occupation.

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


Question: What are the entities linked to the Qur’an, and what images are available for the Qur’an and those entities?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value ?imageQuran ?imageValue WHERE {
  wd:Q428 ?property ?value .
  OPTIONAL {
    wd:Q428 wdt:P18 ?imageQuran .
  }
  OPTIONAL {
    ?value wdt:P18 ?imageValue .
  }
  FILTER ( isIRI( ?value ) )
}
ORDER BY ?property

Show me all the entities associated with the Qur’an and their images, along with the Qur’an’s own image.

List the property-value pairs for the Qur’an where the value is an entity, and include any images of the Qur’an or its associated entities.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { { BIND ( <http://www.wikidata.org/entity/Q428> AS ?var1 ). ?var1 ?var6 ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 ?var8 ?var6 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var7 ) , "string1" ) ) ) . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string2" ) ) ) . } UNION { BIND ( "EFFBD8" AS ?var5 ). <http://www.wikidata.org/entity/Q428> ?var6 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 ?var8 ?var6 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he". } }


Question: Fictional cats in media with English names

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 ?cat ?catLabel WHERE {
  ?cat wdt:P31 wd:Q146 .
  ?cat rdfs:label ?catLabel .
  FILTER ( LANG( ?catLabel ) = "en" )
}

What are the English names of fictional cats in Wikidata?

List the English labels of all entities classified as house cats in Wikidata.

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


Question: What is the Twitter username for Agnes Wold on Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "AgnesWold"
  }
}
ORDER BY ASC ( ?sitelinks )

Can you find the Wikidata item for the Twitter handle "AgnesWold" and list it in order of how many Wikipedia links it has?

Which entity on Wikidata has the Twitter username "AgnesWold", and how many sitelinks does it have?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "MariHuup" ) ( "string2" ) ( "sagajo" ) ( "string3" ) ( "johmag67" ) ( "aunt_green" ) ( "RRasmusson" ) ( "dahbjo" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "crehbinder" ) ( "AgnesWold" ) } } ORDER BY ASC( ?var3 )


Question: Does the VIAF ID 40145193350070460511 exist in Wikidata?

Is there a Wikidata item for the person with VIAF ID 40145193350070460511?

Confirm if the Virtual International Authority File identifier 40145193350070460511 is linked to any entity in Wikidata.

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


Question: Universities in Germany with their coordinates

SELECT ?label ?coord WHERE { ?university (wdt:P31/wdt:P279*) wd:Q3918 ; wdt:P17 wd:Q183 ; wdt:P625 ?coord . ?university rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the names and locations of universities in Germany?

List all universities in Germany and their geographic coordinates in English.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3918> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> ; <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } }


Question: List of airports and their subclasses in English

SELECT DISTINCT ?airport ?airportLabel WHERE { ?airport (wdt:P31/wdt:P279*) wd:Q1248784 . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") } LIMIT 50

What are some airports and airport subclasses with English labels?

Show me up to 50 airports and related types with their English names.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1248784> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ms". } } ORDER BY DESC( ?var2 ) LIMIT 50


Question: What is the English label and description of the language with UNESCO Atlas ID 2055?

SELECT ?language ?label ?description WHERE { ?language wdt:P2355 "2055" . ?language rdfs:label ?label . FILTER (LANG(?label) = "en") . OPTIONAL { ?language schema:description ?description . FILTER (LANG(?description) = "en") . } }

Which language is identified by the UNESCO ID 2055, and what is its English description?

Tell me the name and description in English of the endangered language with UNESCO ID 2055.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2355> "2055". 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: Who are some people whose occupation, field of work, or position held is sports commentator?

SELECT ?person ?personLabel WHERE { ?person (wdt:P106|wdt:P101|wdt:P39) wd:Q2986228 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } ORDER BY ?personLabel LIMIT 100

List notable individuals associated with sports commentary as their job or role.

What are the names of people who work as sports commentators, either as their main occupation, field of expertise, or held position?

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> */ <http://www.wikidata.org/prop/direct/P101> */ <http://www.wikidata.org/prop/direct/P39> *) <http://www.wikidata.org/entity/Q2986228> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 2000


Question: What railway stations are connected to lines with sRGB color codes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?station ?stationLabel ?lineColor WHERE {
  ?station(wdt:P81 / wdt:P465) ?lineColor .
  ?station rdfs:label ?stationLabel .
}

Which railway stations belong to lines that have a specific hex color assigned to them?

List all railway stations along with the color of the railway line they are on.

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


Question: What are the Spanish labels of the properties that connect Potsdam to other entities, along with the count of those entities and their Spanish labels?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?prop ( COUNT( ?obj ) AS ?count ) ( GROUP_CONCAT( ?objLabel ; SEPARATOR = ", " ) AS ?objLabels ) ?propLabel WHERE {
  wd:Q1711 ?prop ?obj .
  ?obj rdfs:label ?objLabel .
  FILTER ( LANG( ?objLabel ) = "es" ) .
  ?propItem wikibase:directClaim ?prop .
  ?propItem rdfs:label ?propLabel .
  FILTER ( LANG( ?propLabel ) = "es" ) .
}
GROUP BY ?prop ?propLabel

Spanish property labels and linked objects for Potsdam, grouped by property.

Show me all the properties of Potsdam in Spanish, how many objects each has, and what those objects are called in Spanish.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q1711> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "es" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "es" ) ) ) . } GROUP BY ?var1


Question: What teams did Yohan Cabaye play for, and when did he join each team?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 ?team ?startDate ?teamLabel WHERE {
  wd:Q1910 p:P54 ?statement .
  ?statement ps:P54 ?team .
  ?statement pq:P580 ?startDate .
  ?team rdfs:label ?teamLabel .
  FILTER ( LANG( ?teamLabel ) = "en" )
}

List the English names of the football clubs and national teams Yohan Cabaye was a member of, along with the start dates of his membership.

When did Yohan Cabaye start playing for each of the teams he represented, and what are their English names?

SELECT ?var1 ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q1910> <http://www.wikidata.org/prop/direct/P54> [ <http://www.wikidata.org/prop/qualifier/P580> ?var2 ] . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } }


Question: List all association football clubs and their names in all languages.

SELECT ?club ?label WHERE { ?club wdt:P31 wd:Q476028 . ?club rdfs:label ?label . }

What are the names of all association football clubs in Wikidata, across different languages?

Show me every football club that is an instance of an association football club, along with its label in every language it has.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q476028> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . }


Question: Who are the presidents of the United States?

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 ?person ?personLabel WHERE {
  ?person wdt:P39 wd:Q11696 .
  ?person rdfs:label ?personLabel
  FILTER(LANG(?personLabel) = 'en')
}

List all individuals who have held the office of President of the United States.

Which people have been the President of the United States according to Wikidata?

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


Question: Schools with start or end time for their use as educational institutions

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 ps: <http://www.wikidata.org/prop/statement/>
SELECT ?schoolLabel ?qualifierLabel WHERE {
  ?school p:P366 ?statement .
  ?statement ps:P366 wd:Q3914 .
  ?school rdfs:label ?schoolLabel .
  FILTER ( LANG( ?schoolLabel ) = "en" ) .
  OPTIONAL {
    {
      ?statement pq:P580 ?value .
      BIND( "start time" AS ?qualifierLabel )
    } UNION {
      ?statement pq:P582 ?value .
      BIND( "end time" AS ?qualifierLabel )
    }
  }
}
GROUP BY ?schoolLabel ?qualifierLabel
LIMIT 101

Which schools have a recorded start or end date for when they were used as schools?

Show me schools that have a known time period during which they were used as schools, along with their start or end dates.

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


Question: What images are associated with the main subjects of works written by Nowell Myres?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image WHERE {
  ?work wdt:P50 wd:Q7066638 .
  ?work wdt:P921 ?subject .
  ?subject wdt:P18 ?image .
}

Show me pictures of places or topics that are the focus of books authored by Nowell Myres.

Which Wikimedia Commons images depict the subjects of archaeological publications by Nowell Myres?

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q46722877> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q46722877> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q46722877> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: Mountains over 7000 meters tall with their first ascent details, including country, date, and climbers.

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 DISTINCT ?mountain(SAMPLE(?mountainLabelEn) AS ?mountainLabel) ?coordinates ?elevation(SAMPLE(?countryLabelEn) AS ?countryLabel)(SAMPLE(?ascentDate) AS ?date)(SAMPLE(?participantLabelEn) AS ?participantLabel) WHERE {
  ?mountain wdt:P2044 ?elevation ; wdt:P625 ?coordinates ; wdt:P793 wd:Q1194369 .
  OPTIONAL {
    ?mountain p:P793 ?ascentStatement .
    ?ascentStatement pq:P585 ?ascentDate ; pq:P710 ?participant .
    ?participant rdfs:label ?participantLabelEn .
    FILTER(LANG(?participantLabelEn) = "en")
  }
  ?mountain p:P17 ?countryStatement .
  ?countryStatement ps:P17 ?country .
  OPTIONAL {
    ?mountain rdfs:label ?mountainLabelEn .
    FILTER(LANG(?mountainLabelEn) = "en")
  }
  OPTIONAL {
    ?country rdfs:label ?countryLabelEn .
    FILTER(LANG(?countryLabelEn) = "en")
  }
  FILTER(?elevation > 7000)
}
GROUP BY ?mountain ?coordinates ?elevation
ORDER BY ASC(?mountain)
LIMIT 50

Which mountains higher than 7000 meters have had a first ascent, and who were the climbers and when did it happen?

List all mountains above 7000 meters in elevation that were first climbed, along with their location, country, and the names of the climbers and date of the first ascent.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var7 ?var8 ?var8Label WHERE { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value-normalized/P2044> / <http://wikiba.se/ontology#quantityAmount> ) ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var2 ; <http://www.wikidata.org/prop/P17> ?var5 ; <http://www.wikidata.org/prop/direct/P793> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P793> ?var9 . ?var9 <http://www.wikidata.org/prop/qualifier/P585> ?var7 . ?var9 <http://www.wikidata.org/prop/qualifier/P710> ?var8 . } FILTER ( ( ( ?var3 > "7000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( ?var6 = <http://www.wikidata.org/entity/Q1194369> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 ) LIMIT 50


Question: What external identifiers are associated with the National University of Distance Education (UNED), and from which systems do they come?

SELECT ?propertyLabel ?externalId WHERE { wd:Q421739 ?propertyUri ?externalId . ?property wikibase:directClaim ?propertyUri . ?property wikibase:propertyType wikibase:ExternalId . ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") }

List the names of the external ID systems and their corresponding IDs for UNED.

Which institutions and databases provide external identifiers for the Spanish university UNED?

SELECT ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q421739> ?var4 ?var3 . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#ExternalId> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: Female alumni of the Central School of Speech and Drama and their birthplaces with coordinates.

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 ?personLabel ?birthPlaceLabel ?coordinates WHERE {
  ?person wdt:P69 wd:Q981195 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P19 ?birthPlace .
  ?birthPlace wdt:P625 ?coordinates .
  ?person rdfs:label ?personLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?birthPlaceLabel) = "en")
}

Who are the female graduates of the Central School of Speech and Drama, where were they born, and what are the geographic coordinates of their birthplaces?

List the names of women who studied at the Central School of Speech and Drama, along with their birth locations and the GPS coordinates of those locations.

SELECT ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q981195> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Football players named Jardel, their clubs in English, and when they joined or left.

PREFIX p: <http://www.wikidata.org/prop/>
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 ps: <http://www.wikidata.org/prop/statement/>
SELECT DISTINCT ?player ?club ?startDate ?endDate WHERE {
  ?player wdt:P3046 ?foraDeJogoId ; p:P54 ?membershipStatement ; rdfs:label ?playerLabel .
  FILTER ( REGEX( ?playerLabel , "Jardel" , "i" ) ) .
  ?membershipStatement ps:P54 ?club .
  ?club rdfs:label ?clubLabel .
  FILTER ( LANG( ?clubLabel ) = "en" ) .
  OPTIONAL {
    ?membershipStatement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?membershipStatement pq:P582 ?endDate .
  }
}
ORDER BY DESC ( ?startDate )

Which football clubs did players named Jardel play for, and during what periods, sorted by most recent start date?

List all English-named football clubs associated with players whose names contain "Jardel", along with the start and end dates of their memberships, ordered from most recent to oldest.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3046> ?var5 ; <http://www.wikidata.org/prop/P54> ?var6 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . FILTER ( ( REGEX ( ?var7 , "Jardel" ) ) ) . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } ?var6 ( <http://www.wikidata.org/prop/statement/P54> / <http://www.w3.org/2000/01/rdf-schema#label> ) ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } ORDER BY DESC( ?var3 )


Question: What entity has the IMDb ID "tt0325191"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P345 "tt0325191" .
}

Which Wikidata item is linked to the IMDb identifier tt0325191?

Can you find the item in Wikidata that corresponds to the IMDb ID tt0325191?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0325191". }


Question: List English-named railway stations in the United States with their Wikipedia pages and sample images.

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/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?station ?stationLabel ?wikipediaPage(SAMPLE(?img) AS ?imageSample) WHERE {
  ?station wdt:P31 wd:Q55488 .
  ?station wdt:P17 wd:Q30 .
  OPTIONAL {
    ?station wdt:P18 ?img .
  }
  OPTIONAL {
    ?wikipediaPage schema:about ?station .
    ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> .
  }
  ?station rdfs:label ?stationLabel .
  FILTER(LANG(?stationLabel) = 'en')
}
GROUP BY ?station ?stationLabel ?wikipediaPage

What are the railway stations in the United States that have English labels, Wikipedia articles, and images on Wikimedia Commons?

Please provide a list of U.S. railway stations, including their English names, links to their English Wikipedia pages, and one representative image each.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) ?var4 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/Q234180> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } GROUP BY ?var1 ?var1Label ?var2 ?var4


Question: Does Benjamin D. Santer have the VIAF ID 45030633?

Is there a person in Wikidata with the VIAF identifier 45030633?

Confirm if the VIAF ID 45030633 is assigned to any entity in Wikidata.

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


Question: What is the location and country of the airport with IATA code PAM?

SELECT ?airport ?airportLabel ?country ?coordinates WHERE { ?airport wdt:P238 "PAM" . ?airport wdt:P17 ?country . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

Where is Tyndall Air Force Base located, and which country is it in?

Give me the name, country, and geographic coordinates of the airport that uses the IATA code PAM.

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


Question: Did Angela Merkel serve as Chancellor of Germany?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q567 wdt:P39 wd:Q4970706 .
}

Is it true that Angela Merkel held the office of Federal Chancellor?

What positions did Angela Merkel hold, and was one of them Chancellor of Germany?

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


Question: What works are about two distinct topics related to classical antiquity or humanism?

SELECT DISTINCT ?topic1 ?topic1Label ?topic2 ?topic2Label WHERE { ?work wdt:P921 ?topic1 , ?topic2 . FILTER ( ?topic1 != ?topic2 ) { ?topic1 (wdt:P279*) wd:Q486761 . } UNION { ?topic1 (wdt:P279*) wd:Q46158 . } { ?topic2 (wdt:P279*) wd:Q486761 . } UNION { ?topic2 (wdt:P279*) wd:Q46158 . } ?topic1 rdfs:label ?topic1Label . ?topic2 rdfs:label ?topic2Label . FILTER(LANG(?topic1Label) = "en") FILTER(LANG(?topic2Label) = "en") }

Which pairs of topics, such as humanism and classical antiquity, are main subjects of the same work?

Find items that have two different main subjects, both connected to the themes of the journal Gymnasium — classical antiquity and humanism.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q473664> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q473664> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q473664> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q473664> != ?var1 ) && ( <http://www.wikidata.org/entity/Q473664> != ?var2 ) && ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What Wikidata item has the IMDb ID tt0734706?

SELECT ?movie WHERE { ?movie wdt:P345 "tt0734706" . } LIMIT 1

Which movie on Wikidata is identified by the IMDb identifier tt0734706?

Find the Wikidata entry for the movie with IMDb ID tt0734706.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0734706". } LIMIT 1


Question: List airports and their countries.

SELECT ?airport ?country WHERE { ?airport wdt:P31 wd:Q1248784 . OPTIONAL { ?airport wdt:P17 ?country . } } LIMIT 500

Show me a list of airports along with the countries they are in.

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


Question: List of house cats with their names

SELECT ?cat ?catLabel WHERE { ?cat wdt:P31 wd:Q146 . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") }

What are the names of all house cats in Wikidata?

Show me the English names of all entities that are instances of house cats.

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


Question: Teams and athletes who play a sport and compete in a league, along with their sport and league names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?entity ?entityLabel ?sport ?sportLabel ?league ?leagueLabel WHERE {
  ?entity wdt:P641 ?sport .
  ?entity wdt:P118 ?league .
  ?entity rdfs:label ?entityLabel .
  ?sport rdfs:label ?sportLabel .
  ?league rdfs:label ?leagueLabel .
  FILTER(LANG(?entityLabel) = "en")
  FILTER(LANG(?sportLabel) = "en")
  FILTER(LANG(?leagueLabel) = "en")
}
LIMIT 20

Which athletes or teams participate in both a specific sport and a league, and what are the names of the sport and league?

Show me a list of sports and leagues associated with teams or athletes, including the English names of the entities, sports, and leagues.

SELECT DISTINCT ?var1 ?var2Label ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P118> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P641> ?var1 . } }


Question: Who have been the Presidents of the United States?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P39 wd:Q11696 .
}

List all individuals who have held the office of President of the United States.

Which people have served as President of the United States?

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


Question: What is another association football club similar to FC Energiya Volzhsky?

SELECT ?club ?clubLabel WHERE { wd:Q1975949 wdt:P31 wd:Q476028 . ?club wdt:P31 wd:Q476028 . ?club rdfs:label ?clubLabel . FILTER (?club != wd:Q1975949) FILTER (lang(?clubLabel) = "en") } ORDER BY ?clubLabel LIMIT 1

Can you list the first English-named football club (other than FC Energiya Volzhsky) that belongs to the same category?

Show me one football club that is classified the same way as FC Energiya Volzhsky, sorted alphabetically.

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/Q43263422> ; <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/Q1975949> ; <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: Which constituencies were represented in the 39th UK Parliament, and when were they created and abolished?

SELECT DISTINCT ?constituency ?constituencyLabel ?instanceTypeLabel ?inceptionDate ?dissolutionDate WHERE { ?person p:P39 ?statement . ?statement ps:P39 wd:Q41582600 . ?statement pq:P768 ?constituency . ?constituency wdt:P31 wd:Q27971968 . OPTIONAL { ?constituency rdfs:label ?constituencyLabel . FILTER(LANG(?constituencyLabel) = "en") } OPTIONAL { ?constituency wdt:P31 ?instanceType . ?instanceType rdfs:label ?instanceTypeLabel . FILTER(LANG(?instanceTypeLabel) = "en") } OPTIONAL { ?constituency wdt:P571 ?inceptionDate } OPTIONAL { ?constituency wdt:P576 ?dissolutionDate } }

What are the names, creation dates, and dissolution dates of the UK parliamentary constituencies represented during the 39th Parliament?

List all UK constituencies that had representatives in the 39th Parliament, including when each constituency was established and when it ended.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q41582600> . ?var6 <http://www.wikidata.org/prop/qualifier/P768> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the qualifier properties associated with Karl Marx’s marriage to Jenny von Westphalen?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?spouse ?statement(SAMPLE(?qualifier) AS ?qualifierProperty) WHERE {
  ?spouse p:P26 ?statement .
  ?statement ps:P26 wd:Q9061 .
  OPTIONAL {
    ?statement ?qualifier ?value .
  }
}
GROUP BY ?spouse ?statement

Which qualifiers (like start time or end time) are attached to the marriage statement of Karl Marx?

For Karl Marx’s spouse, what additional details (qualifiers) are recorded in Wikidata?

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


Question: Which 200 humans have pages on Species Wikidata?

SELECT ?human ?humanLabel (COUNT(?page) AS ?pageCount) WHERE { ?page schema:about ?human . ?page schema:isPartOf <https://species.wikimedia.org/> . ?human wdt:P31 wd:Q5 . ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en") } GROUP BY ?human ?humanLabel ORDER BY DESC(?pageCount) LIMIT 200

List the names of people linked to Species Wikidata who are classified as humans.

Who are the researchers or scientists documented on Species Wikidata, and what are their English names?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://species.wikimedia.org/> . ?var1 <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> "fr,en". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 ) LIMIT 200


Question: Is there a Wikidata item with VIAF ID 276503900?

Does the Virtual International Authority File identifier 276503900 correspond to any entity in Wikidata?

Can you confirm whether the VIAF ID 276503900 is assigned to any person or organization in Wikidata?

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


Question: Images of Tim Berners-Lee and topics or co-authors of his works

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image WHERE {
  {
    wd:Q80 wdt:P18 ?image .
  } UNION {
    ?work wdt:P50 wd:Q80 .
    ?work wdt:P921 ?topic .
    ?topic wdt:P18 ?image .
  } UNION {
    ?work wdt:P50 wd:Q80 .
    ?coauthor wdt:P50 ?work .
    ?coauthor wdt:P18 ?image .
  }
}

What images are associated with Tim Berners-Lee, either directly, through the subjects of his works, or through his co-authors?

Show me all images related to Tim Berners-Lee, including those of the main topics of works he authored and images of his co-authors.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q80> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q80> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q80> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: List all airports with their geographic coordinates and IATA codes.

SELECT DISTINCT ?airport ?coordinates ?airportLabel ?iataCode WHERE { ?airport wdt:P31 wd:Q1248784 . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . OPTIONAL { ?airport wdt:P238 ?iataCode . } FILTER(LANG(?airportLabel) = "en") }

What are the names, coordinates, and IATA codes of all airports in the world?

Show me the English names, locations, and IATA codes of all airports, including those without IATA codes.

SELECT DISTINCT ?var1 ?var2 ?var1Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . ?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", "ar". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var3 . } }


Question: Episodes of the German TV series "Ein starkes Team" with their air dates and IMDb IDs.

SELECT ?episodeNumber ?episode ?episodeLabel ?airDate ?ldifId ?imdbId ?ofdbId WHERE { ?episode wdt:P179 wd:Q173836 . OPTIONAL { ?episode pq:P1545 ?episodeNumber . } OPTIONAL { ?episode wdt:P3107 ?ldifId . } OPTIONAL { ?episode wdt:P345 ?imdbId . } OPTIONAL { ?episode wdt:P3138 ?ofdbId . } OPTIONAL { ?episode wdt:P577 ?airDate . } ?episode rdfs:label ?episodeLabel . FILTER(LANG(?episodeLabel) = "de") . } ORDER BY ASC(?airDate)

What are the titles, air dates, and IMDb identifiers of all episodes of the German crime series "Ein starkes Team", sorted by broadcast date?

Please list all episodes of "Ein starkes Team" in chronological order, showing their German titles, release dates, and IMDb links.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5Label ?var6 ?var7 ?var8 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q173836> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/qualifier/P1545> ?var1 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P3107> ?var6 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P345> ?var7 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P3138> ?var8 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P577> ?var4 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P57> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } ORDER BY ASC( ?var4 )


Question: Association football players and their native names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?player ?nativeName WHERE {
  ?player wdt:P106 wd:Q937857 .
  OPTIONAL {
    ?player wdt:P1559 ?nativeName .
  }
}
LIMIT 200

Who are some association football players, and what are their names in their native languages?

List up to 200 association football players along with their native names, if available.

SELECT ?var1 ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var2 . } } LIMIT 200


Question: Is there a Wikidata item with VIAF ID 47511063?

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

Does the person Carl Wilhelm Koppe have a VIAF identifier of 47511063?

Confirm whether the Virtual International Authority File ID 47511063 is assigned to any entity in Wikidata.

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


Question: Does Wolfgang Proske have a VIAF ID of 44950248?

Is there a Wikidata item associated with the VIAF identifier 44950248?

Confirm whether the Virtual International Authority File ID 44950248 is linked to any entity in Wikidata.

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


Question: List airports with IATA codes sorted alphabetically by code.

SELECT ?airport ?airportLabel WHERE { ?airport wdt:P238 ?iataCode . ?airport wdt:P31 wd:Q1248784 . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") } ORDER BY ASC(?iataCode) LIMIT 20

What are the English names of airports that have IATA codes, ordered by the code?

Show me the top 20 airports with IATA codes and their English names, sorted by IATA code.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } ORDER BY ASC( ?var3 )


Question: Images of main subjects of works authored by Rachel Askew.

SELECT DISTINCT ?image WHERE { ?work wdt:P50 wd:Q44181352 . ?work wdt:P921 ?subject . ?subject wdt:P18 ?image . }

What images are associated with the main subjects of works written by Rachel Askew?

Show me the Wikimedia Commons images of topics that are the main subjects of Rachel Askew’s publications.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q44181352> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q44181352> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q44181352> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: What type of entity is the White Cloud Mountains, and what type is a list in Wikidata?

SELECT ?mountainType ?listType WHERE { wd:Q7994576 wdt:P31 ?mountainType . wd:Q10000109 wdt:P31 ?listType .}

What are the instance-of classifications for the White Cloud Mountains and for a list item in Wikidata?

Is the White Cloud Mountains a mountain system, and is a list classified as a list in Wikidata?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7994576> <http://www.wikidata.org/prop/direct/P31> ?var2 . <http://dbpedia.org/resource/List_of_accidents_and_incidents_involving_airliners_by_location> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: Who is the American citizen married to Melinda Gates, and what are their given names and family name?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person ( STR( ?givenNameLabel ) AS ?givenNameStr ) ( STR( ?familyNameLabel ) AS ?familyNameStr ) WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P735 ?givenName .
  ?person wdt:P734 ?familyName .
  ?person wdt:P26 wd:Q463877 .
  ?person wdt:P27 wd:Q30 .
  ?givenName rdfs:label ?givenNameLabel .
  ?familyName rdfs:label ?familyNameLabel .
  FILTER ( LANGMATCHES( LANG( ?givenNameLabel ) , "en" ) ) .
  FILTER ( LANGMATCHES( LANG( ?familyNameLabel ) , "en" ) )
}

What are the full names of the person married to Melinda Gates who is a citizen of the United States?

Find the U.S. citizens married to Melinda Gates and list their first and last names.

SELECT ?var1 ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var3 . { { ?var1 <http://www.wikidata.org/prop/direct/P26> ?var4 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q463877> ) ) ) . } ?var1 <http://www.wikidata.org/prop/direct/P27> ?var5 . FILTER ( ( ( ?var5 = <http://www.wikidata.org/entity/Q30> ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are some works (books, articles, etc.) that have food as their main subject?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?work ?workLabel WHERE {
  ?work p:P921 ?statement .
  ?statement ps:P921 wd:Q2095 .
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
ORDER BY ?workLabel
LIMIT 101

List English-language works that discuss food as their primary topic.

Show me publications where food is the central theme, along with their titles.

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


Question: Is there a Wikidata item with VIAF ID 177461380?

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

Does the Virtual International Authority File identifier 177461380 exist in Wikidata?

Confirm if the VIAF ID 177461380 is linked to any entity in Wikidata.

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


Question: What are all the parent classes of the mountain category in Wikidata?

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

What classes does a mountain belong to, including indirect superclasses?

Show me the full hierarchy of classes that include mountain as a subclass.

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


Question: What are the most common English-language Wikimedia categories that food items belong to?

SELECT ?categoryLabel (COUNT(?food) AS ?count) WHERE { ?food wdt:P31 wd:Q2095 ; wdt:P910 ?category . ?category rdfs:label ?categoryLabel . FILTER(LANG(?categoryLabel) = "en") } GROUP BY ?category ?categoryLabel ORDER BY DESC(?count)

List the categories associated with food items in English, sorted by how many food items are in each category.

Which Wikimedia categories contain food items, and how many food items are in each category?

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q2095> AS ?var3 ). ?var4 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P1754> ?var5 . OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } } GROUP BY ?var1 ORDER BY DESC( ?var2 )


Question: Who were the members of the UK House of Commons during the 2017–2019 parliamentary term?

SELECT ?person ?personLabel WHERE { ?person wdt:P39 wd:Q30524710 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Which individuals served as Members of Parliament in the United Kingdom during the 57th Parliament?

List the English names of all people who were MPs in the UK’s 57th Parliament.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q16707842> . ?var2 <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q29974940> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are Karl Marx’s occupations and where was he born?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?occupationLabel ?birthPlaceLabel WHERE {
  wd:Q9061 wdt:P106 ?occupation ; wdt:P19 ?birthPlace .
  ?occupation rdfs:label ?occupationLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  FILTER ( LANG( ?occupationLabel ) = "en" ) FILTER ( LANG( ?birthPlaceLabel ) = "en" )
}

Can you list Karl Marx’s professions and his place of birth?

What did Karl Marx do for a living, and in which city was he born?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1869440> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1028181> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: List members of the 57th UK Parliament with their surnames, sorted alphabetically by surname.

SELECT ?person ?personLabel ?surname ?surnameLabel WHERE { ?person p:P39 ?statement . ?statement ps:P39 wd:Q30524710 . OPTIONAL { ?person wdt:P734 ?surname . ?surname rdfs:label ?surnameLabel . FILTER(LANG(?surnameLabel) = "en") } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } ORDER BY ASC(?surnameLabel)

Who were the members of the 57th Parliament of the United Kingdom, and what are their family names?

Show me the names of all individuals who served in the 57th UK Parliament, along with their last names if available, ordered by last name.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q30524710> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2Label )


Question: What are the images of the main topics covered in Sara H. Konrath’s academic publications?

SELECT DISTINCT ?image WHERE { { wd:Q33104052 wdt:P18 ?image . } UNION { ?differentEntity wdt:P1889 wd:Q33104052 . ?differentEntity wdt:P18 ?image . FILTER (?differentEntity != wd:Q5) } UNION { ?work wdt:P50 wd:Q33104052 . ?work wdt:P921 ?topic . ?topic wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q33104052 . ?coAuthor wdt:P50 ?work . ?coAuthor wdt:P18 ?image . } }

Show me all Wikimedia Commons images associated with the subjects of papers written by Sara H. Konrath.

Which visual representations (images) are linked to the research topics of Sara H. Konrath’s scholarly works?

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q33104052> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q33104052> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q33104052> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: Who are the people educated at universities?

SELECT ?person ?university WHERE { ?university wdt:P31 wd:Q3918 . ?person wdt:P69 ?university . ?person wdt:P31 wd:Q5 . } LIMIT 1000

List people and the universities they attended.

Show me a list of humans and the universities they graduated from, where universities are institutions of higher education.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3918> . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var2 . } LIMIT 1000


Question: What is the subclass of the Mirage of astronomical objects, and what type of geographical feature are the White Cloud Mountains?

SELECT ?type1 ?type2 WHERE { wd:Q7994576 wdt:P31 ?type2 . wd:Q5964459 wdt:P279 ?type1 . }

Is the Mirage of astronomical objects a type of mirage, and are the White Cloud Mountains a mountain system?

What class does the Mirage of astronomical objects belong to as a subclass, and what category does the White Cloud Mountains fall under as an instance?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7994576> <http://www.wikidata.org/prop/direct/P31> ?var2 . <http://www.wikidata.org/entity/Q5964459> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: Wikimedia Commons categories for items with "mountain" in their English label

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?commonsCategory WHERE {
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'en' ) .
  FILTER ( CONTAINS( LCASE( ?label ) , 'mountain' ) ) .
  ?item wdt:P373 ?commonsCategory .
}
LIMIT 10

What are the Commons categories for geographical features whose English name includes "mountain"?

Show me the Commons categories linked to items that have "mountain" in their English label.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> . ?var1 ?var3Label "string1"@en . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var2 . } } LIMIT 10


Question: List all airports and their IATA codes.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?airport ?airportLabel ?iataCode WHERE {
  ?airport wdt:P31 wd:Q1248784 .
  OPTIONAL {
    ?airport wdt:P238 ?iataCode .
  }
}

What are the IATA codes for all airports in Wikidata?

Can you show me a list of all airports along with their three-letter IATA identifiers, if available?

SELECT ?var1 ?var1Label ?var2 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/Q1248784> . ?var1 <http://www.wikidata.org/prop/direct/P276> <http://www.wikidata.org/entity/Q1248784> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var2 . } }


Question: What qualifiers and values are associated with competition class statements in Wikidata?

SELECT ?item ?qualifier ?value WHERE { ?item p:P2094 [ ?qualifier ?value ] . FILTER ( ?qualifier != ps:P2094 ) FILTER ( ?qualifier != wikibase:rank ) FILTER ( ?qualifier != rdf:type ) FILTER ( ?qualifier != prov:wasDerivedFrom ) }

For items classified under a competition class, what additional details (like start time or criterion) are recorded as qualifiers?

Show me all the extra information (such as dates or criteria) that qualify how an athlete or team is classified in a sport competition.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P2094> [ ?var2 ?var3 ] . FILTER ( ( ( ?var2 != <http://www.wikidata.org/prop/qualifier/P1013> ) ) ) . FILTER ( ( ( ?var2 != <http://www.wikidata.org/prop/statement/P2094> ) ) ) . FILTER ( ( ( ?var2 != <http://wikiba.se/ontology#rank> ) ) ) . FILTER ( ( ( ?var2 != <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ) ) ) . FILTER ( ( ( ?var2 != <http://www.w3.org/ns/prov#wasDerivedFrom> ) ) ) . }


Question: Birthplace coordinates of members of the 37th UK Parliament

SELECT DISTINCT ?member ?latitude ?longitude ?birthPlaceLabel WHERE { ?member (p:P39/ps:P39/wdt:P279*) wd:Q41582593 . ?member wdt:P19 ?birthPlace . ?birthPlace p:P625 ?coordinateStatement . ?coordinateStatement psv:P625 ?coordinateValue . ?coordinateValue wikibase:geoLatitude ?latitude . ?coordinateValue wikibase:geoLongitude ?longitude . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?birthPlaceLabel) = "en") }

Where were the members of the 37th Parliament of the United Kingdom born, and what are the geographic coordinates of those places?

Show me the English names and latitude/longitude of the birthplaces of all people who served in the 37th UK Parliament.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4Label WHERE { ?var1 ( <http://www.wikidata.org/prop/P39> / <http://www.wikidata.org/prop/statement/P39> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q41582593> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . ?var4 <http://www.wikidata.org/prop/P625> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/value/P625> ?var6 . ?var6 <http://wikiba.se/ontology#geoLatitude> ?var2 . ?var6 <http://wikiba.se/ontology#geoLongitude> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P102> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List of association football players.

SELECT DISTINCT ?player ?playerLabel WHERE { ?player wdt:P106 wd:Q937857 . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") } LIMIT 100

Who are some people whose occupation is association football player?

Can you show me 100 association football players along with their English names?

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


Question: What is the most general category that both Apple and Chibok belong to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?common ?commonLabel WHERE {
  wd:Q35120 rdfs:label ?commonLabel .
  FILTER ( LANG( ?commonLabel ) = "en" )
}
LIMIT 1

What do Apple and Chibok have in common in terms of their classification in Wikidata?

What is the highest-level class that includes both a technology company like Apple and a Nigerian local government area like Chibok?

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/Q312> ; <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/Q5095348> ; <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 category do both Hannah Arendt and Pavel Durov belong to through their occupations?

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 ?commonClassLabel WHERE {
  wd:Q60025 wdt:P106 ?hannahOccupation .
  wd:Q149067 wdt:P106 ?pavelOccupation .
  ?hannahOccupation wdt:P279 * wd:Q901 .
  ?pavelOccupation wdt:P279 * wd:Q901 .
  wd:Q901 rdfs:label ?commonClassLabel .
  FILTER ( LANG( ?commonClassLabel ) = "en" )
}

What is the most specific shared professional classification between philosopher Hannah Arendt and computer scientist Pavel Durov?

Are Hannah Arendt and Pavel Durov both considered scientists in Wikidata’s taxonomy?

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/Q60025> ; <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/Q149067> ; <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: Is Henry Lawrie an association football player?

Does Henry Lawrie have the occupation of association football player?

Confirm that Henry Lawrie is an association football player.

ASK WHERE { <http://www.wikidata.org/entity/Q3784963> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Occupations of people listed on Unifrance.org

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?occupation WHERE {
  ?person wdt:P3980 ?unifranceId .
  ?person wdt:P106 ?occupation .
}

What occupations do people with a Unifrance ID have?

List all the occupations of individuals who have a Unifrance person identifier.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3980> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P106> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What is the VIAF ID for Og Mandino?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?viafId WHERE {
  wd:Q2500222 wdt:P214 ?viafId .
}

What is the Virtual International Authority File identifier for the American author Og Mandino?

Please provide the VIAF cluster ID associated with Og Mandino.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2500222> <http://www.wikidata.org/prop/direct/P214> ?var1 . } LIMIT 1


Question: Secondary schools with description "secondary school" in English

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?school ?description WHERE {
  ?school wdt:P31 wd:Q159334 .
  ?school schema:description ?description .
  FILTER ( LANG( ?description ) = 'en' ) .
  FILTER ( STR( ?description ) = "secondary school" )
}

Which secondary schools are described as "secondary school" in English?

List all secondary schools whose English description is "secondary school".

SELECT ?var1 ?var2 WHERE { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( ?var2 = "string1" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q159334> . }


Question: What are all the parent categories of tax policy in Wikidata?

SELECT DISTINCT ?subclass WHERE { wd:Q3445707 wdt:P279* ?subclass . }

What classes does tax policy belong to, including indirect superclasses?

List all the broader categories that tax policy is a part of, going up the hierarchy.

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


Question: What are the country and coordinates of the airport with IATA code JFK?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?airport ?airportLabel ?country ?coord WHERE {
  ?airport wdt:P238 "JFK" .
  ?airport wdt:P17 ?country .
  ?airport wdt:P625 ?coord .
  ?airport rdfs:label ?airportLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?airportLabel) = "en")
  .
  FILTER(LANG(?countryLabel) = "en")
}

Show me the name, country, and geographic coordinates of John F. Kennedy International Airport.

Where is JFK Airport located, and which country does it belong to?

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


Question: List of snack items recognized on Wikidata.

SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q749316 . FILTER(STRSTARTS(STR(?item), "http://www.wikidata.org/entity/Q")) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 21

What are some examples of snacks that are classified as instances of snack on Wikidata?

Show me 21 snack products with their English names from Wikidata.

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


Question: Is there a Wikidata item with VIAF ID 47938144?

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

Does the Virtual International Authority File identifier 47938144 exist in Wikidata?

Confirm if the VIAF ID 47938144 is linked to any entity in Wikidata.

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


Question: Does Wikidata have an entity with VIAF ID 42751083?

Is there a person in Wikidata identified by the VIAF number 42751083?

Check if the Virtual International Authority File identifier 42751083 is linked to any entity in Wikidata.

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


Question: List of association football players with English labels.

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 ?player ?playerLabel WHERE {
  ?player wdt:P106 wd:Q937857 .
  ?player rdfs:label ?playerLabel .
  FILTER ( LANG( ?playerLabel ) = "en" )
}
LIMIT 5000

Who are the association football players that have English-language labels on Wikidata?

Show me the names (in English) of all people whose occupation is association football player.

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/P106> <http://www.wikidata.org/entity/Q937857> . } LIMIT 5000


Question: What are the main properties used to identify schools in Wikidata?

SELECT ?mainPropertyLabel WHERE { wd:Q3914 wdt:P1687 ?mainProperty . ?mainProperty rdfs:label ?mainPropertyLabel . FILTER(LANG(?mainPropertyLabel) = "en") }

Which Wikidata properties are designated as the primary identifiers for schools?

Can you list the official school identification codes used in Wikidata for regions like Kerala and Taiwan?

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


Question: What monuments or plaques commemorate Richard Wagner, and do any of them have additional details (like dates or locations) attached to their commemoration claims?

SELECT ?commemoration ?statement (SAMPLE(?qualifier) AS ?qualifierProperty) WHERE { ?commemoration p:P547 ?statement . ?statement ps:P547 wd:Q1511 . OPTIONAL { ?statement ?qualifier ?value . ?qualifier wikibase:qualifier true . } } GROUP BY ?commemoration ?statement LIMIT 10

List items that honor Richard Wagner and show any qualifiers used in those statements.

Show me the memorials dedicated to Richard Wagner and indicate if any extra information (like when they were erected) is recorded in Wikidata.

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


Question: What is the Wikidata entity for the general concept of a gymnasium as an educational institution?

SELECT ?gymnasium WHERE { ?gymnasium wdt:P31 wd:Q112872396 . FILTER (?gymnasium = wd:Q55043) }

Which Wikidata item represents a gymnasium as a type of secondary school in Europe?

Can you identify the Wikidata entity for the educational institution known as a gymnasium?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Gymnasium> <http://www.w3.org/2002/07/owl#sameAs> ?var1 . FILTER ( ( REGEX ( ?var1 , "string1" ) ) ) . }


Question: List scientific names, authors, and publication years of Boletus sect. Boletus fungi.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?taxon ?scientificName ?authorLabel ?publicationYear ?basionymName ?basionymAuthorLabel ?basionymPublicationYear WHERE {
  ?taxon wdt:P31 wd:Q16521 ; wdt:P171 wd:Q142945 .
  ?taxon p:P225 ?nameStatement .
  ?nameStatement ps:P225 ?scientificName .
  OPTIONAL {
    ?nameStatement pq:P405 ?author .
    ?author rdfs:label ?authorLabel .
    FILTER ( LANG( ?authorLabel ) = "en" )
  }
  OPTIONAL {
    ?nameStatement pq:P574 ?publicationYear .
  }
  OPTIONAL {
    ?taxon wdt:P566 ?basionymTaxon .
    ?basionymTaxon p:P225 ?basionymStatement .
    ?basionymStatement ps:P225 ?basionymName .
    OPTIONAL {
      ?basionymStatement pq:P405 ?basionymAuthor .
      ?basionymAuthor rdfs:label ?basionymAuthorLabel .
      FILTER ( LANG( ?basionymAuthorLabel ) = "en" )
    }
    OPTIONAL {
      ?basionymStatement pq:P574 ?basionymPublicationYear .
    }
  }
}
ORDER BY ASC ( ?scientificName )
LIMIT 300

What are the scientific names, authors, and years of description for species in the Boletus sect. Boletus clade?

Show me the taxa in the Boletus sect. Boletus group along with their scientific names, who described them, and when they were published — including any basionyms if they exist.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6 ?var7Label ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q142945> . ?var1 <http://www.wikidata.org/prop/P225> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P225> ?var2 . OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P405> ?var10 . ?var10 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P574> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P566> ?var5 . ?var5 <http://www.wikidata.org/prop/P225> ?var11 . ?var11 <http://www.wikidata.org/prop/statement/P225> ?var6 . OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P405> ?var12 . ?var12 <http://www.w3.org/2000/01/rdf-schema#label> ?var7Label . FILTER ( ( ( LANG ( ?var7Label ) = "en" ) ) ) . } OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P574> ?var8 . } } } ORDER BY ASC( ?var2 ) LIMIT 300


Question: Universities in India with their official websites.

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 ?university ?website ?label WHERE {
  ?university(wdt:P31 / wdt:P279 *) wd:Q3918 ; wdt:P856 ?website ;(wdt:P131 * / wdt:P17) wd:Q668 ; rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}

What are the official websites of universities located in India?

List all universities in India along with their English names and official websites.

SELECT DISTINCT ?var1 ?var2 ?var3Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3918> ; <http://www.wikidata.org/prop/direct/P856> ?var2 ; ( <http://www.wikidata.org/prop/direct/P131> */ <http://www.wikidata.org/prop/direct/P17> ) ?var4 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q668> ) ) ) . }


Question: What is the most specific category that both Barack Obama and Los Angeles International Airport belong to, based on their types and their positions in the Wikidata taxonomy?

SELECT ?class ?classLabel (MIN(?dist1) AS ?minDist1) (MIN(?dist2) AS ?minDist2) ((MIN(?dist1) + MIN(?dist2)) AS ?sum)
WHERE {
  {
    # Distances from Q5 (human) to ?class
    {
      SELECT ?class (COUNT(?mid) AS ?dist1)
      WHERE {
        wd:Q5 wdt:P279+ ?mid .
        ?mid wdt:P279* ?class .
      }
      GROUP BY ?class
    }
    UNION
    {
      SELECT ?class (0 AS ?dist1)
      WHERE {
        BIND(wd:Q5 AS ?class)
      }
    }
  }
  {
    # Distances from Q1248784 (airport) to ?class
    {
      SELECT ?class (COUNT(?mid) AS ?dist2)
      WHERE {
        wd:Q1248784 wdt:P279+ ?mid .
        ?mid wdt:P279* ?class .
      }
      GROUP BY ?class
    }
    UNION
    {
      SELECT ?class (0 AS ?dist2)
      WHERE {
        BIND(wd:Q1248784 AS ?class)
      }
    }
  }
  ?class rdfs:label ?classLabel .
  FILTER(LANG(?classLabel) = "en")
}
GROUP BY ?class ?classLabel
ORDER BY ASC(?sum)
LIMIT 1

Which class is the closest common ancestor in the subclass hierarchy for the type of Barack Obama and the type of Los Angeles International Airport?

Find the shared class that minimizes the total number of subclass relationships from the type of Barack Obama and the type of LAX.

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/Q76> ; <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/Q8731> ; <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 are the direct subclasses of "ingredient" in Wikidata?

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

List all immediate categories of ingredients, such as spices or thickeners.

Which types of substances are considered direct types of ingredients?

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q10675206> ) } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } }


Question: List musical instruments and their MIMO IDs with English labels.

SELECT ?instrument ?instrumentLabel ?mimoId WHERE { ?instrument wdt:P3763 ?mimoId . ?instrument rdfs:label ?instrumentLabel . FILTER(LANG(?instrumentLabel) = "en") } LIMIT 10

What are the English names and MIMO identifiers of musical instruments in Wikidata?

Show me up to 10 musical instruments with their English names and MIMO instrument IDs.

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


Question: Sports teams or entities and the items they operate.

SELECT ?teamOrEntity ?itemOperated WHERE { ?teamOrEntity wdt:P121 ?itemOperated ; wdt:P641 [] . } LIMIT 1000

Which sports-associated entities operate specific items, such as stadiums or aircraft?

Show me entities that participate in a sport and also operate or use some equipment or facility, along with what they operate.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P121> ?var2 ; <http://www.wikidata.org/prop/direct/P641> [] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: Does the VIAF ID 64696248 exist in Wikidata?

Is there a person in Wikidata with the VIAF identifier 64696248?

Confirm if the Virtual International Authority File ID 64696248 is registered in Wikidata.

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


Question: Airport with IATA code SOD, its country, and coordinates

SELECT ?airport ?airportLabel ?country ?coordinates WHERE { ?airport wdt:P238 "SOD" . ?airport wdt:P17 ?country . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

What is the name, country, and geographic coordinates of the airport with IATA code SOD?

Show me the English name, country, and coordinates of the airport that has the IATA code SOD.

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


Question: What are some subclasses of food with English labels including avocado, miso soup, sausage, and plum?

SELECT ?foodItem ?label WHERE { ?foodItem wdt:P279* wd:Q2095 . ?foodItem rdfs:label ?label . FILTER (STR(?label) IN ("avocado", "miso soup", "sausage", "plum")) FILTER (LANG(?label) = "en") } LIMIT 20

Which food items, such as avocado, miso soup, sausage, and plum, are classified as subclasses of food in Wikidata?

List the English-labeled food subclasses in Wikidata for avocado, miso soup, sausage, and plum.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q2095> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( STR ( ?var2Label ) IN ( "avocado", "miso soup", "sausage", "eggpickles", "plum" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } LIMIT 20


Question: Spanish names of sports governing bodies

SELECT DISTINCT ?label WHERE { ?governingBody (wdt:P31/wdt:P279*) wd:Q2485448 ; rdfs:label ?label . FILTER(LANG(?label) = "es") }

What are the Spanish-language names of organizations that govern sports?

Can you list all sports governing bodies with their names in Spanish?

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


Question: Higher education institutions in Poland with images and coordinates.

SELECT ?label ?image ?coordinates WHERE { ?institution (wdt:P31/wdt:P279*) wd:Q38723 . ?institution wdt:P17 wd:Q36 . OPTIONAL { ?institution wdt:P18 ?image . } OPTIONAL { ?institution wdt:P625 ?coordinates . } ?institution rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the higher education institutions in Poland, and what are their images and geographic locations?

Show me the names, images, and coordinates of all universities and colleges located in Poland.

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


Question: Occupations of University of Cambridge alumni with images

SELECT DISTINCT ?occupation ?occupationLabel ?image ?institution ?institutionLabel WHERE { ?institution wdt:P373 "University of Cambridge" . ?person wdt:P69 ?institution ; wdt:P106 ?occupation . OPTIONAL { ?person wdt:P18 ?image . } ?occupation rdfs:label ?occupationLabel . ?institution rdfs:label ?institutionLabel . FILTER(LANG(?occupationLabel) = "en") FILTER(LANG(?institutionLabel) = "en") } LIMIT 50

Who are the people educated at the University of Cambridge, what are their occupations, and do they have images on Wikimedia Commons?

List the occupations of University of Cambridge graduates along with their images, if available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P373> "string1". ?var4 <http://www.wikidata.org/prop/direct/P69> ?var3 ; <http://www.wikidata.org/prop/direct/P106> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P18> ?var2 . } } LIMIT 50


Question: What are the subclasses of musical drama (Musikdrama)?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?subclass WHERE {
  {
    wd:Q279272 wdt:P279 ?subclass .
  } UNION {
    wd:Q279272 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?subclass .
  } UNION {
    wd:Q279272 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?subclass .
  }
}

Can you list all types of works that are more specific than musical drama, including its subcategories?

What genres or forms of art descend from Musikdrama in the classification hierarchy?

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


Question: Who replaced which MP in the same UK parliamentary constituency via a by-election during the 55th Parliament, and why did the original MP leave?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?outgoingMP ?outgoingMPLabel ?constituencyLabel ?outgoingEnd ?endCauseLabel ?electionLabel ?incomingEnd ?incomingMP ?incomingMPLabel WHERE {
  ?outgoingMP p:P39 ?outgoingStmt .
  ?outgoingStmt ps:P39 wd:Q35494253 .
  ?outgoingStmt pq:P768 ?constituency .
  ?outgoingStmt pq:P582 ?outgoingEnd .
  OPTIONAL {
    ?outgoingStmt pq:P1534 ?endCause .
  }
  ?incomingMP p:P39 ?incomingStmt .
  ?incomingStmt ps:P39 wd:Q35494253 .
  ?incomingStmt pq:P768 ?constituency .
  ?incomingStmt pq:P2715 ?election .
  ?incomingStmt pq:P582 ?incomingEnd .
  FILTER ( NOT EXISTS {
    ?election wdt:P31 wd:Q15283424
  }
  ) FILTER ( ?outgoingMP != ?incomingMP ) ?outgoingMP rdfs:label ?outgoingMPLabel .
  ?constituency rdfs:label ?constituencyLabel .
  ?endCause rdfs:label ?endCauseLabel .
  ?election rdfs:label ?electionLabel .
  ?incomingMP rdfs:label ?incomingMPLabel .
  FILTER ( LANG( ?outgoingMPLabel ) = "en" ) FILTER ( LANG( ?constituencyLabel ) = "en" ) FILTER ( LANG( ?endCauseLabel ) = "en" ) FILTER ( LANG( ?electionLabel ) = "en" ) FILTER ( LANG( ?incomingMPLabel ) = "en" )
}
ORDER BY ASC ( ?incomingEnd )

In the 55th UK Parliament, which constituencies had a change in MP due to a by-election, and what were the reasons for the outgoing MP’s departure?

List all instances where one Member of Parliament was replaced by another in the same UK constituency during the 55th Parliament through a by-election, including the reason the first MP left and the election in which the new MP was elected.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 ?var4Label ?var5Label ?var6 ?var7 ?var7Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q35494253> . ?var8 <http://www.wikidata.org/prop/qualifier/P768> ?var2 . ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P1534> ?var4 . } ?var7 <http://www.wikidata.org/prop/P39> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q35494253> . ?var9 <http://www.wikidata.org/prop/qualifier/P768> ?var2 . ?var9 <http://www.wikidata.org/prop/qualifier/P2715> ?var5 . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15283424> . } ) ) . ?var9 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var6 )


Question: What are the English-named food items that are subclasses of food and match "sushi", "oreo", "chicken", or "burrito"?

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 ?item ?itemLabel WHERE {
  ?item wdt:P279 * wd:Q2095 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  FILTER ( LCASE( STR( ?itemLabel ) ) IN ( "sushi" , "oreo" , "chicken" , "burrito" ) ) .
}

List the food subclasses in Wikidata with English labels exactly matching "sushi" or "burrito".

Which foods, classified as subclasses of food, have English names like "sushi" or "burrito"?

SELECT ?var1 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( LCASE ( STR ( ?var2Label ) ) IN ( "sushi", "oreo", "chicken", "burrito" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . }


Question: People with History of Parliament ID starting with 1754.

SELECT DISTINCT ?person WHERE { ?person wdt:P1614 ?hop_id . FILTER ( STRSTARTS( ?hop_id , "1754" ) ) }

Who are the historical British politicians listed in the History of Parliament with IDs beginning in 1754?

List all individuals in Wikidata who have a History of Parliament identifier that starts with "1754", indicating they were active during the 1754–1790 parliamentary period.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1614> ?var2 . FILTER ( ( STRSTARTS ( ?var2 , "1754" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1415> ?var3 . } }


Question: Is there a Wikidata item with IMDb ID tt5933582?

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

Does the IMDb identifier tt5933582 correspond to any entity in Wikidata?

Confirm whether the movie or person with IMDb ID tt5933582 is listed in Wikidata.

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


Question: Most specific shared superclass of Hans Albers and NHK in Wikidata taxonomy

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 DISTINCT ?common ?label WHERE {
  wd:Q5 wdt:P279 * ?common .
  wd:Q212128 wdt:P31 ?type .
  ?type wdt:P279 * ?common .
  ?common rdfs:label ?label .
  FILTER ( lang( ?label ) = "en" ) FILTER ( ?common = wd:Q106559804 )
}

What is the most specific category that both Hans Albers and NHK belong to through subclass relationships?

Find the closest common ancestor in the subclass hierarchy between the German actor Hans Albers and the Japanese public broadcaster NHK.

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/Q561231> ; <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/Q212128> ; <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: Images related to works by Børge G. Nordestgaard and his co-authors.

SELECT DISTINCT ?image WHERE { { wd:Q43530123 wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q43530123 ; wdt:P921 ?topic . ?topic wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q43530123 ; wdt:P50 ?coauthor . ?coauthor wdt:P18 ?image . } }

What images are associated with the research works authored by Børge G. Nordestgaard or by people who co-authored those works?

Show me all images from Wikimedia Commons that are linked to publications authored by Børge G. Nordestgaard or to the main subjects of those publications.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q43530123> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q43530123> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q43530123> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: People educated at William Paterson University

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?human WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P69 wd:Q3444527 .
}
LIMIT 500

Who are the humans that attended William Paterson University?

List all alumni of William Paterson University.

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/P69> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P131> )* <http://www.wikidata.org/entity/Q3444527> . } LIMIT 500


Question: What are the mountain systems in the world, along with their highest peaks, elevations, lengths, countries, and the administrative regions they span?

SELECT ?mountainSystem ?mountainSystemLabel ?partOfLabel ?countryLabel ?coordinates ?highestPoint ?elevation ?length ?administrativeRegionLabel WHERE { ?mountainSystem wdt:P31 wd:Q46831 ; wdt:P361 ?partOf ; wdt:P17 ?country ; wdt:P625 ?coordinates ; wdt:P610 ?highestPoint ; wdt:P2044 ?elevation ; wdt:P2043 ?length ; wdt:P131 ?administrativeRegion . ?mountainSystem rdfs:label ?mountainSystemLabel . ?partOf rdfs:label ?partOfLabel . ?country rdfs:label ?countryLabel . ?administrativeRegion rdfs:label ?administrativeRegionLabel . FILTER(LANG(?mountainSystemLabel) = "en") FILTER(LANG(?partOfLabel) = "en") FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?administrativeRegionLabel) = "en")}

List mountain systems with their country, highest point, elevation, length, and location.

Show me all mountain systems with their geographic details including coordinates, length, elevation, and the regions they belong to.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4Label ?var5 ?var6 ?var7 ?var8 ?var9Label ?var10 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q46831> ; <http://www.wikidata.org/prop/direct/P361> ?var3 ; <http://www.wikidata.org/prop/direct/P17> ?var4 ; <http://www.wikidata.org/prop/direct/P625> ?var5 ; <http://www.wikidata.org/prop/direct/P610> ?var6 ; <http://www.wikidata.org/prop/direct/P2044> ?var7 ; <http://www.wikidata.org/prop/direct/P2043> ?var8 ; <http://www.wikidata.org/prop/direct/P131> ?var9 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Neighborhoods in the Netherlands with CBS municipality codes

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?neighborhood ?cbsCode WHERE {
  ?neighborhood wdt:P31 wd:Q123705 .
  ?neighborhood wdt:P382 ?cbsCode .
}

Which neighborhoods in the Netherlands have a CBS municipality code?

List the neighborhoods in the Netherlands that were formerly municipalities and their CBS codes.

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


Question: What is the most specific shared category between the occupations of Hans Albers and Kim Jong?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonAncestor WHERE {
  wd:Q561231 wdt:P106 ?hansOcc .
  wd:Q6408963 wdt:P106 ?kimOcc .
  ?hansOcc wdt:P279 * ?commonAncestor .
  ?kimOcc wdt:P279 * ?commonAncestor .
  FILTER(?hansOcc != ?commonAncestor)
  FILTER(?kimOcc != ?commonAncestor)
}
ORDER BY ASC(?commonAncestor)
LIMIT 1

Find the closest common ancestor in the subclass hierarchy for the occupations of Hans Albers and Kim Jong.

What high-level category do both Hans Albers’s and Kim Jong’s occupations belong to?

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/Q561231> ; <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/Q6408963> ; <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: Living economists at Harvard University with photos

SELECT ?person ?image ?personLabel WHERE { ?person wdt:P106 wd:Q188094 . ?person wdt:P108 wd:Q13371 . ?person wdt:P18 ?image . FILTER (NOT EXISTS { ?person wdt:P570 ?deathDate }) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = 'en') }

Who are the living economists employed by Harvard University that have an image on Wikimedia Commons?

List the names and images of currently employed economists at Harvard University.

SELECT ?var1 ?var2Label ?var1Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q188094> . ?var1 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q13371> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } ) ) . } GROUP BY ?var1 ?var2Label ?var1Label ?var3