Simple Question (Direct)
Simple Question
Q40506
P47
Q15617994
USER
Which administrative territories are adjacent to Maccagno ?
(Q40506,P47,c(Q15617994))
action filter_type
action find
entity Q40506
relation P47
type Q15617994
['Q40506', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q40506 property:P47 ?k . ?k rdf:type ontology:Q15617994 }
Maccagno
action filter_type
action find
entity Maccagno
relation shares border with
type designation for an administrative territorial entity
['Maccagno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Maccagno property:shares_border_with ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q40120 Q41052 Q23291
SYSTEM
Luino, Dumenza, Cannobio
Q39819 Q23291 Q39250 Q40120 Q39852 Q41052
(Q40506,P47,c(Q15617994))
action filter_type
action find
entity Q40506
relation P47
type Q15617994
Are [ANSWERS] are adjacent to Maccagno
['Q40506', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q40506 property:P47 ?k . ?k rdf:type ontology:Q15617994 }
Tronzano Lago Maggiore Cannobio Veddasca Luino Agra Dumenza
Are Luino, Dumenza and Cannobio are adjacent to Maccagno
Luino Dumenza Cannobio
action filter_type
action find
entity Maccagno
relation shares border with
type designation for an administrative territorial entity
['Maccagno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Maccagno property:shares_border_with ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40506
P17
Q15617994
USER
Which administrative territory is Maccagno situated in ?
(Q40506,P17,c(Q15617994))
action filter_type
action find
entity Q40506
relation P17
type Q15617994
['Q40506', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q40506 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Maccagno
action filter_type
action find
entity Maccagno
relation country
type designation for an administrative territorial entity
['Maccagno', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Maccagno property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q40506,P17,c(Q15617994))
action filter_type
action find
entity Q40506
relation P17
type Q15617994
Maccagno is situated in [ANSWER]
['Q40506', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q40506 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Italy
Maccagno is situated in Italy
Italy
action filter_type
action find
entity Maccagno
relation country
type designation for an administrative territorial entity
['Maccagno', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Maccagno property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P840
Q11424 Q201658
USER
How many films and film genres have their narrative set in that administrative territory ?
(c(Q11424),P840,Q38) (c(Q201658),P840,Q38) (c(Q11424),P840,Q38) (c(Q201658),P840,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P840
type Q11424
action filter_type
action find_reverse
entity Q38
relation P840
type Q201658
[{'concept': 'Q11424'}, 'P840', 'Q38'] [{'concept': 'Q201658'}, 'P840', 'Q38'] [{'concept': 'Q11424'}, 'P840', 'Q38'] [{'concept': 'Q201658'}, 'P840', 'Q38']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?u . VALUES ( ?u ) { ( ontology:Q11424 ) ( ontology:Q201658 ) } }
action count
action union
action filter_type
action find_reverse
entity Italy
relation narrative location
type film
action filter_type
action find_reverse
entity Italy
relation narrative location
type film genre
[{'concept': 'film'}, 'narrative location', 'Italy'] [{'concept': 'film genre'}, 'narrative location', 'Italy'] [{'concept': 'film'}, 'narrative location', 'Italy'] [{'concept': 'film genre'}, 'narrative location', 'Italy']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?u . VALUES ( ?u ) { ( ontology:film ) ( ontology:film_genre ) } }
[]
film film genre
SYSTEM
1 films and 10 film genres
Q14949933 Q3489284 Q3987857 Q504053 Q3793863 Q7930316 Q3223321 Q15832852 Q4341553 Q16249121 Q3791181
(c(Q11424),P840,Q38) (c(Q201658),P840,Q38) (c(Q11424),P840,Q38) (c(Q201658),P840,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P840
type Q11424
action filter_type
action find_reverse
entity Q38
relation P840
type Q201658
[ANSWER]
[{'concept': 'Q11424'}, 'P840', 'Q38'] [{'concept': 'Q201658'}, 'P840', 'Q38'] [{'concept': 'Q11424'}, 'P840', 'Q38'] [{'concept': 'Q201658'}, 'P840', 'Q38']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?u . VALUES ( ?u ) { ( ontology:Q11424 ) ( ontology:Q201658 ) } }
Struggle for the Matterhorn Sun The Lady in Ermine Ocean's Twelve Doctor Antonio Villa Falconieri The Great Leap Lucrezia Borgia Pinocchio Castello Cavalcanti The Betrothed
1 films and 10 film genres
action count
action union
action filter_type
action find_reverse
entity Italy
relation narrative location
type film
action filter_type
action find_reverse
entity Italy
relation narrative location
type film genre
[{'concept': 'film'}, 'narrative location', 'Italy'] [{'concept': 'film genre'}, 'narrative location', 'Italy'] [{'concept': 'film'}, 'narrative location', 'Italy'] [{'concept': 'film genre'}, 'narrative location', 'Italy']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?u . VALUES ( ?u ) { ( ontology:film ) ( ontology:film_genre ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q44539 Q811979
USER
Which administrative territories are around 3581 temples and architectural structures located in ?
(c(Q44539)|c(Q811979),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q44539
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
value 3581
[[{'concept': 'Q44539'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?x WHERE { { ?f property:P17 ?x . ?f rdf:type ontology:Q44539 . ?x rdf:type ontology:Q15617994 } UNION { ?f property:P17 ?x . ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q811979 } } GROUP BY ?x } . FILTER ( ?q = 3581 ) }
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type temple
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
value 3581
[[{'concept': 'temple'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?x WHERE { { ?f property:country ?x . ?f rdf:type ontology:temple . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:architectural_structure } } GROUP BY ?x } . FILTER ( ?q = 3581 ) }
[]
designation for an administrative territorial entity temple architectural structure
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q44539)|c(Q811979),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q44539
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
value 3581
[ANSWERS] are around 3581 temples and architectural structures located in
[[{'concept': 'Q44539'}, {'concept': 'Q811979'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?x WHERE { { ?f property:P17 ?x . ?f rdf:type ontology:Q44539 . ?x rdf:type ontology:Q15617994 } UNION { ?f property:P17 ?x . ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q811979 } } GROUP BY ?x } . FILTER ( ?q = 3581 ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
Italy, Brazil and Georgia are around 3581 temples and architectural structures located in
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type temple
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
value 3581
[[{'concept': 'temple'}, {'concept': 'architectural structure'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?x WHERE { { ?f property:country ?x . ?f rdf:type ontology:temple . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:architectural_structure } } GROUP BY ?x } . FILTER ( ?q = 3581 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q17444909 Q811979
USER
How many astronomical object types or architectural structures are the eponym of that administrative territory ?
(c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q38) (c(Q811979),P138,Q38) (c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q230) (c(Q811979),P138,Q230)
[{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q230'] [{'concept': 'Q811979'}, 'P138', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q5547323 } UNION { ?y property:P138 resource:Q5547323 } } . ?z rdf:type ontology:Q17444909 . ?y rdf:type ontology:Q811979 }
[{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Georgia'] [{'concept': 'architectural structure'}, 'named after', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Georgia } UNION { ?y property:named_after resource:Georgia } } . ?z rdf:type ontology:astronomical_object_type . ?y rdf:type ontology:architectural_structure }
[]
astronomical object type architectural structure
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q5547323 } UNION { ?y property:P138 resource:Q5547323 } } . ?z rdf:type ontology:Q17444909 . ?y rdf:type ontology:Q811979 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Georgia } UNION { ?y property:named_after resource:Georgia } } . ?z rdf:type ontology:astronomical_object_type . ?y rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q38) (c(Q811979),P138,Q38) (c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q230) (c(Q811979),P138,Q230)
[{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q230'] [{'concept': 'Q811979'}, 'P138', 'Q230']
[{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Georgia'] [{'concept': 'architectural structure'}, 'named after', 'Georgia']
[]
SYSTEM
2
Q150378 Q2367311
(c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q38) (c(Q811979),P138,Q38) (c(Q17444909),P138,Q155) (c(Q811979),P138,Q155) (c(Q17444909),P138,Q230) (c(Q811979),P138,Q230)
[ANSWER]
[{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q17444909'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q17444909'}, 'P138', 'Q230'] [{'concept': 'Q811979'}, 'P138', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q21475816 } UNION { ?y property:P138 resource:Q21475816 } UNION { ?z property:P138 resource:Q5547323 } UNION { ?y property:P138 resource:Q5547323 } } . ?z rdf:type ontology:Q17444909 . ?y rdf:type ontology:Q811979 }
293 Brasilia place du Brésil
2
[{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'astronomical object type'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'astronomical object type'}, 'named after', 'Georgia'] [{'concept': 'architectural structure'}, 'named after', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Brazil } UNION { ?y property:named_after resource:Brazil } UNION { ?z property:named_after resource:Georgia } UNION { ?y property:named_after resource:Georgia } } . ?z rdf:type ontology:astronomical_object_type . ?y rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with approximately 12 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 12
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?o ) WHERE { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?o = 12 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?o ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?o = 12 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q953 Q148
SYSTEM
France, Zambia, People's Republic of China
Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q43 Q41 Q796 Q794 Q822 Q241 Q31 Q27 Q222 Q347 Q17 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 12
[ANSWERS] have diplomatic relationships with approximately 12 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?o ) WHERE { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?o = 12 ) }
Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Turkey Greece Iraq Iran Lebanon Cuba Belgium Ireland Albania Liechtenstein Japan Czech Republic Angola Egypt Libya Cape Verde Zambia
France, Zambia and People's Republic of China have diplomatic relationships with approximately 12 administrative territories
France Zambia People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?o ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?o = 12 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4183039
P530
Q1048835
USER
Do Zavydo-Borzenka have ambassadorial relations with those administrative territories ?
(Q4183039,P530,Q142) (Q4183039,P530,Q953) (Q4183039,P530,Q148)
action is_in
entity prev_answer
action find
entity Q4183039
relation P530
['Q4183039', 'P530', 'Q142'] ['Q4183039', 'P530', 'Q953'] ['Q4183039', 'P530', 'Q148']
ASK WHERE { resource:Q4183039 property:P530 ?g . VALUES ( ?g ) { ( resource:Q805 ) ( resource:Q668 ) ( resource:Q414 ) } }
Zavydo-Borzenka
action is_in
entity prev_answer
action find
entity Zavydo-Borzenka
relation diplomatic relation
['Zavydo-Borzenka', 'diplomatic relation', 'France'] ['Zavydo-Borzenka', 'diplomatic relation', 'Zambia'] ['Zavydo-Borzenka', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Zavydo-Borzenka property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Yemen ) ( resource:India ) ( resource:Argentina ) } }
[]
political territorial entity
SYSTEM
NO
(Q4183039,P530,Q142) (Q4183039,P530,Q953) (Q4183039,P530,Q148)
action is_in
entity prev_answer
action find
entity Q4183039
relation P530
[ANSWER]
['Q4183039', 'P530', 'Q142'] ['Q4183039', 'P530', 'Q953'] ['Q4183039', 'P530', 'Q148']
ASK WHERE { resource:Q4183039 property:P530 ?g . VALUES ( ?g ) { ( resource:Q805 ) ( resource:Q668 ) ( resource:Q414 ) } }
No
action is_in
entity prev_answer
action find
entity Zavydo-Borzenka
relation diplomatic relation
['Zavydo-Borzenka', 'diplomatic relation', 'France'] ['Zavydo-Borzenka', 'diplomatic relation', 'Zambia'] ['Zavydo-Borzenka', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Zavydo-Borzenka property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Yemen ) ( resource:India ) ( resource:Argentina ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q539059
P138
Q15617994 Q43229 Q16521
USER
How many administrative territories are the origin of around the same number of organizations and taxons as Kelbra ?
(c(Q43229)|c(Q16521),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q539059
relation P138
type Q43229
type Q16521
[[{'concept': 'Q43229'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?x WHERE { { ?k property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q43229 } UNION { ?k rdf:type ontology:Q16521 . ?x rdf:type ontology:Q15617994 . ?k property:P138 ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t property:P138 resource:Q539059 . { VALUES ( ?b ) { ( ontology:Q43229 ) ( ontology:Q16521 ) } . ?t rdf:type ?b } } } . FILTER ( ?n = ?e ) }
Kelbra
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action count
action filter_multi_types
action find_reverse
entity Kelbra
relation named after
type organization
type taxon
[[{'concept': 'organization'}, {'concept': 'taxon'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?x WHERE { { ?k property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:organization } UNION { ?k rdf:type ontology:taxon . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:named_after ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t property:named_after resource:Kelbra . { VALUES ( ?b ) { ( ontology:organization ) ( ontology:taxon ) } . ?t rdf:type ?b } } } . FILTER ( ?n = ?e ) }
[]
designation for an administrative territorial entity organization taxon
SYSTEM
373
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q654138 Q81261 Q493437 Q863 Q574429 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q43229)|c(Q16521),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q539059
relation P138
type Q43229
type Q16521
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?x WHERE { { ?k property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q43229 } UNION { ?k rdf:type ontology:Q16521 . ?x rdf:type ontology:Q15617994 . ?k property:P138 ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t property:P138 resource:Q539059 . { VALUES ( ?b ) { ( ontology:Q43229 ) ( ontology:Q16521 ) } . ?t rdf:type ?b } } } . FILTER ( ?n = ?e ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Candelo QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
373
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action count
action filter_multi_types
action find_reverse
entity Kelbra
relation named after
type organization
type taxon
[[{'concept': 'organization'}, {'concept': 'taxon'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?x WHERE { { ?k property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:organization } UNION { ?k rdf:type ontology:taxon . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:named_after ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t property:named_after resource:Kelbra . { VALUES ( ?b ) { ( ontology:organization ) ( ontology:taxon ) } . ?t rdf:type ?b } } } . FILTER ( ?n = ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q43046
P138
Q15617994 Q43229 Q16521
USER
And how about Olgiate Molgora?
(c(Q43229)|c(Q16521),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q43046
relation P138
type Q43229
type Q16521
[[{'concept': 'Q43229'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:P138 ?g . ?i rdf:type ontology:Q43229 . ?g rdf:type ontology:Q15617994 } UNION { ?i property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q16521 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:P138 resource:Q43046 . { ?c rdf:type ?w . VALUES ( ?w ) { ( ontology:Q43229 ) ( ontology:Q16521 ) } } } } . FILTER ( ?p = ?o ) }
Olgiate Molgora
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action count
action filter_multi_types
action find_reverse
entity Olgiate Molgora
relation named after
type organization
type taxon
[[{'concept': 'organization'}, {'concept': 'taxon'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:named_after ?g . ?i rdf:type ontology:organization . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:taxon } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:named_after resource:Olgiate_Molgora . { ?c rdf:type ?w . VALUES ( ?w ) { ( ontology:organization ) ( ontology:taxon ) } } } } . FILTER ( ?p = ?o ) }
[]
designation for an administrative territorial entity organization taxon
SYSTEM
373
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q654138 Q81261 Q493437 Q863 Q574429 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q43229)|c(Q16521),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action count
action filter_multi_types
action find_reverse
entity Q43046
relation P138
type Q43229
type Q16521
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q16521'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:P138 ?g . ?i rdf:type ontology:Q43229 . ?g rdf:type ontology:Q15617994 } UNION { ?i property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q16521 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:P138 resource:Q43046 . { ?c rdf:type ?w . VALUES ( ?w ) { ( ontology:Q43229 ) ( ontology:Q16521 ) } } } } . FILTER ( ?p = ?o ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Candelo QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
373
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action count
action filter_multi_types
action find_reverse
entity Olgiate Molgora
relation named after
type organization
type taxon
[[{'concept': 'organization'}, {'concept': 'taxon'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:named_after ?g . ?i rdf:type ontology:organization . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:taxon } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:named_after resource:Olgiate_Molgora . { ?c rdf:type ?w . VALUES ( ?w ) { ( ontology:organization ) ( ontology:taxon ) } } } } . FILTER ( ?p = ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q294793 Q148
P47
Q15617994
USER
Which administrative territories share the border with People's Republic of China or Dualchi ?
OR((Q148,P47,c(Q15617994)), (Q294793,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q148
relation P47
action find
entity Q294793
relation P47
type Q15617994
{'OR': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q294793', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q148 property:P47 ?t } UNION { resource:Q294793 property:P47 ?t } } . ?t rdf:type ontology:Q15617994 }
Dualchi People's Republic of China
action filter_type
action union
action find
entity People's Republic of China
relation shares border with
action find
entity Dualchi
relation shares border with
type designation for an administrative territorial entity
{'OR': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dualchi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:People's_Republic_of_China property:shares_border_with ?t } UNION { resource:Dualchi property:shares_border_with ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423 Q294720 Q881 Q295595 Q388085 Q837 Q843 Q382482 Q863 Q17
SYSTEM
Some of them are North Korea, Birori, Vietnam, Silanus, Sardinia, Sedilo, Nepal, Pakistan, Aidomaggiore, Tajikistan, Japan
Q843 Q423 Q668 Q388085 Q295289 Q294752 Q17 Q382482 Q711 Q836 Q837 Q813 Q819 Q295595 Q294760 Q159 Q232 Q863 Q881 Q889 Q884 Q294720 Q917
OR((Q148,P47,c(Q15617994)), (Q294793,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q148
relation P47
action find
entity Q294793
relation P47
type Q15617994
[ANSWERS] share the border with People's Republic of China or Dualchi
{'OR': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q294793', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q148 property:P47 ?t } UNION { resource:Q294793 property:P47 ?t } } . ?t rdf:type ontology:Q15617994 }
Pakistan North Korea India Sedilo Noragugume Borore Japan Aidomaggiore Mongolia Myanmar Nepal Kyrgyzstan Laos Silanus, Sardinia Bortigali Russia Kazakhstan Tajikistan Vietnam Afghanistan South Korea Birori Bhutan
North Korea, Birori, Vietnam, Silanus, Sardinia, Sedilo, Nepal, Pakistan, Aidomaggiore, Tajikistan and Japan share the border with People's Republic of China or Dualchi
North Korea Birori Vietnam Silanus, Sardinia Sedilo Nepal Pakistan Aidomaggiore Tajikistan Japan
action filter_type
action union
action find
entity People's Republic of China
relation shares border with
action find
entity Dualchi
relation shares border with
type designation for an administrative territorial entity
{'OR': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dualchi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:People's_Republic_of_China property:shares_border_with ?t } UNION { resource:Dualchi property:shares_border_with ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]