Simple Question (Direct)
Simple Question
Q7529319
P39
Q12737077
USER
Which occupation was a position held by Sir Thomas Worsfold, 1st Baronet ?
(Q7529319,P39,c(Q12737077))
action filter_type
action find
entity Q7529319
relation P39
type Q12737077
['Q7529319', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q7529319 property:P39 ?d }
Sir Thomas Worsfold, 1st Baronet
action filter_type
action find
entity Sir Thomas Worsfold, 1st Baronet
relation position held
type occupation
['Sir Thomas Worsfold, 1st Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Sir_Thomas_Worsfold,_1st_Baronet property:position_held ?d }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q7529319,P39,c(Q12737077))
action filter_type
action find
entity Q7529319
relation P39
type Q12737077
The [ANSWER] was a position held by Sir Thomas Worsfold, 1st Baronet
['Q7529319', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q7529319 property:P39 ?d }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Sir Thomas Worsfold, 1st Baronet
Member of Parliament in the United Kingdom
action filter_type
action find
entity Sir Thomas Worsfold, 1st Baronet
relation position held
type occupation
['Sir Thomas Worsfold, 1st Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Sir_Thomas_Worsfold,_1st_Baronet property:position_held ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7529319
P1412
Q34770
USER
Which language is spoken by Sir Thomas Worsfold, 1st Baronet ?
(Q7529319,P1412,c(Q34770))
action filter_type
action find
entity Q7529319
relation P1412
type Q34770
['Q7529319', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q7529319 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Sir Thomas Worsfold, 1st Baronet
action filter_type
action find
entity Sir Thomas Worsfold, 1st Baronet
relation languages spoken, written or signed
type language
['Sir Thomas Worsfold, 1st Baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Sir_Thomas_Worsfold,_1st_Baronet property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7529319,P1412,c(Q34770))
action filter_type
action find
entity Q7529319
relation P1412
type Q34770
And [ANSWER] is spoken by Sir Thomas Worsfold, 1st Baronet
['Q7529319', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q7529319 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
English
And English is spoken by Sir Thomas Worsfold, 1st Baronet
English
action filter_type
action find
entity Sir Thomas Worsfold, 1st Baronet
relation languages spoken, written or signed
type language
['Sir Thomas Worsfold, 1st Baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Sir_Thomas_Worsfold,_1st_Baronet property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6136890
Q34770
USER
And what about James Johnson?
(Q6136890,P1412,c(Q34770))
action filter_type
action find
entity Q6136890
relation P1412
type Q34770
['Q6136890', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q6136890 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
James Johnson
action filter_type
action find
entity James Johnson
relation languages spoken, written or signed
type language
['James Johnson', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:James_Johnson property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6136890,P1412,c(Q34770))
action filter_type
action find
entity Q6136890
relation P1412
type Q34770
[ANSWER]
['Q6136890', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q6136890 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity James Johnson
relation languages spoken, written or signed
type language
['James Johnson', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:James_Johnson property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
How many languages are the mother tongues of less number of people than that language ?
(c(Q502895),P103,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1860
relation P103
type Q502895
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:P103 resource:Q1860 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?z < ?a ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?z ) WHERE { ?w rdf:type ontology:Q34770 . ?j rdf:type ontology:Q502895 . ?j property:P103 ?w } GROUP BY ?w } }
action count
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity English
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:native_language resource:English . ?t rdf:type ontology:common_name } } . FILTER ( ?z < ?a ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?z ) WHERE { ?w rdf:type ontology:language . ?j rdf:type ontology:common_name . ?j property:native_language ?w } GROUP BY ?w } }
[]
language common name
SYSTEM
9
Q3200839 Q9056 Q652 Q8752 Q1321 Q13211 Q397 Q8785 Q25164
(c(Q502895),P103,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find_reverse
entity Q1860
relation P103
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:P103 resource:Q1860 . ?t rdf:type ontology:Q502895 } } . FILTER ( ?z < ?a ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?z ) WHERE { ?w rdf:type ontology:Q34770 . ?j rdf:type ontology:Q502895 . ?j property:P103 ?w } GROUP BY ?w } }
Kwaza language Czech Italian Basque Spanish Ruthenian Latin Armenian Nynorsk
9
action count
action less
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find_reverse
entity English
relation native language
type common name
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:native_language resource:English . ?t rdf:type ontology:common_name } } . FILTER ( ?z < ?a ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?z ) WHERE { ?w rdf:type ontology:language . ?j rdf:type ontology:common_name . ?j property:native_language ?w } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q25279
P37
Q34770 Q7275
USER
Which states are known to have lesser number of languages as their official language than Curaçao ?
(c(Q7275),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q25279
relation P37
type Q34770
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:P37 ?z . ?z rdf:type ontology:Q34770 . ?d rdf:type ontology:Q7275 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:Q34770 . resource:Q25279 property:P37 ?x } } . FILTER ( ?q < ?g ) }
Curaçao
action less
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Curaçao
relation official language
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:official_language ?z . ?z rdf:type ontology:language . ?d rdf:type ontology:state } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:language . resource:Curaçao property:official_language ?x } } . FILTER ( ?q < ?g ) }
[]
language state
Q15180 Q330988 Q147909
SYSTEM
Soviet Union, Democratic Kampuchea, Kingdom of Bulgaria
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q25279
relation P37
type Q34770
[ANSWERS] are known to have lesser number of languages as their official language than Curaçao
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:P37 ?z . ?z rdf:type ontology:Q34770 . ?d rdf:type ontology:Q7275 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:Q34770 . resource:Q25279 property:P37 ?x } } . FILTER ( ?q < ?g ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
Soviet Union, Democratic Kampuchea and Kingdom of Bulgaria are known to have lesser number of languages as their official language than Curaçao
Soviet Union Democratic Kampuchea Kingdom of Bulgaria
action less
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Curaçao
relation official language
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:official_language ?z . ?z rdf:type ontology:language . ?d rdf:type ontology:state } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x rdf:type ontology:language . resource:Curaçao property:official_language ?x } } . FILTER ( ?q < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q551798
P37
Q34770 Q7275
USER
And how about Grand Duchy of Flandrensis?
(c(Q7275),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q551798
relation P37
type Q34770
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?w ) WHERE { ?l property:P37 ?d . ?d rdf:type ontology:Q34770 . ?l rdf:type ontology:Q7275 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q551798 property:P37 ?s . ?s rdf:type ontology:Q34770 } } . FILTER ( ?w < ?o ) }
Grand Duchy of Flandrensis
action less
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Grand Duchy of Flandrensis
relation official language
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?w ) WHERE { ?l property:official_language ?d . ?d rdf:type ontology:language . ?l rdf:type ontology:state } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Grand_Duchy_of_Flandrensis property:official_language ?s . ?s rdf:type ontology:language } } . FILTER ( ?w < ?o ) }
[]
language state
Q15180 Q330988 Q147909
SYSTEM
Soviet Union, Democratic Kampuchea, Kingdom of Bulgaria
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q551798
relation P37
type Q34770
[ANSWERS]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?w ) WHERE { ?l property:P37 ?d . ?d rdf:type ontology:Q34770 . ?l rdf:type ontology:Q7275 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q551798 property:P37 ?s . ?s rdf:type ontology:Q34770 } } . FILTER ( ?w < ?o ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
Soviet Union Democratic Kampuchea Kingdom of Bulgaria
action less
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Grand Duchy of Flandrensis
relation official language
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?w ) WHERE { ?l property:official_language ?d . ?d rdf:type ontology:language . ?l rdf:type ontology:state } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Grand_Duchy_of_Flandrensis property:official_language ?s . ?s rdf:type ontology:language } } . FILTER ( ?w < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1789596
P194
Q11204 Q1752346 Q7275
USER
Which states have around the same number of legislatures or assemblies as their legislative body as Croatia in personal union with Hungary ?
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action count
action filter_multi_types
action find
entity Q1789596
relation P194
type Q11204
type Q1752346
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?g WHERE { VALUES ( ?s ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } . ?l rdf:type ?s } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q1789596 property:P194 ?u . { ?u rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } } } . FILTER ( ?o = ?x ) }
Croatia in personal union with Hungary
action approx
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
action count
action filter_multi_types
action find
entity Croatia in personal union with Hungary
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?g WHERE { VALUES ( ?s ) { ( ontology:assembly ) ( ontology:legislature ) } . ?l rdf:type ?s } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Croatia_in_personal_union_with_Hungary property:legislative_body ?u . { ?u rdf:type ?i . VALUES ( ?i ) { ( ontology:assembly ) ( ontology:legislature ) } } } } . FILTER ( ?o = ?x ) }
[]
legislature assembly state
Q980 Q518101 Q26273
SYSTEM
Bavaria, First Republic of Austria, Sint Maarten
Q241748 Q774783 Q105092 Q70802 Q842931 Q152115 Q121932 Q7318 Q18285930 Q179876 Q207162 Q25279 Q174193 Q233263 Q330988 Q27306 Q533558 Q1044536 Q21203 Q215530 Q488521 Q161885 Q328818 Q2638486 Q171150 Q1789596 Q203493 Q147909 Q980 Q58202 Q150981 Q518101 Q16410 Q1062422 Q15864 Q844250 Q303421 Q2396442 Q178038 Q386496 Q71092 Q217230 Q170072 Q146328 Q58296 Q371334 Q156038 Q824489 Q7314513 Q1140152 Q615902 Q1077630 Q491559 Q154195 Q368986 Q285658 Q156020 Q497777 Q12548 Q7314469 Q26273 Q1054184 Q487687 Q161036 Q41304
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action count
action filter_multi_types
action find
entity Q1789596
relation P194
type Q11204
type Q1752346
[ANSWERS] have around the same number of legislatures or assemblies as their legislative body as Croatia in personal union with Hungary
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?g WHERE { VALUES ( ?s ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } . ?l rdf:type ?s } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q1789596 property:P194 ?u . { ?u rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } } } . FILTER ( ?o = ?x ) }
Kingdom of Serbia Sovereign Principality of the United Netherlands Kingdom of Mercia French Third Republic East Pakistan Duchy of Warsaw People's Republic of Bulgaria Nazi Germany German Empire of 1848/1849 Kingdom of England Bourbon Restoration Curaçao United Kingdom of Great Britain and Ireland Second Republic of South Korea Democratic Kampuchea Kingdom of Prussia Kingdom of Croatia-Slavonia Spain under the Restoration Aruba Kingdom of Ireland Fourth Republic of South Korea Kingdom of Great Britain Kingdom of Kent Kingdom of Cambodia Kingdom of Hungary Croatia in personal union with Hungary Kingdom of Romania Kingdom of Bulgaria Bavaria July Monarchy North German Confederation First Republic of Austria People's Republic of Hungary Konbaung Dynasty United Kingdom of the Netherlands Lordship of Ireland Kingdom of Galicia Kingdom of Galicia and Lodomeria Second Spanish Republic Kingdom of Montenegro Second French Empire Empire of Brazil Dutch Republic Commonwealth of the Philippines French Republic Second Mexican Empire Duchy of Courland and Semigallia Estado Novo Republic of South Carolina Irish Republic Kingdom of Finland Septinsular Republic First Republic of South Korea Kingdom of Bavaria Republic of Mississippi First Mexican Empire State of the Teutonic Order First Spanish Republic Holy Roman Empire Republic of Georgia Sint Maarten Khmer Republic Third Republic of South Korea Free State of Prussia Weimar Republic
Bavaria, First Republic of Austria and Sint Maarten have around the same number of legislatures or assemblies as their legislative body as Croatia in personal union with Hungary
Bavaria First Republic of Austria Sint Maarten
action approx
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
action count
action filter_multi_types
action find
entity Croatia in personal union with Hungary
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?g WHERE { VALUES ( ?s ) { ( ontology:assembly ) ( ontology:legislature ) } . ?l rdf:type ?s } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Croatia_in_personal_union_with_Hungary property:legislative_body ?u . { ?u rdf:type ?i . VALUES ( ?i ) { ( ontology:assembly ) ( ontology:legislature ) } } } } . FILTER ( ?o = ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q285658
P194
Q11204 Q1752346 Q7275
USER
And also tell me about First Mexican Empire?
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action count
action filter_multi_types
action find
entity Q285658
relation P194
type Q11204
type Q1752346
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q285658 property:P194 ?y . { { ?y rdf:type ontology:Q1752346 } UNION { ?y rdf:type ontology:Q11204 } } } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?b } }
First Mexican Empire
action approx
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
action count
action filter_multi_types
action find
entity First Mexican Empire
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:First_Mexican_Empire property:legislative_body ?y . { { ?y rdf:type ontology:assembly } UNION { ?y rdf:type ontology:legislature } } } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?b } }
[]
legislature assembly state
Q980 Q518101 Q26273
SYSTEM
Bavaria, First Republic of Austria, Sint Maarten
Q241748 Q774783 Q105092 Q70802 Q842931 Q152115 Q121932 Q7318 Q18285930 Q179876 Q207162 Q25279 Q174193 Q233263 Q330988 Q27306 Q533558 Q1044536 Q21203 Q215530 Q488521 Q161885 Q328818 Q2638486 Q171150 Q1789596 Q203493 Q147909 Q980 Q58202 Q150981 Q518101 Q16410 Q1062422 Q15864 Q844250 Q303421 Q2396442 Q178038 Q386496 Q71092 Q217230 Q170072 Q146328 Q58296 Q371334 Q156038 Q824489 Q7314513 Q1140152 Q615902 Q1077630 Q491559 Q154195 Q368986 Q285658 Q156020 Q497777 Q12548 Q7314469 Q26273 Q1054184 Q487687 Q161036 Q41304
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action count
action filter_multi_types
action find
entity Q285658
relation P194
type Q11204
type Q1752346
[ANSWERS]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q285658 property:P194 ?y . { { ?y rdf:type ontology:Q1752346 } UNION { ?y rdf:type ontology:Q11204 } } } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?b } }
Kingdom of Serbia Sovereign Principality of the United Netherlands Kingdom of Mercia French Third Republic East Pakistan Duchy of Warsaw People's Republic of Bulgaria Nazi Germany German Empire of 1848/1849 Kingdom of England Bourbon Restoration Curaçao United Kingdom of Great Britain and Ireland Second Republic of South Korea Democratic Kampuchea Kingdom of Prussia Kingdom of Croatia-Slavonia Spain under the Restoration Aruba Kingdom of Ireland Fourth Republic of South Korea Kingdom of Great Britain Kingdom of Kent Kingdom of Cambodia Kingdom of Hungary Croatia in personal union with Hungary Kingdom of Romania Kingdom of Bulgaria Bavaria July Monarchy North German Confederation First Republic of Austria People's Republic of Hungary Konbaung Dynasty United Kingdom of the Netherlands Lordship of Ireland Kingdom of Galicia Kingdom of Galicia and Lodomeria Second Spanish Republic Kingdom of Montenegro Second French Empire Empire of Brazil Dutch Republic Commonwealth of the Philippines French Republic Second Mexican Empire Duchy of Courland and Semigallia Estado Novo Republic of South Carolina Irish Republic Kingdom of Finland Septinsular Republic First Republic of South Korea Kingdom of Bavaria Republic of Mississippi First Mexican Empire State of the Teutonic Order First Spanish Republic Holy Roman Empire Republic of Georgia Sint Maarten Khmer Republic Third Republic of South Korea Free State of Prussia Weimar Republic
Bavaria First Republic of Austria Sint Maarten
action approx
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
action count
action filter_multi_types
action find
entity First Mexican Empire
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:First_Mexican_Empire property:legislative_body ?y . { { ?y rdf:type ontology:assembly } UNION { ?y rdf:type ontology:legislature } } } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?b } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P85
Q7725634 Q484692 Q7275
USER
Which states have an anthem named less number of literary works or hymns than that state ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?t ) { ( ?y ) ( ?x ) } . ?z property:Q541947 ?t } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 . ?x rdf:type ontology:Q484692 }
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?t ) { ( ?y ) ( ?x ) } . ?z property:anthem ?t } . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work . ?x rdf:type ontology:hymn }
[]
literary work hymn state
Comparative|More/Less|Mult. entity type|Clarification
Q518101
SYSTEM
Did you mean First Republic of Austria ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?t ) { ( ?y ) ( ?x ) } . ?z property:Q541947 ?t } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 . ?x rdf:type ontology:Q484692 }
Did you mean First Republic of Austria ?
First Republic of Austria
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?t ) { ( ?y ) ( ?x ) } . ?z property:anthem ?t } . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work . ?x rdf:type ontology:hymn }
[]
Comparative Reasoning (All)
USER
No, I meant Bavaria. Could you tell me the answer for that?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
Q980
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
[]
SYSTEM
9
Q70802 Q842931 Q210036 Q797214 Q4843701 Q58296 Q837136 Q769782 Q13131807
(c(Q7275),P85,c(Q7725634)|c(Q484692))
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q541947 ?y } UNION { ?z property:Q541947 ?x } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 . ?x rdf:type ontology:Q484692 }
French Third Republic East Pakistan Chechen Republic of Ichkeria French Togoland Libyan Arab Jamahiriya French Republic Kingdom of Deheubarth Kingdom of Powys Kindom of Morgannwg
9
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:anthem ?y } UNION { ?z property:anthem ?x } } . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work . ?x rdf:type ontology:hymn }
[]