Simple Question (Direct)
Simple Question
Q4475073
P119
Q43229
USER
Where is the place of burial for Nikolai Ulyanov located ?
(Q4475073,P119,c(Q43229))
action filter_type
action find
entity Q4475073
relation P119
type Q43229
['Q4475073', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q4475073 property:P119 ?q . ?q rdf:type ontology:Q43229 }
Nikolai Ulyanov
action filter_type
action find
entity Nikolai Ulyanov
relation place of burial
type organization
['Nikolai Ulyanov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Nikolai_Ulyanov property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
organization
Q1517387
SYSTEM
Vvedenskoye Cemetery
Q1517387
(Q4475073,P119,c(Q43229))
action filter_type
action find
entity Q4475073
relation P119
type Q43229
The place of burial for Nikolai Ulyanov is located in [ANSWER]
['Q4475073', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q4475073 property:P119 ?q . ?q rdf:type ontology:Q43229 }
Vvedenskoye Cemetery
The place of burial for Nikolai Ulyanov is located in Vvedenskoye Cemetery
Vvedenskoye Cemetery
action filter_type
action find
entity Nikolai Ulyanov
relation place of burial
type organization
['Nikolai Ulyanov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Nikolai_Ulyanov property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4475073
P27
Q7275
USER
Which state is Nikolai Ulyanov an inhabitant of ?
(Q4475073,P27,c(Q7275))
action filter_type
action find
entity Q4475073
relation P27
type Q7275
['Q4475073', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . resource:Q4475073 property:P27 ?e }
Nikolai Ulyanov
action filter_type
action find
entity Nikolai Ulyanov
relation country of citizenship
type state
['Nikolai Ulyanov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . resource:Nikolai_Ulyanov property:country_of_citizenship ?e }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q4475073,P27,c(Q7275))
action filter_type
action find
entity Q4475073
relation P27
type Q7275
The [ANSWER] is Nikolai Ulyanov an inhabitant of
['Q4475073', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7275 . resource:Q4475073 property:P27 ?e }
Soviet Union
The Soviet Union is Nikolai Ulyanov an inhabitant of
Soviet Union
action filter_type
action find
entity Nikolai Ulyanov
relation country of citizenship
type state
['Nikolai Ulyanov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:state . resource:Nikolai_Ulyanov property:country_of_citizenship ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26214014
Q7275
USER
And how about Francis John Wilder?
(Q26214014,P27,c(Q7275))
action filter_type
action find
entity Q26214014
relation P27
type Q7275
['Q26214014', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { resource:Q26214014 property:P27 ?z . ?z rdf:type ontology:Q7275 }
Francis John Wilder
action filter_type
action find
entity Francis John Wilder
relation country of citizenship
type state
['Francis John Wilder', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { resource:Francis_John_Wilder property:country_of_citizenship ?z . ?z rdf:type ontology:state }
[]
state
Q161885 Q174193
SYSTEM
Kingdom of Great Britain, United Kingdom of Great Britain and Ireland
Q161885 Q174193
(Q26214014,P27,c(Q7275))
action filter_type
action find
entity Q26214014
relation P27
type Q7275
[ANSWERS]
['Q26214014', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { resource:Q26214014 property:P27 ?z . ?z rdf:type ontology:Q7275 }
Kingdom of Great Britain United Kingdom of Great Britain and Ireland
Kingdom of Great Britain United Kingdom of Great Britain and Ireland
action filter_type
action find
entity Francis John Wilder
relation country of citizenship
type state
['Francis John Wilder', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { resource:Francis_John_Wilder property:country_of_citizenship ?z . ?z rdf:type ontology:state }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P85
Q7725634 Q7275
USER
Which states have more number of literary works as their national anthem than that state ?
(c(Q7275),P85,c(Q7725634))
[{'concept': 'Q7275'}, 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?z property:Q541947 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 }
[{'concept': 'state'}, 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?z property:anthem ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work }
[]
literary work state
Comparative|More/Less|Single entity type|Clarification
Q161885
SYSTEM
Did you mean Kingdom of Great Britain ?
(c(Q7275),P85,c(Q7725634))
[ANSWER]
[{'concept': 'Q7275'}, 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?z property:Q541947 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 }
Did you mean Kingdom of Great Britain ?
Kingdom of Great Britain
[{'concept': 'state'}, 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?z property:anthem ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
USER
No, I meant United Kingdom of Great Britain and Ireland. Could you tell me the answer for that?
(c(Q7275),P85,c(Q7725634))
Q174193
[{'concept': 'Q7275'}, 'P85', {'concept': 'Q7725634'}]
[{'concept': 'state'}, 'anthem', {'concept': 'literary work'}]
[]
Q15180 Q518101 Q41304
SYSTEM
Soviet Union, First Republic of Austria, Weimar Republic
Q797527 Q2414171 Q174193 Q1028835 Q713750 Q2006542 Q1649871 Q652560 Q203493 Q147909 Q58202 Q112558 Q518101 Q207272 Q153015 Q49910 Q696242 Q71092 Q15180 Q210542 Q7318 Q1072140 Q248452 Q1775277 Q153660 Q70972 Q211274 Q370736 Q541455 Q41304
(c(Q7275),P85,c(Q7725634))
[ANSWERS] have more number of literary works as their national anthem than that state
[{'concept': 'Q7275'}, 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { ?z property:Q541947 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q7725634 }
British Togoland First Brazilian Republic United Kingdom of Great Britain and Ireland British Cameroons West Germany Dominion of Pakistan Kingdom of Poland West Indies Federation Kingdom of Romania Kingdom of Bulgaria July Monarchy Republic of Saugeais First Republic of Austria Second Polish Republic Kingdom of Saxony Colony of Aden Reorganized National Government of China Second French Empire Soviet Union Second Brazilian Republic Nazi Germany Roman Republic British North America Dominion of India Italian Social Republic Kingdom of France People's Republic of Poland Cape Colony Anglo-Egyptian Sudan Weimar Republic
Soviet Union, First Republic of Austria and Weimar Republic have more number of literary works as their national anthem than that state
Soviet Union First Republic of Austria Weimar Republic
[{'concept': 'state'}, 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { ?z property:anthem ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1135960
P194
Q1752346 Q7275
USER
Which assemblies govern greater number of states than Parliament of Albania ?
(c(Q7275),P194,c(Q1752346))
action greater
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find
entity Q1135960
relation P194
type Q1752346
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:P194 ?g . ?g rdf:type ontology:Q1752346 . ?v rdf:type ontology:Q7275 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q1135960 property:P194 ?a . ?a rdf:type ontology:Q1752346 } } . FILTER ( ?s > ?t ) }
Parliament of Albania
action greater
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find
entity Parliament of Albania
relation legislative body
type assembly
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:legislative_body ?g . ?g rdf:type ontology:assembly . ?v rdf:type ontology:state } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Parliament_of_Albania property:legislative_body ?a . ?a rdf:type ontology:assembly } } . FILTER ( ?s > ?t ) }
[]
assembly state
Q157638 Q641439 Q1371388
SYSTEM
Frankfurt Parliament, Landtag of Bavaria, States General
Q949699 Q17063844 Q1283189 Q1889821 Q1813360 Q650248 Q641439 Q2282872 Q11010 Q1371388 Q371576 Q1116283 Q643412 Q17064146 Q2739604 Q1130737 Q648716 Q35749 Q1484825 Q157638 Q219825 Q321246 Q7253170 Q697775 Q632552 Q1269552 Q878525 Q639704 Q1320418 Q7447087 Q3393882 Q219692 Q637829 Q667464 Q189445
(c(Q7275),P194,c(Q1752346))
action greater
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find
entity Q1135960
relation P194
type Q1752346
[ANSWERS] govern greater number of states than Parliament of Albania
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:P194 ?g . ?g rdf:type ontology:Q1752346 . ?v rdf:type ontology:Q7275 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q1135960 property:P194 ?a . ?a rdf:type ontology:Q1752346 } } . FILTER ( ?s > ?t ) }
National Congress of Brasil Kampuchean People's Representative Assembly Estates of Aruba Irish Parliament Parliament of Romania Landtag of Prussia Landtag of Bavaria diet Parliament of the United Kingdom States General Parliament of Croatia National Assembly Parliament of Finland Parliament of the Khmer Republic Parliament of Great Britain Parliament of England National Assembly parliament Congress of the Union Frankfurt Parliament National Convention Reichstag Prussian estates Imperial Council French Parliament Dáil Éireann Reichstag National Assembly Parliament of Cambodia Sejm of the Duchy of Warsaw Junta of the Kingdom of Galicia Cortes Generales Reichstag Diet of Galicia and Lodomeria bicameral legislature
Frankfurt Parliament, Landtag of Bavaria and States General govern greater number of states than Parliament of Albania
Frankfurt Parliament Landtag of Bavaria States General
action greater
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find
entity Parliament of Albania
relation legislative body
type assembly
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:legislative_body ?g . ?g rdf:type ontology:assembly . ?v rdf:type ontology:state } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Parliament_of_Albania property:legislative_body ?a . ?a rdf:type ontology:assembly } } . FILTER ( ?s > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11081523
P194
Q1752346 Q7275
USER
And also tell me about New Taipei City Council?
(c(Q7275),P194,c(Q1752346))
action greater
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find
entity Q11081523
relation P194
type Q1752346
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:P194 ?c . ?d rdf:type ontology:Q7275 . ?c rdf:type ontology:Q1752346 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q11081523 property:P194 ?a . ?a rdf:type ontology:Q1752346 } } . FILTER ( ?b > ?n ) }
New Taipei City Council
action greater
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find
entity New Taipei City Council
relation legislative body
type assembly
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:legislative_body ?c . ?d rdf:type ontology:state . ?c rdf:type ontology:assembly } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:New_Taipei_City_Council property:legislative_body ?a . ?a rdf:type ontology:assembly } } . FILTER ( ?b > ?n ) }
[]
assembly state
Q157638 Q641439 Q1371388
SYSTEM
Frankfurt Parliament, Landtag of Bavaria, States General
Q949699 Q17063844 Q1283189 Q1889821 Q1813360 Q650248 Q641439 Q2282872 Q11010 Q1371388 Q371576 Q1116283 Q643412 Q17064146 Q2739604 Q1130737 Q648716 Q35749 Q1484825 Q157638 Q219825 Q321246 Q7253170 Q697775 Q632552 Q1269552 Q878525 Q639704 Q1320418 Q7447087 Q3393882 Q219692 Q637829 Q667464 Q189445
(c(Q7275),P194,c(Q1752346))
action greater
action find_reverse_tuple_counts
relation P194
type Q1752346
type Q7275
action count
action filter_type
action find
entity Q11081523
relation P194
type Q1752346
[ANSWERS]
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:P194 ?c . ?d rdf:type ontology:Q7275 . ?c rdf:type ontology:Q1752346 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:Q11081523 property:P194 ?a . ?a rdf:type ontology:Q1752346 } } . FILTER ( ?b > ?n ) }
National Congress of Brasil Kampuchean People's Representative Assembly Estates of Aruba Irish Parliament Parliament of Romania Landtag of Prussia Landtag of Bavaria diet Parliament of the United Kingdom States General Parliament of Croatia National Assembly Parliament of Finland Parliament of the Khmer Republic Parliament of Great Britain Parliament of England National Assembly parliament Congress of the Union Frankfurt Parliament National Convention Reichstag Prussian estates Imperial Council French Parliament Dáil Éireann Reichstag National Assembly Parliament of Cambodia Sejm of the Duchy of Warsaw Junta of the Kingdom of Galicia Cortes Generales Reichstag Diet of Galicia and Lodomeria bicameral legislature
Frankfurt Parliament Landtag of Bavaria States General
action greater
action find_reverse_tuple_counts
relation legislative body
type assembly
type state
action count
action filter_type
action find
entity New Taipei City Council
relation legislative body
type assembly
[{'concept': 'state'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:legislative_body ?c . ?d rdf:type ontology:state . ?c rdf:type ontology:assembly } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { resource:New_Taipei_City_Council property:legislative_body ?a . ?a rdf:type ontology:assembly } } . FILTER ( ?b > ?n ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2887328 Q15042082
P17
Q15617994
USER
How many administrative territories are Bassane or Milosh Obilich Medal for Bravery a part of ?
(Q2887328,P17,c(Q15617994)) (Q15042082,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2887328
relation P17
type Q15617994
action filter_type
action find
entity Q15042082
relation P17
type Q15617994
['Q2887328', 'P17', {'concept': 'Q15617994'}] ['Q15042082', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?j property:P17 ?s . VALUES ( ?j ) { ( resource:Q2887328 ) ( resource:Q15042082 ) } }
Bassane Milosh Obilich Medal for Bravery
action count
action union
action filter_type
action find
entity Bassane
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Milosh Obilich Medal for Bravery
relation country
type designation for an administrative territorial entity
['Bassane', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Milosh Obilich Medal for Bravery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?j property:country ?s . VALUES ( ?j ) { ( resource:Bassane ) ( resource:Milosh_Obilich_Medal_for_Bravery ) } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q236 Q1041
(Q2887328,P17,c(Q15617994)) (Q15042082,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2887328
relation P17
type Q15617994
action filter_type
action find
entity Q15042082
relation P17
type Q15617994
[ANSWER]
['Q2887328', 'P17', {'concept': 'Q15617994'}] ['Q15042082', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?j property:P17 ?s . VALUES ( ?j ) { ( resource:Q2887328 ) ( resource:Q15042082 ) } }
Montenegro Senegal
2
action count
action union
action filter_type
action find
entity Bassane
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Milosh Obilich Medal for Bravery
relation country
type designation for an administrative territorial entity
['Bassane', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Milosh Obilich Medal for Bravery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?j property:country ?s . VALUES ( ?j ) { ( resource:Bassane ) ( resource:Milosh_Obilich_Medal_for_Bravery ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q7275
USER
Which states have atleast 2 literary works and hymns as their anthem ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action atleast
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 2
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?k >= 2 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?i WHERE { { ?i property:P85 ?x . ?x rdf:type ontology:Q7725634 . ?i rdf:type ontology:Q7275 } UNION { ?i property:P85 ?x . ?x rdf:type ontology:Q484692 . ?i rdf:type ontology:Q7275 } } GROUP BY ?i } }
action atleast
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 2
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?k >= 2 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?i WHERE { { ?i property:anthem ?x . ?x rdf:type ontology:literary_work . ?i rdf:type ontology:state } UNION { ?i property:anthem ?x . ?x rdf:type ontology:hymn . ?i rdf:type ontology:state } } GROUP BY ?i } }
[]
literary work hymn state
Q15180
SYSTEM
Soviet Union
Q15180
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action atleast
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 2
[ANSWER] have atleast 2 literary works and hymns as their anthem
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?k >= 2 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?i WHERE { { ?i property:P85 ?x . ?x rdf:type ontology:Q7725634 . ?i rdf:type ontology:Q7275 } UNION { ?i property:P85 ?x . ?x rdf:type ontology:Q484692 . ?i rdf:type ontology:Q7275 } } GROUP BY ?i } }
Soviet Union
Soviet Union have atleast 2 literary works and hymns as their anthem
Soviet Union
action atleast
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 2
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?k >= 2 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) ?i WHERE { { ?i property:anthem ?x . ?x rdf:type ontology:literary_work . ?i rdf:type ontology:state } UNION { ?i property:anthem ?x . ?x rdf:type ontology:hymn . ?i rdf:type ontology:state } } GROUP BY ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q486972 Q515
USER
Which states have around 1 human settlements or cities as their county seat ?
(c(Q486972)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 1
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?p WHERE { ?q rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?p } . FILTER ( ?n = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type city
value 1
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?p WHERE { ?q rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?p } . FILTER ( ?n = 1 ) }
[]
state human settlement city
Q16957 Q133356 Q172107
SYSTEM
East Germany, Ukrainian Soviet Socialist Republic, Polish–Lithuanian Commonwealth
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(Q486972)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 1
[ANSWERS] have around 1 human settlements or cities as their county seat
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?p WHERE { ?q rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?p } . FILTER ( ?n = 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
East Germany, Ukrainian Soviet Socialist Republic and Polish–Lithuanian Commonwealth have around 1 human settlements or cities as their county seat
East Germany Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type city
value 1
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?p WHERE { ?q rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?p } . FILTER ( ?n = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P36
Q515
USER
How many cities are called the capital of that state ?
(Q133356,P36,c(Q515))
['Q133356', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q133356 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
['Ukrainian Soviet Socialist Republic', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:capital ?z . ?z rdf:type ontology:city }
[]
city
Quantitative|Count|Single entity type|Clarification
Q172107
SYSTEM
Did you mean Polish–Lithuanian Commonwealth ?
(Q16957,P36,c(Q515)) (Q133356,P36,c(Q515)) (Q172107,P36,c(Q515))
[ANSWER]
['Q16957', 'P36', {'concept': 'Q515'}] ['Q133356', 'P36', {'concept': 'Q515'}] ['Q172107', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q133356 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
Did you mean Polish–Lithuanian Commonwealth ?
Polish–Lithuanian Commonwealth
['East Germany', 'capital', {'concept': 'city'}] ['Ukrainian Soviet Socialist Republic', 'capital', {'concept': 'city'}] ['Polish–Lithuanian Commonwealth', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:capital ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Ukrainian Soviet Socialist Republic. Could you tell me the answer for that?
(Q133356,P36,c(Q515))
Q133356
['Q133356', 'P36', {'concept': 'Q515'}]
['Ukrainian Soviet Socialist Republic', 'capital', {'concept': 'city'}]
[]
SYSTEM
1
Q1899
(Q133356,P36,c(Q515))
[ANSWER]
['Q133356', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q133356 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
Kyiv
1
['Ukrainian Soviet Socialist Republic', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:capital ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P194
Q11204 Q7275
USER
Which legislatures govern max number of states ?
(c(Q7275),P194,Q22569956)
action argmax
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
[{'concept': 'Q7275'}, 'P194', 'Q22569956']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?u ) WHERE { ?a rdf:type ontology:Q11204 . ?s rdf:type ontology:Q7275 . ?s property:P194 ?a } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P194 ?p . ?t rdf:type ontology:Q7275 . ?p rdf:type ontology:Q11204 } GROUP BY ?p } . FILTER ( ?g = ?b ) }
action argmax
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
[{'concept': 'state'}, 'legislative body', 'Sangguniang Bayan of Bien Unido']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?u ) WHERE { ?a rdf:type ontology:legislature . ?s rdf:type ontology:state . ?s property:legislative_body ?a } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:legislative_body ?p . ?t rdf:type ontology:state . ?p rdf:type ontology:legislature } GROUP BY ?p } . FILTER ( ?g = ?b ) }
[]
legislature state
Q494162
SYSTEM
National Assembly
Q494162
(c(Q7275),P194,Q22569956)
action argmax
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
The [ANSWER] govern max number of states
[{'concept': 'Q7275'}, 'P194', 'Q22569956']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?u ) WHERE { ?a rdf:type ontology:Q11204 . ?s rdf:type ontology:Q7275 . ?s property:P194 ?a } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P194 ?p . ?t rdf:type ontology:Q7275 . ?p rdf:type ontology:Q11204 } GROUP BY ?p } . FILTER ( ?g = ?b ) }
National Assembly
The National Assembly govern max number of states
National Assembly
action argmax
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
[{'concept': 'state'}, 'legislative body', 'Sangguniang Bayan of Bien Unido']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?b ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?u ) WHERE { ?a rdf:type ontology:legislature . ?s rdf:type ontology:state . ?s property:legislative_body ?a } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:legislative_body ?p . ?t rdf:type ontology:state . ?p rdf:type ontology:legislature } GROUP BY ?p } . FILTER ( ?g = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16957
P88
Q57821
USER
Which fortification was commissioned by East Germany ?
(c(Q57821),P88,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P88
type Q57821
[{'concept': 'Q57821'}, 'P88', 'Q16957']
SELECT DISTINCT ?d WHERE { ?d property:P88 resource:Q16957 . ?d rdf:type ontology:Q57821 }
East Germany
action filter_type
action find_reverse
entity East Germany
relation commissioned by
type fortification
[{'concept': 'fortification'}, 'commissioned by', 'East Germany']
SELECT DISTINCT ?d WHERE { ?d property:commissioned_by resource:East_Germany . ?d rdf:type ontology:fortification }
[]
fortification
Q5086
SYSTEM
Berlin Wall
Q5086
(c(Q57821),P88,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P88
type Q57821
The [ANSWER] was commissioned by East Germany
[{'concept': 'Q57821'}, 'P88', 'Q16957']
SELECT DISTINCT ?d WHERE { ?d property:P88 resource:Q16957 . ?d rdf:type ontology:Q57821 }
Berlin Wall
The Berlin Wall was commissioned by East Germany
Berlin Wall
action filter_type
action find_reverse
entity East Germany
relation commissioned by
type fortification
[{'concept': 'fortification'}, 'commissioned by', 'East Germany']
SELECT DISTINCT ?d WHERE { ?d property:commissioned_by resource:East_Germany . ?d rdf:type ontology:fortification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16957
P710
Q820655
USER
Which statute did that state participate in ?
(c(Q820655),P710,Q5086)
action filter_type
action find_reverse
entity Q16957
relation P710
type Q820655
[{'concept': 'Q820655'}, 'P710', 'Q5086']
SELECT DISTINCT ?m WHERE { ?m property:P710 resource:Q16957 . ?m rdf:type ontology:Q820655 }
East Germany
action filter_type
action find_reverse
entity East Germany
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Berlin Wall']
SELECT DISTINCT ?m WHERE { ?m property:participant resource:East_Germany . ?m rdf:type ontology:statute }
[]
statute
Q672112
SYSTEM
Basic Treaty
Q672112
(c(Q820655),P710,Q5086)
action filter_type
action find_reverse
entity Q16957
relation P710
type Q820655
That state participated in [ANSWER]
[{'concept': 'Q820655'}, 'P710', 'Q5086']
SELECT DISTINCT ?m WHERE { ?m property:P710 resource:Q16957 . ?m rdf:type ontology:Q820655 }
Basic Treaty
That state participated in Basic Treaty
Basic Treaty
action filter_type
action find_reverse
entity East Germany
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Berlin Wall']
SELECT DISTINCT ?m WHERE { ?m property:participant resource:East_Germany . ?m rdf:type ontology:statute }
[]