Simple Question (Direct)
Simple Question
Q17302907
P39
Q12737077
USER
What was the position held by Francesco Forleo ?
(Q17302907,P39,c(Q12737077))
action filter_type
action find
entity Q17302907
relation P39
type Q12737077
['Q17302907', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q17302907 property:P39 ?y }
Francesco Forleo
action filter_type
action find
entity Francesco Forleo
relation position held
type occupation
['Francesco Forleo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Francesco_Forleo property:position_held ?y }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q17302907,P39,c(Q12737077))
action filter_type
action find
entity Q17302907
relation P39
type Q12737077
The position held by Francesco Forleo was a [ANSWER]
['Q17302907', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q17302907 property:P39 ?y }
member of the Chamber of Deputies of the Italian Republic
The position held by Francesco Forleo was a member of the Chamber of Deputies of the Italian Republic
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Francesco Forleo
relation position held
type occupation
['Francesco Forleo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Francesco_Forleo property:position_held ?y }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q95052 Q18558478
P47 P1001
Q15617994
USER
Which administrative territories come under the jurisdiction of member of the Chamber of Deputies of the Italian Republic or are adjacent to Adrara San Martino ?
OR((Q18558478,P1001,c(Q15617994)), (Q95052,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q18558478
relation P1001
action find
entity Q95052
relation P47
type Q15617994
{'OR': [['Q18558478', 'P1001', {'concept': 'Q15617994'}], ['Q95052', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q18558478 property:P1001 ?j } UNION { resource:Q95052 property:P47 ?j } } . ?j rdf:type ontology:Q15617994 }
Adrara San Martino member of the Chamber of Deputies of the Italian Republic
action filter_type
action union
action find
entity member of the Chamber of Deputies of the Italian Republic
relation applies to jurisdiction
action find
entity Adrara San Martino
relation shares border with
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Deputies of the Italian Republic', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Adrara San Martino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:applies_to_jurisdiction ?j } UNION { resource:Adrara_San_Martino property:shares_border_with ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q101248 Q101560 Q101773 Q95053 Q101750 Q99967 Q101756 Q101073 Q101158 Q38
SYSTEM
Monasterolo del Castello, Sarnico, Villongo, Adrara San Rocco, Viadanica, Berzo San Fermo, Vigolo, Foresto Sparso, Grone, Italy
Q101248 Q101560 Q101773 Q95053 Q101750 Q99967 Q101756 Q101073 Q101158 Q38
OR((Q18558478,P1001,c(Q15617994)), (Q95052,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q18558478
relation P1001
action find
entity Q95052
relation P47
type Q15617994
[ANSWERS] come under the jurisdiction of member of the Chamber of Deputies of the Italian Republic or are adjacent to Adrara San Martino
{'OR': [['Q18558478', 'P1001', {'concept': 'Q15617994'}], ['Q95052', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q18558478 property:P1001 ?j } UNION { resource:Q95052 property:P47 ?j } } . ?j rdf:type ontology:Q15617994 }
Monasterolo del Castello Sarnico Villongo Adrara San Rocco Viadanica Berzo San Fermo Vigolo Foresto Sparso Grone Italy
Monasterolo del Castello, Sarnico, Villongo, Adrara San Rocco, Viadanica, Berzo San Fermo, Vigolo, Foresto Sparso, Grone and Italy come under the jurisdiction of member of the Chamber of Deputies of the Italian Republic or are adjacent to Adrara San Martino
Monasterolo del Castello Sarnico Villongo Adrara San Rocco Viadanica Berzo San Fermo Vigolo Foresto Sparso Grone Italy
action filter_type
action union
action find
entity member of the Chamber of Deputies of the Italian Republic
relation applies to jurisdiction
action find
entity Adrara San Martino
relation shares border with
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Deputies of the Italian Republic', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Adrara San Martino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:applies_to_jurisdiction ?j } UNION { resource:Adrara_San_Martino property:shares_border_with ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with approximately the same number of administrative territories as Grenada ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?s } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?y ) WHERE { ?x property:P530 ?t . ?x rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?x } }
Grenada
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?s } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?y ) WHERE { ?x property:diplomatic_relation ?t . ?x rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q769 property:P530 ?s } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?y ) WHERE { ?x property:P530 ?t . ?x rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?x } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Grenada property:diplomatic_relation ?s } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?y ) WHERE { ?x property:diplomatic_relation ?t . ?x rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q183
P530
Q1048835 Q15617994
USER
And what about Germany?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?n ) WHERE { ?i property:P530 ?s . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?n = ?a ) }
Germany
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?n ) WHERE { ?i property:diplomatic_relation ?s . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?n = ?a ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?n ) WHERE { ?i property:P530 ?s . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?n = ?a ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?n ) WHERE { ?i property:diplomatic_relation ?s . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?n = ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with approximately 6 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
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
value 6
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } UNION { ?f property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?k = 6 ) }
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
value 6
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?k = 6 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political 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)|c(Q1048835),P530,c(Q15617994))
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
value 6
[ANSWERS] have a diplomatic relationship with approximately 6 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } UNION { ?f property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?k = 6 ) }
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 a diplomatic relationship with approximately 6 administrative territories and political territories
Georgia Netherlands Poland
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
value 6
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?k = 6 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2031291
USER
How many administrative territories are the origins of approximately the same number of film genres and releases as that administrative territory ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity film genre release
Comparative|Count over More/Less|Mult. entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Poland ?
Poland
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 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 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy 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 Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 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 Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q7975296 Q38
P530 P495
Q15617994
USER
Which administrative territories have diplomatic relations with Italy and are not the countries of origin of Wave Twisters ?
AND((Q38,P530,c(Q15617994)), NOT((Q7975296,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q38
relation P530
action find
entity Q7975296
relation P495
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q7975296', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { resource:Q38 property:P530 ?g . MINUS { resource:Q7975296 property:P495 ?g } . ?g rdf:type ontology:Q15617994 }
Wave Twisters Italy
action filter_type
action difference
action find
entity Italy
relation diplomatic relation
action find
entity Wave Twisters
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Wave Twisters', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { resource:Italy property:diplomatic_relation ?g . MINUS { resource:Wave_Twisters property:country_of_origin ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q347 Q17 Q224 Q1045 Q225 Q213 Q37 Q419 Q805
SYSTEM
Some of them are Switzerland, Liechtenstein, Japan, Croatia, Somalia, Bosnia and Herzegovina, Czech Republic, Lithuania, Peru, Yemen
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
AND((Q38,P530,c(Q15617994)), NOT((Q7975296,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q38
relation P530
action find
entity Q7975296
relation P495
type Q15617994
[ANSWERS] have diplomatic relations with Italy and are not the countries of origin of Wave Twisters
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q7975296', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { resource:Q38 property:P530 ?g . MINUS { resource:Q7975296 property:P495 ?g } . ?g rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Switzerland, Liechtenstein, Japan, Croatia, Somalia, Bosnia and Herzegovina, Czech Republic, Lithuania, Peru and Yemen have diplomatic relations with Italy and are not the countries of origin of Wave Twisters
Switzerland Liechtenstein Japan Croatia Somalia Bosnia and Herzegovina Czech Republic Lithuania Peru Yemen
action filter_type
action difference
action find
entity Italy
relation diplomatic relation
action find
entity Wave Twisters
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Wave Twisters', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { resource:Italy property:diplomatic_relation ?g . MINUS { resource:Wave_Twisters property:country_of_origin ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have ambassadorial relations with those ones ?
(Q38,P530,Q39) (Q38,P530,Q347) (Q38,P530,Q17) (Q38,P530,Q224) (Q38,P530,Q1045) (Q38,P530,Q225) (Q38,P530,Q213) (Q38,P530,Q37) (Q38,P530,Q419) (Q38,P530,Q805)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q39'] ['Q38', 'P530', 'Q347'] ['Q38', 'P530', 'Q17'] ['Q38', 'P530', 'Q224'] ['Q38', 'P530', 'Q1045'] ['Q38', 'P530', 'Q225'] ['Q38', 'P530', 'Q213'] ['Q38', 'P530', 'Q37'] ['Q38', 'P530', 'Q419'] ['Q38', 'P530', 'Q805']
ASK WHERE { VALUES ( ?x ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } . resource:Q38 property:P530 ?x }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Switzerland'] ['Italy', 'diplomatic relation', 'Liechtenstein'] ['Italy', 'diplomatic relation', 'Japan'] ['Italy', 'diplomatic relation', 'Croatia'] ['Italy', 'diplomatic relation', 'Somalia'] ['Italy', 'diplomatic relation', 'Bosnia and Herzegovina'] ['Italy', 'diplomatic relation', 'Czech Republic'] ['Italy', 'diplomatic relation', 'Lithuania'] ['Italy', 'diplomatic relation', 'Peru'] ['Italy', 'diplomatic relation', 'Yemen']
ASK WHERE { VALUES ( ?x ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } . resource:Italy property:diplomatic_relation ?x }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q39) (Q38,P530,Q347) (Q38,P530,Q17) (Q38,P530,Q224) (Q38,P530,Q1045) (Q38,P530,Q225) (Q38,P530,Q213) (Q38,P530,Q37) (Q38,P530,Q419) (Q38,P530,Q805)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q39'] ['Q38', 'P530', 'Q347'] ['Q38', 'P530', 'Q17'] ['Q38', 'P530', 'Q224'] ['Q38', 'P530', 'Q1045'] ['Q38', 'P530', 'Q225'] ['Q38', 'P530', 'Q213'] ['Q38', 'P530', 'Q37'] ['Q38', 'P530', 'Q419'] ['Q38', 'P530', 'Q805']
ASK WHERE { VALUES ( ?x ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } . resource:Q38 property:P530 ?x }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Switzerland'] ['Italy', 'diplomatic relation', 'Liechtenstein'] ['Italy', 'diplomatic relation', 'Japan'] ['Italy', 'diplomatic relation', 'Croatia'] ['Italy', 'diplomatic relation', 'Somalia'] ['Italy', 'diplomatic relation', 'Bosnia and Herzegovina'] ['Italy', 'diplomatic relation', 'Czech Republic'] ['Italy', 'diplomatic relation', 'Lithuania'] ['Italy', 'diplomatic relation', 'Peru'] ['Italy', 'diplomatic relation', 'Yemen']
ASK WHERE { VALUES ( ?x ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } . resource:Italy property:diplomatic_relation ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q224 Q4344237
P47
Q15617994
USER
Is Paanajärvi bordered by Croatia ?
(Q224,P47,Q4344237)
action is_in
entity Q4344237
action find
entity Q224
relation P47
['Q224', 'P47', 'Q4344237']
ASK WHERE { resource:Q224 property:P47 resource:Q4344237 }
Croatia Paanajärvi
action is_in
entity Paanajärvi
action find
entity Croatia
relation shares border with
['Croatia', 'shares border with', 'Paanajärvi']
ASK WHERE { resource:Croatia property:shares_border_with resource:Paanajärvi }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q224,P47,Q4344237)
action is_in
entity Q4344237
action find
entity Q224
relation P47
[ANSWER]
['Q224', 'P47', 'Q4344237']
ASK WHERE { resource:Q224 property:P47 resource:Q4344237 }
No
action is_in
entity Paanajärvi
action find
entity Croatia
relation shares border with
['Croatia', 'shares border with', 'Paanajärvi']
ASK WHERE { resource:Croatia property:shares_border_with resource:Paanajärvi }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q34020
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with approximately the same number of administrative territories and political territories as Niue ?
(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 Q34020
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:P530 ?b . ?q rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?q property:P530 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P530 resource:Q34020 . { { ?i rdf:type ontology:Q15617994 } UNION { ?i rdf:type ontology:Q1048835 } } } } . FILTER ( ?d = ?j ) }
Niue
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 Niue
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 ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:diplomatic_relation ?b . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?q property:diplomatic_relation ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:diplomatic_relation resource:Niue . { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?d = ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
152
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)|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 Q34020
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:P530 ?b . ?q rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?q property:P530 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P530 resource:Q34020 . { { ?i rdf:type ontology:Q15617994 } UNION { ?i rdf:type ontology:Q1048835 } } } } . FILTER ( ?d = ?j ) }
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
152
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 Niue
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 ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:diplomatic_relation ?b . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?q property:diplomatic_relation ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:diplomatic_relation resource:Niue . { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?d = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q218
P530
Q15617994 Q15617994 Q1048835
USER
And also tell me about Romania?
(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 Q218
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?a WHERE { { ?h property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } UNION { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?a } } GROUP BY ?a } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { ?l property:P530 resource:Q218 . { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?l rdf:type ?p } } } }
Romania
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 Romania
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 ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?a WHERE { { ?h property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?a } } GROUP BY ?a } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { ?l property:diplomatic_relation resource:Romania . { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?p } } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
155
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 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 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)|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 Q218
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?a WHERE { { ?h property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } UNION { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?a } } GROUP BY ?a } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { ?l property:P530 resource:Q218 . { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?l rdf:type ?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 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 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
155
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 Romania
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 ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?a WHERE { { ?h property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?a } } GROUP BY ?a } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { ?l property:diplomatic_relation resource:Romania . { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?p } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with atmost 32 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 32
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?a ) WHERE { ?o property:P530 ?x . ?o rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?a <= 32 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?a ) WHERE { ?o property:diplomatic_relation ?x . ?o rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?a <= 32 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 32
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?a ) WHERE { ?o property:P530 ?x . ?o rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?a <= 32 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?a ) WHERE { ?o property:diplomatic_relation ?x . ?o rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?a <= 32 ) }
[]