Simple Question (Direct)
Simple Question
Q1784464
P937
Q56061
USER
Which is the work location of Rolf-Ulrich Kunze ?
(Q1784464,P937,c(Q56061))
action filter_type
action find
entity Q1784464
relation P937
type Q56061
['Q1784464', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1784464 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Rolf-Ulrich Kunze
action filter_type
action find
entity Rolf-Ulrich Kunze
relation work location
type administrative territorial entity
['Rolf-Ulrich Kunze', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Rolf-Ulrich_Kunze property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1040
SYSTEM
Karlsruhe
Q1040
(Q1784464,P937,c(Q56061))
action filter_type
action find
entity Q1784464
relation P937
type Q56061
The work location of Rolf-Ulrich Kunze is in [ANSWER]
['Q1784464', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1784464 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Karlsruhe
The work location of Rolf-Ulrich Kunze is in Karlsruhe
Karlsruhe
action filter_type
action find
entity Rolf-Ulrich Kunze
relation work location
type administrative territorial entity
['Rolf-Ulrich Kunze', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Rolf-Ulrich_Kunze property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1784464
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q1040,P27,c(Q1048835))
action filter_type
action find
entity Q1784464
relation P27
type Q1048835
['Q1040', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q1784464 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Rolf-Ulrich Kunze
action filter_type
action find
entity Rolf-Ulrich Kunze
relation country of citizenship
type political territorial entity
['Karlsruhe', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Rolf-Ulrich_Kunze property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1040,P27,c(Q1048835))
action filter_type
action find
entity Q1784464
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q1040', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q1784464 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Germany
Germany is that person an inhabitant of
Germany
action filter_type
action find
entity Rolf-Ulrich Kunze
relation country of citizenship
type political territorial entity
['Karlsruhe', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Rolf-Ulrich_Kunze property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q2530 Q18526344
P6
Q502895
USER
Does that political territory have a government lead by Gerhard Schröder and Alan Pim ?
(Q183,P6,Q2530) (Q183,P6,Q18526344)
action is_in
entity Q183
action intersection
action find_reverse
entity Q2530
relation P6
action find_reverse
entity Q18526344
relation P6
['Q183', 'P6', 'Q2530'] ['Q183', 'P6', 'Q18526344']
ASK WHERE { resource:Q183 property:P6 resource:Q2530 . resource:Q183 property:P6 resource:Q18526344 }
Germany Gerhard Schröder Alan Pim
action is_in
entity Germany
action intersection
action find_reverse
entity Gerhard Schröder
relation head of government
action find_reverse
entity Alan Pim
relation head of government
['Germany', 'head of government', 'Gerhard Schröder'] ['Germany', 'head of government', 'Alan Pim']
ASK WHERE { resource:Germany property:head_of_government resource:Gerhard_Schröder . resource:Germany property:head_of_government resource:Alan_Pim }
[]
common name
SYSTEM
YES and NO respectively
(Q183,P6,Q2530) (Q183,P6,Q18526344)
action is_in
entity Q183
action intersection
action find_reverse
entity Q2530
relation P6
action find_reverse
entity Q18526344
relation P6
[ANSWER]
['Q183', 'P6', 'Q2530'] ['Q183', 'P6', 'Q18526344']
ASK WHERE { resource:Q183 property:P6 resource:Q2530 . resource:Q183 property:P6 resource:Q18526344 }
YES and NO respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Gerhard Schröder
relation head of government
action find_reverse
entity Alan Pim
relation head of government
['Germany', 'head of government', 'Gerhard Schröder'] ['Germany', 'head of government', 'Alan Pim']
ASK WHERE { resource:Germany property:head_of_government resource:Gerhard_Schröder . resource:Germany property:head_of_government resource:Alan_Pim }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6165077 Q1784464
P108
Q3918
USER
Which universities are the employers of Rolf-Ulrich Kunze or Tamás Hausel ?
OR((Q1784464,P108,c(Q3918)), (Q6165077,P108,c(Q3918)))
action filter_type
action union
action find
entity Q1784464
relation P108
action find
entity Q6165077
relation P108
type Q3918
{'OR': [['Q1784464', 'P108', {'concept': 'Q3918'}], ['Q6165077', 'P108', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?u WHERE { { ?r property:P108 ?u . VALUES ( ?r ) { ( resource:Q1784464 ) ( resource:Q6165077 ) } } . ?u rdf:type ontology:Q3918 }
Tamás Hausel Rolf-Ulrich Kunze
action filter_type
action union
action find
entity Rolf-Ulrich Kunze
relation employer
action find
entity Tamás Hausel
relation employer
type university
{'OR': [['Rolf-Ulrich Kunze', 'employer', {'concept': 'university'}], ['Tamás Hausel', 'employer', {'concept': 'university'}]]}
SELECT DISTINCT ?u WHERE { { ?r property:employer ?u . VALUES ( ?r ) { ( resource:Rolf-Ulrich_Kunze ) ( resource:Tamás_Hausel ) } } . ?u rdf:type ontology:university }
[]
university
Q49213 Q34433 Q309988
SYSTEM
University of Texas at Austin, University of Oxford, Karlsruhe Institute of Technology
Q49213 Q34433 Q309988
OR((Q1784464,P108,c(Q3918)), (Q6165077,P108,c(Q3918)))
action filter_type
action union
action find
entity Q1784464
relation P108
action find
entity Q6165077
relation P108
type Q3918
[ANSWERS] are the employers of Rolf-Ulrich Kunze or Tamás Hausel
{'OR': [['Q1784464', 'P108', {'concept': 'Q3918'}], ['Q6165077', 'P108', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?u WHERE { { ?r property:P108 ?u . VALUES ( ?r ) { ( resource:Q1784464 ) ( resource:Q6165077 ) } } . ?u rdf:type ontology:Q3918 }
University of Texas at Austin University of Oxford Karlsruhe Institute of Technology
University of Texas at Austin, University of Oxford and Karlsruhe Institute of Technology are the employers of Rolf-Ulrich Kunze or Tamás Hausel
University of Texas at Austin University of Oxford Karlsruhe Institute of Technology
action filter_type
action union
action find
entity Rolf-Ulrich Kunze
relation employer
action find
entity Tamás Hausel
relation employer
type university
{'OR': [['Rolf-Ulrich Kunze', 'employer', {'concept': 'university'}], ['Tamás Hausel', 'employer', {'concept': 'university'}]]}
SELECT DISTINCT ?u WHERE { { ?r property:employer ?u . VALUES ( ?r ) { ( resource:Rolf-Ulrich_Kunze ) ( resource:Tamás_Hausel ) } } . ?u rdf:type ontology:university }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q778
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with approximately the same number of political territories or administrative territories as The Bahamas ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q778
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?e WHERE { { ?y property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?e } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P530 resource:Q778 . { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?s rdf:type ?b } } } . FILTER ( ?p = ?k ) }
The Bahamas
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?e WHERE { { ?y property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?e } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:diplomatic_relation resource:The_Bahamas . { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?b } } } . FILTER ( ?p = ?k ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q778
relation P530
type Q1048835
type Q15617994
[ANSWERS] have a diplomatic relationship with approximately the same number of political territories or administrative territories as The Bahamas
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?e WHERE { { ?y property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?e } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P530 resource:Q778 . { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?s rdf:type ?b } } } . FILTER ( ?p = ?k ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have a diplomatic relationship with approximately the same number of political territories or administrative territories as The Bahamas
Denmark Canada Austria
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?e WHERE { { ?y property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?e } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:diplomatic_relation resource:The_Bahamas . { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?b } } } . FILTER ( ?p = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q40
P530
Q1048835 Q1048835 Q15617994
USER
And how about Austria?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q40
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?w WHERE { ?e rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P530 resource:Q40 . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?p = ?o ) }
Austria
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?w WHERE { ?e rdf:type ?i . VALUES ( ?i ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:diplomatic_relation resource:Austria . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?p = ?o ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q40
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?w WHERE { ?e rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P530 resource:Q40 . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?p = ?o ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?w WHERE { ?e rdf:type ?i . VALUES ( ?i ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:diplomatic_relation resource:Austria . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?p = ?o ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are the native countriesof around the same number of people as that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q35
SYSTEM
Did you mean Denmark ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Denmark ?
Denmark
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Canada. Could you tell me the answer for that?
(c(Q502895),P27,c(Q1048835))
Q16
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
4
Q16 Q35 Q40 Q408
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Canada Denmark Austria Australia
4
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16 Q664
P530
Q1048835
USER
How many political territories have diplomatic relationships with Canada and New Zealand ?
(Q16,P530,c(Q1048835)) (Q664,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q664
relation P530
type Q1048835
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q664', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q664 property:P530 ?w . ?w rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Canada New Zealand
action count
action intersection
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['New Zealand', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:New_Zealand property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q16,P530,c(Q1048835)) (Q664,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q664', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q664 property:P530 ?w . ?w rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['New Zealand', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:New_Zealand property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]