Simple Question (Direct)
Simple Question
Q1400040
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Hamdeen Sabahi ?
(Q1400040,P27,c(Q15617994))
action filter_type
action find
entity Q1400040
relation P27
type Q15617994
['Q1400040', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1400040 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Hamdeen Sabahi
action filter_type
action find
entity Hamdeen Sabahi
relation country of citizenship
type designation for an administrative territorial entity
['Hamdeen Sabahi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Hamdeen_Sabahi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q79
SYSTEM
Egypt
Q79
(Q1400040,P27,c(Q15617994))
action filter_type
action find
entity Q1400040
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Hamdeen Sabahi
['Q1400040', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1400040 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Egypt
Egypt is the country of citizenship of Hamdeen Sabahi
Egypt
action filter_type
action find
entity Hamdeen Sabahi
relation country of citizenship
type designation for an administrative territorial entity
['Hamdeen Sabahi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Hamdeen_Sabahi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1400040
P488
Q7210356
USER
Which political organization has that person as its chairperson ?
(c(Q7210356),P488,Q79)
action filter_type
action find_reverse
entity Q1400040
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q79']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . ?r property:P488 resource:Q1400040 }
Hamdeen Sabahi
action filter_type
action find_reverse
entity Hamdeen Sabahi
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Egypt']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . ?r property:chairperson resource:Hamdeen_Sabahi }
[]
political organization
Q1664267
SYSTEM
Dignity Party
Q1664267
(c(Q7210356),P488,Q79)
action filter_type
action find_reverse
entity Q1400040
relation P488
type Q7210356
[ANSWER] has that person as its chairperson
[{'concept': 'Q7210356'}, 'P488', 'Q79']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . ?r property:P488 resource:Q1400040 }
Dignity Party
Dignity Party has that person as its chairperson
Dignity Party
action filter_type
action find_reverse
entity Hamdeen Sabahi
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Egypt']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . ?r property:chairperson resource:Hamdeen_Sabahi }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1400040
P112
Q7210356
USER
How many political organizations were founded by Hamdeen Sabahi ?
(c(Q7210356),P112,Q1400040)
action count
action filter_type
action find_reverse
entity Q1400040
relation P112
type Q7210356
[{'concept': 'Q7210356'}, 'P112', 'Q1400040']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P112 resource:Q1400040 . ?s rdf:type ontology:Q7210356 }
Hamdeen Sabahi
action count
action filter_type
action find_reverse
entity Hamdeen Sabahi
relation founder
type political organization
[{'concept': 'political organization'}, 'founder', 'Hamdeen Sabahi']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:founder resource:Hamdeen_Sabahi . ?s rdf:type ontology:political_organization }
[]
political organization
SYSTEM
2
Q4116701 Q1664267
(c(Q7210356),P112,Q1400040)
action count
action filter_type
action find_reverse
entity Q1400040
relation P112
type Q7210356
[ANSWER]
[{'concept': 'Q7210356'}, 'P112', 'Q1400040']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P112 resource:Q1400040 . ?s rdf:type ontology:Q7210356 }
Egyptian Popular Current Dignity Party
2
action count
action filter_type
action find_reverse
entity Hamdeen Sabahi
relation founder
type political organization
[{'concept': 'political organization'}, 'founder', 'Hamdeen Sabahi']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:founder resource:Hamdeen_Sabahi . ?s rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1664267
P1142
Q7257
USER
Which ideology does Dignity Party believe in ?
(Q1664267,P1142,c(Q7257))
action filter_type
action find
entity Q1664267
relation P1142
type Q7257
['Q1664267', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?f WHERE { resource:Q1664267 property:P1142 ?f . ?f rdf:type ontology:Q7257 }
Dignity Party
action filter_type
action find
entity Dignity Party
relation political ideology
type ideology
['Dignity Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?f WHERE { resource:Dignity_Party property:political_ideology ?f . ?f rdf:type ontology:ideology }
[]
ideology
Q1813600
SYSTEM
Nasserism
Q1813600
(Q1664267,P1142,c(Q7257))
action filter_type
action find
entity Q1664267
relation P1142
type Q7257
Dignity Party believes in [ANSWER]
['Q1664267', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?f WHERE { resource:Q1664267 property:P1142 ?f . ?f rdf:type ontology:Q7257 }
Nasserism
Dignity Party believes in Nasserism
Nasserism
action filter_type
action find
entity Dignity Party
relation political ideology
type ideology
['Dignity Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?f WHERE { resource:Dignity_Party property:political_ideology ?f . ?f rdf:type ontology:ideology }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q196695
Q7257
USER
And what about Green League?
(Q196695,P1142,c(Q7257))
action filter_type
action find
entity Q196695
relation P1142
type Q7257
['Q196695', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7257 . resource:Q196695 property:P1142 ?m }
Green League
action filter_type
action find
entity Green League
relation political ideology
type ideology
['Green League', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:ideology . resource:Green_League property:political_ideology ?m }
[]
ideology
Q201712 Q3781399
SYSTEM
social liberalism, Pro-Europeanism
Q201712 Q3781399
(Q196695,P1142,c(Q7257))
action filter_type
action find
entity Q196695
relation P1142
type Q7257
[ANSWERS]
['Q196695', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7257 . resource:Q196695 property:P1142 ?m }
social liberalism Pro-Europeanism
social liberalism Pro-Europeanism
action filter_type
action find
entity Green League
relation political ideology
type ideology
['Green League', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:ideology . resource:Green_League property:political_ideology ?m }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q613786
P1142
Q7278
USER
Does Europe Ecology – The Greens promote those ideologies ?
(Q613786,P1142,Q201712) (Q613786,P1142,Q3781399)
action is_in
entity prev_answer
action find
entity Q613786
relation P1142
['Q613786', 'P1142', 'Q201712'] ['Q613786', 'P1142', 'Q3781399']
ASK WHERE { VALUES ( ?f ) { ( resource:Q201712 ) ( resource:Q3781399 ) } . resource:Q613786 property:P1142 ?f }
Europe Ecology – The Greens
action is_in
entity prev_answer
action find
entity Europe Ecology – The Greens
relation political ideology
['Europe Ecology – The Greens', 'political ideology', 'social liberalism'] ['Europe Ecology – The Greens', 'political ideology', 'Pro-Europeanism']
ASK WHERE { VALUES ( ?f ) { ( resource:social_liberalism ) ( resource:Pro-Europeanism ) } . resource:Europe_Ecology_–_The_Greens property:political_ideology ?f }
[]
political party
SYSTEM
NO
(Q613786,P1142,Q201712) (Q613786,P1142,Q3781399)
action is_in
entity prev_answer
action find
entity Q613786
relation P1142
[ANSWER]
['Q613786', 'P1142', 'Q201712'] ['Q613786', 'P1142', 'Q3781399']
ASK WHERE { VALUES ( ?f ) { ( resource:Q201712 ) ( resource:Q3781399 ) } . resource:Q613786 property:P1142 ?f }
No
action is_in
entity prev_answer
action find
entity Europe Ecology – The Greens
relation political ideology
['Europe Ecology – The Greens', 'political ideology', 'social liberalism'] ['Europe Ecology – The Greens', 'political ideology', 'Pro-Europeanism']
ASK WHERE { VALUES ( ?f ) { ( resource:social_liberalism ) ( resource:Pro-Europeanism ) } . resource:Europe_Ecology_–_The_Greens property:political_ideology ?f }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q747081
P1142
Q7257 Q7210356 Q7278
USER
Which ideologies are the political ideologies of lesser number of political organizations and political parties than Italian Fascism ?
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action less
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q747081
relation P1142
type Q7210356
type Q7278
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:P1142 ?j . ?s rdf:type ontology:Q7210356 . ?j rdf:type ontology:Q7257 } UNION { ?s property:P1142 ?j . ?j rdf:type ontology:Q7257 . ?s rdf:type ontology:Q7278 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P1142 resource:Q747081 . { { ?i rdf:type ontology:Q7210356 } UNION { ?i rdf:type ontology:Q7278 } } } } . FILTER ( ?u < ?f ) }
Italian Fascism
action less
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity Italian Fascism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:political_ideology ?j . ?s rdf:type ontology:political_organization . ?j rdf:type ontology:ideology } UNION { ?s property:political_ideology ?j . ?j rdf:type ontology:ideology . ?s rdf:type ontology:political_party } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:political_ideology resource:Italian_Fascism . { { ?i rdf:type ontology:political_organization } UNION { ?i rdf:type ontology:political_party } } } } . FILTER ( ?u < ?f ) }
[]
ideology political organization political party
Q505605 Q58848 Q118365
SYSTEM
Open society, pacifism, dictatorship of the proletariat
Q2556608 Q2252089 Q1989705 Q250598 Q6540896 Q1728959 Q188958 Q11900614 Q3516910 Q592832 Q766499 Q698752 Q6375174 Q3085239 Q10335829 Q611217 Q7785048 Q5968650 Q210890 Q679189 Q5974750 Q58848 Q4852443 Q979616 Q24579442 Q1921434 Q231915 Q7664526 Q3336993 Q188993 Q2096772 Q5326684 Q831192 Q2361860 Q3380905 Q212983 Q7229732 Q8813 Q716341 Q505605 Q4855479 Q191442 Q118365
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action less
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q747081
relation P1142
type Q7210356
type Q7278
[ANSWERS] are the political ideologies of lesser number of political organizations and political parties than Italian Fascism
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:P1142 ?j . ?s rdf:type ontology:Q7210356 . ?j rdf:type ontology:Q7257 } UNION { ?s property:P1142 ?j . ?j rdf:type ontology:Q7257 . ?s rdf:type ontology:Q7278 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P1142 resource:Q747081 . { { ?i rdf:type ontology:Q7210356 } UNION { ?i rdf:type ontology:Q7278 } } } } . FILTER ( ?u < ?f ) }
Blaverism Sandinismo Agorism Right-libertarianism Liberalism in Cuba one-nation conservatism egalitarianism left-wing populism techno-progressivism Integralism Cantonalism White supremacy Katarismo Federal republicanism Navarrism degrowth Third camp Labourism Francoism Carlism Liberalismo social pacifism Baloch nationalism Melanesian socialism Anti-particracy Chinese New Left Two-nation theory Szeged Idea Scottish nationalism anarcho-syndicalism National Catholicism Early Malay nationalism Left libertarianism Aragonese nationalism Salafi jihadism Jacobitism popular socialism Bolivarianism Korean nationalism Open society Bangladeshi nationalism Antiglobalization dictatorship of the proletariat
Open society, pacifism and dictatorship of the proletariat are the political ideologies of lesser number of political organizations and political parties than Italian Fascism
Open society pacifism dictatorship of the proletariat
action less
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity Italian Fascism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:political_ideology ?j . ?s rdf:type ontology:political_organization . ?j rdf:type ontology:ideology } UNION { ?s property:political_ideology ?j . ?j rdf:type ontology:ideology . ?s rdf:type ontology:political_party } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:political_ideology resource:Italian_Fascism . { { ?i rdf:type ontology:political_organization } UNION { ?i rdf:type ontology:political_party } } } } . FILTER ( ?u < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q181133
P1142
Q7257 Q7210356 Q7278
USER
And what about Trotskyism?
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action less
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q181133
relation P1142
type Q7210356
type Q7278
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P1142 ?e . ?g rdf:type ontology:Q7278 . ?e rdf:type ontology:Q7257 } UNION { ?g property:P1142 ?e . ?e rdf:type ontology:Q7257 . ?g rdf:type ontology:Q7210356 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { { ?u rdf:type ontology:Q7210356 } UNION { ?u rdf:type ontology:Q7278 } } . ?u property:P1142 resource:Q181133 } } . FILTER ( ?r < ?h ) }
Trotskyism
action less
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity Trotskyism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:political_ideology ?e . ?g rdf:type ontology:political_party . ?e rdf:type ontology:ideology } UNION { ?g property:political_ideology ?e . ?e rdf:type ontology:ideology . ?g rdf:type ontology:political_organization } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { { ?u rdf:type ontology:political_organization } UNION { ?u rdf:type ontology:political_party } } . ?u property:political_ideology resource:Trotskyism } } . FILTER ( ?r < ?h ) }
[]
ideology political organization political party
Q505605 Q188670 Q1194747
SYSTEM
Open society, anarchist communism, constitutionalism
Q2556608 Q2252089 Q1074954 Q188670 Q1702969 Q7522219 Q2394819 Q865354 Q2742087 Q1989705 Q831126 Q1194747 Q617609 Q250598 Q2895399 Q2021987 Q1206403 Q634805 Q1143021 Q7310 Q1265120 Q6199 Q167651 Q6540896 Q7559164 Q3301382 Q834554 Q162719 Q1728959 Q206743 Q5507447 Q14850797 Q188958 Q1813600 Q6068152 Q696116 Q729080 Q193476 Q11900614 Q6223 Q3516910 Q204886 Q3250202 Q7843904 Q592832 Q4971411 Q747081 Q178598 Q2019152 Q24276376 Q2420666 Q766499 Q223200 Q1144178 Q948731 Q2354258 Q1331440 Q381255 Q2301091 Q698752 Q3058841 Q2581716 Q1066224 Q7248834 Q1086839 Q15136979 Q1109552 Q877848 Q729119 Q4969961 Q1149297 Q2670915 Q912036 Q7210053 Q571627 Q6375174 Q3085239 Q853562 Q878445 Q216669 Q10335829 Q15986535 Q3571507 Q611217 Q83280 Q3320075 Q182121 Q4390210 Q7785048 Q3336971 Q6510998 Q5968650 Q564999 Q943197 Q210890 Q679189 Q5974750 Q660018 Q275595 Q58848 Q4852443 Q979616 Q1890981 Q24579442 Q4379869 Q322294 Q1321721 Q5431652 Q2120936 Q7049579 Q2585032 Q2582421 Q913401 Q492050 Q389647 Q1735599 Q1921434 Q192139 Q4121892 Q1414298 Q231915 Q59599 Q517372 Q127393 Q189746 Q607708 Q190656 Q547509 Q3555771 Q179121 Q7664526 Q1399359 Q3401913 Q3336993 Q188993 Q3874021 Q2096772 Q5326684 Q831192 Q2361860 Q1994374 Q278929 Q3571126 Q810220 Q155059 Q1428893 Q430032 Q3336981 Q194236 Q3336983 Q3380905 Q2641411 Q1852084 Q2855609 Q700594 Q212983 Q1202972 Q436860 Q464555 Q1150339 Q821102 Q2712657 Q3568928 Q7229732 Q8813 Q716341 Q9048429 Q3781399 Q114213 Q1191865 Q505605 Q4855479 Q624284 Q151250 Q191442 Q166807 Q118365 Q721556
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action less
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action count
action filter_multi_types
action find_reverse
entity Q181133
relation P1142
type Q7210356
type Q7278
[ANSWERS]
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P1142 ?e . ?g rdf:type ontology:Q7278 . ?e rdf:type ontology:Q7257 } UNION { ?g property:P1142 ?e . ?e rdf:type ontology:Q7257 . ?g rdf:type ontology:Q7210356 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { { ?u rdf:type ontology:Q7210356 } UNION { ?u rdf:type ontology:Q7278 } } . ?u property:P1142 resource:Q181133 } } . FILTER ( ?r < ?h ) }
Blaverism Sandinismo Paleoconservatism anarchist communism Albanian nationalism Sindhi nationalism Ulster loyalism scientific socialism Breton nationalism Agorism Democratic capitalism constitutionalism conservative liberalism Right-libertarianism Armenian nationalism Irish nationalism German nationalism in Austria Unionism in Ireland developmentalism Nazism Croatian nationalism anarchism Maoism Liberalism in Cuba Somali nationalism Pakistani nationalism Political catholicism neoliberalism one-nation conservatism Eurocommunism Fujimorism political radicalism egalitarianism Nasserism Iraqi nationalism Neo-fascism Democratic liberalism Pan-Arabism left-wing populism fascism techno-progressivism federalism Bengali nationalism Tripuri nationalism Integralism British nationalism Italian Fascism libertarianism Religious nationalism German minority politics Socialist feminism Cantonalism euroscepticism anti-imperialism Spanish nationalism Russian nationalism Japanese nationalism American nationalism socialism with Chinese characteristics White supremacy Chinese nationalism Castilian nationalism Left communism Progressive conservatism Popolarismo Hungarian nationalism Workerism republicanism economic liberalism British Fascism localism Welsh nationalism Souverainism Polish nationalism National Bolshevism Katarismo Federal republicanism Libertarian conservatism Reformism monarchism Navarrism National Democracy Cantabrism degrowth Pan-Turkism Asturian nationalism anti-communism Liberalism in South Korea Third camp English nationalism Lebanese nationalism Labourism Andalusian nationalism Royalism Francoism Carlism Liberalismo social National liberalism eco-socialism pacifism Baloch nationalism Melanesian socialism Venetian nationalism Anti-particracy Progressivism in the United States statism Green liberalism Falangism Revolutionary socialism nonsectarian Conservatism in the United States Ba'athism radicalism agrarianism anti-capitalism Catalan nationalism Chinese New Left neoconservatism Kurdish nationalism social conservatism Two-nation theory civic nationalism Irish republicanism autonomism Islamism Valencian nationalism multiculturalism Sardinian nationalism Greek nationalism Stalinism Szeged Idea Neo-Zionism Unionism in the United Kingdom Scottish nationalism anarcho-syndicalism African nationalism National Catholicism Early Malay nationalism Left libertarianism Aragonese nationalism Egyptian nationalism white nationalism Canarian nationalism grassroots democracy Leninism Syrian nationalism Pan-Islamism Galician nationalism separatism Basque nationalism Salafi jihadism Islamic democracy libertarian socialism environmentalism national syndicalism Jacobitism left-wing nationalism right-wing populism Peronism Islamic socialism progressivism Anti-Revisionism Turkish nationalism popular socialism Bolivarianism Korean nationalism Ukrainian nationalism Pro-Europeanism Arab nationalism Galicianism Open society Bangladeshi nationalism Arab socialism neo-Nazism Antiglobalization Kirchnerism dictatorship of the proletariat Liberalism in the United States
Open society anarchist communism constitutionalism
action less
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action count
action filter_multi_types
action find_reverse
entity Trotskyism
relation political ideology
type political organization
type political party
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:political_ideology ?e . ?g rdf:type ontology:political_party . ?e rdf:type ontology:ideology } UNION { ?g property:political_ideology ?e . ?e rdf:type ontology:ideology . ?g rdf:type ontology:political_organization } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { { ?u rdf:type ontology:political_organization } UNION { ?u rdf:type ontology:political_party } } . ?u property:political_ideology resource:Trotskyism } } . FILTER ( ?r < ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188670
P607
Q198
USER
Which war did that ideology take part in ?
(Q188670,P607,c(Q198))
action filter_type
action find
entity Q188670
relation P607
type Q198
['Q188670', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q188670 property:P607 ?d . ?d rdf:type ontology:Q198 }
anarchist communism
action filter_type
action find
entity anarchist communism
relation conflict
type war
['anarchist communism', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:anarchist_communism property:conflict ?d . ?d rdf:type ontology:war }
[]
war
Clarification for simple ques.
Q188670
SYSTEM
Did you mean anarchist communism ?
Q505605 Q188670 Q1194747
(Q505605,P607,c(Q198)) (Q188670,P607,c(Q198)) (Q1194747,P607,c(Q198))
[ANSWER]
['Q505605', 'P607', {'concept': 'Q198'}] ['Q188670', 'P607', {'concept': 'Q198'}] ['Q1194747', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q188670 property:P607 ?d . ?d rdf:type ontology:Q198 }
Open society anarchist communism constitutionalism
Did you mean anarchist communism ?
anarchist communism
['Open society', 'conflict', {'concept': 'war'}] ['anarchist communism', 'conflict', {'concept': 'war'}] ['constitutionalism', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:anarchist_communism property:conflict ?d . ?d rdf:type ontology:war }
[]
Simple Question (Coreferenced)
USER
Yes
(Q188670,P607,c(Q198))
['Q188670', 'P607', {'concept': 'Q198'}]
['anarchist communism', 'conflict', {'concept': 'war'}]
[]
Q79911
SYSTEM
Russian Civil War
Q79911
(Q188670,P607,c(Q198))
action filter_type
action find
entity Q188670
relation P607
type Q198
That ideology took part in [ANSWER]
['Q188670', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q188670 property:P607 ?d . ?d rdf:type ontology:Q198 }
Russian Civil War
That ideology took part in Russian Civil War
Russian Civil War
action filter_type
action find
entity anarchist communism
relation conflict
type war
['anarchist communism', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:anarchist_communism property:conflict ?d . ?d rdf:type ontology:war }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1142
Q7257 Q7278 Q7210356
USER
Which ideologies are the political ideologies of min number of political parties or political organizations ?
(c(Q7278)|c(Q7210356),P1142,c(Q7257))
action argmin
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
[[{'concept': 'Q7278'}, {'concept': 'Q7210356'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?t WHERE { { ?f property:P1142 ?t . ?t rdf:type ontology:Q7257 . ?f rdf:type ontology:Q7210356 } UNION { ?f property:P1142 ?t . ?f rdf:type ontology:Q7278 . ?t rdf:type ontology:Q7257 } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?z WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } } GROUP BY ?z } . FILTER ( ?w = ?s ) }
action argmin
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
[[{'concept': 'political party'}, {'concept': 'political organization'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?t WHERE { { ?f property:political_ideology ?t . ?t rdf:type ontology:ideology . ?f rdf:type ontology:political_organization } UNION { ?f property:political_ideology ?t . ?f rdf:type ontology:political_party . ?t rdf:type ontology:ideology } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?z WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:political_party ) ( ontology:political_organization ) } } GROUP BY ?z } . FILTER ( ?w = ?s ) }
[]
ideology political party political organization
Q505605 Q2556608 Q3085239
SYSTEM
Open society, Blaverism, Federal republicanism
Q2556608 Q3085239 Q3380905 Q212983 Q505605
(c(Q7278)|c(Q7210356),P1142,c(Q7257))
action argmin
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
[ANSWERS] are the political ideologies of min number of political parties or political organizations
[[{'concept': 'Q7278'}, {'concept': 'Q7210356'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?t WHERE { { ?f property:P1142 ?t . ?t rdf:type ontology:Q7257 . ?f rdf:type ontology:Q7210356 } UNION { ?f property:P1142 ?t . ?f rdf:type ontology:Q7278 . ?t rdf:type ontology:Q7257 } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?z WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } } GROUP BY ?z } . FILTER ( ?w = ?s ) }
Blaverism Federal republicanism Salafi jihadism Jacobitism Open society
Open society, Blaverism and Federal republicanism are the political ideologies of min number of political parties or political organizations
Open society Blaverism Federal republicanism
action argmin
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
[[{'concept': 'political party'}, {'concept': 'political organization'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?t WHERE { { ?f property:political_ideology ?t . ?t rdf:type ontology:ideology . ?f rdf:type ontology:political_organization } UNION { ?f property:political_ideology ?t . ?f rdf:type ontology:political_party . ?t rdf:type ontology:ideology } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?z WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:political_party ) ( ontology:political_organization ) } } GROUP BY ?z } . FILTER ( ?w = ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q79
P35
Q502895
USER
Which person has the highest formal authority in Egypt ?
(Q79,P35,c(Q502895))
action filter_type
action find
entity Q79
relation P35
type Q502895
['Q79', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q79 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Egypt
action filter_type
action find
entity Egypt
relation head of state
type common name
['Egypt', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Egypt property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]
common name
Q307871
SYSTEM
Abdel Fattah el-Sisi
Q307871
(Q79,P35,c(Q502895))
action filter_type
action find
entity Q79
relation P35
type Q502895
[ANSWER] has the highest formal authority in Egypt
['Q79', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q79 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Abdel Fattah el-Sisi
Abdel Fattah el-Sisi has the highest formal authority in Egypt
Abdel Fattah el-Sisi
action filter_type
action find
entity Egypt
relation head of state
type common name
['Egypt', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Egypt property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1019
Q502895
USER
And how about Madagascar?
(Q1019,P35,c(Q502895))
action filter_type
action find
entity Q1019
relation P35
type Q502895
['Q1019', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1019 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Madagascar
action filter_type
action find
entity Madagascar
relation head of state
type common name
['Madagascar', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Madagascar property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]
common name
Q15382355 Q57363
SYSTEM
Hery Rajaonarimampianina, Andry Rajoelina
Q15382355 Q57363
(Q1019,P35,c(Q502895))
action filter_type
action find
entity Q1019
relation P35
type Q502895
[ANSWERS]
['Q1019', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1019 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Hery Rajaonarimampianina Andry Rajoelina
Hery Rajaonarimampianina Andry Rajoelina
action filter_type
action find
entity Madagascar
relation head of state
type common name
['Madagascar', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Madagascar property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]