Simple Question (Direct)
Simple Question
Q527988
P1412
Q34770
USER
Which language is Mabel Karr capable of writing ?
(Q527988,P1412,c(Q34770))
action filter_type
action find
entity Q527988
relation P1412
type Q34770
['Q527988', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q527988 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Mabel Karr
action filter_type
action find
entity Mabel Karr
relation languages spoken, written or signed
type language
['Mabel Karr', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Mabel_Karr property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q527988,P1412,c(Q34770))
action filter_type
action find
entity Q527988
relation P1412
type Q34770
[ANSWER] is Mabel Karr capable of writing
['Q527988', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q527988 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Spanish
Spanish is Mabel Karr capable of writing
Spanish
action filter_type
action find
entity Mabel Karr
relation languages spoken, written or signed
type language
['Mabel Karr', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Mabel_Karr property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q527988
P20
Q56061
USER
Where did that person expire ?
(Q1321,P20,c(Q56061))
action filter_type
action find
entity Q527988
relation P20
type Q56061
['Q1321', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q527988 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Mabel Karr
action filter_type
action find
entity Mabel Karr
relation place of death
type administrative territorial entity
['Spanish', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Mabel_Karr property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q1321,P20,c(Q56061))
action filter_type
action find
entity Q527988
relation P20
type Q56061
That person expired in [ANSWER]
['Q1321', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q527988 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Madrid
That person expired in Madrid
Madrid
action filter_type
action find
entity Mabel Karr
relation place of death
type administrative territorial entity
['Spanish', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Mabel_Karr property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have around the same number of people and holidays as their patron saint as that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2807
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?d WHERE { { ?d property:P417 ?m . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q502895 } UNION { ?d property:P417 ?m . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q1445650 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q2807 property:P417 ?p . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?j = ?f ) }
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Madrid
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?d WHERE { { ?d property:patron_saint ?m . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:common_name } UNION { ?d property:patron_saint ?m . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:holiday } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Madrid property:patron_saint ?p . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?j = ?f ) }
[]
common name holiday administrative territorial entity
SYSTEM
95
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2807
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?d WHERE { { ?d property:P417 ?m . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q502895 } UNION { ?d property:P417 ?m . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q1445650 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q2807 property:P417 ?p . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?j = ?f ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
95
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Madrid
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?d WHERE { { ?d property:patron_saint ?m . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:common_name } UNION { ?d property:patron_saint ?m . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:holiday } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Madrid property:patron_saint ?p . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?j = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q527988
P26
Q502895
USER
Which person is the spouse of Mabel Karr ?
(Q527988,P26,c(Q502895))
action filter_type
action find
entity Q527988
relation P26
type Q502895
['Q527988', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q527988 property:P26 ?n . ?n rdf:type ontology:Q502895 }
Mabel Karr
action filter_type
action find
entity Mabel Karr
relation spouse
type common name
['Mabel Karr', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Mabel_Karr property:spouse ?n . ?n rdf:type ontology:common_name }
[]
common name
Q106743
SYSTEM
Fernando Rey
Q106743
(Q527988,P26,c(Q502895))
action filter_type
action find
entity Q527988
relation P26
type Q502895
[ANSWER] is the spouse of Mabel Karr
['Q527988', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q527988 property:P26 ?n . ?n rdf:type ontology:Q502895 }
Fernando Rey
Fernando Rey is the spouse of Mabel Karr
Fernando Rey
action filter_type
action find
entity Mabel Karr
relation spouse
type common name
['Mabel Karr', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Mabel_Karr property:spouse ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q106743
P161
Q838948
USER
What are the name of works of art staring that person ?
(c(Q838948),P161,Q106743)
action filter_type
action find_reverse
entity Q106743
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q106743']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q106743 . ?v rdf:type ontology:Q838948 }
Fernando Rey
action filter_type
action find_reverse
entity Fernando Rey
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Fernando Rey']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Fernando_Rey . ?v rdf:type ontology:work_of_art }
[]
work of art
Q1138798 Q284917 Q220735
SYSTEM
That Obscure Object of Desire, Voyage of the Damned, The French Connection
Q526272 Q694402 Q7123945 Q2741921 Q471775 Q3230457 Q24905682 Q2312518 Q3222253 Q1760278 Q1663598 Q27491570 Q1138798 Q10381246 Q3772152 Q19895279 Q1628844 Q232003 Q3824476 Q5964571 Q671423 Q1321880 Q1720976 Q3639430 Q6875706 Q3035805 Q3212621 Q5352322 Q16629384 Q3766318 Q19364043 Q4747626 Q80557 Q1215878 Q284917 Q1634805 Q22231343 Q1392230 Q2564515 Q190765 Q3209465 Q3231678 Q6683484 Q1322784 Q1775628 Q512347 Q1213647 Q25208424 Q1615696 Q25341403 Q883985 Q4890405 Q5351140 Q1154355 Q4329399 Q1218993 Q20649433 Q639067 Q1056389 Q3720922 Q5823789 Q59612 Q6753021 Q3706885 Q2529482 Q16650932 Q7428274 Q128624 Q19364072 Q1101794 Q1630003 Q1523152 Q1783269 Q2162215 Q19069 Q1000826 Q3855883 Q1076226 Q3715997 Q20001267 Q24905632 Q5173098 Q5438298 Q5658937 Q7091353 Q19572914 Q263714 Q3790774 Q3548324 Q1170822 Q2088522 Q56217 Q25207601 Q7714713 Q7744850 Q3230889 Q2415074 Q20504385 Q3231323 Q220735 Q568720 Q2631381 Q3713503 Q24905694 Q618479 Q308920 Q645770 Q852841 Q24514557 Q3605114 Q3221050
(c(Q838948),P161,Q106743)
action filter_type
action find_reverse
entity Q106743
relation P161
type Q838948
The name of works of art staring that person are in [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q106743']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q106743 . ?v rdf:type ontology:Q838948 }
The Light at the Edge of the World The Price of Power Padre nuestro A Matter of Time The Wind's Fierce Lovers of Toledo Thirsty Land Traffic Jam The Running Man The Hit Quintet Pena de muerte That Obscure Object of Desire The Ceremony Cold Eyes of Fear The Princess of the Ursines Zanna Bianca Compañeros The Lady of the Camellias Hôtel du Paradis Navajo Joe Tristana Arrivano i titani Bianco, rosso e... Misión Lisboa Don Juan The Revolt of the Slaves El Valle de las espadas Say It with Flowers Locura de amor The Holy Queen Amor en el Aire Illustrious Corpses Return of the Seven Voyage of the Damned Seven Beauties The Prodigal Woman Land Raiders Shéhérazade 1492: Conquest of Paradise Drama of the Rich Comedians Los últimos de Filipinas French Connection II Villa Rides Chaste and Pure Goliath Against the Giants Rogelia Monsignor Culprits Das Vermächtnis des Inka The Crime of Cuenca El Diablo también llora Questa specie d'amore Naked Tango The Last Days of Pompeii Cabaret Honey Cervantes El Greco The Mayor of Zalamea Elisa, vida mía Manuela Breath of Life Chimes at Midnight L'Atlantide Saving Grace El bosque animado White Mission High Crime Welcome Mr. Marshall! I grandi condottieri Moon over Parador Savage Guns The Magnificent Seven Guns of the Magnificent Seven Son of a Gunfighter Antony and Cleopatra Two Mafiosi Against Goldfinger Black Sky Adventures of Juan Lucas Corruzione al palazzo di giustizia Faustina Aeropuerto On the Far Side of the Tunnel Mare Nostrum Caboblanco The Two Faces of Fear A Strange Passion Our Lady of Fatima The Adventurers Miracle of Marcelino Rebellion The Assignment The Knight of the Dragon A Town Called Bastard The Night Heaven Fell The Great Swindle The Battle of the Three Kings The French Connection Vengeance Backfire Don Quixote de la Mancha The Doubt Agustina of Aragon The Discreet Charm of the Bourgeoisie The Desert of the Tartars Viridiana Devil's Roundup Rustlers' Rhapsody Le Chanteur de Mexico
The name of works of art staring that person are in That Obscure Object of Desire, Voyage of the Damned and The French Connection
That Obscure Object of Desire Voyage of the Damned The French Connection
action filter_type
action find_reverse
entity Fernando Rey
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Fernando Rey']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Fernando_Rey . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q527988
P27
Q15617994
USER
Which administrative territories do Mabel Karr belong to ?
(Q527988,P27,c(Q15617994))
action filter_type
action find
entity Q527988
relation P27
type Q15617994
['Q527988', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q527988 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Mabel Karr
action filter_type
action find
entity Mabel Karr
relation country of citizenship
type designation for an administrative territorial entity
['Mabel Karr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Mabel_Karr property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q414
SYSTEM
Spain, Argentina
Q29 Q414
(Q527988,P27,c(Q15617994))
action filter_type
action find
entity Q527988
relation P27
type Q15617994
Mabel Karr belong to [ANSWERS]
['Q527988', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q527988 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Spain Argentina
Mabel Karr belong to Spain and Argentina
Spain Argentina
action filter_type
action find
entity Mabel Karr
relation country of citizenship
type designation for an administrative territorial entity
['Mabel Karr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Mabel_Karr property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1514763
Q15617994
USER
And what about Gerrit Hazenpoet?
(Q1514763,P27,c(Q15617994))
action filter_type
action find
entity Q1514763
relation P27
type Q15617994
['Q1514763', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1514763 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Gerrit Hazenpoet
action filter_type
action find
entity Gerrit Hazenpoet
relation country of citizenship
type designation for an administrative territorial entity
['Gerrit Hazenpoet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gerrit_Hazenpoet property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q1514763,P27,c(Q15617994))
action filter_type
action find
entity Q1514763
relation P27
type Q15617994
[ANSWER]
['Q1514763', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1514763 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Gerrit Hazenpoet
relation country of citizenship
type designation for an administrative territorial entity
['Gerrit Hazenpoet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gerrit_Hazenpoet property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55
P840
Q2342494
USER
Which collectables have a setting location of that administrative territory ?
(c(Q2342494),P840,Q55)
action filter_type
action find_reverse
entity Q55
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q55']
SELECT DISTINCT ?f WHERE { ?f property:P840 resource:Q55 . ?f rdf:type ontology:Q2342494 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ?f WHERE { ?f property:narrative_location resource:Netherlands . ?f rdf:type ontology:collectable }
[]
collectable
Q7680725 Q2205732 Q2304825
SYSTEM
Tamar, Confessions of an Ugly Stepsister, Puppet on a Chain
Q3972449 Q2304825 Q7680725 Q5302851 Q7734189 Q5575695 Q5460091 Q2277829 Q5242853 Q2205732 Q7770872 Q7743933 Q5256461 Q7746356 Q4398917 Q1212173 Q1141764 Q1192107 Q2195793 Q4920400 Q1170871 Q3548512
(c(Q2342494),P840,Q55)
action filter_type
action find_reverse
entity Q55
relation P840
type Q2342494
[ANSWERS] have a setting location of that administrative territory
[{'concept': 'Q2342494'}, 'P840', 'Q55']
SELECT DISTINCT ?f WHERE { ?f property:P840 resource:Q55 . ?f rdf:type ontology:Q2342494 }
The Legend of Thyl Ulenspiegel and Lamme Goedzak Puppet on a Chain Tamar Down Ryton Water The First Sir Percy God's Fool Floodgate Catriona Day On Skates: The Story of a Dutch Picnic Confessions of an Ugly Stepsister The Twin The Kaiser's Last Kiss Den Haag The Laughing Cavalier Quicksilver The Discovery of Heaven The Black Tulip Girl with a Pearl Earring Journey Through the Night Black Book Het Woeden der Gehele Wereld Maigret in Holland
Tamar, Confessions of an Ugly Stepsister and Puppet on a Chain have a setting location of that administrative territory
Tamar Confessions of an Ugly Stepsister Puppet on a Chain
action filter_type
action find_reverse
entity Netherlands
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ?f WHERE { ?f property:narrative_location resource:Netherlands . ?f rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6227168 Q29
P530 P27
Q1048835
USER
Which political territories have diplomatic relations with Spain or are John Cornwall a civilian of ?
OR((Q29,P530,c(Q1048835)), (Q6227168,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q29
relation P530
action find
entity Q6227168
relation P27
type Q1048835
{'OR': [['Q29', 'P530', {'concept': 'Q1048835'}], ['Q6227168', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q29 property:P530 ?k } UNION { resource:Q6227168 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
John Cornwall Spain
action filter_type
action union
action find
entity Spain
relation diplomatic relation
action find
entity John Cornwall
relation country of citizenship
type political territorial entity
{'OR': [['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Cornwall', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Spain property:diplomatic_relation ?k } UNION { resource:John_Cornwall property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q29,P530,c(Q1048835)), (Q6227168,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q29
relation P530
action find
entity Q6227168
relation P27
type Q1048835
[ANSWERS] have diplomatic relations with Spain or are John Cornwall a civilian of
{'OR': [['Q29', 'P530', {'concept': 'Q1048835'}], ['Q6227168', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q29 property:P530 ?k } UNION { resource:Q6227168 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relations with Spain or are John Cornwall a civilian of
Australia Germany
action filter_type
action union
action find
entity Spain
relation diplomatic relation
action find
entity John Cornwall
relation country of citizenship
type political territorial entity
{'OR': [['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Cornwall', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Spain property:diplomatic_relation ?k } UNION { resource:John_Cornwall property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]