Simple Question (Direct)
Simple Question
Q4589004
P106
Q12737077
USER
Which occupations are the professions of Wenche Blomberg ?
(Q4589004,P106,c(Q12737077))
action filter_type
action find
entity Q4589004
relation P106
type Q12737077
['Q4589004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4589004 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Wenche Blomberg
action filter_type
action find
entity Wenche Blomberg
relation occupation
type occupation
['Wenche Blomberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Wenche_Blomberg property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q4853732 Q182436 Q36180
SYSTEM
children's writer, librarian, writer
Q4853732 Q182436 Q36180
(Q4589004,P106,c(Q12737077))
action filter_type
action find
entity Q4589004
relation P106
type Q12737077
The professions of Wenche Blomberg are the [ANSWERS]
['Q4589004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4589004 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
children's writer librarian writer
The professions of Wenche Blomberg are the children's writer, librarian and writer
children's writer librarian writer
action filter_type
action find
entity Wenche Blomberg
relation occupation
type occupation
['Wenche Blomberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Wenche_Blomberg property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4589004
P27
Q15617994
USER
Which administrative territory does Wenche Blomberg belong to ?
(Q4589004,P27,c(Q15617994))
action filter_type
action find
entity Q4589004
relation P27
type Q15617994
['Q4589004', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q4589004 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Wenche Blomberg
action filter_type
action find
entity Wenche Blomberg
relation country of citizenship
type designation for an administrative territorial entity
['Wenche Blomberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Wenche_Blomberg property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q4589004,P27,c(Q15617994))
action filter_type
action find
entity Q4589004
relation P27
type Q15617994
Wenche Blomberg belongs to [ANSWER]
['Q4589004', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q4589004 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Norway
Wenche Blomberg belongs to Norway
Norway
action filter_type
action find
entity Wenche Blomberg
relation country of citizenship
type designation for an administrative territorial entity
['Wenche Blomberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Wenche_Blomberg property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4589004
P21
Q290
USER
What is the sex of Wenche Blomberg ?
(Q4589004,P21,c(Q290))
action filter_type
action find
entity Q4589004
relation P21
type Q290
['Q4589004', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q4589004 property:P21 ?o . ?o rdf:type ontology:Q290 }
Wenche Blomberg
action filter_type
action find
entity Wenche Blomberg
relation gender
type sex
['Wenche Blomberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Wenche_Blomberg property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q4589004,P21,c(Q290))
action filter_type
action find
entity Q4589004
relation P21
type Q290
The sex of Wenche Blomberg is the [ANSWER]
['Q4589004', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q4589004 property:P21 ?o . ?o rdf:type ontology:Q290 }
female
The sex of Wenche Blomberg is the female
female
action filter_type
action find
entity Wenche Blomberg
relation gender
type sex
['Wenche Blomberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Wenche_Blomberg property:gender ?o . ?o rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q945
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with approximately the same number of political territories or administrative territories as Togo ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q945
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?z rdf:type ?e } GROUP BY ?m } . FILTER ( ?t = ?j ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q945 property:P530 ?r . { { ?r rdf:type ontology:Q1048835 } UNION { ?r rdf:type ontology:Q15617994 } } } } }
Togo
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Togo
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?m WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?z rdf:type ?e } GROUP BY ?m } . FILTER ( ?t = ?j ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Togo property:diplomatic_relation ?r . { { ?r rdf:type ontology:political_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q945
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?z rdf:type ?e } GROUP BY ?m } . FILTER ( ?t = ?j ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q945 property:P530 ?r . { { ?r rdf:type ontology:Q1048835 } UNION { ?r rdf:type ontology:Q15617994 } } } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Togo
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?m WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?z rdf:type ?e } GROUP BY ?m } . FILTER ( ?t = ?j ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Togo property:diplomatic_relation ?r . { { ?r rdf:type ontology:political_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q12737077 Q1752346 Q12737077
USER
Which occupations are appointed by min number of occupations and assemblies ?
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?r WHERE { VALUES ( ?u ) { ( ontology:Q1752346 ) ( ontology:Q12737077 ) } . ?b rdf:type ?u } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?q WHERE { { ?q property:P748 ?j . ?q rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q12737077 } UNION { ?q property:P748 ?j . ?j rdf:type ontology:Q1752346 . ?q rdf:type ontology:Q12737077 } } GROUP BY ?q } . FILTER ( ?y = ?c ) }
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?r WHERE { VALUES ( ?u ) { ( ontology:assembly ) ( ontology:occupation ) } . ?b rdf:type ?u } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?q WHERE { { ?q property:appointed_by ?j . ?q rdf:type ontology:occupation . ?j rdf:type ontology:occupation } UNION { ?q property:appointed_by ?j . ?j rdf:type ontology:assembly . ?q rdf:type ontology:occupation } } GROUP BY ?q } . FILTER ( ?y = ?c ) }
[]
occupation assembly occupation
Q655407 Q22955080 Q81066
SYSTEM
President of the People's Republic of China, president of FIFA, United Nations Secretary-General
Q7643465 Q27650845 Q373548 Q4011167 Q17018201 Q20748656 Q20890913 Q2666591 Q191954 Q1846384 Q11793630 Q1072417 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q2287650 Q1507619 Q5333410 Q376006 Q21013169 Q26209348 Q39021 Q261746 Q20867494 Q740126 Q21013163 Q14984399 Q7241304 Q910308 Q1029955 Q1753754 Q2484309 Q642859 Q2012061 Q20890902 Q1140848 Q15730802 Q7444357 Q967762 Q7444352 Q943379 Q20872382 Q3246797 Q1371091 Q3315116 Q20872273 Q655407 Q3477307 Q1369302 Q27531658 Q48894 Q835586 Q12376089 Q4970706 Q27516521 Q1161813 Q20891385 Q6865833 Q2660943 Q940135 Q20172329 Q531471 Q2305968 Q21384866 Q596123 Q7444340 Q20194364 Q1476165 Q2914452 Q2636053 Q464103 Q3058109 Q3858507 Q2419581 Q1124265 Q273884 Q25863345 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q2747647 Q2390270 Q13527933 Q583809 Q565424 Q15731141 Q313383 Q1043568 Q912994 Q27531790 Q19328352 Q862559 Q13645132 Q636207 Q475658 Q2003296 Q182762 Q20859386 Q967750 Q2962001 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q8882 Q20867550 Q1060844 Q3397406 Q467926 Q813403 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q20872296 Q838380 Q783785 Q5096847 Q4818607 Q152814 Q1072415 Q26000995 Q213107 Q195965 Q1763459 Q19364214 Q1753094 Q1975365 Q1591470 Q609884 Q2741486 Q3315112 Q1123764 Q735015 Q2708520 Q22955080 Q7240368 Q3297079 Q6865995 Q319145 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q967737 Q13423495 Q795477 Q6866148 Q20872339 Q1071117 Q34071 Q25223 Q20872267 Q5261065 Q3315134 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q6542448 Q2301213 Q20748654 Q19328451 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q1074656 Q735587 Q592866 Q1281611 Q81066 Q26721218 Q1658460 Q17058425 Q20128098 Q1752225 Q687908 Q786242 Q25860233 Q1434880 Q1072341
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
[ANSWERS] are appointed by min number of occupations and assemblies
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?r WHERE { VALUES ( ?u ) { ( ontology:Q1752346 ) ( ontology:Q12737077 ) } . ?b rdf:type ?u } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?q WHERE { { ?q property:P748 ?j . ?q rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q12737077 } UNION { ?q property:P748 ?j . ?j rdf:type ontology:Q1752346 . ?q rdf:type ontology:Q12737077 } } GROUP BY ?q } . FILTER ( ?y = ?c ) }
Superintendent of Finance of the United States member of the Provincial Executive of Utrecht President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer municipal executive of Eindhoven Chair of the Federal Reserve President of the French Republic Secretary of State for Wales governor of national banks of Serbia and Yugoslavia Chief of Staff of the United States Air Force King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan United States Secretary of the Interior Deputy Prime Minister of the United Kingdom Economic Secretary to the Treasury Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum President of Singapore United States Secretary of the Air Force Mayor of Gorinchem President of the European Parliament Mayor of The Hague Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Lord Privy Seal United States Secretary of Agriculture Master of the Rolls Secretary of State for the Home Department United States Secretary of Homeland Security Leader of the House of Lords Mayor of Eindhoven President pro tempore of the United States Senate Mayor of Rotterdam Secretary of State for Work and Pensions United States Secretary of Education Secretary of State for International Development Lord President of the Council municipal executive of Coevorden Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland King's Commissioner of South Holland President of Fiji Prime Minister of Serbia Prime Minister of Thailand Federal Chancellor of Germany member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer Minister for Finance Minister for Foreign Affairs United States Secretary of the Navy Mayor of Hoogland Chancellor of the Exchequer United States Secretary of Health and Human Services municipal executive of Rotterdam president of Bangladesh Secretary of State for Dominion Affairs municipal executive of Amsterdam Prime Minister of Iraq President of Algeria Leader of the House of Commons Speaker of the House of Commons Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy United States Secretary of Housing and Urban Development List of Presidents of the Basque Autonomous Community President of South Africa Secretary of State for International Trade Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Secretary of State for Defence Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of the Bahamas Mayor of Almere President of India Prime Minister of Vietnam speaker of the United States House of Representatives member of the Provincial Executive of South Holland Mayor of Leersum Prime Minister of Malaysia Lord Mayor of Dublin United States Attorney General President of Austria United States Secretary of Commerce Prime Minister of Algeria Mayor of Mierlo United States Secretary of Labor Chief of the Defence Staff President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco President of the European Commission municipal executive of Gorinchem Paymaster General Secretary of State for Health Cathaoirleach King's or Queen's Commissioner King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere President of Iran Chief of Staff of the United States Army Chief Minister Attorney-General of Australia Prime Minister of Malta Chief of Naval Operations President of the Parliament of Catalonia Prime Minister of Belgium Governor of Gibraltar Chairman of the Joint Chiefs of Staff President of Somalia United States Postmaster General Prime Minister of Georgia United States Secretary of the Army First Lord of the Treasury Chief Executive of Hong Kong Minister for Defence Prime Minister of Armenia United States Secretary of Defense Chairman of the Communist Party of China president of FIFA Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Commonwealth Secretary-General President of Finland president of Tajikistan United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China United States Secretary of Transportation Mayor of Amsterdam Prime Minister of Denmark Minister of Foreign Affairs municipal executive of Woerden Prime Minister of New Zealand President of Paraguay President of Germany Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Librarian of Congress United States Deputy Secretary of State Mayor of Zoetermeer Mayor of Haarlem Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Prime Minister of Papua New Guinea President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey United Nations Secretary-General municipal executive of Almere United States Secretary of Veterans Affairs Mayor of Coevorden Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales White House Chief of Staff Secretary of State for Exiting the European Union Surgeon General of the United States Chief Minister of the Northern Territory
President of the People's Republic of China, president of FIFA and United Nations Secretary-General are appointed by min number of occupations and assemblies
President of the People's Republic of China president of FIFA United Nations Secretary-General
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?r WHERE { VALUES ( ?u ) { ( ontology:assembly ) ( ontology:occupation ) } . ?b rdf:type ?u } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?q WHERE { { ?q property:appointed_by ?j . ?q rdf:type ontology:occupation . ?j rdf:type ontology:occupation } UNION { ?q property:appointed_by ?j . ?j rdf:type ontology:assembly . ?q rdf:type ontology:occupation } } GROUP BY ?q } . FILTER ( ?y = ?c ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q655407
P1001
Q15617994
USER
Which administrative territory comes under the jurisdiction of that occupation ?
(Q655407,P1001,c(Q15617994))
action filter_type
action find
entity Q655407
relation P1001
type Q15617994
['Q655407', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q655407 property:P1001 ?r . ?r rdf:type ontology:Q15617994 }
President of the People's Republic of China
action filter_type
action find
entity President of the People's Republic of China
relation applies to jurisdiction
type designation for an administrative territorial entity
["President of the People's Republic of China", 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:President_of_the_People's_Republic_of_China property:applies_to_jurisdiction ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q81066
SYSTEM
Did you mean United Nations Secretary-General ?
Q655407 Q22955080 Q81066
(Q655407,P1001,c(Q15617994)) (Q22955080,P1001,c(Q15617994)) (Q81066,P1001,c(Q15617994))
[ANSWER]
['Q655407', 'P1001', {'concept': 'Q15617994'}] ['Q22955080', 'P1001', {'concept': 'Q15617994'}] ['Q81066', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q655407 property:P1001 ?r . ?r rdf:type ontology:Q15617994 }
President of the People's Republic of China president of FIFA United Nations Secretary-General
Did you mean United Nations Secretary-General ?
United Nations Secretary-General
["President of the People's Republic of China", 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['president of FIFA', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['United Nations Secretary-General', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:President_of_the_People's_Republic_of_China property:applies_to_jurisdiction ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant President of the People's Republic of China. Could you tell me the answer for that?
(Q655407,P1001,c(Q15617994))
Q655407
['Q655407', 'P1001', {'concept': 'Q15617994'}]
["President of the People's Republic of China", 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q148
SYSTEM
People's Republic of China
Q148
(Q655407,P1001,c(Q15617994))
action filter_type
action find
entity Q655407
relation P1001
type Q15617994
Of [ANSWER] comes under the jurisdiction of that occupation
['Q655407', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q655407 property:P1001 ?r . ?r rdf:type ontology:Q15617994 }
People's Republic of China
Of People's Republic of China comes under the jurisdiction of that occupation
People's Republic of China
action filter_type
action find
entity President of the People's Republic of China
relation applies to jurisdiction
type designation for an administrative territorial entity
["President of the People's Republic of China", 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:President_of_the_People's_Republic_of_China property:applies_to_jurisdiction ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q148 Q16988 Q5816
P35
Q502895
USER
Is Liu Shaoqi and Mao Zedong the head of state of Q148 ?
(Q148,P35,Q16988) (Q148,P35,Q5816)
action is_in
entity Q148
action intersection
action find_reverse
entity Q16988
relation P35
action find_reverse
entity Q5816
relation P35
['Q148', 'P35', 'Q16988'] ['Q148', 'P35', 'Q5816']
ASK WHERE { resource:Q148 property:P35 resource:Q16988 . resource:Q148 property:P35 resource:Q5816 }
People's Republic of China Liu Shaoqi Mao Zedong
action is_in
entity People's Republic of China
action intersection
action find_reverse
entity Liu Shaoqi
relation head of state
action find_reverse
entity Mao Zedong
relation head of state
["People's Republic of China", 'head of state', 'Liu Shaoqi'] ["People's Republic of China", 'head of state', 'Mao Zedong']
ASK WHERE { resource:People's_Republic_of_China property:head_of_state resource:Liu_Shaoqi . resource:People's_Republic_of_China property:head_of_state resource:Mao_Zedong }
[]
common name
SYSTEM
YES
(Q148,P35,Q16988) (Q148,P35,Q5816)
action is_in
entity Q148
action intersection
action find_reverse
entity Q16988
relation P35
action find_reverse
entity Q5816
relation P35
[ANSWER]
['Q148', 'P35', 'Q16988'] ['Q148', 'P35', 'Q5816']
ASK WHERE { resource:Q148 property:P35 resource:Q16988 . resource:Q148 property:P35 resource:Q5816 }
Yes
action is_in
entity People's Republic of China
action intersection
action find_reverse
entity Liu Shaoqi
relation head of state
action find_reverse
entity Mao Zedong
relation head of state
["People's Republic of China", 'head of state', 'Liu Shaoqi'] ["People's Republic of China", 'head of state', 'Mao Zedong']
ASK WHERE { resource:People's_Republic_of_China property:head_of_state resource:Liu_Shaoqi . resource:People's_Republic_of_China property:head_of_state resource:Mao_Zedong }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q148
P463
Q484652 Q43229
USER
How many international organizations or organizations were People's Republic of China a member of ?
(Q148,P463,c(Q484652)) (Q148,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q148
relation P463
type Q484652
action filter_type
action find
entity Q148
relation P463
type Q43229
['Q148', 'P463', {'concept': 'Q484652'}] ['Q148', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } . ?s rdf:type ?k }
People's Republic of China
action count
action union
action filter_type
action find
entity People's Republic of China
relation member of
type international organization
action filter_type
action find
entity People's Republic of China
relation member of
type organization
["People's Republic of China", 'member of', {'concept': 'international organization'}] ["People's Republic of China", 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:international_organization ) ( ontology:organization ) } . ?s rdf:type ?k }
[]
international organization organization
SYSTEM
14
Q340195 Q485207 Q899770 Q19771 Q1065 Q188822 Q3772571 Q827525 Q656801 Q191384 Q7825 Q170481 Q243630 Q1043527
(Q148,P463,c(Q484652)) (Q148,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q148
relation P463
type Q484652
action filter_type
action find
entity Q148
relation P463
type Q43229
[ANSWER]
['Q148', 'P463', {'concept': 'Q484652'}] ['Q148', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } . ?s rdf:type ?k }
African Development Bank Shanghai Cooperation Organisation International Centre for Settlement of Investment Disputes G20 United Nations Asian Development Bank Caribbean Development Bank International Development Association International Finance Corporation International Bank for Reconstruction and Development World Trade Organization Asia-Pacific Economic Cooperation BRICS Multilateral Investment Guarantee Agency
14
action count
action union
action filter_type
action find
entity People's Republic of China
relation member of
type international organization
action filter_type
action find
entity People's Republic of China
relation member of
type organization
["People's Republic of China", 'member of', {'concept': 'international organization'}] ["People's Republic of China", 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?k ) { ( ontology:international_organization ) ( ontology:organization ) } . ?s rdf:type ?k }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q2342494 Q11060274
USER
Which administrative territories are depicted in exactly 1 collectables and prints ?
(c(Q2342494)|c(Q11060274),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } . ?a rdf:type ?k } GROUP BY ?t } . FILTER ( ?w = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
value 1
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:print ) } . ?a rdf:type ?k } GROUP BY ?t } . FILTER ( ?w = 1 ) }
[]
designation for an administrative territorial entity collectable print
Q17 Q1011 Q79
SYSTEM
Japan, Cape Verde, Egypt
Q47505 Q131596 Q1028 Q17 Q298 Q13320 Q79 Q1011 Q913434 Q376896 Q34876
(c(Q2342494)|c(Q11060274),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
value 1
[ANSWERS] are depicted in exactly 1 collectables and prints
[[{'concept': 'Q2342494'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q11060274 ) } . ?a rdf:type ?k } GROUP BY ?t } . FILTER ( ?w = 1 ) }
Dolo farm Morocco Japan Chile Savona Egypt Cape Verde Les Halles Grenelle province
Japan, Cape Verde and Egypt are depicted in exactly 1 collectables and prints
Japan Cape Verde Egypt
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
value 1
[[{'concept': 'collectable'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:print ) } . ?a rdf:type ?k } GROUP BY ?t } . FILTER ( ?w = 1 ) }
[]