Simple Question (Direct)
Simple Question
Q14991
P21
Q290
USER
Which sex does Georges Theunis belong to ?
(Q14991,P21,c(Q290))
action filter_type
action find
entity Q14991
relation P21
type Q290
['Q14991', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q14991 property:P21 ?x . ?x rdf:type ontology:Q290 }
Georges Theunis
action filter_type
action find
entity Georges Theunis
relation gender
type sex
['Georges Theunis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Georges_Theunis property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q14991,P21,c(Q290))
action filter_type
action find
entity Q14991
relation P21
type Q290
Georges Theunis belongs to [ANSWER]
['Q14991', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q14991 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Georges Theunis belongs to male
male
action filter_type
action find
entity Georges Theunis
relation gender
type sex
['Georges Theunis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Georges_Theunis property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14991
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q14991
relation P102
type Q7210356
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q14991 property:P102 ?u }
Georges Theunis
action filter_type
action find
entity Georges Theunis
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Georges_Theunis property:member_of_political_party ?u }
[]
political organization
Q792293
SYSTEM
Catholic Party
Q792293
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q14991
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q14991 property:P102 ?u }
Catholic Party
That person is affiliated with Catholic Party
Catholic Party
action filter_type
action find
entity Georges Theunis
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Georges_Theunis property:member_of_political_party ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15007982 Q14991
P102
Q7210356
USER
Or Cláudio Cavalcanti?
OR((Q14991,P102,c(Q7210356)), (Q15007982,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q14991
relation P102
action find
entity Q15007982
relation P102
type Q7210356
{'OR': [['Q14991', 'P102', {'concept': 'Q7210356'}], ['Q15007982', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . { VALUES ( ?s ) { ( resource:Q15007982 ) ( resource:Q14991 ) } . ?s property:P102 ?y } }
Cláudio Cavalcanti Georges Theunis
action filter_type
action union
action find
entity Georges Theunis
relation member of political party
action find
entity Cláudio Cavalcanti
relation member of political party
type political organization
{'OR': [['Georges Theunis', 'member of political party', {'concept': 'political organization'}], ['Cláudio Cavalcanti', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . { VALUES ( ?s ) { ( resource:Cláudio_Cavalcanti ) ( resource:Georges_Theunis ) } . ?s property:member_of_political_party ?y } }
[]
political organization
Q2731720 Q1185830 Q792293 Q4345998
SYSTEM
Party of the Republic, Democrats, Catholic Party, Liberal Front Party
Q2731720 Q1185830 Q792293 Q4345998
OR((Q14991,P102,c(Q7210356)), (Q15007982,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q14991
relation P102
action find
entity Q15007982
relation P102
type Q7210356
[ANSWERS]
{'OR': [['Q14991', 'P102', {'concept': 'Q7210356'}], ['Q15007982', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . { VALUES ( ?s ) { ( resource:Q15007982 ) ( resource:Q14991 ) } . ?s property:P102 ?y } }
Party of the Republic Democrats Catholic Party Liberal Front Party
Party of the Republic Democrats Catholic Party Liberal Front Party
action filter_type
action union
action find
entity Georges Theunis
relation member of political party
action find
entity Cláudio Cavalcanti
relation member of political party
type political organization
{'OR': [['Georges Theunis', 'member of political party', {'concept': 'political organization'}], ['Cláudio Cavalcanti', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . { VALUES ( ?s ) { ( resource:Cláudio_Cavalcanti ) ( resource:Georges_Theunis ) } . ?s property:member_of_political_party ?y } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2731720 Q4981781
P17
Q15617994
USER
How many administrative territories are Party of the Republic or Brzęczek situated in ?
(Q2731720,P17,c(Q15617994)) (Q4981781,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2731720
relation P17
type Q15617994
action filter_type
action find
entity Q4981781
relation P17
type Q15617994
['Q2731720', 'P17', {'concept': 'Q15617994'}] ['Q4981781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?a property:P17 ?p . VALUES ( ?a ) { ( resource:Q2731720 ) ( resource:Q4981781 ) } }
Party of the Republic Brzęczek
action count
action union
action filter_type
action find
entity Party of the Republic
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brzęczek
relation country
type designation for an administrative territorial entity
['Party of the Republic', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brzęczek', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?a property:country ?p . VALUES ( ?a ) { ( resource:Party_of_the_Republic ) ( resource:Brzęczek ) } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q155 Q36
(Q2731720,P17,c(Q15617994)) (Q4981781,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2731720
relation P17
type Q15617994
action filter_type
action find
entity Q4981781
relation P17
type Q15617994
[ANSWER]
['Q2731720', 'P17', {'concept': 'Q15617994'}] ['Q4981781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?a property:P17 ?p . VALUES ( ?a ) { ( resource:Q2731720 ) ( resource:Q4981781 ) } }
Brazil Poland
2
action count
action union
action filter_type
action find
entity Party of the Republic
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brzęczek
relation country
type designation for an administrative territorial entity
['Party of the Republic', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brzęczek', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?a property:country ?p . VALUES ( ?a ) { ( resource:Party_of_the_Republic ) ( resource:Brzęczek ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3659773 Q14991
P27
Q15617994
USER
Which administrative territories are the native countriesof Georges Theunis or Carlo Repetti ?
OR((Q14991,P27,c(Q15617994)), (Q3659773,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q14991
relation P27
action find
entity Q3659773
relation P27
type Q15617994
{'OR': [['Q14991', 'P27', {'concept': 'Q15617994'}], ['Q3659773', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?g property:P27 ?v . VALUES ( ?g ) { ( resource:Q14991 ) ( resource:Q3659773 ) } } . ?v rdf:type ontology:Q15617994 }
Carlo Repetti Georges Theunis
action filter_type
action union
action find
entity Georges Theunis
relation country of citizenship
action find
entity Carlo Repetti
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Georges Theunis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlo Repetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?g property:country_of_citizenship ?v . VALUES ( ?g ) { ( resource:Georges_Theunis ) ( resource:Carlo_Repetti ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q38
SYSTEM
Belgium, Italy
Q31 Q38
OR((Q14991,P27,c(Q15617994)), (Q3659773,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q14991
relation P27
action find
entity Q3659773
relation P27
type Q15617994
[ANSWERS] are the native countriesof Georges Theunis or Carlo Repetti
{'OR': [['Q14991', 'P27', {'concept': 'Q15617994'}], ['Q3659773', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?g property:P27 ?v . VALUES ( ?g ) { ( resource:Q14991 ) ( resource:Q3659773 ) } } . ?v rdf:type ontology:Q15617994 }
Belgium Italy
Belgium and Italy are the native countriesof Georges Theunis or Carlo Repetti
Belgium Italy
action filter_type
action union
action find
entity Georges Theunis
relation country of citizenship
action find
entity Carlo Repetti
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Georges Theunis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlo Repetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?g property:country_of_citizenship ?v . VALUES ( ?g ) { ( resource:Georges_Theunis ) ( resource:Carlo_Repetti ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q211
P1376
Q15617994 Q56061 Q486972
USER
How many administrative territories have around the same number of administrative territories and human settlements have their first city as Latvia ?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q211
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) ?v WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?n rdf:type ?s } GROUP BY ?v } . FILTER ( ?h = ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { { ?l rdf:type ontology:Q56061 } UNION { ?l rdf:type ontology:Q486972 } } . ?l property:P1376 resource:Q211 } } }
Latvia
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Latvia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) ?v WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?n rdf:type ?s } GROUP BY ?v } . FILTER ( ?h = ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { { ?l rdf:type ontology:administrative_territorial_entity } UNION { ?l rdf:type ontology:human_settlement } } . ?l property:capital_of resource:Latvia } } }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
SYSTEM
181
Q12631 Q414 Q3368 Q3044731 Q399 Q12689 Q2527360 Q699731 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q739 Q733 Q736 Q12574 Q12798 Q12792 Q1284 Q843 Q2007 Q541811 Q1458 Q12700 Q12703 Q12709 Q1050 Q298 Q115 Q114 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q696651 Q3286 Q948 Q3266 Q3105 Q639100 Q731547 Q33788 Q702 Q709 Q12740 Q12745 Q12779 Q833 Q12607 Q290739 Q790 Q796 Q794 Q889 Q12789 Q884 Q1452646 Q881 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q541095 Q3148 Q280312 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q686312 Q1037 Q1030 Q697 Q750 Q12730 Q12736 Q1270568 Q12657 Q12652 Q30831 Q12556 Q694594 Q874 Q878 Q46130 Q3044714 Q176 Q12816 Q1951 Q3353 Q3357 Q389004 Q3278 Q3184 Q239502 Q711 Q717 Q2900529 Q12772 Q1090678 Q1999970 Q155019 Q107426 Q1948 Q511365 Q27 Q598193 Q225 Q222 Q47261 Q1270623 Q228 Q10957559 Q962 Q963 Q3125 Q3120 Q1008 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q72670 Q12563 Q426025 Q568751 Q2150573 Q474421 Q3342 Q842 Q3349 Q3083 Q3240 Q3249 Q34762 Q12761 Q12765 Q4712 Q928 Q851 Q1443 Q224 Q12717 Q691265 Q313175 Q3334 Q12572 Q12576 Q12578 Q347 Q3462133 Q12679 Q3207 Q212 Q211 Q218 Q3514973 Q974 Q3113 Q1234961 Q1222 Q1019 Q1011 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q211
relation P1376
type Q56061
type Q486972
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) ?v WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?n rdf:type ?s } GROUP BY ?v } . FILTER ( ?h = ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { { ?l rdf:type ontology:Q56061 } UNION { ?l rdf:type ontology:Q486972 } } . ?l property:P1376 resource:Q211 } } }
Meuse Argentina Essonne Guyane Armenia Pas-de-Calais Stura Wied Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Colombia Paraguay Ecuador Loiret Vendée Vaucluse Abruzzo Pakistan Northwest Territories Ems-Oriental Calabria Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Swaziland Chile Ethiopia Kenya Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Saxe-Eisenach Cher Tunisia Charente Vosges Principality of Reuss-Gera Lippe New Caledonia Federated States of Micronesia Marshall Islands Sarthe Savoie Tarn-et-Garonne Malaysia Haute-Marne Sesia Haiti Iraq Iran Afghanistan Var South Korea Montenotte Vietnam Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Rhin-et-Moselle Ardèche Principality of Lüneburg Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Duchy of Amalfi Rwanda Namibia Nauru Bolivia Haute-Saône Saône-et-Loire Ems Nièvre Moselle Red Sea Governorate Indre-et-Loire Bremen-Verden Turkmenistan United Arab Emirates Rhône Ouest Quebec Yonne Alberta Creuse Dordogne Wallachia Charente-Maritime Ariège Kingdom of Galicia–Volhynia Mongolia Venezuela Bezirk Lothringen Tarn Sègre Upper Alsace Duchy of Lorraine Anjou Manitoba Arvika Municipality Ireland Apennins Bosnia and Herzegovina Albania Duchy of Bavaria Meurthe Andorra Moldavia Benin Botswana Hautes-Alpes Jura Côte d'Ivoire Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Batumi Oblast Landes Duchy of Savoy Mont-Tonnerre Unterelsaß Principality of Fürstenberg Côte-d'Or Oman Côtes-d'Armor Ain Bouches-du-Rhône Calvados Principality of Bayreuth Seine-Saint-Denis Deux-Sèvres Duchy of Burgundy Philippines Saudi Arabia Molise Croatia Bas-Rhin Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Lot Lot-et-Garonne Liechtenstein Saxe-Coburg and Gotha Orne Aude Ukraine Latvia Romania Tanaro Democratic Republic of the Congo Allier Doire Aosta Valley Madagascar Cape Verde Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
181
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Latvia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) ?v WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?n rdf:type ?s } GROUP BY ?v } . FILTER ( ?h = ?e ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { { ?l rdf:type ontology:administrative_territorial_entity } UNION { ?l rdf:type ontology:human_settlement } } . ?l property:capital_of resource:Latvia } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q30650
P1376
Q15617994 Q56061 Q486972
USER
And how about New Valley Governorate?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q30650
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { VALUES ( ?a ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?t rdf:type ?a } . ?t property:P1376 resource:Q30650 } } . FILTER ( ?b = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?b ) WHERE { { ?q property:P1376 ?d . ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q486972 . ?q property:P1376 ?d } } GROUP BY ?d } }
New Valley Governorate
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity New Valley Governorate
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { VALUES ( ?a ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?t rdf:type ?a } . ?t property:capital_of resource:New_Valley_Governorate } } . FILTER ( ?b = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?b ) WHERE { { ?q property:capital_of ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:human_settlement . ?q property:capital_of ?d } } GROUP BY ?d } }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
SYSTEM
336
Q804 Q801 Q800 Q1098820 Q419 Q1111401 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2998020 Q252 Q398 Q1465069 Q1324549 Q1979 Q159 Q155 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q983 Q730 Q734 Q1280 Q1282 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q184 Q1029 Q1028 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q311803 Q29937 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q541589 Q760 Q14762300 Q3528124 Q2719360 Q1243 Q945 Q855327 Q328134 Q1237 Q701 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q1232680 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q302479 Q2567535 Q3068 Q3389 Q30644 Q236 Q492437 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q902 Q1036 Q1032 Q1033 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q2562901 Q31068 Q31067 Q31065 Q1773268 Q30835 Q574 Q1558632 Q191 Q79 Q77 Q3044651 Q3044715 Q30682 Q30683 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q492430 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q712 Q710 Q3044777 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q654849 Q2038939 Q311794 Q12661 Q20 Q28 Q1366860 Q148 Q227 Q30650 Q223 Q221 Q311668 Q229 Q1410315 Q1989 Q60011 Q965 Q967 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q12545 Q2309262 Q863 Q2023 Q869 Q334714 Q15116736 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q2662372 Q686924 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q924 Q929 Q858 Q423 Q424 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q30797 Q1904 Q30815 Q17 Q153402 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q213 Q217 Q214 Q215 Q244 Q1090691 Q977 Q2218506 Q692290 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q773 Q772 Q1014 Q1016 Q1013 Q678 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q30650
relation P1376
type Q56061
type Q486972
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { VALUES ( ?a ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?t rdf:type ?a } . ?t property:P1376 resource:Q30650 } } . FILTER ( ?b = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?b ) WHERE { { ?q property:P1376 ?d . ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q486972 . ?q property:P1376 ?d } } GROUP BY ?d } }
Panama Israel Costa Rica Gênes Peru Kispest District Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Corse Indonesia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Brazil Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Umbria Lazio Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Belarus Mozambique Morocco Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Umgungundlovu District Municipality Aswan Governorate Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Ems-Supérieur Saint Lucia single-tier municipality Tibre Duchy of Luxembourg Veneto Togo Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Taro Zeeland Flevoland Talitsky District India Limburg Montserrat Frances Baard District Municipality Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Ithaque Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Ems-Occidental Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Bouches-du-Weser Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Bangladesh Uganda Niger Nigeria Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Gharbia Governorate East Timor Rome Estonia Egypt Uruguay Louverture Ozama Matrouh Governorate Beni Suef Governorate Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Bouches-de-l'Elbe Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Fiji Kiribati Nord Somme Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Nord Norway Hungary Escaut People's Republic of China Azerbaijan New Valley Governorate Greenland Republic of Macedonia UThungulu District Municipality Cyprus Fezile Dabi District Municipality Saskatchewan Kars Oblast Burkina Faso Burundi Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Hérault Zululand District Municipality Tajikistan Nunavut Thailand Duchy of Athens Jaén District France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Principality of Minsk Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Tanzania Central African Republic Syria North Korea Cambodia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Luxor Governorate Ontario South Sinai Governorate Japan Roer Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Czech Republic Republic of Moldova Slovakia Slovenia Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Overijssel Drenthe Liberia Libya Lesotho Tonga Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
336
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity New Valley Governorate
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { VALUES ( ?a ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?t rdf:type ?a } . ?t property:capital_of resource:New_Valley_Governorate } } . FILTER ( ?b = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?b ) WHERE { { ?q property:capital_of ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:human_settlement . ?q property:capital_of ?d } } GROUP BY ?d } }
[]