Simple Question (Direct)
Simple Question
Q6680693
P641
Q349
USER
What was the sport that Lorenzo Degeri was a part of ?
(Q6680693,P641,c(Q349))
action filter_type
action find
entity Q6680693
relation P641
type Q349
['Q6680693', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q6680693 property:P641 ?o . ?o rdf:type ontology:Q349 }
Lorenzo Degeri
action filter_type
action find
entity Lorenzo Degeri
relation sport
type sport
['Lorenzo Degeri', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Lorenzo_Degeri property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6680693,P641,c(Q349))
action filter_type
action find
entity Q6680693
relation P641
type Q349
The sport that Lorenzo Degeri was a part of was the [ANSWER]
['Q6680693', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q6680693 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
The sport that Lorenzo Degeri was a part of was the association football
association football
action filter_type
action find
entity Lorenzo Degeri
relation sport
type sport
['Lorenzo Degeri', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Lorenzo_Degeri property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6680693
P106
Q12737077
USER
What does Lorenzo Degeri do for a living ?
(Q6680693,P106,c(Q12737077))
action filter_type
action find
entity Q6680693
relation P106
type Q12737077
['Q6680693', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q6680693 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Lorenzo Degeri
action filter_type
action find
entity Lorenzo Degeri
relation occupation
type occupation
['Lorenzo Degeri', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Lorenzo_Degeri property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6680693,P106,c(Q12737077))
action filter_type
action find
entity Q6680693
relation P106
type Q12737077
Lorenzo Degeri does for a living as [ANSWER]
['Q6680693', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q6680693 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
association football player
Lorenzo Degeri does for a living as association football player
association football player
action filter_type
action find
entity Lorenzo Degeri
relation occupation
type occupation
['Lorenzo Degeri', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Lorenzo_Degeri property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15997701
Q12737077
USER
And what about Vincent Shoobridge?
(Q15997701,P106,c(Q12737077))
action filter_type
action find
entity Q15997701
relation P106
type Q12737077
['Q15997701', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q15997701 property:P106 ?a }
Vincent Shoobridge
action filter_type
action find
entity Vincent Shoobridge
relation occupation
type occupation
['Vincent Shoobridge', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Vincent_Shoobridge property:occupation ?a }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q15997701,P106,c(Q12737077))
action filter_type
action find
entity Q15997701
relation P106
type Q12737077
[ANSWER]
['Q15997701', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q15997701 property:P106 ?a }
politician
politician
action filter_type
action find
entity Vincent Shoobridge
relation occupation
type occupation
['Vincent Shoobridge', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Vincent_Shoobridge property:occupation ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q19715529
P106
Q502895
USER
Does Luci Corneli Cinna have the profession as that occupation ?
(Q19715529,P106,Q82955)
action is_in
entity Q19715529
action find
entity Q82955
relation P106
['Q19715529', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q19715529 }
politician Luci Corneli Cinna
action is_in
entity Luci Corneli Cinna
action find
entity politician
relation occupation
['Luci Corneli Cinna', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Luci_Corneli_Cinna }
[]
common name
SYSTEM
NO
(Q19715529,P106,Q82955)
action is_in
entity Q19715529
action find
entity Q82955
relation P106
[ANSWER]
['Q19715529', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q19715529 }
No
action is_in
entity Luci Corneli Cinna
action find
entity politician
relation occupation
['Luci Corneli Cinna', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Luci_Corneli_Cinna }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3332480 Q937857
P425 P641
Q349
USER
Which sports have association football player as thier associated field of occupation and did Arif İsayev participate in ?
AND((Q937857,P425,c(Q349)), (Q3332480,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q3332480
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q3332480', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q349 . resource:Q937857 property:P425 ?z . resource:Q3332480 property:P641 ?z }
Arif İsayev association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Arif İsayev
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Arif İsayev', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sport . resource:association_football_player property:field_of_this_occupation ?z . resource:Arif_İsayev property:sport ?z }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q3332480,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q3332480
relation P641
type Q349
[ANSWER] have [ANSWER] player as thier associated field of occupation and did Arif İsayev participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q3332480', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q349 . resource:Q937857 property:P425 ?z . resource:Q3332480 property:P641 ?z }
association football
Association football have association football player as thier associated field of occupation and did Arif İsayev participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Arif İsayev
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Arif İsayev', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sport . resource:association_football_player property:field_of_this_occupation ?z . resource:Arif_İsayev property:sport ?z }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q15731141
P748
Q12737077 Q502895 Q12737077
USER
Which occupations did approximately the same number of occupations and people appoint as Mayor of Almere ?
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q15731141
relation P748
type Q12737077
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q15731141 property:P748 ?g . { { ?g rdf:type ontology:Q12737077 } UNION { ?g rdf:type ontology:Q502895 } } } } . FILTER ( ?v = ?k ) }
Mayor of Almere
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Mayor of Almere
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:occupation ) ( ontology:common_name ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Mayor_of_Almere property:appointed_by ?g . { { ?g rdf:type ontology:occupation } UNION { ?g rdf:type ontology:common_name } } } } . FILTER ( ?v = ?k ) }
[]
occupation common name 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 Q11793630 Q1072417 Q27650822 Q21371106 Q1355456 Q735575 Q2287650 Q1507619 Q5333410 Q376006 Q21013169 Q26209348 Q39021 Q261746 Q20867494 Q740126 Q21013163 Q7241304 Q910308 Q1029955 Q1753754 Q642859 Q20890902 Q1140848 Q15730802 Q967762 Q943379 Q15305714 Q20872382 Q20872273 Q655407 Q27531658 Q842386 Q48894 Q12376089 Q19056310 Q890030 Q27516521 Q1161813 Q20891385 Q796593 Q6865833 Q2660943 Q940135 Q20172329 Q2305968 Q21384866 Q596123 Q7444340 Q20194364 Q1476165 Q2914452 Q3058109 Q2419581 Q273884 Q25863345 Q20130623 Q1054799 Q21383592 Q2747647 Q2390270 Q13527933 Q583809 Q15731141 Q313383 Q1043568 Q912994 Q27531790 Q19328352 Q13645132 Q636207 Q475658 Q7574264 Q2003296 Q20859386 Q967750 Q2962001 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q8882 Q20867550 Q467926 Q813403 Q27516596 Q866680 Q20181946 Q21098108 Q20872296 Q838380 Q783785 Q5096847 Q4818607 Q1072415 Q26000995 Q3409203 Q213107 Q327948 Q1763459 Q19364214 Q1753094 Q1591470 Q2741486 Q3315112 Q735015 Q2708520 Q22955080 Q319145 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q967737 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q1071117 Q34071 Q25223 Q20872267 Q5261065 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q6542448 Q2301213 Q20748654 Q19328451 Q217217 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q839139 Q1074656 Q735587 Q592866 Q1281611 Q81066 Q26721218 Q1658460 Q628102 Q17058425 Q20128098 Q1752225 Q687908 Q786242 Q1434880 Q1072341
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q15731141
relation P748
type Q12737077
type Q502895
[ANSWERS] approximately the same number of occupations and people appointed as Mayor of Almere
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q15731141 property:P748 ?g . { { ?g rdf:type ontology:Q12737077 } UNION { ?g rdf:type ontology:Q502895 } } } } . FILTER ( ?v = ?k ) }
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 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 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 President of the Australian Senate Lord Privy Seal United States Secretary of Agriculture Master of the Rolls United States Secretary of Homeland Security Mayor of Eindhoven President pro tempore of the United States Senate Mayor of Rotterdam United States Secretary of Education Lord President of the Council Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer President of the People's Republic of China King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Thailand President of Botswana State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer President of Malta Minister for Finance Minister for Foreign Affairs United States Secretary of the Navy Mayor of Hoogland 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 Prime Minister of the Netherlands United States Secretary of Housing and Urban Development President of South Africa Secretary of State for International Trade 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 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 Lord Mayor of Dublin United States Attorney General President of Austria Speaker of the Hellenic Parliament United States Secretary of Commerce 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 Cathaoirleach King's or Queen's Commissioner King's Commissioner of North Holland 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 Chief of Naval Operations President of the Parliament of Catalonia President of Greece Prime Minister of Belgium President of Israel Chairman of the Joint Chiefs of Staff President of Somalia United States Postmaster General United States Secretary of the Army Chief Executive of Hong Kong Minister for Defence United States Secretary of Defense Chairman of the Communist Party of China president of FIFA 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 President of Cuba 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 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 Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia 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 President of Nauru Mayor of Coevorden Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales White House Chief of Staff 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 approximately the same number of occupations and people appointed as Mayor of Almere
President of the People's Republic of China president of FIFA United Nations Secretary-General
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Mayor of Almere
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:occupation ) ( ontology:common_name ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Mayor_of_Almere property:appointed_by ?g . { { ?g rdf:type ontology:occupation } UNION { ?g rdf:type ontology:common_name } } } } . FILTER ( ?v = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q18694351
P748
Q12737077 Q502895 Q12737077
USER
And how about Minister of Communications?
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q18694351
relation P748
type Q12737077
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q18694351 property:P748 ?k . { { ?k rdf:type ontology:Q12737077 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?a = ?z ) }
Minister of Communications
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of Communications
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:occupation ) ( ontology:common_name ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Minister_of_Communications property:appointed_by ?k . { { ?k rdf:type ontology:occupation } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?a = ?z ) }
[]
occupation common name occupation
Q687075 Q1749063 Q25860233
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, Secretary of State for Exiting the European Union
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q1846384 Q2631987 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q14984399 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q2484309 Q2012061 Q20736121 Q19190022 Q3251837 Q6865747 Q7444357 Q7444352 Q3246797 Q1749063 Q1371091 Q3315116 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q835586 Q6572133 Q1006398 Q6865770 Q531471 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q208487 Q4294939 Q3477306 Q866756 Q6866295 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q862559 Q3564227 Q6866264 Q6865750 Q7240360 Q182762 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q1060844 Q687075 Q3397406 Q3251775 Q1587677 Q691615 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q152814 Q3251793 Q1192903 Q6865904 Q2741479 Q195965 Q6123144 Q3401758 Q7240356 Q6865864 Q1975365 Q609884 Q13527909 Q3315114 Q11895063 Q1123764 Q1469153 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q6865781 Q7013201 Q2505890 Q6865756 Q16009376 Q3251800 Q3315134 Q3259469 Q5097071 Q6865981 Q3777749 Q111784 Q1362216 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q18694351
relation P748
type Q12737077
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q18694351 property:P748 ?k . { { ?k rdf:type ontology:Q12737077 } UNION { ?k rdf:type ontology:Q502895 } } } } . FILTER ( ?a = ?z ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Secretary of State for Wales Attorney General for England and Wales Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Serbia Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Chancellor of the Exchequer Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs 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 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 Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Minister of Public Services and Procurement 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 Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Prime Minister of Malaysia Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Paymaster General Prime Minister of Sweden Secretary of State for Health Minister of the Environment Prime Minister of France Governor of the Virgin Islands Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Governor of Gibraltar Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji 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 Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Minister for Women and Equalities Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland 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
Prime Minister of Sweden Minister for Foreign Affairs of Sweden Secretary of State for Exiting the European Union
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of Communications
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?t . VALUES ( ?t ) { ( ontology:occupation ) ( ontology:common_name ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Minister_of_Communications property:appointed_by ?k . { { ?k rdf:type ontology:occupation } UNION { ?k rdf:type ontology:common_name } } } } . FILTER ( ?a = ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1749063
P39
Q502895
USER
Who held the position of that occupation ?
(c(Q502895),P39,Q1749063)
action filter_type
action find_reverse
entity Q1749063
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1749063']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P39 resource:Q1749063 }
Minister for Foreign Affairs of Sweden
action filter_type
action find_reverse
entity Minister for Foreign Affairs of Sweden
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Minister for Foreign Affairs of Sweden']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:position_held resource:Minister_for_Foreign_Affairs_of_Sweden }
[]
common name
Clarification for simple ques.
Q1749063
SYSTEM
Did you mean Minister for Foreign Affairs of Sweden ?
Q687075 Q1749063 Q25860233
(c(Q502895),P39,Q687075) (c(Q502895),P39,Q1749063) (c(Q502895),P39,Q25860233)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q687075'] [{'concept': 'Q502895'}, 'P39', 'Q1749063'] [{'concept': 'Q502895'}, 'P39', 'Q25860233']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P39 resource:Q1749063 }
Prime Minister of Sweden Minister for Foreign Affairs of Sweden Secretary of State for Exiting the European Union
Did you mean Minister for Foreign Affairs of Sweden ?
Minister for Foreign Affairs of Sweden
[{'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', 'Secretary of State for Exiting the European Union']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:position_held resource:Minister_for_Foreign_Affairs_of_Sweden }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q1749063)
[{'concept': 'Q502895'}, 'P39', 'Q1749063']
[{'concept': 'common name'}, 'position held', 'Minister for Foreign Affairs of Sweden']
[]
Q179493 Q297275 Q52922
SYSTEM
Bertil Ohlin, Hans Blix, Carl Bildt
Q291648 Q179493 Q237522 Q549955 Q297275 Q208591 Q298317 Q53733 Q2938797 Q52922
(c(Q502895),P39,Q1749063)
action filter_type
action find_reverse
entity Q1749063
relation P39
type Q502895
[ANSWERS] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q1749063']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P39 resource:Q1749063 }
Laila Freivalds Bertil Ohlin Margot Wallström Jan Eliasson Hans Blix Anna Lindh Östen Undén Ola Ullsten Carin Jämtin Carl Bildt
Bertil Ohlin, Hans Blix and Carl Bildt held the position of that occupation
Bertil Ohlin Hans Blix Carl Bildt
action filter_type
action find_reverse
entity Minister for Foreign Affairs of Sweden
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Minister for Foreign Affairs of Sweden']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:position_held resource:Minister_for_Foreign_Affairs_of_Sweden }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q179493 Q297275 Q52922
P39
Q12737077
USER
What were the positions for which those people were appointed ?
(Q179493,P39,c(Q12737077)) (Q297275,P39,c(Q12737077)) (Q52922,P39,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P39
type Q12737077
['Q179493', 'P39', {'concept': 'Q12737077'}] ['Q297275', 'P39', {'concept': 'Q12737077'}] ['Q52922', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . VALUES ( ?p ) { ( resource:Q291648 ) ( resource:Q179493 ) ( resource:Q237522 ) } . ?p property:P39 ?f }
Bertil Ohlin Hans Blix Carl Bildt
action filter_type
action find
entity prev_answer
relation position held
type occupation
['Bertil Ohlin', 'position held', {'concept': 'occupation'}] ['Hans Blix', 'position held', {'concept': 'occupation'}] ['Carl Bildt', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . VALUES ( ?p ) { ( resource:Laila_Freivalds ) ( resource:Bertil_Ohlin ) ( resource:Margot_Wallström ) } . ?p property:position_held ?f }
[]
occupation
Q19185575 Q687075 Q1749063
SYSTEM
President of the Nordic Council, Prime Minister of Sweden, Minister for Foreign Affairs of Sweden
Q19185575 Q10655178 Q1749063 Q1749063 Q10655178 Q470446 Q1749063 Q687075
(Q179493,P39,c(Q12737077)) (Q297275,P39,c(Q12737077)) (Q52922,P39,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P39
type Q12737077
[ANSWERS]
['Q179493', 'P39', {'concept': 'Q12737077'}] ['Q297275', 'P39', {'concept': 'Q12737077'}] ['Q52922', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . VALUES ( ?p ) { ( resource:Q291648 ) ( resource:Q179493 ) ( resource:Q237522 ) } . ?p property:P39 ?f }
President of the Nordic Council Member of the Riksdag Minister for Foreign Affairs of Sweden Minister for Foreign Affairs of Sweden Member of the Riksdag High Representative for Bosnia and Herzegovina Minister for Foreign Affairs of Sweden Prime Minister of Sweden
President of the Nordic Council, Prime Minister of Sweden and Minister for Foreign Affairs of Sweden
President of the Nordic Council Prime Minister of Sweden Minister for Foreign Affairs of Sweden
action filter_type
action find
entity prev_answer
relation position held
type occupation
['Bertil Ohlin', 'position held', {'concept': 'occupation'}] ['Hans Blix', 'position held', {'concept': 'occupation'}] ['Carl Bildt', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . VALUES ( ?p ) { ( resource:Laila_Freivalds ) ( resource:Bertil_Ohlin ) ( resource:Margot_Wallström ) } . ?p property:position_held ?f }
[]
Clarification
Simple Question|Single Entity|Indirect
Q687075
P1001
Q15617994
USER
Which administrative territory belongs to jurisdiction of that occupation ?
(Q687075,P1001,c(Q15617994))
action filter_type
action find
entity Q687075
relation P1001
type Q15617994
['Q687075', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q687075 property:P1001 ?u }
Prime Minister of Sweden
action filter_type
action find
entity Prime Minister of Sweden
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?u }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1749063
SYSTEM
Did you mean Minister for Foreign Affairs of Sweden ?
Q19185575 Q687075 Q1749063
(Q19185575,P1001,c(Q15617994)) (Q687075,P1001,c(Q15617994)) (Q1749063,P1001,c(Q15617994))
[ANSWER]
['Q19185575', 'P1001', {'concept': 'Q15617994'}] ['Q687075', 'P1001', {'concept': 'Q15617994'}] ['Q1749063', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q687075 property:P1001 ?u }
President of the Nordic Council Prime Minister of Sweden Minister for Foreign Affairs of Sweden
Did you mean Minister for Foreign Affairs of Sweden ?
Minister for Foreign Affairs of Sweden
['President of the Nordic Council', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Minister for Foreign Affairs of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant Prime Minister of Sweden. Could you tell me the answer for that?
(Q687075,P1001,c(Q15617994))
Q687075
['Q687075', 'P1001', {'concept': 'Q15617994'}]
['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q34
SYSTEM
Sweden
Q34
(Q687075,P1001,c(Q15617994))
action filter_type
action find
entity Q687075
relation P1001
type Q15617994
[ANSWER] belongs to jurisdiction of that occupation
['Q687075', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q687075 property:P1001 ?u }
Sweden
Sweden belongs to jurisdiction of that occupation
Sweden
action filter_type
action find
entity Prime Minister of Sweden
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?u }
[]