Simple Question (Direct)
Simple Question
Q4932252
P39
Q12737077
USER
What was the position for which Bob Dechert was appointed ?
(Q4932252,P39,c(Q12737077))
action filter_type
action find
entity Q4932252
relation P39
type Q12737077
['Q4932252', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q4932252 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Bob Dechert
action filter_type
action find
entity Bob Dechert
relation position held
type occupation
['Bob Dechert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Bob_Dechert property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q4932252,P39,c(Q12737077))
action filter_type
action find
entity Q4932252
relation P39
type Q12737077
And [ANSWER]
['Q4932252', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q4932252 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
And member of the House of Commons of Canada
member of the House of Commons of Canada
action filter_type
action find
entity Bob Dechert
relation position held
type occupation
['Bob Dechert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Bob_Dechert property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4932252
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q15964890,P102,c(Q7210356))
action filter_type
action find
entity Q4932252
relation P102
type Q7210356
['Q15964890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q4932252 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Bob Dechert
action filter_type
action find
entity Bob Dechert
relation member of political party
type political organization
['member of the House of Commons of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Bob_Dechert property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q488523
SYSTEM
Conservative Party of Canada
Q488523
(Q15964890,P102,c(Q7210356))
action filter_type
action find
entity Q4932252
relation P102
type Q7210356
Canada [ANSWER] is that person a member of
['Q15964890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q4932252 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Conservative Party of Canada
Canada Conservative Party of Canada is that person a member of
Conservative Party of Canada
action filter_type
action find
entity Bob Dechert
relation member of political party
type political organization
['member of the House of Commons of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Bob_Dechert property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4932252
P69
Q3918
USER
Which university is the alma mater of Bob Dechert ?
(Q4932252,P69,c(Q3918))
action filter_type
action find
entity Q4932252
relation P69
type Q3918
['Q4932252', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3918 . resource:Q4932252 property:P69 ?x }
Bob Dechert
action filter_type
action find
entity Bob Dechert
relation educated at
type university
['Bob Dechert', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:university . resource:Bob_Dechert property:educated_at ?x }
[]
university
Q632891
SYSTEM
McMaster University
Q632891
(Q4932252,P69,c(Q3918))
action filter_type
action find
entity Q4932252
relation P69
type Q3918
[ANSWER] is the alma mater of Bob Dechert
['Q4932252', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3918 . resource:Q4932252 property:P69 ?x }
McMaster University
McMaster University is the alma mater of Bob Dechert
McMaster University
action filter_type
action find
entity Bob Dechert
relation educated at
type university
['Bob Dechert', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:university . resource:Bob_Dechert property:educated_at ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4932252
P106
Q12737077
USER
What is the job of Bob Dechert ?
(Q4932252,P106,c(Q12737077))
action filter_type
action find
entity Q4932252
relation P106
type Q12737077
['Q4932252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4932252 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Bob Dechert
action filter_type
action find
entity Bob Dechert
relation occupation
type occupation
['Bob Dechert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Bob_Dechert property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4932252,P106,c(Q12737077))
action filter_type
action find
entity Q4932252
relation P106
type Q12737077
The job of Bob Dechert is a [ANSWER]
['Q4932252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4932252 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
politician
The job of Bob Dechert is a politician
politician
action filter_type
action find
entity Bob Dechert
relation occupation
type occupation
['Bob Dechert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Bob_Dechert property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7812274
Q12737077
USER
And how about Todd Birr?
(Q7812274,P106,c(Q12737077))
action filter_type
action find
entity Q7812274
relation P106
type Q12737077
['Q7812274', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q7812274 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Todd Birr
action filter_type
action find
entity Todd Birr
relation occupation
type occupation
['Todd Birr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Todd_Birr property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q17516936
SYSTEM
curler
Q17516936
(Q7812274,P106,c(Q12737077))
action filter_type
action find
entity Q7812274
relation P106
type Q12737077
[ANSWER]
['Q7812274', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q7812274 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
curler
curler
action filter_type
action find
entity Todd Birr
relation occupation
type occupation
['Todd Birr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Todd_Birr property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P425
Q349
USER
How many sports have that occupation as the associated field of occupation ?
(Q17516936,P425,c(Q349))
action count
action filter_type
action find
entity Q17516936
relation P425
type Q349
['Q17516936', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q17516936 property:P425 ?l . ?l rdf:type ontology:Q349 }
action count
action filter_type
action find
entity curler
relation field of this occupation
type sport
['curler', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:curler property:field_of_this_occupation ?l . ?l rdf:type ontology:sport }
[]
sport
SYSTEM
1
Q136851
(Q17516936,P425,c(Q349))
action count
action filter_type
action find
entity Q17516936
relation P425
type Q349
[ANSWER]
['Q17516936', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q17516936 property:P425 ?l . ?l rdf:type ontology:Q349 }
curling
1
action count
action filter_type
action find
entity curler
relation field of this occupation
type sport
['curler', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:curler property:field_of_this_occupation ?l . ?l rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q895526 Q11204 Q12737077
USER
Which occupations were appointed by min number of authority organs or legislatures ?
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:Q895526 ) ( ontology:Q11204 ) } . ?t rdf:type ?l } GROUP BY ?x } } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:Q895526 ) ( ontology:Q11204 ) } } GROUP BY ?i } }
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:authority_organ ) ( ontology:legislature ) } . ?t rdf:type ?l } GROUP BY ?x } } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:authority_organ ) ( ontology:legislature ) } } GROUP BY ?i } }
[]
authority organ legislature occupation
Q687075 Q1749063 Q22955080
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, president of FIFA
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q191954 Q6865958 Q3251824 Q1846384 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q737115 Q6578215 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q910308 Q1753754 Q1476458 Q15407843 Q2484309 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1749063 Q1371091 Q3315116 Q20872273 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q20172329 Q531471 Q274948 Q21384866 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q6866295 Q2390270 Q13527933 Q583809 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q182762 Q20859386 Q2962001 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q213107 Q195965 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q2505890 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q5097071 Q20748654 Q19328451 Q6865981 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1281611 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q26721218 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q1752225 Q687908 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
[ANSWERS] were appointed by min number of authority organs or legislatures
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:Q895526 ) ( ontology:Q11204 ) } . ?t rdf:type ?l } GROUP BY ?x } } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:Q895526 ) ( ontology:Q11204 ) } } GROUP BY ?i } }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer Minister for Education and Skills municipal executive of Eindhoven President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Estonia Premier of Saskatchewan Tánaiste Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach Lord Privy Seal Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Prime Minister of Libya municipal executive of Coevorden Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer Governor of İstanbul President of Malta Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan municipal executive of Rotterdam Prime Minister of Portugal municipal executive of Amsterdam Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of the Generalitat of Catalonia Minister of Communications President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade municipal executive of Gorinchem Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere Prime Minister of Canada President of Iran Minister of Industry Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Prime Minister of Belgium Governor of Gibraltar Secretary of State of Puerto Rico President of Israel Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan Leader of the Government in the House of Commons Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs municipal executive of Woerden Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport 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 Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec municipal executive of Almere President of Nauru Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and president of FIFA were appointed by min number of authority organs or legislatures
Prime Minister of Sweden Minister for Foreign Affairs of Sweden president of FIFA
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?z ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:authority_organ ) ( ontology:legislature ) } . ?t rdf:type ?l } GROUP BY ?x } } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?o . VALUES ( ?o ) { ( ontology:authority_organ ) ( ontology:legislature ) } } GROUP BY ?i } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q687075 Q1749063 Q22955080
P39
Q502895
USER
Which people were responsible for occupying the position of Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and president of FIFA ?
(c(Q502895),P39,Q687075) (c(Q502895),P39,Q1749063) (c(Q502895),P39,Q22955080)
action union
action filter_type
action find_reverse
entity Q687075
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1749063
relation P39
type Q502895
action filter_type
action find_reverse
entity Q22955080
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q687075'] [{'concept': 'Q502895'}, 'P39', 'Q1749063'] [{'concept': 'Q502895'}, 'P39', 'Q22955080']
SELECT DISTINCT ?q WHERE { VALUES ( ?y ) { ( resource:Q687075 ) ( resource:Q1749063 ) } . ?q property:P39 ?y }
Prime Minister of Sweden Minister for Foreign Affairs of Sweden president of FIFA
action union
action filter_type
action find_reverse
entity Prime Minister of Sweden
relation position held
type common name
action filter_type
action find_reverse
entity Minister for Foreign Affairs of Sweden
relation position held
type common name
action filter_type
action find_reverse
entity president of FIFA
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of Sweden'] [{'concept': 'common name'}, 'position held', 'Minister for Foreign Affairs of Sweden'] [{'concept': 'common name'}, 'position held', 'president of FIFA']
SELECT DISTINCT ?q WHERE { VALUES ( ?y ) { ( resource:Prime_Minister_of_Sweden ) ( resource:Minister_for_Foreign_Affairs_of_Sweden ) } . ?q property:position_held ?y }
[]
common name
Q53713 Q53713 Q179493
SYSTEM
Bertil Ohlin for 3rd, Olof Palme for 1st, 2nd
Q53292 Q53292 Q53294 Q53294 Q53642 Q53642 Q53286 Q2740012 Q52920 Q52922 Q52972 Q52960 Q52964 Q52969 Q52968 Q52968 Q52958 Q52956 Q52950 Q53747 Q53740 Q53740 Q53305 Q53300 Q53701 Q53707 Q53713 Q53713 Q53721 Q53721 Q53733 Q53660 Q53660 Q53650 Q53633 Q53637 Q53620 Q53620 Q53620 Q53626 Q53628 Q53310 Q291648 Q179493 Q208591 Q52922 Q298317 Q298317 Q237522 Q2938797 Q549955 Q53733 Q297275 Q116277 Q124138 Q312664 Q207358 Q311250 Q218270 Q199642 Q312662 Q483437
(c(Q502895),P39,Q687075) (c(Q502895),P39,Q1749063) (c(Q502895),P39,Q22955080)
action union
action filter_type
action find_reverse
entity Q687075
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1749063
relation P39
type Q502895
action filter_type
action find_reverse
entity Q22955080
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q687075'] [{'concept': 'Q502895'}, 'P39', 'Q1749063'] [{'concept': 'Q502895'}, 'P39', 'Q22955080']
SELECT DISTINCT ?q WHERE { VALUES ( ?y ) { ( resource:Q687075 ) ( resource:Q1749063 ) } . ?q property:P39 ?y }
Karl Staaff Karl Staaff Arvid Lindman Arvid Lindman Carl Gustaf Ekman Carl Gustaf Ekman Christian Lundeberg Stefan Löfven Fredrik Reinfeldt Carl Bildt Johan Ramstedt Gillis Bildt Gustaf Åkerhielm Fredrik von Otter Erik Gustaf Boström Erik Gustaf Boström Robert Themptander Carl Johan Thyselius Louis Gerhard De Geer Göran Persson Ingvar Carlsson Ingvar Carlsson Carl Swartz Hjalmar Hammarskjöld Axel Pehrsson-Bramstorp Tage Erlander Olof Palme Olof Palme Thorbjörn Fälldin Thorbjörn Fälldin Ola Ullsten Per Albin Hansson Per Albin Hansson Felix Hamrin Ernst Trygger Rickard Sandler Hjalmar Branting Hjalmar Branting Hjalmar Branting Gerhard Louis De Geer Oscar von Sydow Nils Edén Laila Freivalds Bertil Ohlin Anna Lindh Carl Bildt Östen Undén Östen Undén Margot Wallström Carin Jämtin Jan Eliasson Ola Ullsten Hans Blix Robert Guérin Gianni Infantino Arthur Drewry João Havelange Daniel Burley Woolfall Stanley Rous Jules Rimet Rodolphe Seeldrayers Sepp Blatter
Olof Palme, Olof Palme and Bertil Ohlin were responsible for occupying the position of Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and president of FIFA
Olof Palme Olof Palme Bertil Ohlin
action union
action filter_type
action find_reverse
entity Prime Minister of Sweden
relation position held
type common name
action filter_type
action find_reverse
entity Minister for Foreign Affairs of Sweden
relation position held
type common name
action filter_type
action find_reverse
entity president of FIFA
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of Sweden'] [{'concept': 'common name'}, 'position held', 'Minister for Foreign Affairs of Sweden'] [{'concept': 'common name'}, 'position held', 'president of FIFA']
SELECT DISTINCT ?q WHERE { VALUES ( ?y ) { ( resource:Prime_Minister_of_Sweden ) ( resource:Minister_for_Foreign_Affairs_of_Sweden ) } . ?q property:position_held ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q179493
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q179493,P27,c(Q15617994))
action filter_type
action find
entity Q179493
relation P27
type Q15617994
['Q179493', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q179493 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Bertil Ohlin
action filter_type
action find
entity Bertil Ohlin
relation country of citizenship
type designation for an administrative territorial entity
['Bertil Ohlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Bertil_Ohlin property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q53713
SYSTEM
Did you mean Olof Palme ?
Q53713 Q53713 Q179493
(Q53713,P27,c(Q15617994)) (Q53713,P27,c(Q15617994)) (Q179493,P27,c(Q15617994))
[ANSWER]
['Q53713', 'P27', {'concept': 'Q15617994'}] ['Q53713', 'P27', {'concept': 'Q15617994'}] ['Q179493', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q179493 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Olof Palme Olof Palme Bertil Ohlin
Did you mean Olof Palme ?
Olof Palme
['Olof Palme', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Olof Palme', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Bertil Ohlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Bertil_Ohlin property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Bertil Ohlin. Could you tell me the answer for that?
(Q179493,P27,c(Q15617994))
Q179493
['Q179493', 'P27', {'concept': 'Q15617994'}]
['Bertil Ohlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q34
SYSTEM
Sweden
Q34
(Q179493,P27,c(Q15617994))
action filter_type
action find
entity Q179493
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q179493', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q179493 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Sweden
Sweden is that person an inhabitant of
Sweden
action filter_type
action find
entity Bertil Ohlin
relation country of citizenship
type designation for an administrative territorial entity
['Bertil Ohlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Bertil_Ohlin property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q34 Q408
P530
Q1048835
USER
Does Australia have diplomatic relations with that administrative territory ?
(Q34,P530,Q408)
action is_in
entity Q408
action find
entity Q34
relation P530
['Q34', 'P530', 'Q408']
ASK WHERE { resource:Q34 property:P530 resource:Q408 }
Sweden Australia
action is_in
entity Australia
action find
entity Sweden
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q34,P530,Q408)
action is_in
entity Q408
action find
entity Q34
relation P530
[ANSWER]
['Q34', 'P530', 'Q408']
ASK WHERE { resource:Q34 property:P530 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Sweden
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Australia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with approximately 40 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 40
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?q ) WHERE { ?u property:P530 ?c . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?q = 40 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 40
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?q ) WHERE { ?u property:diplomatic_relation ?c . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?q = 40 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 40
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?q ) WHERE { ?u property:P530 ?c . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?q = 40 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 40
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?q ) WHERE { ?u property:diplomatic_relation ?c . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?q = 40 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with around the same number of administrative territories as Jamaica ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?y ) WHERE { ?o property:P530 ?d . ?o rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q766 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?m ) }
Jamaica
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?y ) WHERE { ?o property:diplomatic_relation ?d . ?o rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Jamaica property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?m ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with around the same number of administrative territories as Jamaica
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?y ) WHERE { ?o property:P530 ?d . ?o rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q766 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?m ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with around the same number of administrative territories as Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?y ) WHERE { ?o property:diplomatic_relation ?d . ?o rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Jamaica property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?m ) }
[]