Simple Question (Direct)
Simple Question
Q12028657
P40
Q502895
USER
Who are an offsprings of Karel Želenský ?
(Q12028657,P40,c(Q502895))
action filter_type
action find
entity Q12028657
relation P40
type Q502895
['Q12028657', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q12028657 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Karel Želenský
action filter_type
action find
entity Karel Želenský
relation child
type common name
['Karel Želenský', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Karel_Želenský property:child ?a . ?a rdf:type ontology:common_name }
[]
common name
Q11826623 Q12032775
SYSTEM
Drahoš Želenský, Laura Třešňáková
Q11826623 Q12032775
(Q12028657,P40,c(Q502895))
action filter_type
action find
entity Q12028657
relation P40
type Q502895
An offsprings of Karel Želenský are [ANSWERS]
['Q12028657', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q12028657 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Drahoš Želenský Laura Třešňáková
An offsprings of Karel Želenský are Drahoš Želenský and Laura Třešňáková
Drahoš Želenský Laura Třešňáková
action filter_type
action find
entity Karel Želenský
relation child
type common name
['Karel Želenský', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Karel_Želenský property:child ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11826623
P9
Q502895
USER
Who is the sister of Drahoš Želenský ?
(Q11826623,P9,c(Q502895))
action filter_type
action find
entity Q11826623
relation P9
type Q502895
['Q11826623', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q11826623 property:P9 ?i . ?i rdf:type ontology:Q502895 }
Drahoš Želenský
action filter_type
action find
entity Drahoš Želenský
relation sister
type common name
['Drahoš Želenský', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Drahoš_Želenský property:sister ?i . ?i rdf:type ontology:common_name }
[]
common name
Q12032775
SYSTEM
Laura Třešňáková
Q12032775
(Q11826623,P9,c(Q502895))
action filter_type
action find
entity Q11826623
relation P9
type Q502895
The sister of Drahoš Želenský is a [ANSWER]
['Q11826623', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q11826623 property:P9 ?i . ?i rdf:type ontology:Q502895 }
Laura Třešňáková
The sister of Drahoš Želenský is a Laura Třešňáková
Laura Třešňáková
action filter_type
action find
entity Drahoš Želenský
relation sister
type common name
['Drahoš Želenský', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Drahoš_Želenský property:sister ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12032775
P26
Q502895
USER
Which person is the spouse of that one ?
(Q12032775,P26,c(Q502895))
action filter_type
action find
entity Q12032775
relation P26
type Q502895
['Q12032775', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q12032775 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Laura Třešňáková
action filter_type
action find
entity Laura Třešňáková
relation spouse
type common name
['Laura Třešňáková', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Laura_Třešňáková property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q12028566
SYSTEM
Karel Třešňák
Q12028566
(Q12032775,P26,c(Q502895))
action filter_type
action find
entity Q12032775
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q12032775', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q12032775 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Karel Třešňák
Karel Třešňák is the spouse of that one
Karel Třešňák
action filter_type
action find
entity Laura Třešňáková
relation spouse
type common name
['Laura Třešňáková', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Laura_Třešňáková property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12032775
P7
Q502895
USER
Which person is the brother of Laura Třešňáková ?
(Q12032775,P7,c(Q502895))
action filter_type
action find
entity Q12032775
relation P7
type Q502895
['Q12032775', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q12032775 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Laura Třešňáková
action filter_type
action find
entity Laura Třešňáková
relation brother
type common name
['Laura Třešňáková', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Laura_Třešňáková property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q11826623
SYSTEM
Drahoš Želenský
Q11826623
(Q12032775,P7,c(Q502895))
action filter_type
action find
entity Q12032775
relation P7
type Q502895
[ANSWER] is the brother of Laura Třešňáková
['Q12032775', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q12032775 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Drahoš Želenský
Drahoš Želenský is the brother of Laura Třešňáková
Drahoš Želenský
action filter_type
action find
entity Laura Třešňáková
relation brother
type common name
['Laura Třešňáková', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Laura_Třešňáková property:brother ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11826623 Q16989477
P40
Q502895
USER
Does Maria Nurmela have that one as an offspring ?
(Q16989477,P40,Q11826623)
action is_in
entity Q16989477
action find
entity Q11826623
relation P40
['Q16989477', 'P40', 'Q11826623']
ASK WHERE { resource:Q11826623 property:P40 resource:Q16989477 }
Drahoš Želenský Maria Nurmela
action is_in
entity Maria Nurmela
action find
entity Drahoš Želenský
relation child
['Maria Nurmela', 'child', 'Drahoš Želenský']
ASK WHERE { resource:Drahoš_Želenský property:child resource:Maria_Nurmela }
[]
common name
SYSTEM
NO
(Q16989477,P40,Q11826623)
action is_in
entity Q16989477
action find
entity Q11826623
relation P40
[ANSWER]
['Q16989477', 'P40', 'Q11826623']
ASK WHERE { resource:Q11826623 property:P40 resource:Q16989477 }
No
action is_in
entity Maria Nurmela
action find
entity Drahoš Želenský
relation child
['Maria Nurmela', 'child', 'Drahoš Želenský']
ASK WHERE { resource:Drahoš_Želenský property:child resource:Maria_Nurmela }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12028657 Q554316 Q213
P27
Q15617994
USER
Is Karel Želenský a native of Welschneudorf and Czech Republic ?
(Q12028657,P27,Q554316) (Q12028657,P27,Q213)
action is_in
entity Q12028657
action intersection
action find_reverse
entity Q554316
relation P27
action find_reverse
entity Q213
relation P27
['Q12028657', 'P27', 'Q554316'] ['Q12028657', 'P27', 'Q213']
ASK WHERE { resource:Q12028657 property:P27 resource:Q554316 . resource:Q12028657 property:P27 resource:Q213 }
Karel Želenský Welschneudorf Czech Republic
action is_in
entity Karel Želenský
action intersection
action find_reverse
entity Welschneudorf
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
['Karel Želenský', 'country of citizenship', 'Welschneudorf'] ['Karel Želenský', 'country of citizenship', 'Czech Republic']
ASK WHERE { resource:Karel_Želenský property:country_of_citizenship resource:Welschneudorf . resource:Karel_Želenský property:country_of_citizenship resource:Czech_Republic }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q12028657,P27,Q554316) (Q12028657,P27,Q213)
action is_in
entity Q12028657
action intersection
action find_reverse
entity Q554316
relation P27
action find_reverse
entity Q213
relation P27
[ANSWER]
['Q12028657', 'P27', 'Q554316'] ['Q12028657', 'P27', 'Q213']
ASK WHERE { resource:Q12028657 property:P27 resource:Q554316 . resource:Q12028657 property:P27 resource:Q213 }
NO and YES respectively
action is_in
entity Karel Želenský
action intersection
action find_reverse
entity Welschneudorf
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
['Karel Želenský', 'country of citizenship', 'Welschneudorf'] ['Karel Želenský', 'country of citizenship', 'Czech Republic']
ASK WHERE { resource:Karel_Želenský property:country_of_citizenship resource:Welschneudorf . resource:Karel_Želenský property:country_of_citizenship resource:Czech_Republic }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12032775 Q7111344 Q1085
P20
Q56061
USER
Did Laura Třešňáková die in Ousivo and Prague ?
(Q12032775,P20,Q7111344) (Q12032775,P20,Q1085)
action is_in
entity Q12032775
action intersection
action find_reverse
entity Q7111344
relation P20
action find_reverse
entity Q1085
relation P20
['Q12032775', 'P20', 'Q7111344'] ['Q12032775', 'P20', 'Q1085']
ASK WHERE { resource:Q12032775 property:P20 resource:Q7111344 . resource:Q12032775 property:P20 resource:Q1085 }
Laura Třešňáková Ousivo Prague
action is_in
entity Laura Třešňáková
action intersection
action find_reverse
entity Ousivo
relation place of death
action find_reverse
entity Prague
relation place of death
['Laura Třešňáková', 'place of death', 'Ousivo'] ['Laura Třešňáková', 'place of death', 'Prague']
ASK WHERE { resource:Laura_Třešňáková property:place_of_death resource:Ousivo . resource:Laura_Třešňáková property:place_of_death resource:Prague }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q12032775,P20,Q7111344) (Q12032775,P20,Q1085)
action is_in
entity Q12032775
action intersection
action find_reverse
entity Q7111344
relation P20
action find_reverse
entity Q1085
relation P20
[ANSWER]
['Q12032775', 'P20', 'Q7111344'] ['Q12032775', 'P20', 'Q1085']
ASK WHERE { resource:Q12032775 property:P20 resource:Q7111344 . resource:Q12032775 property:P20 resource:Q1085 }
NO and YES respectively
action is_in
entity Laura Třešňáková
action intersection
action find_reverse
entity Ousivo
relation place of death
action find_reverse
entity Prague
relation place of death
['Laura Třešňáková', 'place of death', 'Ousivo'] ['Laura Třešňáková', 'place of death', 'Prague']
ASK WHERE { resource:Laura_Třešňáková property:place_of_death resource:Ousivo . resource:Laura_Třešňáková property:place_of_death resource:Prague }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q485186 Q1085
P1376
Q7275
USER
Which states have Prague or Key West as their capital ?
OR((Q1085,P1376,c(Q7275)), (Q485186,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1085
relation P1376
action find
entity Q485186
relation P1376
type Q7275
{'OR': [['Q1085', 'P1376', {'concept': 'Q7275'}], ['Q485186', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . { { resource:Q1085 property:P1376 ?e } UNION { resource:Q485186 property:P1376 ?e } } }
Key West Prague
action filter_type
action union
action find
entity Prague
relation capital of
action find
entity Key West
relation capital of
type state
{'OR': [['Prague', 'capital of', {'concept': 'state'}], ['Key West', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . { { resource:Prague property:capital_of ?e } UNION { resource:Key_West property:capital_of ?e } } }
[]
state
Q1998866 Q2162698 Q42585 Q33946 Q1123960
SYSTEM
Czech and Slovak Federal Republic, Duchy of Bohemia, Kingdom of Bohemia, Czechoslovakia, Conch Republic
Q1998866 Q2162698 Q42585 Q33946 Q1123960
OR((Q1085,P1376,c(Q7275)), (Q485186,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1085
relation P1376
action find
entity Q485186
relation P1376
type Q7275
[ANSWERS] have Prague or Key West as their capital
{'OR': [['Q1085', 'P1376', {'concept': 'Q7275'}], ['Q485186', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . { { resource:Q1085 property:P1376 ?e } UNION { resource:Q485186 property:P1376 ?e } } }
Czech and Slovak Federal Republic Duchy of Bohemia Kingdom of Bohemia Czechoslovakia Conch Republic
Czech and Slovak Federal Republic, Duchy of Bohemia, Kingdom of Bohemia, Czechoslovakia and Conch Republic have Prague or Key West as their capital
Czech and Slovak Federal Republic Duchy of Bohemia Kingdom of Bohemia Czechoslovakia Conch Republic
action filter_type
action union
action find
entity Prague
relation capital of
action find
entity Key West
relation capital of
type state
{'OR': [['Prague', 'capital of', {'concept': 'state'}], ['Key West', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . { { resource:Prague property:capital_of ?e } UNION { resource:Key_West property:capital_of ?e } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q33946 Q17012
P6
Q502895
USER
How many people do Czechoslovakia or Guadeloupe serve as the head of government for ?
(Q33946,P6,c(Q502895)) (Q17012,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q33946
relation P6
type Q502895
action filter_type
action find
entity Q17012
relation P6
type Q502895
['Q33946', 'P6', {'concept': 'Q502895'}] ['Q17012', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Q33946 property:P6 ?k . ?k rdf:type ontology:Q502895 } UNION { resource:Q17012 property:P6 ?k . ?k rdf:type ontology:Q502895 } }
Czechoslovakia Guadeloupe
action count
action union
action filter_type
action find
entity Czechoslovakia
relation head of government
type common name
action filter_type
action find
entity Guadeloupe
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}] ['Guadeloupe', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Czechoslovakia property:head_of_government ?k . ?k rdf:type ontology:common_name } UNION { resource:Guadeloupe property:head_of_government ?k . ?k rdf:type ontology:common_name } }
[]
common name
SYSTEM
22
Q349893 Q974542 Q717754 Q983563 Q555701 Q1399968 Q683269 Q465455 Q371854 Q1682037 Q725653 Q1682464 Q709968 Q296054 Q2756999 Q168975 Q694849 Q164312 Q152274 Q983583 Q2666912 Q159227
(Q33946,P6,c(Q502895)) (Q17012,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q33946
relation P6
type Q502895
action filter_type
action find
entity Q17012
relation P6
type Q502895
[ANSWER]
['Q33946', 'P6', {'concept': 'Q502895'}] ['Q17012', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Q33946 property:P6 ?k . ?k rdf:type ontology:Q502895 } UNION { resource:Q17012 property:P6 ?k . ?k rdf:type ontology:Q502895 } }
Milan Hodža Jan Syrový Rudolf Beran Victorin Lurel Oldřich Černík Viliam Široký Lubomír Štrougal Jozef Lenárt Antonín Zápotocký Jan Malypetr Ladislav Adamec Jan Černý Marián Čalfa Klement Gottwald František Udržal Zdeněk Fierlinger Jan Šrámek Antonín Švehla Edvard Beneš Jan Stráský Vlastimil Tusar Karel Kramář
22
action count
action union
action filter_type
action find
entity Czechoslovakia
relation head of government
type common name
action filter_type
action find
entity Guadeloupe
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}] ['Guadeloupe', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Czechoslovakia property:head_of_government ?k . ?k rdf:type ontology:common_name } UNION { resource:Guadeloupe property:head_of_government ?k . ?k rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q7275
USER
How many assemblies are the legislative bodies for atmost 4 states ?
(c(Q7275),P194,c(Q1752346))
action count
action atmost
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
value 4
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P194 ?e . ?e rdf:type ontology:Q1752346 . ?z rdf:type ontology:Q7275 } GROUP BY ?e } . FILTER ( ?j <= 4 ) }
action count
action atmost
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
value 4
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:legislative_body ?e . ?e rdf:type ontology:assembly . ?z rdf:type ontology:state } GROUP BY ?e } . FILTER ( ?j <= 4 ) }
[]
assembly state
SYSTEM
172
Q16980374 Q3154693 Q1253647 Q109016 Q896075 Q4220207 Q2511660 Q949699 Q4496302 Q3365524 Q17063844 Q1257966 Q18510957 Q2584535 Q1258164 Q1368318 Q128852 Q1572486 Q5153951 Q206171 Q4808730 Q1283189 Q636377 Q458185 Q1889821 Q1813360 Q510511 Q509668 Q650248 Q5035091 Q1599346 Q1398920 Q3251036 Q2347172 Q6411382 Q641439 Q1817866 Q319994 Q1450753 Q2089528 Q7138943 Q21516057 Q884824 Q1577158 Q2282872 Q4816040 Q1585014 Q154797 Q2102558 Q19758733 Q1969591 Q1368588 Q4863502 Q4999218 Q11010 Q24824 Q5265877 Q1112381 Q9633175 Q7447085 Q7186810 Q1798607 Q7205806 Q1371388 Q640859 Q1091494 Q3333555 Q371576 Q4852810 Q7603047 Q2185780 Q4184925 Q1116283 Q1117578 Q2016884 Q1139204 Q2358985 Q2963301 Q5347180 Q7442079 Q2041767 Q4345419 Q1968458 Q1415847 Q740564 Q1517231 Q946944 Q3365530 Q1972029 Q643412 Q17064146 Q12114504 Q2739604 Q1870447 Q378605 Q1130737 Q6867972 Q24861263 Q648716 Q1292 Q571436 Q35749 Q521764 Q695252 Q1484825 Q209151 Q1520966 Q1284236 Q157638 Q4938444 Q219825 Q884829 Q1357543 Q1288169 Q882738 Q2994129 Q1077701 Q26856919 Q321246 Q645195 Q7253170 Q1280751 Q1135960 Q7063612 Q817979 Q12357499 Q697775 Q632552 Q2994125 Q684719 Q1965042 Q4849285 Q477089 Q1269552 Q1968468 Q260372 Q5211293 Q1501988 Q317147 Q878525 Q382118 Q5132092 Q449304 Q314690 Q5123141 Q646190 Q639704 Q4947808 Q1320418 Q7447087 Q475689 Q3393882 Q4985519 Q272930 Q11081523 Q15150880 Q822919 Q455697 Q219692 Q637829 Q5916428 Q5339025 Q133396 Q122635 Q3246027 Q2444341 Q160208 Q667464 Q7089412 Q1515950 Q189445 Q701632
(c(Q7275),P194,c(Q1752346))
action count
action atmost
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
value 4
[ANSWER]
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P194 ?e . ?e rdf:type ontology:Q1752346 . ?z rdf:type ontology:Q7275 } GROUP BY ?e } . FILTER ( ?j <= 4 ) }
Honolulu City Council city council Parliament of Grenada Parliament of Norway Landtag of Thuringia Kiev City Council Congress of Paraguay National Congress of Brasil Kharkiv City Municipality Parliament of Tasmania Kampuchean People's Representative Assembly Parliament of Greenland Supreme Soviet of the Donetsk People's Republic Parliament of Egypt Assembly of the Republic of Macedonia National Assembly Gibraltar Parliament Parliament of The Bahamas Communal Council of Monaco Scottish Parliament Legislative Assembly of São Paulo Estates of Aruba Hamburg Parliament Landtag of South Tyrol Irish Parliament Parliament of Romania Landtag of Hesse Løgting Landtag of Prussia Cape Town City Council National Assembly General council Legislature of New Brunswick Parliament of the Czech Republic King County Council Landtag of Bavaria Parliament of Malta Landtag of Lower Saxony Parliament of Sri Lanka Riga City Council Parliament of Trinidad and Tobago Zurich City Council Landtag of Saxony National Assembly diet Atlanta City Council National Assembly of Venezuela Bundestag of Germany Parliament of Poland departmental council National Assembly National Assembly of Panama Barrie City Council Burlington City Council Parliament of the United Kingdom General Council of Andorra Detroit City Council House of Representatives Legislative Assembly of Bahia Sejm of Congress Poland Phoenix City Council National Assembly of Belarus Plymouth General Court States General Abgeordnetenhaus of Berlin Parliament of Åland General Assembly of the Ottoman Empire Parliament of Croatia Baltimore City Council State Assembly of the Mari El Republic Parliament of South Africa Legislative Assembly of Primorsky Krai National Assembly Italian Parliament Oireachtas of the Irish Free State National Council of Slovakia Congress of People's Deputies of Russia Chicago City Council Eeyou Istchee James Bay Territory Seattle City Council Moscow City Duma Parliament of Lesotho Plurinational Legislative Assembly National Congress of Honduras Assembly of the Republic Parliament of Singapore States of Jersey Parliament of the Province of Canada Parliament of Nauru Parliament of Finland Parliament of the Khmer Republic Kremenchuk City Municipality Parliament of Great Britain Los Angeles City Council Islamic Consultative Assembly Parliament of England Minneapolis City Council Kyoto City Assembly National Assembly Flemish Parliament Landtag of North Rhine-Westphalia parliament Landtag of Brandenburg Parliament of India Congress of the Union Folketing New Zealand Parliament Congress of Colombia Frankfurt Parliament Boise City Council National Convention Landtag of Saxony-Anhalt Congress of the Republic of Peru Slovenian Parliament Landtag of Mecklenburg-Vorpommern Quebec City Council Regional Council in Italy Roccarainola city council Reichstag New York City Council Prussian estates Parliament of Antigua and Barbuda Parliament of Albania Nottingham City Council Grand and General Council Irkutsk Legislative Assembly Imperial Council French Parliament Ottawa City Council Federal Assembly National Assembly Bakersfield City Council Hellenic Parliament Dáil Éireann National Congress of Chile Landtag of Saarland Dallas City Council General Assembly of Uruguay Bürgerschaft of Bremen Reichstag Parliament of Australia Cleveland City Council Landtag of Schleswig-Holstein Landtag of Rhineland-Palatinate City Council of Tehran Argentine National Congress National Assembly Boston City Council Parliament of Cambodia Sejm of the Duchy of Warsaw Parliament of Canada Junta of the Kingdom of Galicia Buenos Aires City Legislature Parliament of Sweden New Taipei City Council Legislature of Quebec Saeima Landtag of Baden-Württemberg Cortes Generales Reichstag Houston City Council Edmonton City Council Knesset Parliament of Jamaica General Assembly of Nova Scotia Toronto City Council Reichstag Diet of Galicia and Lodomeria Omaha City Council Assembly of the Republic bicameral legislature municipal council
172
action count
action atmost
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
value 4
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:legislative_body ?e . ?e rdf:type ontology:assembly . ?z rdf:type ontology:state } GROUP BY ?e } . FILTER ( ?j <= 4 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5148517
P122
Q7275 Q56061 Q7275
USER
Which states have less number of states and administrative territories as the type of government than Colony and Protectorate of Nigeria ?
(c(Q7275),P122,c(Q7275)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q7275
action find_tuple_counts
relation P122
type Q7275
type Q56061
action count
action filter_multi_types
action find
entity Q5148517
relation P122
type Q7275
type Q56061
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?s property:P122 ?k . ?k rdf:type ontology:Q7275 . ?s rdf:type ontology:Q7275 } UNION { ?s property:P122 ?k . ?k rdf:type ontology:Q56061 . ?s rdf:type ontology:Q7275 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { { ?r rdf:type ontology:Q7275 } UNION { ?r rdf:type ontology:Q56061 } } . resource:Q5148517 property:P122 ?r } } . FILTER ( ?x < ?l ) }
Colony and Protectorate of Nigeria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type state
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action count
action filter_multi_types
action find
entity Colony and Protectorate of Nigeria
relation basic form of government
type state
type administrative territorial entity
[{'concept': 'state'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?s property:basic_form_of_government ?k . ?k rdf:type ontology:state . ?s rdf:type ontology:state } UNION { ?s property:basic_form_of_government ?k . ?k rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:state } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { { ?r rdf:type ontology:state } UNION { ?r rdf:type ontology:administrative_territorial_entity } } . resource:Colony_and_Protectorate_of_Nigeria property:basic_form_of_government ?r } } . FILTER ( ?x < ?l ) }
[]
state administrative territorial entity state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q484104 Q180573 Q105092 Q3185305 Q172107 Q1538311 Q476757 Q152115 Q285658 Q18285930 Q2414171 Q179876 Q218023 Q889374 Q798431 Q3456417 Q154401 Q174193 Q965174 Q282475 Q1269234 Q889394 Q48685 Q552157 Q229411 Q201038 Q761370 Q431731 Q175881 Q330988 Q1852345 Q1194329 Q533558 Q1423680 Q617218 Q2253783 Q1247508 Q13107370 Q986665 Q744042 Q209065 Q10988528 Q1811029 Q2308237 Q19801186 Q204920 Q1998866 Q207162 Q142417 Q834486 Q545205 Q131964 Q726798 Q133356 Q215530 Q150058 Q62589 Q161885 Q4461035 Q33946 Q150056 Q83572 Q11876909 Q139319 Q191077 Q234009 Q271570 Q903779 Q841364 Q16957 Q558596 Q1649871 Q941881 Q1194765 Q514423 Q62623 Q870055 Q713750 Q544630 Q1057542 Q16949002 Q1789596 Q550374 Q1152126 Q44642 Q853348 Q203493 Q696908 Q147909 Q555994 Q980 Q652560 Q220167 Q2980623 Q1636212 Q737040 Q112558 Q124943 Q317078 Q62519 Q503623 Q940123 Q14934927 Q137766 Q172579 Q153128 Q867782 Q877579 Q551798 Q83286 Q210036 Q1277557 Q633573 Q1483430 Q200896 Q1068408 Q623751 Q49683 Q330362 Q736936 Q8146595 Q12557 Q2456191 Q310293 Q15864 Q212439 Q844250 Q1362278 Q267584 Q303421 Q207521 Q1658411 Q153015 Q2342822 Q1078602 Q75613 Q71092 Q1479726 Q15180 Q6083755 Q698089 Q1406298 Q179293 Q28278 Q157734 Q600093 Q170072 Q7382038 Q467864 Q76236 Q209857 Q1415585 Q953432 Q1115291 Q170174 Q4843701 Q212056 Q21005050 Q175276 Q210542 Q422065 Q7318 Q42585 Q170468 Q487829 Q2365048 Q1138904 Q956451 Q27306 Q1493843 Q1508143 Q1477220 Q146713 Q156038 Q30623 Q736727 Q230407 Q940821 Q824489 Q157727 Q2088324 Q248572 Q189988 Q1192936 Q199841 Q71747 Q615902 Q1077630 Q1322229 Q173761 Q217196 Q16624774 Q23541302 Q199442 Q154195 Q13706 Q498735 Q1775277 Q173082 Q121932 Q680997 Q38872 Q4948 Q1152445 Q156020 Q16410 Q153660 Q1240096 Q1771831 Q70972 Q1986139 Q2145397 Q2353425 Q582861 Q1517772 Q1142179 Q12548 Q211274 Q158725 Q588672 Q6412664 Q6500954 Q1083009 Q391980 Q80211 Q1054184 Q1029847 Q832554 Q1155768 Q157367 Q427941 Q1044668 Q161036 Q266923 Q1061488 Q41304 Q752662 Q797422 Q206411 Q2305337 Q2184 Q2578706 Q1885093 Q149805
(c(Q7275),P122,c(Q7275)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q7275
action find_tuple_counts
relation P122
type Q7275
type Q56061
action count
action filter_multi_types
action find
entity Q5148517
relation P122
type Q7275
type Q56061
[ANSWERS] have less number of states and administrative territories as the type of government than Colony and Protectorate of Nigeria
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?s property:P122 ?k . ?k rdf:type ontology:Q7275 . ?s rdf:type ontology:Q7275 } UNION { ?s property:P122 ?k . ?k rdf:type ontology:Q56061 . ?s rdf:type ontology:Q7275 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { { ?r rdf:type ontology:Q7275 } UNION { ?r rdf:type ontology:Q56061 } } . resource:Q5148517 property:P122 ?r } } . FILTER ( ?x < ?l ) }
Kingdom of Serbia Republic of Serbian Krajina United States Army Military Government in Korea South Vietnam Kingdom of Mercia Kingdom of Israel Polish–Lithuanian Commonwealth Travancore-Cochin Democratic Republic of Afghanistan Duchy of Warsaw First Mexican Empire German Empire of 1848/1849 First Brazilian Republic Kingdom of England Orange Free State Warsangali Sultanate Republic of Dahomey Republic of Saint-Malo Slovak Republic United Kingdom of Great Britain and Ireland Coalition Provisional Authority Kingdom of Kartli-Kakheti Stellaland Portuguese Mozambique Judah Nieuwe Republiek Delhi Sultanate Roman Kingdom Aro Confederacy Tanganyika Roman Republic Democratic Kampuchea Trucial States Nova Roma Kingdom of Croatia-Slavonia Gay and Lesbian Kingdom of the Coral Sea Islands Yamhad Kingdom of Glywysing Domain of Soissons Principality of Serbia First East Turkestan Republic Grand Duchy of Avram Kingdom of Greece Second East Turkestan Republic Finnish Socialist Workers' Republic Ahom kingdom Liberland Crown of Aragon Czech and Slovak Federal Republic Bourbon Restoration Kingdom of Valencia Federation of South Arabia Transcaucasian Socialist Federative Soviet Republic Austrian Empire Tulunids Ukrainian Soviet Socialist Republic Kingdom of Ireland Travancore Union between Sweden and Norway Kingdom of Great Britain Akkadian empire Czechoslovakia Kingdom of Cochin Sikh Empire State of Brazil Russian Republic Kingdom of Yugoslavia Magadha Kingdom of Araucanía and Patagonia United Kingdom of Portugal, Brazil and the Algarves Ayutthaya Kingdom East Germany Hadiya Kingdom Kingdom of Poland Netherlands New Guinea Kamarupa Parthenopean Republic Kalmar Union Kingdom of Laos West Germany Republic of Maryland Republic of Hawaii Lordship of Brecknock Croatia in personal union with Hungary South African Republic People's Republic of the Congo Federation of Arab Republics Czechoslovak Socialist Republic Kingdom of Romania Kingdom of Poland Kingdom of Bulgaria Ag Qoyunlu Bavaria West Indies Federation Lydenburg Republic Kingdom of Bosnia Karabakh Khanate Islamic Courts Union Republic of Saugeais Kingdom of Egypt Pskov Republic Finnish Democratic Republic Gold Coast Rustamid dynasty Murrawarri Republic Free Republic of Wendland Kingdom of Italy Independent State of Croatia Kingdom of Funan Kugelmugel Grand Duchy of Flandrensis Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Democratic Federal Yugoslavia Kingdom of Rheged Principality of Kiev Slovak Soviet Republic Kuru Kingdom Kingdom of Bernicia Grand Duchy of Lithuania Commonwealth of England Lu Upingtonia Mongol Empire Kingdom of Seisyllwg Saar Protectorate United Kingdom of the Netherlands Cossack Hetmanate Lordship of Ireland United States of Stellaland Yemen Arab Republic Kingdom of Galicia Abyssinia Kingdom of Sarawak Kingdom of Saxony West Pakistan Kingdom of Nepal Almoravid dynasty Second French Empire Federation of Malaya Soviet Union Islands of Refreshment Grand Duchy of Würzburg Serbian Empire Kingdom of Castile Provisional Government of the Republic of Korea Muscat and Oman Habsburg Spain Dutch Republic Imperial Throne People's Socialist Republic of Albania Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Islamic State of Afghanistan Couto Misto Thonburi Kingdom Papal States Libyan Arab Jamahiriya Mongolian People's Republic Kingdom of Morgannwg Kingdom of León Second Brazilian Republic Sultanate of Sulu Nazi Germany Kingdom of Bohemia United Arab Republic Chagatai Khanate Adal Sultanate Kingdom of Afghanistan Kingdom of Dyfed Kingdom of Prussia Klein Vrystaat Ukrainian State Somali Democratic Republic Arab Federation Duchy of Courland and Semigallia Manchukuo Republic of Siena Kingdom of Israel People's Democratic Republic of Ethiopia Estado Novo Ifat Sultanate Colonial Brazil Sultanate of Maguindanao Central African Empire Kingdom of Burundi South Yemen Duchy of Brittany Kingdom of Finland Septinsular Republic Enlightenment in Spain Lithuanian Soviet Socialist Republic Crown of Castile Kingdom of Nicoya Kaluga Soviet Republic Kingdom of Aragon Kingdom of Bavaria Principality of Sealand division of Korea Dominion of India Dacia People's Republic of Bulgaria Principality of Lower Pannonia Prussia Republic of Venice Aerican Empire State of the Teutonic Order People's Republic of Hungary Italian Social Republic Hyderabad State Kruševo Republic Kingdom of France Parthian Empire Goshen (South Africa) Talossa Marinid dynasty Protectorate of South Arabia Orange River Colony Holy Roman Empire People's Republic of Poland Tanganyika Territory Hammadid dynasty Realm of Stefan Dragutin Zaire Principality of Wy Free Territory of Trieste Lithuanian Soviet Socialist Republic Khmer Republic Natalia Republic Argentine Confederation Republic of Molossia Brandenburg-Prussia Islamic Emirate of Afghanistan Republic of Rose Island Free State of Prussia Kingdom of Mysore United States of Colombia Weimar Republic Hafsid dynasty Republic of Upper Volta Democratic Republic of Azerbaijan Azerbaijan People's Government Russian Soviet Federative Socialist Republic Kingdom of Ceredigion Mahra Sultanate Kingdom of Iraq
Czechoslovakia, Soviet Union and Bavaria have less number of states and administrative territories as the type of government than Colony and Protectorate of Nigeria
Czechoslovakia Soviet Union Bavaria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type state
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action count
action filter_multi_types
action find
entity Colony and Protectorate of Nigeria
relation basic form of government
type state
type administrative territorial entity
[{'concept': 'state'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?s WHERE { { ?s property:basic_form_of_government ?k . ?k rdf:type ontology:state . ?s rdf:type ontology:state } UNION { ?s property:basic_form_of_government ?k . ?k rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:state } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { { ?r rdf:type ontology:state } UNION { ?r rdf:type ontology:administrative_territorial_entity } } . resource:Colony_and_Protectorate_of_Nigeria property:basic_form_of_government ?r } } . FILTER ( ?x < ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2006542
P122
Q7275 Q56061 Q7275
USER
And also tell me about Dominion of Pakistan?
(c(Q7275),P122,c(Q7275)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q7275
action find_tuple_counts
relation P122
type Q7275
type Q56061
action count
action filter_multi_types
action find
entity Q2006542
relation P122
type Q7275
type Q56061
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } } . resource:Q2006542 property:P122 ?o } } . FILTER ( ?n < ?i ) }
Dominion of Pakistan
action less
action union
action find_tuple_counts
relation basic form of government
type state
type state
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dominion of Pakistan
relation basic form of government
type state
type administrative territorial entity
[{'concept': 'state'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } } . resource:Dominion_of_Pakistan property:basic_form_of_government ?o } } . FILTER ( ?n < ?i ) }
[]
state administrative territorial entity state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q484104 Q180573 Q105092 Q3185305 Q172107 Q1538311 Q476757 Q152115 Q285658 Q18285930 Q2414171 Q179876 Q218023 Q889374 Q798431 Q3456417 Q154401 Q174193 Q965174 Q282475 Q1269234 Q889394 Q48685 Q552157 Q229411 Q201038 Q761370 Q431731 Q175881 Q330988 Q1852345 Q1194329 Q533558 Q1423680 Q617218 Q2253783 Q1247508 Q13107370 Q986665 Q744042 Q209065 Q10988528 Q1811029 Q2308237 Q19801186 Q204920 Q1998866 Q207162 Q142417 Q834486 Q545205 Q131964 Q726798 Q133356 Q215530 Q150058 Q62589 Q161885 Q4461035 Q33946 Q150056 Q83572 Q11876909 Q139319 Q191077 Q234009 Q271570 Q903779 Q841364 Q16957 Q558596 Q1649871 Q941881 Q1194765 Q514423 Q62623 Q870055 Q713750 Q544630 Q1057542 Q16949002 Q1789596 Q550374 Q1152126 Q44642 Q853348 Q203493 Q696908 Q147909 Q555994 Q980 Q652560 Q220167 Q2980623 Q1636212 Q737040 Q112558 Q124943 Q317078 Q62519 Q503623 Q940123 Q14934927 Q137766 Q172579 Q153128 Q867782 Q877579 Q551798 Q83286 Q210036 Q1277557 Q633573 Q1483430 Q200896 Q1068408 Q623751 Q49683 Q330362 Q736936 Q8146595 Q12557 Q2456191 Q310293 Q15864 Q212439 Q844250 Q1362278 Q267584 Q303421 Q207521 Q1658411 Q153015 Q2342822 Q1078602 Q75613 Q71092 Q1479726 Q15180 Q6083755 Q698089 Q1406298 Q179293 Q28278 Q157734 Q600093 Q170072 Q7382038 Q467864 Q76236 Q209857 Q1415585 Q953432 Q1115291 Q170174 Q4843701 Q212056 Q21005050 Q175276 Q210542 Q422065 Q7318 Q42585 Q170468 Q487829 Q2365048 Q1138904 Q956451 Q27306 Q1493843 Q1508143 Q1477220 Q146713 Q156038 Q30623 Q736727 Q230407 Q940821 Q824489 Q157727 Q2088324 Q248572 Q189988 Q1192936 Q199841 Q71747 Q615902 Q1077630 Q1322229 Q173761 Q217196 Q16624774 Q23541302 Q199442 Q154195 Q13706 Q498735 Q1775277 Q173082 Q121932 Q680997 Q38872 Q4948 Q1152445 Q156020 Q16410 Q153660 Q1240096 Q1771831 Q70972 Q1986139 Q2145397 Q2353425 Q582861 Q1517772 Q1142179 Q12548 Q211274 Q158725 Q588672 Q6412664 Q6500954 Q1083009 Q391980 Q80211 Q1054184 Q1029847 Q832554 Q1155768 Q157367 Q427941 Q1044668 Q161036 Q266923 Q1061488 Q41304 Q752662 Q797422 Q206411 Q2305337 Q2184 Q2578706 Q1885093 Q149805
(c(Q7275),P122,c(Q7275)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q7275
action find_tuple_counts
relation P122
type Q7275
type Q56061
action count
action filter_multi_types
action find
entity Q2006542
relation P122
type Q7275
type Q56061
[ANSWERS]
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } } . resource:Q2006542 property:P122 ?o } } . FILTER ( ?n < ?i ) }
Kingdom of Serbia Republic of Serbian Krajina United States Army Military Government in Korea South Vietnam Kingdom of Mercia Kingdom of Israel Polish–Lithuanian Commonwealth Travancore-Cochin Democratic Republic of Afghanistan Duchy of Warsaw First Mexican Empire German Empire of 1848/1849 First Brazilian Republic Kingdom of England Orange Free State Warsangali Sultanate Republic of Dahomey Republic of Saint-Malo Slovak Republic United Kingdom of Great Britain and Ireland Coalition Provisional Authority Kingdom of Kartli-Kakheti Stellaland Portuguese Mozambique Judah Nieuwe Republiek Delhi Sultanate Roman Kingdom Aro Confederacy Tanganyika Roman Republic Democratic Kampuchea Trucial States Nova Roma Kingdom of Croatia-Slavonia Gay and Lesbian Kingdom of the Coral Sea Islands Yamhad Kingdom of Glywysing Domain of Soissons Principality of Serbia First East Turkestan Republic Grand Duchy of Avram Kingdom of Greece Second East Turkestan Republic Finnish Socialist Workers' Republic Ahom kingdom Liberland Crown of Aragon Czech and Slovak Federal Republic Bourbon Restoration Kingdom of Valencia Federation of South Arabia Transcaucasian Socialist Federative Soviet Republic Austrian Empire Tulunids Ukrainian Soviet Socialist Republic Kingdom of Ireland Travancore Union between Sweden and Norway Kingdom of Great Britain Akkadian empire Czechoslovakia Kingdom of Cochin Sikh Empire State of Brazil Russian Republic Kingdom of Yugoslavia Magadha Kingdom of Araucanía and Patagonia United Kingdom of Portugal, Brazil and the Algarves Ayutthaya Kingdom East Germany Hadiya Kingdom Kingdom of Poland Netherlands New Guinea Kamarupa Parthenopean Republic Kalmar Union Kingdom of Laos West Germany Republic of Maryland Republic of Hawaii Lordship of Brecknock Croatia in personal union with Hungary South African Republic People's Republic of the Congo Federation of Arab Republics Czechoslovak Socialist Republic Kingdom of Romania Kingdom of Poland Kingdom of Bulgaria Ag Qoyunlu Bavaria West Indies Federation Lydenburg Republic Kingdom of Bosnia Karabakh Khanate Islamic Courts Union Republic of Saugeais Kingdom of Egypt Pskov Republic Finnish Democratic Republic Gold Coast Rustamid dynasty Murrawarri Republic Free Republic of Wendland Kingdom of Italy Independent State of Croatia Kingdom of Funan Kugelmugel Grand Duchy of Flandrensis Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Democratic Federal Yugoslavia Kingdom of Rheged Principality of Kiev Slovak Soviet Republic Kuru Kingdom Kingdom of Bernicia Grand Duchy of Lithuania Commonwealth of England Lu Upingtonia Mongol Empire Kingdom of Seisyllwg Saar Protectorate United Kingdom of the Netherlands Cossack Hetmanate Lordship of Ireland United States of Stellaland Yemen Arab Republic Kingdom of Galicia Abyssinia Kingdom of Sarawak Kingdom of Saxony West Pakistan Kingdom of Nepal Almoravid dynasty Second French Empire Federation of Malaya Soviet Union Islands of Refreshment Grand Duchy of Würzburg Serbian Empire Kingdom of Castile Provisional Government of the Republic of Korea Muscat and Oman Habsburg Spain Dutch Republic Imperial Throne People's Socialist Republic of Albania Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Islamic State of Afghanistan Couto Misto Thonburi Kingdom Papal States Libyan Arab Jamahiriya Mongolian People's Republic Kingdom of Morgannwg Kingdom of León Second Brazilian Republic Sultanate of Sulu Nazi Germany Kingdom of Bohemia United Arab Republic Chagatai Khanate Adal Sultanate Kingdom of Afghanistan Kingdom of Dyfed Kingdom of Prussia Klein Vrystaat Ukrainian State Somali Democratic Republic Arab Federation Duchy of Courland and Semigallia Manchukuo Republic of Siena Kingdom of Israel People's Democratic Republic of Ethiopia Estado Novo Ifat Sultanate Colonial Brazil Sultanate of Maguindanao Central African Empire Kingdom of Burundi South Yemen Duchy of Brittany Kingdom of Finland Septinsular Republic Enlightenment in Spain Lithuanian Soviet Socialist Republic Crown of Castile Kingdom of Nicoya Kaluga Soviet Republic Kingdom of Aragon Kingdom of Bavaria Principality of Sealand division of Korea Dominion of India Dacia People's Republic of Bulgaria Principality of Lower Pannonia Prussia Republic of Venice Aerican Empire State of the Teutonic Order People's Republic of Hungary Italian Social Republic Hyderabad State Kruševo Republic Kingdom of France Parthian Empire Goshen (South Africa) Talossa Marinid dynasty Protectorate of South Arabia Orange River Colony Holy Roman Empire People's Republic of Poland Tanganyika Territory Hammadid dynasty Realm of Stefan Dragutin Zaire Principality of Wy Free Territory of Trieste Lithuanian Soviet Socialist Republic Khmer Republic Natalia Republic Argentine Confederation Republic of Molossia Brandenburg-Prussia Islamic Emirate of Afghanistan Republic of Rose Island Free State of Prussia Kingdom of Mysore United States of Colombia Weimar Republic Hafsid dynasty Republic of Upper Volta Democratic Republic of Azerbaijan Azerbaijan People's Government Russian Soviet Federative Socialist Republic Kingdom of Ceredigion Mahra Sultanate Kingdom of Iraq
Czechoslovakia Soviet Union Bavaria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type state
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dominion of Pakistan
relation basic form of government
type state
type administrative territorial entity
[{'concept': 'state'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?d . VALUES ( ?d ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } } . resource:Dominion_of_Pakistan property:basic_form_of_government ?o } } . FILTER ( ?n < ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q515 Q486972
USER
How many states have around 1 cities and human settlements as their county seat ?
(c(Q515)|c(Q486972),P1376,c(Q7275))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
value 1
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:P1376 ?z . ?z rdf:type ontology:Q7275 . ?c rdf:type ontology:Q486972 } UNION { ?c property:P1376 ?z . ?z rdf:type ontology:Q7275 . ?c rdf:type ontology:Q515 } } GROUP BY ?z } . FILTER ( ?y = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:capital_of ?z . ?z rdf:type ontology:state . ?c rdf:type ontology:human_settlement } UNION { ?c property:capital_of ?z . ?z rdf:type ontology:state . ?c rdf:type ontology:city } } GROUP BY ?z } . FILTER ( ?y = 1 ) }
[]
state city human settlement
SYSTEM
84
Q178665 Q18285930 Q855044 Q210198 Q133356 Q215530 Q912043 Q1649871 Q203493 Q1574107 Q15864 Q2361927 Q698089 Q953432 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q216173 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q16957 Q1154540 Q550374 Q19831559 Q172107 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q797422 Q235030 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q487829 Q3041595 Q484104 Q648297 Q149805
(c(Q515)|c(Q486972),P1376,c(Q7275))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
value 1
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:P1376 ?z . ?z rdf:type ontology:Q7275 . ?c rdf:type ontology:Q486972 } UNION { ?c property:P1376 ?z . ?z rdf:type ontology:Q7275 . ?c rdf:type ontology:Q515 } } GROUP BY ?z } . FILTER ( ?y = 1 ) }
Mitanni German Empire of 1848/1849 Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Poland Kingdom of Romania Han Zhao United Kingdom of the Netherlands Duchy of Masovia Grand Duchy of Würzburg Couto Misto Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Free City of Danzig Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia East Germany Later Jin Dynasty South African Republic Oldenburg Polish–Lithuanian Commonwealth Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Chagatai Khanate Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
84
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:capital_of ?z . ?z rdf:type ontology:state . ?c rdf:type ontology:human_settlement } UNION { ?c property:capital_of ?z . ?z rdf:type ontology:state . ?c rdf:type ontology:city } } GROUP BY ?z } . FILTER ( ?y = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q7275 Q515
USER
Which cities are the capital of min number of states ?
(c(Q515),P1376,c(Q7275))
action argmin
action find_tuple_counts
relation P1376
type Q515
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?y ) WHERE { ?q property:P1376 ?x . ?q rdf:type ontology:Q515 . ?x rdf:type ontology:Q7275 } GROUP BY ?q } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?h ) { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { ?z property:P1376 ?s . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q7275 } GROUP BY ?z } } }
action argmin
action find_tuple_counts
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?y ) WHERE { ?q property:capital_of ?x . ?q rdf:type ontology:city . ?x rdf:type ontology:state } GROUP BY ?q } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?h ) { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { ?z property:capital_of ?s . ?z rdf:type ontology:city . ?s rdf:type ontology:state } GROUP BY ?z } } }
[]
state city
Q1773 Q23482 Q456
SYSTEM
Riga, Marseille, Lyon
Q15826 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q496667 Q240504 Q3806 Q281371 Q258884 Q592338 Q52607 Q766168 Q933645 Q214938 Q830394 Q205607 Q193050 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q57953 Q917888 Q1070920 Q174096 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q11462 Q834567 Q851675 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q793405 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q270704 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q6602 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q3904 Q325164 Q305640 Q14819 Q5285 Q14182 Q740810 Q861221 Q911667 Q6807568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q3859 Q155975 Q1020939 Q674311 Q3915 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q2337 Q633789 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q2973 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1856 Q855016 Q3787 Q855011 Q4007 Q480421 Q14168 Q823907 Q7070 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q542154 Q2526233 Q946769 Q846351 Q739304 Q789233 Q7253 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q2119 Q390796 Q271917 Q5972 Q1720 Q1721 Q1645 Q7578 Q390798 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q2907 Q15847 Q843014 Q604516 Q3768 Q732300 Q789510 Q20073 Q1863 Q2209 Q2200 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q71159 Q3355306 Q57944 Q189761 Q189769 Q57948 Q2795 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q184998 Q5217 Q854965 Q1020709 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3931 Q3751 Q3750 Q3616 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125
(c(Q515),P1376,c(Q7275))
action argmin
action find_tuple_counts
relation P1376
type Q515
type Q7275
[ANSWERS] are the capital of min number of states
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?y ) WHERE { ?q property:P1376 ?x . ?q rdf:type ontology:Q515 . ?x rdf:type ontology:Q7275 } GROUP BY ?q } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?h ) { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { ?z property:P1376 ?s . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q7275 } GROUP BY ?z } } }
Palu Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Makó Tübingen Jászberény Bélapátfalva Marawi Mar del Plata Nagykáta Kunhegyes Gyula Nagykőrös Zirc Érd Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Schwarzenberg Vinaròs Mamuju Sorsogon City Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Toyooka Pétervására Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Surabaya Bonyhád Takahashi Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Kunszentmárton Florianópolis Kiskunfélegyháza Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Berettyóújfalu Tiszaújváros Putnok Zhanjiang Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Heidelberg Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Třebíč Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Mbabane Kayes Abashiri Freiberg Tarlac Banjarmasin Békés Nakatsu Elek Emmen Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Digos Kisvárda Antananarivo Tandag Uda Tsuyama Mati Oral Ōmura Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Smolensk Dombóvár Brno Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Darmstadt Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Annaka Neubrandenburg Kostanay Weimar Sárospatak Leipzig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Malaybalay Csurgó Abuja Heves Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Caracas Morioka Lucknow Patna Ungaran Hirado Koronadal Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Padang Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Khost Imus Mannheim Orosháza Kushiro Medan Mainz Wiesbaden Cagayan de Oro Jambi Szentendre Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Sucre Manado Szarvas Szentgotthárd Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Roxas Tuguegarao České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Bangalore Most Fuchū Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Aue Chemnitz Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Kaposvár Bacolod Lenti Catbalogan Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Brandenburg an der Havel Praia Gera Tehran Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena
Riga, Marseille and Lyon are the capital of min number of states
Riga Marseille Lyon
action argmin
action find_tuple_counts
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?y ) WHERE { ?q property:capital_of ?x . ?q rdf:type ontology:city . ?x rdf:type ontology:state } GROUP BY ?q } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?h ) { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { ?z property:capital_of ?s . ?z rdf:type ontology:city . ?s rdf:type ontology:state } GROUP BY ?z } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P36
Q13220204 Q15617994
USER
How many administrative country subdivisions or administrative territories have that city as their capital ?
(c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q1773) (c(Q15617994),P36,Q1773) (c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q456) (c(Q15617994),P36,Q456)
[{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q1773'] [{'concept': 'Q15617994'}, 'P36', 'Q1773'] [{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q456'] [{'concept': 'Q15617994'}, 'P36', 'Q456']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q19468180 } UNION { ?y property:Q8137 resource:Q19468180 } UNION { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q294688 } UNION { ?y property:Q8137 resource:Q294688 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Riga'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Riga'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Lyon'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Lyon']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Riga } UNION { ?y property:capital resource:Riga } UNION { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Lyon } UNION { ?y property:capital resource:Lyon } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
second-level administrative country subdivision designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q456
SYSTEM
Did you mean Lyon ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q19468180 } UNION { ?y property:Q8137 resource:Q19468180 } UNION { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q294688 } UNION { ?y property:Q8137 resource:Q294688 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q15617994 }
Did you mean Lyon ?
Lyon
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Riga } UNION { ?y property:capital resource:Riga } UNION { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Lyon } UNION { ?y property:capital resource:Lyon } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Marseille. Could you tell me the answer for that?
(c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q1773) (c(Q15617994),P36,Q1773) (c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q456) (c(Q15617994),P36,Q456)
Q23482
[{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q1773'] [{'concept': 'Q15617994'}, 'P36', 'Q1773'] [{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q456'] [{'concept': 'Q15617994'}, 'P36', 'Q456']
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Riga'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Riga'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Lyon'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Lyon']
[]
SYSTEM
2
Q3240 Q701646
(c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q1773) (c(Q15617994),P36,Q1773) (c(Q13220204),P36,Q23482) (c(Q15617994),P36,Q23482) (c(Q13220204),P36,Q456) (c(Q15617994),P36,Q456)
[ANSWER]
[{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q1773'] [{'concept': 'Q15617994'}, 'P36', 'Q1773'] [{'concept': 'Q13220204'}, 'P36', 'Q23482'] [{'concept': 'Q15617994'}, 'P36', 'Q23482'] [{'concept': 'Q13220204'}, 'P36', 'Q456'] [{'concept': 'Q15617994'}, 'P36', 'Q456']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q19468180 } UNION { ?y property:Q8137 resource:Q19468180 } UNION { ?z property:Q8137 resource:Q3849886 } UNION { ?y property:Q8137 resource:Q3849886 } UNION { ?z property:Q8137 resource:Q294688 } UNION { ?y property:Q8137 resource:Q294688 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q15617994 }
Bouches-du-Rhône arrondissement of Marseille
2
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Riga'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Riga'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Marseille'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Marseille'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Lyon'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Lyon']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Riga } UNION { ?y property:capital resource:Riga } UNION { ?z property:capital resource:Marseille } UNION { ?y property:capital resource:Marseille } UNION { ?z property:capital resource:Lyon } UNION { ?y property:capital resource:Lyon } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]