Simple Question (Direct)
Simple Question
Q10771093
P39
Q12737077
USER
Which occupation was a position held by Alexander Renczes ?
(Q10771093,P39,c(Q12737077))
action filter_type
action find
entity Q10771093
relation P39
type Q12737077
['Q10771093', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q10771093 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Alexander Renczes
action filter_type
action find
entity Alexander Renczes
relation position held
type occupation
['Alexander Renczes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alexander_Renczes property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q17320547
SYSTEM
member of the Federal Assembly of Czechoslovakia
Q17320547
(Q10771093,P39,c(Q12737077))
action filter_type
action find
entity Q10771093
relation P39
type Q12737077
[ANSWER]
['Q10771093', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q10771093 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of the Federal Assembly of Czechoslovakia
member of the Federal Assembly of Czechoslovakia
action filter_type
action find
entity Alexander Renczes
relation position held
type occupation
['Alexander Renczes', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alexander_Renczes property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17320547
P1001
Q7275
USER
Which state applies to jurisdiction of that occupation ?
(Q17320547,P1001,c(Q7275))
action filter_type
action find
entity Q17320547
relation P1001
type Q7275
['Q17320547', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . resource:Q17320547 property:P1001 ?p }
member of the Federal Assembly of Czechoslovakia
action filter_type
action find
entity member of the Federal Assembly of Czechoslovakia
relation applies to jurisdiction
type state
['member of the Federal Assembly of Czechoslovakia', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . resource:member_of_the_Federal_Assembly_of_Czechoslovakia property:applies_to_jurisdiction ?p }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q17320547,P1001,c(Q7275))
action filter_type
action find
entity Q17320547
relation P1001
type Q7275
[ANSWER]
['Q17320547', 'P1001', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . resource:Q17320547 property:P1001 ?p }
Czechoslovakia
Czechoslovakia
action filter_type
action find
entity member of the Federal Assembly of Czechoslovakia
relation applies to jurisdiction
type state
['member of the Federal Assembly of Czechoslovakia', 'applies to jurisdiction', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . resource:member_of_the_Federal_Assembly_of_Czechoslovakia property:applies_to_jurisdiction ?p }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q321246
P194
Q1752346 Q7275
USER
How many assemblies govern less number of states than Reichstag ?
(c(Q7275),P194,c(Q1752346))
action count
action less
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find_reverse
entity Q321246
relation P194
type Q7275
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P194 ?z . ?z rdf:type ontology:Q1752346 . ?q rdf:type ontology:Q7275 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:Q7275 . ?t property:P194 resource:Q321246 } } . FILTER ( ?c < ?k ) }
Reichstag
action count
action less
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find_reverse
entity Reichstag
relation legislative body
type state
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:legislative_body ?z . ?z rdf:type ontology:assembly . ?q rdf:type ontology:state } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:state . ?t property:legislative_body resource:Reichstag } } . FILTER ( ?c < ?k ) }
[]
assembly state
SYSTEM
137
Q16980374 Q3154693 Q1253647 Q109016 Q896075 Q4220207 Q2511660 Q4496302 Q3365524 Q1257966 Q18510957 Q2584535 Q1258164 Q1368318 Q128852 Q1572486 Q5153951 Q206171 Q4808730 Q636377 Q458185 Q510511 Q509668 Q5035091 Q1599346 Q1398920 Q3251036 Q2347172 Q6411382 Q1817866 Q319994 Q1450753 Q2089528 Q7138943 Q21516057 Q884824 Q1577158 Q4816040 Q1585014 Q154797 Q2102558 Q19758733 Q1969591 Q1368588 Q4863502 Q4999218 Q24824 Q5265877 Q1112381 Q9633175 Q7447085 Q7186810 Q1798607 Q7205806 Q640859 Q1091494 Q3333555 Q4852810 Q7603047 Q2185780 Q4184925 Q1117578 Q2016884 Q1139204 Q2358985 Q2963301 Q5347180 Q7442079 Q2041767 Q4345419 Q1968458 Q1415847 Q740564 Q1517231 Q946944 Q3365530 Q1972029 Q12114504 Q1870447 Q378605 Q6867972 Q24861263 Q1292 Q571436 Q521764 Q695252 Q209151 Q1520966 Q1284236 Q4938444 Q884829 Q1357543 Q1288169 Q882738 Q2994129 Q1077701 Q26856919 Q645195 Q1280751 Q1135960 Q7063612 Q817979 Q12357499 Q2994125 Q684719 Q1965042 Q4849285 Q477089 Q1968468 Q260372 Q5211293 Q1501988 Q317147 Q382118 Q5132092 Q449304 Q314690 Q5123141 Q646190 Q4947808 Q475689 Q4985519 Q272930 Q11081523 Q15150880 Q822919 Q455697 Q5916428 Q5339025 Q133396 Q122635 Q3246027 Q2444341 Q160208 Q7089412 Q1515950 Q701632
(c(Q7275),P194,c(Q1752346))
action count
action less
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find_reverse
entity Q321246
relation P194
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P194 ?z . ?z rdf:type ontology:Q1752346 . ?q rdf:type ontology:Q7275 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:Q7275 . ?t property:P194 resource:Q321246 } } . FILTER ( ?c < ?k ) }
Honolulu City Council city council Parliament of Grenada Parliament of Norway Landtag of Thuringia Kiev City Council Congress of Paraguay Kharkiv City Municipality Parliament of Tasmania 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 Hamburg Parliament Landtag of South Tyrol Landtag of Hesse Løgting Cape Town City Council National Assembly General council Legislature of New Brunswick Parliament of the Czech Republic King County Council 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 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 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 Abgeordnetenhaus of Berlin Parliament of Åland General Assembly of the Ottoman Empire Baltimore City Council State Assembly of the Mari El Republic Parliament of South Africa Legislative Assembly of Primorsky Krai 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 Kremenchuk City Municipality Los Angeles City Council Islamic Consultative Assembly Minneapolis City Council Kyoto City Assembly Flemish Parliament Landtag of North Rhine-Westphalia Landtag of Brandenburg Parliament of India Folketing New Zealand Parliament Congress of Colombia Boise City Council 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 New York City Council Parliament of Antigua and Barbuda Parliament of Albania Nottingham City Council Grand and General Council Irkutsk Legislative Assembly Ottawa City Council Federal Assembly National Assembly Bakersfield City Council Hellenic Parliament National Congress of Chile Landtag of Saarland Dallas City Council General Assembly of Uruguay Bürgerschaft of Bremen Parliament of Australia Cleveland City Council Landtag of Schleswig-Holstein Landtag of Rhineland-Palatinate City Council of Tehran Argentine National Congress Boston City Council Parliament of Canada Buenos Aires City Legislature Parliament of Sweden New Taipei City Council Legislature of Quebec Saeima Landtag of Baden-Württemberg Houston City Council Edmonton City Council Knesset Parliament of Jamaica General Assembly of Nova Scotia Toronto City Council Reichstag Omaha City Council Assembly of the Republic municipal council
137
action count
action less
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find_reverse
entity Reichstag
relation legislative body
type state
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:legislative_body ?z . ?z rdf:type ontology:assembly . ?q rdf:type ontology:state } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ontology:state . ?t property:legislative_body resource:Reichstag } } . FILTER ( ?c < ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1283189
P194
Q1752346 Q7275
USER
And also tell me about Estates of Aruba?
(c(Q7275),P194,c(Q1752346))
action count
action less
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find_reverse
entity Q1283189
relation P194
type Q7275
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?a ) WHERE { ?h property:P194 ?v . ?v rdf:type ontology:Q1752346 . ?h rdf:type ontology:Q7275 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P194 resource:Q1283189 . ?r rdf:type ontology:Q7275 } } . FILTER ( ?a < ?m ) }
Estates of Aruba
action count
action less
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find_reverse
entity Estates of Aruba
relation legislative body
type state
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?a ) WHERE { ?h property:legislative_body ?v . ?v rdf:type ontology:assembly . ?h rdf:type ontology:state } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:legislative_body resource:Estates_of_Aruba . ?r rdf:type ontology:state } } . FILTER ( ?a < ?m ) }
[]
assembly state
SYSTEM
137
Q16980374 Q3154693 Q1253647 Q109016 Q896075 Q4220207 Q2511660 Q4496302 Q3365524 Q1257966 Q18510957 Q2584535 Q1258164 Q1368318 Q128852 Q1572486 Q5153951 Q206171 Q4808730 Q636377 Q458185 Q510511 Q509668 Q5035091 Q1599346 Q1398920 Q3251036 Q2347172 Q6411382 Q1817866 Q319994 Q1450753 Q2089528 Q7138943 Q21516057 Q884824 Q1577158 Q4816040 Q1585014 Q154797 Q2102558 Q19758733 Q1969591 Q1368588 Q4863502 Q4999218 Q24824 Q5265877 Q1112381 Q9633175 Q7447085 Q7186810 Q1798607 Q7205806 Q640859 Q1091494 Q3333555 Q4852810 Q7603047 Q2185780 Q4184925 Q1117578 Q2016884 Q1139204 Q2358985 Q2963301 Q5347180 Q7442079 Q2041767 Q4345419 Q1968458 Q1415847 Q740564 Q1517231 Q946944 Q3365530 Q1972029 Q12114504 Q1870447 Q378605 Q6867972 Q24861263 Q1292 Q571436 Q521764 Q695252 Q209151 Q1520966 Q1284236 Q4938444 Q884829 Q1357543 Q1288169 Q882738 Q2994129 Q1077701 Q26856919 Q645195 Q1280751 Q1135960 Q7063612 Q817979 Q12357499 Q2994125 Q684719 Q1965042 Q4849285 Q477089 Q1968468 Q260372 Q5211293 Q1501988 Q317147 Q382118 Q5132092 Q449304 Q314690 Q5123141 Q646190 Q4947808 Q475689 Q4985519 Q272930 Q11081523 Q15150880 Q822919 Q455697 Q5916428 Q5339025 Q133396 Q122635 Q3246027 Q2444341 Q160208 Q7089412 Q1515950 Q701632
(c(Q7275),P194,c(Q1752346))
action count
action less
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find_reverse
entity Q1283189
relation P194
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?a ) WHERE { ?h property:P194 ?v . ?v rdf:type ontology:Q1752346 . ?h rdf:type ontology:Q7275 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P194 resource:Q1283189 . ?r rdf:type ontology:Q7275 } } . FILTER ( ?a < ?m ) }
Honolulu City Council city council Parliament of Grenada Parliament of Norway Landtag of Thuringia Kiev City Council Congress of Paraguay Kharkiv City Municipality Parliament of Tasmania 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 Hamburg Parliament Landtag of South Tyrol Landtag of Hesse Løgting Cape Town City Council National Assembly General council Legislature of New Brunswick Parliament of the Czech Republic King County Council 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 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 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 Abgeordnetenhaus of Berlin Parliament of Åland General Assembly of the Ottoman Empire Baltimore City Council State Assembly of the Mari El Republic Parliament of South Africa Legislative Assembly of Primorsky Krai 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 Kremenchuk City Municipality Los Angeles City Council Islamic Consultative Assembly Minneapolis City Council Kyoto City Assembly Flemish Parliament Landtag of North Rhine-Westphalia Landtag of Brandenburg Parliament of India Folketing New Zealand Parliament Congress of Colombia Boise City Council 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 New York City Council Parliament of Antigua and Barbuda Parliament of Albania Nottingham City Council Grand and General Council Irkutsk Legislative Assembly Ottawa City Council Federal Assembly National Assembly Bakersfield City Council Hellenic Parliament National Congress of Chile Landtag of Saarland Dallas City Council General Assembly of Uruguay Bürgerschaft of Bremen Parliament of Australia Cleveland City Council Landtag of Schleswig-Holstein Landtag of Rhineland-Palatinate City Council of Tehran Argentine National Congress Boston City Council Parliament of Canada Buenos Aires City Legislature Parliament of Sweden New Taipei City Council Legislature of Quebec Saeima Landtag of Baden-Württemberg Houston City Council Edmonton City Council Knesset Parliament of Jamaica General Assembly of Nova Scotia Toronto City Council Reichstag Omaha City Council Assembly of the Republic municipal council
137
action count
action less
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find_reverse
entity Estates of Aruba
relation legislative body
type state
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?a ) WHERE { ?h property:legislative_body ?v . ?v rdf:type ontology:assembly . ?h rdf:type ontology:state } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:legislative_body resource:Estates_of_Aruba . ?r rdf:type ontology:state } } . FILTER ( ?a < ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q174193
P194
Q11204 Q1752346 Q7275
USER
How many states have less number of legislatures and assemblies as their legislative body than United Kingdom of Great Britain and Ireland ?
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action count
action less
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 Q174193
relation P194
type Q11204
type Q1752346
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?q WHERE { VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?p rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { resource:Q174193 property:P194 ?o . { { ?o rdf:type ontology:Q11204 } UNION { ?o rdf:type ontology:Q1752346 } } } } . FILTER ( ?k < ?c ) }
United Kingdom of Great Britain and Ireland
action count
action less
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 United Kingdom of Great Britain and Ireland
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?q WHERE { VALUES ( ?r ) { ( ontology:legislature ) ( ontology:assembly ) } . ?p rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { resource:United_Kingdom_of_Great_Britain_and_Ireland property:legislative_body ?o . { { ?o rdf:type ontology:legislature } UNION { ?o rdf:type ontology:assembly } } } } . FILTER ( ?k < ?c ) }
[]
legislature assembly state
SYSTEM
42
Q211853 Q476757 Q207272 Q965174 Q1078602 Q201038 Q208545 Q167360 Q1811029 Q209062 Q204920 Q2006542 Q133356 Q191077 Q903779 Q16957 Q1649871 Q55502 Q62623 Q842794 Q71747 Q1423581 Q83286 Q1277557 Q330362 Q212439 Q28025 Q153015 Q83618 Q964024 Q487829 Q4948 Q49683 Q2342822 Q199841 Q12557 Q217196 Q23541302 Q1775277 Q70972 Q427941 Q216173
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action count
action less
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 Q174193
relation P194
type Q11204
type Q1752346
[ANSWER]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?q WHERE { VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?p rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { resource:Q174193 property:P194 ?o . { { ?o rdf:type ontology:Q11204 } UNION { ?o rdf:type ontology:Q1752346 } } } } . FILTER ( ?k < ?c ) }
Republic of Serbian Krajina Democratic Republic of Afghanistan Second Polish Republic Coalition Provisional Authority Kingdom of Nepal Roman Kingdom Socialist Republic of Bosnia and Herzegovina First Portuguese Republic Finnish Socialist Workers' Republic Socialist Republic of Croatia Crown of Aragon Dominion of Pakistan Ukrainian Soviet Socialist Republic Kingdom of Yugoslavia United Kingdom of Portugal, Brazil and the Algarves East Germany Kingdom of Poland Kingdom of Jerusalem Kalmar Union Socialist Republic of Romania Duchy of Brittany Italian Regency of Carnaro Socialist Federal Republic of Yugoslavia Democratic Federal Yugoslavia Commonwealth of England Cossack Hetmanate Ryukyu Kingdom Kingdom of Saxony Maratha Empire Moldavian Democratic Republic Chagatai Khanate Republic of Venice Grand Duchy of Lithuania West Pakistan South Yemen Mongol Empire Crown of Castile Kaluga Soviet Republic Dominion of India Kingdom of France Islamic Emirate of Afghanistan Free City of Danzig
42
action count
action less
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 United Kingdom of Great Britain and Ireland
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) ?q WHERE { VALUES ( ?r ) { ( ontology:legislature ) ( ontology:assembly ) } . ?p rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { resource:United_Kingdom_of_Great_Britain_and_Ireland property:legislative_body ?o . { { ?o rdf:type ontology:legislature } UNION { ?o rdf:type ontology:assembly } } } } . FILTER ( ?k < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q303421
P194
Q11204 Q1752346 Q7275
USER
And how about Kingdom of Galicia?
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action count
action less
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 Q303421
relation P194
type Q11204
type Q1752346
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?d ) WHERE { { ?b property:P194 ?p . ?b rdf:type ontology:Q7275 . ?p rdf:type ontology:Q11204 } UNION { ?b property:P194 ?p . ?b rdf:type ontology:Q7275 . ?p rdf:type ontology:Q1752346 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q303421 property:P194 ?y . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?d < ?e ) }
Kingdom of Galicia
action count
action less
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 Kingdom of Galicia
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?d ) WHERE { { ?b property:legislative_body ?p . ?b rdf:type ontology:state . ?p rdf:type ontology:legislature } UNION { ?b property:legislative_body ?p . ?b rdf:type ontology:state . ?p rdf:type ontology:assembly } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Kingdom_of_Galicia property:legislative_body ?y . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:legislature ) ( ontology:assembly ) } } } } . FILTER ( ?d < ?e ) }
[]
legislature assembly state
SYSTEM
42
Q211853 Q476757 Q207272 Q965174 Q1078602 Q201038 Q208545 Q167360 Q1811029 Q209062 Q204920 Q2006542 Q133356 Q191077 Q903779 Q16957 Q1649871 Q55502 Q62623 Q842794 Q71747 Q1423581 Q83286 Q1277557 Q330362 Q212439 Q28025 Q153015 Q83618 Q964024 Q487829 Q4948 Q49683 Q2342822 Q199841 Q12557 Q217196 Q23541302 Q1775277 Q70972 Q427941 Q216173
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action count
action less
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 Q303421
relation P194
type Q11204
type Q1752346
[ANSWER]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?d ) WHERE { { ?b property:P194 ?p . ?b rdf:type ontology:Q7275 . ?p rdf:type ontology:Q11204 } UNION { ?b property:P194 ?p . ?b rdf:type ontology:Q7275 . ?p rdf:type ontology:Q1752346 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q303421 property:P194 ?y . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } } } } . FILTER ( ?d < ?e ) }
Republic of Serbian Krajina Democratic Republic of Afghanistan Second Polish Republic Coalition Provisional Authority Kingdom of Nepal Roman Kingdom Socialist Republic of Bosnia and Herzegovina First Portuguese Republic Finnish Socialist Workers' Republic Socialist Republic of Croatia Crown of Aragon Dominion of Pakistan Ukrainian Soviet Socialist Republic Kingdom of Yugoslavia United Kingdom of Portugal, Brazil and the Algarves East Germany Kingdom of Poland Kingdom of Jerusalem Kalmar Union Socialist Republic of Romania Duchy of Brittany Italian Regency of Carnaro Socialist Federal Republic of Yugoslavia Democratic Federal Yugoslavia Commonwealth of England Cossack Hetmanate Ryukyu Kingdom Kingdom of Saxony Maratha Empire Moldavian Democratic Republic Chagatai Khanate Republic of Venice Grand Duchy of Lithuania West Pakistan South Yemen Mongol Empire Crown of Castile Kaluga Soviet Republic Dominion of India Kingdom of France Islamic Emirate of Afghanistan Free City of Danzig
42
action count
action less
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 Kingdom of Galicia
relation legislative body
type legislature
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?d ) WHERE { { ?b property:legislative_body ?p . ?b rdf:type ontology:state . ?p rdf:type ontology:legislature } UNION { ?b property:legislative_body ?p . ?b rdf:type ontology:state . ?p rdf:type ontology:assembly } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Kingdom_of_Galicia property:legislative_body ?y . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:legislature ) ( ontology:assembly ) } } } } . FILTER ( ?d < ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33946
P6
Q502895
USER
Which people have Czechoslovakia as their heads of government ?
(Q33946,P6,c(Q502895))
action filter_type
action find
entity Q33946
relation P6
type Q502895
['Q33946', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q33946 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Czechoslovakia
action filter_type
action find
entity Czechoslovakia
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Czechoslovakia property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
Q152274 Q974542 Q349893
SYSTEM
Edvard Beneš, Jan Syrový, Milan Hodža
Q349893 Q974542 Q717754 Q296054 Q555701 Q1399968 Q683269 Q465455 Q168975 Q694849 Q164312 Q725653 Q1682037 Q1682464 Q371854 Q152274 Q983583 Q2666912 Q159227 Q709968 Q2756999
(Q33946,P6,c(Q502895))
action filter_type
action find
entity Q33946
relation P6
type Q502895
[ANSWERS]
['Q33946', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q33946 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Milan Hodža Jan Syrový Rudolf Beran Klement Gottwald Oldřich Černík Viliam Široký Lubomír Štrougal Jozef Lenárt Zdeněk Fierlinger Jan Šrámek Antonín Švehla Ladislav Adamec Jan Malypetr Jan Černý Antonín Zápotocký Edvard Beneš Jan Stráský Vlastimil Tusar Karel Kramář Marián Čalfa František Udržal
Edvard Beneš Jan Syrový Milan Hodža
action filter_type
action find
entity Czechoslovakia
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Czechoslovakia property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q152274 Q974542 Q349893
P21
Q290
USER
Which sexes do Edvard Beneš, Jan Syrový and Milan Hodža have ?
(Q152274,P21,c(Q290)) (Q974542,P21,c(Q290)) (Q349893,P21,c(Q290))
action union
action filter_type
action find
entity Q152274
relation P21
type Q290
action filter_type
action find
entity Q974542
relation P21
type Q290
action filter_type
action find
entity Q349893
relation P21
type Q290
['Q152274', 'P21', {'concept': 'Q290'}] ['Q974542', 'P21', {'concept': 'Q290'}] ['Q349893', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?a property:P21 ?t . VALUES ( ?a ) { ( resource:Q152274 ) ( resource:Q974542 ) } }
Edvard Beneš Jan Syrový Milan Hodža
action union
action filter_type
action find
entity Edvard Beneš
relation gender
type sex
action filter_type
action find
entity Jan Syrový
relation gender
type sex
action filter_type
action find
entity Milan Hodža
relation gender
type sex
['Edvard Beneš', 'gender', {'concept': 'sex'}] ['Jan Syrový', 'gender', {'concept': 'sex'}] ['Milan Hodža', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?a property:gender ?t . VALUES ( ?a ) { ( resource:Edvard_Beneš ) ( resource:Jan_Syrový ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q152274,P21,c(Q290)) (Q974542,P21,c(Q290)) (Q349893,P21,c(Q290))
action union
action filter_type
action find
entity Q152274
relation P21
type Q290
action filter_type
action find
entity Q974542
relation P21
type Q290
action filter_type
action find
entity Q349893
relation P21
type Q290
[ANSWER]
['Q152274', 'P21', {'concept': 'Q290'}] ['Q974542', 'P21', {'concept': 'Q290'}] ['Q349893', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?a property:P21 ?t . VALUES ( ?a ) { ( resource:Q152274 ) ( resource:Q974542 ) } }
male male male
male male male
action union
action filter_type
action find
entity Edvard Beneš
relation gender
type sex
action filter_type
action find
entity Jan Syrový
relation gender
type sex
action filter_type
action find
entity Milan Hodža
relation gender
type sex
['Edvard Beneš', 'gender', {'concept': 'sex'}] ['Jan Syrový', 'gender', {'concept': 'sex'}] ['Milan Hodža', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?a property:gender ?t . VALUES ( ?a ) { ( resource:Edvard_Beneš ) ( resource:Jan_Syrový ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q152274
P20
Q515
USER
Which city is the place of death of Edvard Beneš ?
(Q152274,P20,c(Q515))
action filter_type
action find
entity Q152274
relation P20
type Q515
['Q152274', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q152274 property:P20 ?w . ?w rdf:type ontology:Q515 }
Edvard Beneš
action filter_type
action find
entity Edvard Beneš
relation place of death
type city
['Edvard Beneš', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Edvard_Beneš property:place_of_death ?w . ?w rdf:type ontology:city }
[]
city
Q958157
SYSTEM
Sezimovo Ústí
Q958157
(Q152274,P20,c(Q515))
action filter_type
action find
entity Q152274
relation P20
type Q515
[ANSWER]
['Q152274', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q152274 property:P20 ?w . ?w rdf:type ontology:Q515 }
Sezimovo Ústí
Sezimovo Ústí
action filter_type
action find
entity Edvard Beneš
relation place of death
type city
['Edvard Beneš', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Edvard_Beneš property:place_of_death ?w . ?w rdf:type ontology:city }
[]