Simple Question (Direct)
Simple Question
Q2898741
P734
Q82799
USER
Which name is associated with Bernard Vera ?
(Q2898741,P734,c(Q82799))
action filter_type
action find
entity Q2898741
relation P734
type Q82799
['Q2898741', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q2898741 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Bernard Vera
action filter_type
action find
entity Bernard Vera
relation family name
type name
['Bernard Vera', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Bernard_Vera property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q6160477
SYSTEM
Vera
Q6160477
(Q2898741,P734,c(Q82799))
action filter_type
action find
entity Q2898741
relation P734
type Q82799
S [ANSWER] is associated with Bernard [ANSWER]
['Q2898741', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q2898741 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Vera
S Vera is associated with Bernard Vera
Vera
action filter_type
action find
entity Bernard Vera
relation family name
type name
['Bernard Vera', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Bernard_Vera property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2898741
P937
Q56061
USER
Which administrative territory is the work location of Bernard Vera ?
(Q2898741,P937,c(Q56061))
action filter_type
action find
entity Q2898741
relation P937
type Q56061
['Q2898741', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q2898741 property:P937 ?f }
Bernard Vera
action filter_type
action find
entity Bernard Vera
relation work location
type administrative territorial entity
['Bernard Vera', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Bernard_Vera property:work_location ?f }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q2898741,P937,c(Q56061))
action filter_type
action find
entity Q2898741
relation P937
type Q56061
[ANSWER] is the work location of Bernard Vera
['Q2898741', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q2898741 property:P937 ?f }
Paris
Paris is the work location of Bernard Vera
Paris
action filter_type
action find
entity Bernard Vera
relation work location
type administrative territorial entity
['Bernard Vera', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Bernard_Vera property:work_location ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2898741
P39
Q12737077
USER
Which occupations were the positions for which Bernard Vera were appointed ?
(Q2898741,P39,c(Q12737077))
action filter_type
action find
entity Q2898741
relation P39
type Q12737077
['Q2898741', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2898741 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Bernard Vera
action filter_type
action find
entity Bernard Vera
relation position held
type occupation
['Bernard Vera', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bernard_Vera property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q14828018 Q382617
SYSTEM
member of the Senate of France, maire
Q14828018 Q382617
(Q2898741,P39,c(Q12737077))
action filter_type
action find
entity Q2898741
relation P39
type Q12737077
[ANSWERS] were the positions for which Bernard Vera were appointed
['Q2898741', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2898741 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
member of the Senate of France maire
Member of the Senate of France and maire were the positions for which Bernard Vera were appointed
member of the Senate of France maire
action filter_type
action find
entity Bernard Vera
relation position held
type occupation
['Bernard Vera', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bernard_Vera property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q709593
Q12737077
USER
And what about Arthur Grundmann?
(Q709593,P39,c(Q12737077))
action filter_type
action find
entity Q709593
relation P39
type Q12737077
['Q709593', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q709593 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Arthur Grundmann
action filter_type
action find
entity Arthur Grundmann
relation position held
type occupation
['Arthur Grundmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Grundmann property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q1939555
SYSTEM
member of the German Bundestag
Q1939555
(Q709593,P39,c(Q12737077))
action filter_type
action find
entity Q709593
relation P39
type Q12737077
[ANSWER]
['Q709593', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q709593 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
member of the German Bundestag
member of the German Bundestag
action filter_type
action find
entity Arthur Grundmann
relation position held
type occupation
['Arthur Grundmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Grundmann property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q709593
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q1939555,P27,c(Q1048835))
action filter_type
action find
entity Q709593
relation P27
type Q1048835
['Q1939555', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q709593 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Arthur Grundmann
action filter_type
action find
entity Arthur Grundmann
relation country of citizenship
type political territorial entity
['member of the German Bundestag', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Arthur_Grundmann property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1939555,P27,c(Q1048835))
action filter_type
action find
entity Q709593
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q1939555', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q709593 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Arthur Grundmann
relation country of citizenship
type political territorial entity
['member of the German Bundestag', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Arthur_Grundmann property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q419
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic associations with more number of political territories than Peru ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?o ) WHERE { ?h property:P530 ?w . ?w rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q419 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?f ) }
Peru
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political 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': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?o ) WHERE { ?h property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Peru property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?f ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?o ) WHERE { ?h property:P530 ?w . ?w rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q419 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?f ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political 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': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?o ) WHERE { ?h property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Peru property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q902
P530
Q1048835 Q15617994
USER
And also tell me about Bangladesh?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q902
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q902 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?b ) WHERE { ?e property:P530 ?z . ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?e } }
Bangladesh
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Bangladesh property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?b ) WHERE { ?e property:diplomatic_relation ?z . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?e } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q902
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q902 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?b ) WHERE { ?e property:P530 ?z . ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?e } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Bangladesh property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?b ) WHERE { ?e property:diplomatic_relation ?z . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q207575 Q709593
P190 P937
Q56061
USER
Which administrative territories are the locations where Arthur Grundmann worked or are twin cities of Riom ?
OR((Q709593,P937,c(Q56061)), (Q207575,P190,c(Q56061)))
action filter_type
action union
action find
entity Q709593
relation P937
action find
entity Q207575
relation P190
type Q56061
{'OR': [['Q709593', 'P937', {'concept': 'Q56061'}], ['Q207575', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q709593 property:P937 ?z } UNION { resource:Q207575 property:P190 ?z } } . ?z rdf:type ontology:Q56061 }
Riom Arthur Grundmann
action filter_type
action union
action find
entity Arthur Grundmann
relation work location
action find
entity Riom
relation sister city
type administrative territorial entity
{'OR': [['Arthur Grundmann', 'work location', {'concept': 'administrative territorial entity'}], ['Riom', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Arthur_Grundmann property:work_location ?z } UNION { resource:Riom property:sister_city ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q246554 Q586 Q208158 Q770599
SYSTEM
Dolisie, Bonn, Viana do Castelo, Shoreham-by-Sea
Q246554 Q586 Q208158 Q770599
OR((Q709593,P937,c(Q56061)), (Q207575,P190,c(Q56061)))
action filter_type
action union
action find
entity Q709593
relation P937
action find
entity Q207575
relation P190
type Q56061
[ANSWERS] are the locations where Arthur Grundmann worked or are twin cities of Riom
{'OR': [['Q709593', 'P937', {'concept': 'Q56061'}], ['Q207575', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q709593 property:P937 ?z } UNION { resource:Q207575 property:P190 ?z } } . ?z rdf:type ontology:Q56061 }
Dolisie Bonn Viana do Castelo Shoreham-by-Sea
Dolisie, Bonn, Viana do Castelo and Shoreham-by-Sea are the locations where Arthur Grundmann worked or are twin cities of Riom
Dolisie Bonn Viana do Castelo Shoreham-by-Sea
action filter_type
action union
action find
entity Arthur Grundmann
relation work location
action find
entity Riom
relation sister city
type administrative territorial entity
{'OR': [['Arthur Grundmann', 'work location', {'concept': 'administrative territorial entity'}], ['Riom', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Arthur_Grundmann property:work_location ?z } UNION { resource:Riom property:sister_city ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q1048835
USER
How many political territories are that administrative territory located in ?
(Q586,P17,c(Q1048835))
['Q586', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
['Bonn', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q246554
SYSTEM
Did you mean Dolisie ?
(Q246554,P17,c(Q1048835)) (Q586,P17,c(Q1048835)) (Q208158,P17,c(Q1048835)) (Q770599,P17,c(Q1048835))
[ANSWER]
['Q246554', 'P17', {'concept': 'Q1048835'}] ['Q586', 'P17', {'concept': 'Q1048835'}] ['Q208158', 'P17', {'concept': 'Q1048835'}] ['Q770599', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Dolisie ?
Dolisie
['Dolisie', 'country', {'concept': 'political territorial entity'}] ['Bonn', 'country', {'concept': 'political territorial entity'}] ['Viana do Castelo', 'country', {'concept': 'political territorial entity'}] ['Shoreham-by-Sea', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Bonn. Could you tell me the answer for that?
(Q586,P17,c(Q1048835))
Q586
['Q586', 'P17', {'concept': 'Q1048835'}]
['Bonn', 'country', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q183
(Q586,P17,c(Q1048835))
[ANSWER]
['Q586', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
Germany
1
['Bonn', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q822 Q902
P530
Q15617994
USER
Which administrative territories have diplomatic relationships with Bangladesh or Lebanon ?
OR((Q902,P530,c(Q15617994)), (Q822,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q902
relation P530
action find
entity Q822
relation P530
type Q15617994
{'OR': [['Q902', 'P530', {'concept': 'Q15617994'}], ['Q822', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q902 property:P530 ?u } UNION { resource:Q822 property:P530 ?u } } . ?u rdf:type ontology:Q15617994 }
Lebanon Bangladesh
action filter_type
action union
action find
entity Bangladesh
relation diplomatic relation
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Bangladesh', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lebanon', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Bangladesh property:diplomatic_relation ?u } UNION { resource:Lebanon property:diplomatic_relation ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801 Q145 Q155 Q30 Q34 Q38
SYSTEM
Israel, United Kingdom, Brazil, United States of America, Sweden, Italy
Q801 Q145 Q155 Q30 Q34 Q38
OR((Q902,P530,c(Q15617994)), (Q822,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q902
relation P530
action find
entity Q822
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with Bangladesh or Lebanon
{'OR': [['Q902', 'P530', {'concept': 'Q15617994'}], ['Q822', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q902 property:P530 ?u } UNION { resource:Q822 property:P530 ?u } } . ?u rdf:type ontology:Q15617994 }
Israel United Kingdom Brazil United States of America Sweden Italy
Israel, United Kingdom, Brazil, United States of America, Sweden and Italy have diplomatic relationships with Bangladesh or Lebanon
Israel United Kingdom Brazil United States of America Sweden Italy
action filter_type
action union
action find
entity Bangladesh
relation diplomatic relation
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Bangladesh', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lebanon', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Bangladesh property:diplomatic_relation ?u } UNION { resource:Lebanon property:diplomatic_relation ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]