Simple Question (Direct)
Simple Question
Q3281810
P136
Q223393
USER
What can be considered as category for The Blacksmith ?
(Q3281810,P136,c(Q223393))
action filter_type
action find
entity Q3281810
relation P136
type Q223393
['Q3281810', 'P136', {'concept': 'Q223393'}]
SELECT DISTINCT ?x WHERE { resource:Q3281810 property:P136 ?x . ?x rdf:type ontology:Q223393 }
The Blacksmith
action filter_type
action find
entity The Blacksmith
relation genre
type literary genre
['The Blacksmith', 'genre', {'concept': 'literary genre'}]
SELECT DISTINCT ?x WHERE { resource:The_Blacksmith property:genre ?x . ?x rdf:type ontology:literary_genre }
[]
literary genre
Q40831
SYSTEM
comedy
Q40831
(Q3281810,P136,c(Q223393))
action filter_type
action find
entity Q3281810
relation P136
type Q223393
[ANSWER] can be considered as category for The Blacksmith
['Q3281810', 'P136', {'concept': 'Q223393'}]
SELECT DISTINCT ?x WHERE { resource:Q3281810 property:P136 ?x . ?x rdf:type ontology:Q223393 }
comedy
Comedy can be considered as category for The Blacksmith
comedy
action filter_type
action find
entity The Blacksmith
relation genre
type literary genre
['The Blacksmith', 'genre', {'concept': 'literary genre'}]
SELECT DISTINCT ?x WHERE { resource:The_Blacksmith property:genre ?x . ?x rdf:type ontology:literary_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3281810
P495
Q15617994
USER
Which administrative territory is the origin of The Blacksmith ?
(Q3281810,P495,c(Q15617994))
action filter_type
action find
entity Q3281810
relation P495
type Q15617994
['Q3281810', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3281810 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
The Blacksmith
action filter_type
action find
entity The Blacksmith
relation country of origin
type designation for an administrative territorial entity
['The Blacksmith', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:The_Blacksmith property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q3281810,P495,c(Q15617994))
action filter_type
action find
entity Q3281810
relation P495
type Q15617994
[ANSWER] is the origin of The Blacksmith
['Q3281810', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3281810 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of The Blacksmith
United States of America
action filter_type
action find
entity The Blacksmith
relation country of origin
type designation for an administrative territorial entity
['The Blacksmith', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:The_Blacksmith property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q222
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around the same number of administrative territories as Albania ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Q222 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?s ) }
Albania
action approx
action find_reverse_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 Albania
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Albania property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 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 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with around the same number of administrative territories as Albania
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Q222 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?s ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati 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 Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with around the same number of administrative territories as Albania
Georgia Netherlands Poland
action approx
action find_reverse_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 Albania
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 ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Albania property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q962
P530
Q15617994 Q15617994
USER
And how about Benin?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q962 property:P530 ?d } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?y } }
Benin
action approx
action find_reverse_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 Benin
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 ?y WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Benin property:diplomatic_relation ?d } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q962 property:P530 ?d } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?y } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal 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 Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia Netherlands Poland
action approx
action find_reverse_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 Benin
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 ?y WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Benin property:diplomatic_relation ?d } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q4164871 Q43229 Q15617994
USER
Which administrative territories have min number of positions or organizations as the type of government ?
(c(Q15617994),P122,c(Q4164871)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?u ) WHERE { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4164871 ) ( ontology:Q43229 ) } } GROUP BY ?s } } . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?m ) WHERE { VALUES ( ?r ) { ( ontology:Q4164871 ) ( ontology:Q43229 ) } . ?v rdf:type ?r } GROUP BY ?g } . FILTER ( ?m = ?y ) }
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'organization'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?u ) WHERE { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:position ) ( ontology:organization ) } } GROUP BY ?s } } . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?m ) WHERE { VALUES ( ?r ) { ( ontology:position ) ( ontology:organization ) } . ?v rdf:type ?r } GROUP BY ?g } . FILTER ( ?m = ?y ) }
[]
position organization designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q20 Q1045 Q27 Q28 Q29 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[ANSWERS] have min number of positions or organizations as the type of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?u ) WHERE { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4164871 ) ( ontology:Q43229 ) } } GROUP BY ?s } } . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?m ) WHERE { VALUES ( ?r ) { ( ontology:Q4164871 ) ( ontology:Q43229 ) } . ?v rdf:type ?r } GROUP BY ?g } . FILTER ( ?m = ?y ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan Norway Somalia Ireland Hungary Spain Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have min number of positions or organizations as the type of government
Italy Brazil United States of America
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'organization'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?y ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?u ) WHERE { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:position ) ( ontology:organization ) } } GROUP BY ?s } } . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?m ) WHERE { VALUES ( ?r ) { ( ontology:position ) ( ontology:organization ) } . ?v rdf:type ?r } GROUP BY ?g } . FILTER ( ?m = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q16
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Netherlands and Canada ?
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q16)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q16']
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P530 resource:Q55 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q16 . ?o rdf:type ontology:Q1048835 }
Netherlands Canada
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Canada']
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:diplomatic_relation resource:Netherlands . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Canada . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q16)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q16']
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P530 resource:Q55 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q16 . ?o rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Canada']
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:diplomatic_relation resource:Netherlands . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Canada . ?o rdf:type ontology:political_territorial_entity }
[]