Simple Question (Direct)
Simple Question
Q16679775
P106
Q12737077
USER
Which occupation has Nathan Allan de Souza as his/her 's career ?
(Q16679775,P106,c(Q12737077))
action filter_type
action find
entity Q16679775
relation P106
type Q12737077
['Q16679775', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16679775 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Nathan Allan de Souza
action filter_type
action find
entity Nathan Allan de Souza
relation occupation
type occupation
['Nathan Allan de Souza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Nathan_Allan_de_Souza property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q16679775,P106,c(Q12737077))
action filter_type
action find
entity Q16679775
relation P106
type Q12737077
The [ANSWER] has Nathan Allan de Souza as his/her 's career
['Q16679775', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16679775 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
association football player
The association football player has Nathan Allan de Souza as his/her 's career
association football player
action filter_type
action find
entity Nathan Allan de Souza
relation occupation
type occupation
['Nathan Allan de Souza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Nathan_Allan_de_Souza property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16679775
P641
Q349
USER
Which sport was that person a part of ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q16679775
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q16679775 property:P641 ?a . ?a rdf:type ontology:Q349 }
Nathan Allan de Souza
action filter_type
action find
entity Nathan Allan de Souza
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Nathan_Allan_de_Souza property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q16679775
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q16679775 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Nathan Allan de Souza
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Nathan_Allan_de_Souza property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16679775
P21
Q290
USER
What is the sex of Nathan Allan de Souza ?
(Q16679775,P21,c(Q290))
action filter_type
action find
entity Q16679775
relation P21
type Q290
['Q16679775', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q16679775 property:P21 ?o . ?o rdf:type ontology:Q290 }
Nathan Allan de Souza
action filter_type
action find
entity Nathan Allan de Souza
relation gender
type sex
['Nathan Allan de Souza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Nathan_Allan_de_Souza property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16679775,P21,c(Q290))
action filter_type
action find
entity Q16679775
relation P21
type Q290
The sex of Nathan Allan de Souza is a [ANSWER]
['Q16679775', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q16679775 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Nathan Allan de Souza is a male
male
action filter_type
action find
entity Nathan Allan de Souza
relation gender
type sex
['Nathan Allan de Souza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Nathan_Allan_de_Souza property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3026206
Q290
USER
And how about Diane Giguère?
(Q3026206,P21,c(Q290))
action filter_type
action find
entity Q3026206
relation P21
type Q290
['Q3026206', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3026206 property:P21 ?f . ?f rdf:type ontology:Q290 }
Diane Giguère
action filter_type
action find
entity Diane Giguère
relation gender
type sex
['Diane Giguère', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Diane_Giguère property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3026206,P21,c(Q290))
action filter_type
action find
entity Q3026206
relation P21
type Q290
[ANSWER]
['Q3026206', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3026206 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Diane Giguère
relation gender
type sex
['Diane Giguère', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Diane_Giguère property:gender ?f . ?f rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q18011062 Q16679775
P27 P137
Q15617994
USER
Which administrative territories are Nathan Allan de Souza an inhabitant of and can manage EMB 326 Xavante ?
AND((Q16679775,P27,c(Q15617994)), (Q18011062,P137,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16679775
relation P27
action find
entity Q18011062
relation P137
type Q15617994
{'AND': [['Q16679775', 'P27', {'concept': 'Q15617994'}], ['Q18011062', 'P137', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q16679775 property:P27 ?k . resource:Q18011062 property:P137 ?k . ?k rdf:type ontology:Q15617994 }
EMB 326 Xavante Nathan Allan de Souza
action filter_type
action intersection
action find
entity Nathan Allan de Souza
relation country of citizenship
action find
entity EMB 326 Xavante
relation operator
type designation for an administrative territorial entity
{'AND': [['Nathan Allan de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['EMB 326 Xavante', 'operator', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Nathan_Allan_de_Souza property:country_of_citizenship ?k . resource:EMB_326_Xavante property:operator ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
AND((Q16679775,P27,c(Q15617994)), (Q18011062,P137,c(Q15617994)))
action filter_type
action intersection
action find
entity Q16679775
relation P27
action find
entity Q18011062
relation P137
type Q15617994
[ANSWER] is Nathan Allan de Souza an inhabitant of and can manage EMB 326 Xavante
{'AND': [['Q16679775', 'P27', {'concept': 'Q15617994'}], ['Q18011062', 'P137', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q16679775 property:P27 ?k . resource:Q18011062 property:P137 ?k . ?k rdf:type ontology:Q15617994 }
Brazil
Brazil is Nathan Allan de Souza an inhabitant of and can manage EMB 326 Xavante
Brazil
action filter_type
action intersection
action find
entity Nathan Allan de Souza
relation country of citizenship
action find
entity EMB 326 Xavante
relation operator
type designation for an administrative territorial entity
{'AND': [['Nathan Allan de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['EMB 326 Xavante', 'operator', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Nathan_Allan_de_Souza property:country_of_citizenship ?k . resource:EMB_326_Xavante property:operator ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q419
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with approximately the same number of administrative territories as Peru ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q419 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?r rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?r property:P530 ?n } GROUP BY ?r } }
Peru
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Peru property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?n } GROUP BY ?r } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with approximately the same number of administrative territories as Peru
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q419 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?r rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?r property:P530 ?n } GROUP BY ?r } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and People's Republic of China are known to have diplomatic connections with approximately the same number of administrative territories as Peru
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Peru property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i = ?z ) . { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?n } GROUP BY ?r } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories are known to have diplomatic connections with that administrative territory ?
(c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q148) (c(Q1048835),P530,Q148)
[{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q148'] [{'concept': 'Q1048835'}, 'P530', 'Q148']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q10956965 } UNION { ?y property:P530 resource:Q10956965 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', "People's Republic of China"] [{'concept': 'political territorial entity'}, 'diplomatic relation', "People's Republic of China"]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:People's_Republic_of_China } UNION { ?y property:diplomatic_relation resource:People's_Republic_of_China } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q10956965 } UNION { ?y property:P530 resource:Q10956965 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Netherlands ?
Netherlands
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:People's_Republic_of_China } UNION { ?y property:diplomatic_relation resource:People's_Republic_of_China } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q148) (c(Q1048835),P530,Q148)
[{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q148'] [{'concept': 'Q1048835'}, 'P530', 'Q148']
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', "People's Republic of China"] [{'concept': 'political territorial entity'}, 'diplomatic relation', "People's Republic of China"]
[]
SYSTEM
2 administrative territories and 2 political territories
Q184 Q38 Q183 Q408
(c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q55) (c(Q1048835),P530,Q55) (c(Q15617994),P530,Q36) (c(Q1048835),P530,Q36) (c(Q15617994),P530,Q148) (c(Q1048835),P530,Q148)
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q15617994'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q15617994'}, 'P530', 'Q148'] [{'concept': 'Q1048835'}, 'P530', 'Q148']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q22442862 } UNION { ?y property:P530 resource:Q22442862 } UNION { ?z property:P530 resource:Q7208890 } UNION { ?y property:P530 resource:Q7208890 } UNION { ?z property:P530 resource:Q10956965 } UNION { ?y property:P530 resource:Q10956965 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Belarus Italy Germany Australia
2 administrative territories and 2 political territories
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', "People's Republic of China"] [{'concept': 'political territorial entity'}, 'diplomatic relation', "People's Republic of China"]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Netherlands } UNION { ?y property:diplomatic_relation resource:Netherlands } UNION { ?z property:diplomatic_relation resource:Poland } UNION { ?y property:diplomatic_relation resource:Poland } UNION { ?z property:diplomatic_relation resource:People's_Republic_of_China } UNION { ?y property:diplomatic_relation resource:People's_Republic_of_China } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]