Simple Question (Direct)
Simple Question
Q3567256
P19
Q56061
USER
Where was Wendy Sue Lamm born ?
(Q3567256,P19,c(Q56061))
action filter_type
action find
entity Q3567256
relation P19
type Q56061
['Q3567256', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q3567256 property:P19 ?q }
Wendy Sue Lamm
action filter_type
action find
entity Wendy Sue Lamm
relation place of birth
type administrative territorial entity
['Wendy Sue Lamm', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Wendy_Sue_Lamm property:place_of_birth ?q }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q3567256,P19,c(Q56061))
action filter_type
action find
entity Q3567256
relation P19
type Q56061
Wendy Sue Lamm was born in [ANSWER]
['Q3567256', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q3567256 property:P19 ?q }
Los Angeles
Wendy Sue Lamm was born in Los Angeles
Los Angeles
action filter_type
action find
entity Wendy Sue Lamm
relation place of birth
type administrative territorial entity
['Wendy Sue Lamm', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Wendy_Sue_Lamm property:place_of_birth ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3567256
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q65,P27,c(Q15617994))
action filter_type
action find
entity Q3567256
relation P27
type Q15617994
['Q65', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q3567256 property:P27 ?i }
Wendy Sue Lamm
action filter_type
action find
entity Wendy Sue Lamm
relation country of citizenship
type designation for an administrative territorial entity
['Los Angeles', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wendy_Sue_Lamm property:country_of_citizenship ?i }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q65,P27,c(Q15617994))
action filter_type
action find
entity Q3567256
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q65', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q3567256 property:P27 ?i }
United States of America
That person belongs to the United States of America
United States of America
action filter_type
action find
entity Wendy Sue Lamm
relation country of citizenship
type designation for an administrative territorial entity
['Los Angeles', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wendy_Sue_Lamm property:country_of_citizenship ?i }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q419
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with around the same number of administrative territories as Peru ?
(c(Q15617994),P530,c(Q15617994))
action count
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 ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Q419 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?v } GROUP BY ?o } }
Peru
action count
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 ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Peru property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?v } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
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 count
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
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Q419 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?v } GROUP BY ?o } }
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
148
action count
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 ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { resource:Peru property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?v } GROUP BY ?o } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q219
P530
Q15617994 Q15617994
USER
And how about Bulgaria?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q219
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?z property:P530 ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q219 property:P530 ?o } } . FILTER ( ?e = ?y ) }
Bulgaria
action count
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 Bulgaria
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 ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bulgaria property:diplomatic_relation ?o } } . FILTER ( ?e = ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
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 count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q219
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?z property:P530 ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q219 property:P530 ?o } } . FILTER ( ?e = ?y ) }
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
148
action count
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 Bulgaria
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 ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bulgaria property:diplomatic_relation ?o } } . FILTER ( ?e = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q15416 Q838948
USER
How many administrative territories are the narrative locations of exactly 8 television programs or works of art ?
(c(Q15416)|c(Q838948),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 8
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?f WHERE { VALUES ( ?u ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?r rdf:type ?u } GROUP BY ?f } . FILTER ( ?v = 8 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 8
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?f WHERE { VALUES ( ?u ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?r rdf:type ?u } GROUP BY ?f } . FILTER ( ?v = 8 ) }
[]
administrative territorial entity television program work of art
SYSTEM
2
Q72 Q1757
(c(Q15416)|c(Q838948),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 8
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?f WHERE { VALUES ( ?u ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?r rdf:type ?u } GROUP BY ?f } . FILTER ( ?v = 8 ) }
Zürich Helsinki
2
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 8
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) ?f WHERE { VALUES ( ?u ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?r rdf:type ?u } GROUP BY ?f } . FILTER ( ?v = 8 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q41
P495
Q15617994 Q838948 Q2088357
USER
How many administrative territories did lesser number of works of art and musical ensembles originate than Greece ?
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q41
relation P495
type Q838948
type Q2088357
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?k WHERE { { ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 . ?u property:P495 ?k } UNION { ?u property:P495 ?k . ?u rdf:type ontology:Q2088357 . ?k rdf:type ontology:Q15617994 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P495 resource:Q41 . { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q2088357 ) } . ?h rdf:type ?y } } } . FILTER ( ?a < ?c ) }
Greece
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Greece
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art . ?u property:country_of_origin ?k } UNION { ?u property:country_of_origin ?k . ?u rdf:type ontology:musical_ensemble . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:country_of_origin resource:Greece . { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:musical_ensemble ) } . ?h rdf:type ?y } } } . FILTER ( ?a < ?c ) }
[]
designation for an administrative territorial entity work of art musical ensemble
SYSTEM
142
Q805 Q804 Q800 Q1462 Q419 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q41
relation P495
type Q838948
type Q2088357
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?k WHERE { { ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 . ?u property:P495 ?k } UNION { ?u property:P495 ?k . ?u rdf:type ontology:Q2088357 . ?k rdf:type ontology:Q15617994 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P495 resource:Q41 . { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q2088357 ) } . ?h rdf:type ?y } } } . FILTER ( ?a < ?c ) }
Yemen Panama Costa Rica Sardinia Peru Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Ireland Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
142
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Greece
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?k WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art . ?u property:country_of_origin ?k } UNION { ?u property:country_of_origin ?k . ?u rdf:type ontology:musical_ensemble . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:country_of_origin resource:Greece . { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:musical_ensemble ) } . ?h rdf:type ?y } } } . FILTER ( ?a < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q265
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with approximately the same number of administrative territories or political territories as Uzbekistan ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q265
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) ?x WHERE { { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?a property:P530 ?x } UNION { ?a property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } } GROUP BY ?x } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q1048835 } } . ?d property:P530 resource:Q265 } } }
Uzbekistan
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) ?x WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?x } UNION { ?a property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:political_territorial_entity } } . ?d property:diplomatic_relation resource:Uzbekistan } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
150
Q702 Q804 Q800 Q419 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
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q265
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) ?x WHERE { { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?a property:P530 ?x } UNION { ?a property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } } GROUP BY ?x } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q1048835 } } . ?d property:P530 resource:Q265 } } }
Federated States of Micronesia Panama Costa Rica Peru 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
150
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) ?x WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?x } UNION { ?a property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:political_territorial_entity } } . ?d property:diplomatic_relation resource:Uzbekistan } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q971
P530
Q15617994 Q15617994 Q1048835
USER
And how about Republic of the Congo?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q971
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 resource:Q971 . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q1048835 } } } } . FILTER ( ?t = ?p ) }
Republic of the Congo
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Republic of the Congo
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?z . VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation resource:Republic_of_the_Congo . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?t = ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
153
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 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q971
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P530 resource:Q971 . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q1048835 } } } } . FILTER ( ?t = ?p ) }
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 Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
153
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Republic of the Congo
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?z . VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:diplomatic_relation resource:Republic_of_the_Congo . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?t = ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P127
Q838948 Q811430
USER
How many works of art or constructions are owned by United States of America ?
(c(Q838948),P127,Q30) (c(Q811430),P127,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P127
type Q838948
action filter_type
action find_reverse
entity Q30
relation P127
type Q811430
[{'concept': 'Q838948'}, 'P127', 'Q30'] [{'concept': 'Q811430'}, 'P127', 'Q30']
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { ?d rdf:type ontology:Q838948 . ?d property:P127 resource:Q30 } UNION { ?d property:P127 resource:Q30 . ?d rdf:type ontology:Q811430 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation owned by
type work of art
action filter_type
action find_reverse
entity United States of America
relation owned by
type construction
[{'concept': 'work of art'}, 'owned by', 'United States of America'] [{'concept': 'construction'}, 'owned by', 'United States of America']
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { ?d rdf:type ontology:work_of_art . ?d property:owned_by resource:United_States_of_America } UNION { ?d property:owned_by resource:United_States_of_America . ?d rdf:type ontology:construction } }
[]
work of art construction
SYSTEM
2
Q7318882 Q20709326
(c(Q838948),P127,Q30) (c(Q811430),P127,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P127
type Q838948
action filter_type
action find_reverse
entity Q30
relation P127
type Q811430
[ANSWER]
[{'concept': 'Q838948'}, 'P127', 'Q30'] [{'concept': 'Q811430'}, 'P127', 'Q30']
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { ?d rdf:type ontology:Q838948 . ?d property:P127 resource:Q30 } UNION { ?d property:P127 resource:Q30 . ?d rdf:type ontology:Q811430 } }
Revolutionary War Door John Paul Hammerschmidt Federal Building
2
action count
action union
action filter_type
action find_reverse
entity United States of America
relation owned by
type work of art
action filter_type
action find_reverse
entity United States of America
relation owned by
type construction
[{'concept': 'work of art'}, 'owned by', 'United States of America'] [{'concept': 'construction'}, 'owned by', 'United States of America']
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { ?d rdf:type ontology:work_of_art . ?d property:owned_by resource:United_States_of_America } UNION { ?d property:owned_by resource:United_States_of_America . ?d rdf:type ontology:construction } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P27
Q2235308 Q35120
USER
How many ship types or entities are a native of United States of America ?
(c(Q2235308),P27,Q30) (c(Q35120),P27,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P27
type Q2235308
action filter_type
action find_reverse
entity Q30
relation P27
type Q35120
[{'concept': 'Q2235308'}, 'P27', 'Q30'] [{'concept': 'Q35120'}, 'P27', 'Q30']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { ?p property:P27 resource:Q30 . ?p rdf:type ontology:Q2235308 } UNION { ?p property:P27 resource:Q30 . ?p rdf:type ontology:Q35120 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country of citizenship
type ship type
action filter_type
action find_reverse
entity United States of America
relation country of citizenship
type entity
[{'concept': 'ship type'}, 'country of citizenship', 'United States of America'] [{'concept': 'entity'}, 'country of citizenship', 'United States of America']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { ?p property:country_of_citizenship resource:United_States_of_America . ?p rdf:type ontology:ship_type } UNION { ?p property:country_of_citizenship resource:United_States_of_America . ?p rdf:type ontology:entity } }
[]
ship type entity
SYSTEM
2
Q4666552 Q5447913
(c(Q2235308),P27,Q30) (c(Q35120),P27,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P27
type Q2235308
action filter_type
action find_reverse
entity Q30
relation P27
type Q35120
[ANSWER]
[{'concept': 'Q2235308'}, 'P27', 'Q30'] [{'concept': 'Q35120'}, 'P27', 'Q30']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { ?p property:P27 resource:Q30 . ?p rdf:type ontology:Q2235308 } UNION { ?p property:P27 resource:Q30 . ?p rdf:type ontology:Q35120 } }
Abel Douglass Fighting McCooks
2
action count
action union
action filter_type
action find_reverse
entity United States of America
relation country of citizenship
type ship type
action filter_type
action find_reverse
entity United States of America
relation country of citizenship
type entity
[{'concept': 'ship type'}, 'country of citizenship', 'United States of America'] [{'concept': 'entity'}, 'country of citizenship', 'United States of America']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { ?p property:country_of_citizenship resource:United_States_of_America . ?p rdf:type ontology:ship_type } UNION { ?p property:country_of_citizenship resource:United_States_of_America . ?p rdf:type ontology:entity } }
[]