Simple Question (Direct)
Simple Question
Q3121796
P21
Q290
USER
Which sex does Guy Féquant have ?
(Q3121796,P21,c(Q290))
action filter_type
action find
entity Q3121796
relation P21
type Q290
['Q3121796', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3121796 property:P21 ?m }
Guy Féquant
action filter_type
action find
entity Guy Féquant
relation gender
type sex
['Guy Féquant', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Guy_Féquant property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3121796,P21,c(Q290))
action filter_type
action find
entity Q3121796
relation P21
type Q290
Guy Féquant has a [ANSWER]
['Q3121796', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3121796 property:P21 ?m }
male
Guy Féquant has a male
male
action filter_type
action find
entity Guy Féquant
relation gender
type sex
['Guy Féquant', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Guy_Féquant property:gender ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3121796
P106
Q12737077
USER
Which occupations have Guy Féquant as his/her 's career ?
(Q3121796,P106,c(Q12737077))
action filter_type
action find
entity Q3121796
relation P106
type Q12737077
['Q3121796', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3121796 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Guy Féquant
action filter_type
action find
entity Guy Féquant
relation occupation
type occupation
['Guy Féquant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Guy_Féquant property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q49757 Q36180
SYSTEM
poet, writer
Q49757 Q36180
(Q3121796,P106,c(Q12737077))
action filter_type
action find
entity Q3121796
relation P106
type Q12737077
The [ANSWERS] have Guy Féquant as his/her 's career
['Q3121796', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3121796 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
poet writer
The poet and writer have Guy Féquant as his/her 's career
poet writer
action filter_type
action find
entity Guy Féquant
relation occupation
type occupation
['Guy Féquant', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Guy_Féquant property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q11204 Q1752346 Q12737077
USER
Which occupations did atmost 1 legislatures and assemblies appoint ?
(c(Q12737077),P748,c(Q11204)|c(Q1752346))
action atmost
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?r <= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?r ) WHERE { { ?x property:P748 ?l . ?x rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q1752346 } UNION { ?x property:P748 ?l . ?x rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q11204 } } GROUP BY ?x } }
action atmost
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?r <= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?r ) WHERE { { ?x property:appointed_by ?l . ?x rdf:type ontology:occupation . ?l rdf:type ontology:assembly } UNION { ?x property:appointed_by ?l . ?x rdf:type ontology:occupation . ?l rdf:type ontology:legislature } } GROUP BY ?x } }
[]
legislature assembly occupation
Q687075 Q1749063 Q655407
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, President of the People's Republic of China
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q2666591 Q191954 Q6865958 Q3251824 Q1846384 Q11793630 Q1072417 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q2287650 Q1507619 Q737115 Q6578215 Q5333410 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q261746 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q910308 Q1029955 Q1753754 Q1476458 Q15407843 Q2484309 Q642859 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q967762 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1749063 Q1371091 Q3315116 Q20872273 Q655407 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q940135 Q20172329 Q531471 Q274948 Q2305968 Q21384866 Q596123 Q7444340 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q2419581 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q25863345 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q2747647 Q6866295 Q2390270 Q13527933 Q583809 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q1043568 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q13645132 Q636207 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q2003296 Q182762 Q20859386 Q967750 Q2962001 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q783785 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q1072415 Q26000995 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q213107 Q195965 Q6123144 Q327948 Q1763459 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q1591470 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q735015 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q2505890 Q967737 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q6542448 Q2301213 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 Q1658460 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q1752225 Q687908 Q844587 Q786242 Q25860233 Q20877172 Q1434880 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q11204)|c(Q1752346))
action atmost
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
Atmost 1 legislatures and assemblies appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?r <= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?r ) WHERE { { ?x property:P748 ?l . ?x rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q1752346 } UNION { ?x property:P748 ?l . ?x rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q11204 } } GROUP BY ?x } }
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 Chair of the Federal Reserve President of the French Republic Minister for Social Protection Minister of Natural Resources 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 Prime Minister of Estonia Premier of Saskatchewan Economic Secretary to the Treasury 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 United States Secretary of the Air Force 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 United States Secretary of Agriculture Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department United States Secretary of Homeland Security 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 United States Secretary of Education 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 President of the People's Republic of China 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 United States Secretary of the Navy Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan United States Secretary of Health and Human Services municipal executive of Rotterdam president of Bangladesh Secretary of State for Dominion Affairs 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 United States Secretary of Housing and Urban Development 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 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 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 Prime Minister of Vietnam 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 Lord Mayor of Dublin United States Attorney General President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia United States Secretary of Commerce Prime Minister of Algeria Mayor of Mierlo United States Secretary of Labor 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 President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere Prime Minister of Canada President of Iran Minister of Industry Chief of Staff of the United States Army Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Chief of Naval Operations President of the Parliament of Catalonia 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 Chairman of the Joint Chiefs of Staff Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia United States Secretary of the Army 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 United States Secretary of Defense 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 United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China Leader of the Government in the House of Commons United States Secretary of Transportation 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 Librarian of Congress United States Deputy Secretary of State 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 United States Secretary of Veterans Affairs 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 White House Chief of Staff Secretary of State for Exiting the European Union bishop of Amiens Surgeon General of the United States Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
Atmost 1 legislatures and assemblies appointed by Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and President of the People's Republic of China
Prime Minister of Sweden Minister for Foreign Affairs of Sweden President of the People's Republic of China
action atmost
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?x WHERE { FILTER ( ?r <= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?r ) WHERE { { ?x property:appointed_by ?l . ?x rdf:type ontology:occupation . ?l rdf:type ontology:assembly } UNION { ?x property:appointed_by ?l . ?x rdf:type ontology:occupation . ?l rdf:type ontology:legislature } } GROUP BY ?x } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P39
Q502895
USER
How many people held the position of that occupation ?
(c(Q502895),P39,Q687075)
[{'concept': 'Q502895'}, 'P39', 'Q687075']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P39 resource:Q687075 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'position held', 'Prime Minister of Sweden']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:position_held resource:Prime_Minister_of_Sweden . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q687075
SYSTEM
Did you mean Prime Minister of Sweden ?
(c(Q502895),P39,Q687075) (c(Q502895),P39,Q1749063) (c(Q502895),P39,Q655407)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q687075'] [{'concept': 'Q502895'}, 'P39', 'Q1749063'] [{'concept': 'Q502895'}, 'P39', 'Q655407']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P39 resource:Q687075 . ?z rdf:type ontology:Q502895 }
Did you mean Prime Minister of Sweden ?
Prime Minister 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', "President of the People's Republic of China"]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:position_held resource:Prime_Minister_of_Sweden . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P39,Q687075)
[{'concept': 'Q502895'}, 'P39', 'Q687075']
[{'concept': 'common name'}, 'position held', 'Prime Minister of Sweden']
[]
SYSTEM
42
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
(c(Q502895),P39,Q687075)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q687075']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P39 resource:Q687075 . ?z rdf:type ontology:Q502895 }
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
42
[{'concept': 'common name'}, 'position held', 'Prime Minister of Sweden']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:position_held resource:Prime_Minister_of_Sweden . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of atleast 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?k ) WHERE { ?p rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 . ?v property:P417 ?p } GROUP BY ?p } . FILTER ( ?k >= 2 ) }
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?k ) WHERE { ?p rdf:type ontology:common_name . ?v rdf:type ontology:occupation . ?v property:patron_saint ?p } GROUP BY ?p } . FILTER ( ?k >= 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(c(Q12737077),P417,c(Q502895))
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the patron saints of atleast 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?k ) WHERE { ?p rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 . ?v property:P417 ?p } GROUP BY ?p } . FILTER ( ?k >= 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
Isidore of Seville, Catherine of Siena and Jerome are the patron saints of atleast 2 occupations
Isidore of Seville Catherine of Siena Jerome
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?k ) WHERE { ?p rdf:type ontology:common_name . ?v rdf:type ontology:occupation . ?v property:patron_saint ?p } GROUP BY ?p } . FILTER ( ?k >= 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
How many abstract beings had atmost 1 person as the dubbing artist ?
(c(Q15619164),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 1
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z property:P725 ?v . ?z rdf:type ontology:Q15619164 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?q <= 1 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 1
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z property:voice_actor ?v . ?z rdf:type ontology:abstract_being . ?v rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?q <= 1 ) }
[]
common name abstract being
SYSTEM
92
Q15537062 Q819724 Q22079436 Q15502715 Q21006905 Q11339793 Q820011 Q819644 Q15648502 Q15502566 Q638630 Q15728188 Q15648510 Q1134585 Q15728185 Q820088 Q4701169 Q15884361 Q15956614 Q2079562 Q1161155 Q819500 Q27691284 Q3805994 Q15632347 Q15632342 Q15632343 Q11331437 Q15632348 Q819748 Q21027734 Q15502591 Q682371 Q15990697 Q15958700 Q15502577 Q2779377 Q2558257 Q15712269 Q15502620 Q27334870 Q27265636 Q49352 Q552682 Q5957609 Q728718 Q15502538 Q15490560 Q27300001 Q849700 Q15502637 Q27613927 Q819804 Q16995485 Q18292066 Q15502733 Q15956634 Q15970363 Q3605971 Q1076302 Q15502526 Q21030278 Q15990717 Q613241 Q15966747 Q18292143 Q18934600 Q27493776 Q3201327 Q819544 Q15961663 Q909655 Q16005386 Q16003600 Q15731593 Q17634983 Q2291498 Q849758 Q27680001 Q2332475 Q1200192 Q2082802 Q4000019 Q15502552 Q3937809 Q15502464 Q2738631 Q15846552 Q5480 Q935079 Q18468944 Q15537046
(c(Q15619164),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 1
[ANSWER]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z property:P725 ?v . ?z rdf:type ontology:Q15619164 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?q <= 1 ) }
Manami Tamura Lady Vashj Maz Kanata Nana Nishigaki Lionel Fusco My Melody Sylvanas Windrunner Kael'thas Sunstrider Haruka Takayama Ayano Sugiura Larry Laffer Renge Miyauchi Yuu Sonoda Hiroshi Nohara Hotaru Ichijo Thrall Akira Okuzaki Honoka Kōsaka Tamako Kitashirakawa SHODAN MZ/X Grom Hellscream Alma Diaz Jacqueline Natla Haruka Nishida Kana Nakamachi Amano Saki Pikmin Mika Kujiin Maiev Shadowsong Young Link Sakurako Ohmuro Index Kotone Noda Dera Mochimazzwi Chitose Ikeda Mimi Tachikawa Rose Mitsuki Sonoda Rise Matsumoto Miku Hatsune Append (Dark) Len Kagamine Gena the Crocodile Hatsune Miku Rin Kagamine Rukia Kuchiki Yui Funami Sawako Yamanaka Adam Jensen Deathwing Akane Akaza Thomas Burke Malfurion Stormrage Hiro Takachiho Sora Takenouchi Mirakurun Mochizō Ōji Larson Conway Aerie Isaac Kleiner Kyōko Toshinō Toon Link Konari Koshigaya el niño rata Seiji Amasawa Koushirou "Izzy" Izumi Asuna Yūki Miku Hatsune Append (Sweet) Kōzō Fuyutsuki Illidan Stormrage Shijuku Tsukishima Kagamine Rin/Len Kazuho Miyauchi Lizuka Yuzu Shizuku Minami Christopher Thorndyke Taichi Yagami Vol'jin Danny Burke Yamato "Matt" Ishida Midna Sakura Kinomoto Tsumugi Kotobuki Chinatsu Yoshikawa Ritsu Tainaka Akari Akaza Anna Williams Natsumi Koshigaya Bart Simpson SpongeBob SquarePants Kirito Kirino Kosaka
92
action count
action atmost
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 1
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z property:voice_actor ?v . ?z rdf:type ontology:abstract_being . ?v rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?q <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q687075
P1313
Q15617994
USER
Which administrative territory has Prime Minister of Sweden as position of head of government ?
(c(Q15617994),P1313,Q687075)
action filter_type
action find_reverse
entity Q687075
relation P1313
type Q15617994
[{'concept': 'Q15617994'}, 'P1313', 'Q687075']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q687075 . ?g rdf:type ontology:Q15617994 }
Prime Minister of Sweden
action filter_type
action find_reverse
entity Prime Minister of Sweden
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'Prime Minister of Sweden']
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Prime_Minister_of_Sweden . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(c(Q15617994),P1313,Q687075)
action filter_type
action find_reverse
entity Q687075
relation P1313
type Q15617994
The [ANSWER] has Prime Minister of [ANSWER] as position of head of government
[{'concept': 'Q15617994'}, 'P1313', 'Q687075']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q687075 . ?g rdf:type ontology:Q15617994 }
Sweden
The Sweden has Prime Minister of Sweden as position of head of government
Sweden
action filter_type
action find_reverse
entity Prime Minister of Sweden
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'Prime Minister of Sweden']
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Prime_Minister_of_Sweden . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q687075
P1001
Q15617994
USER
Which administrative territory comes under the supervision of that occupation ?
(Q34,P1001,c(Q15617994))
action filter_type
action find
entity Q687075
relation P1001
type Q15617994
['Q34', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q687075 property:P1001 ?g . ?g rdf:type ontology:Q15617994 }
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
['Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q34,P1001,c(Q15617994))
action filter_type
action find
entity Q687075
relation P1001
type Q15617994
[ANSWER] comes under the supervision of that occupation
['Q34', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q687075 property:P1001 ?g . ?g rdf:type ontology:Q15617994 }
Sweden
Sweden comes under the supervision 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
['Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9310073 Q687075
P27 P1001
Q15617994
USER
Which administrative territories apply to jurisdiction of Prime Minister of Sweden or are the countries of citizenship of Juri Sawaki ?
OR((Q687075,P1001,c(Q15617994)), (Q9310073,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q687075
relation P1001
action find
entity Q9310073
relation P27
type Q15617994
{'OR': [['Q687075', 'P1001', {'concept': 'Q15617994'}], ['Q9310073', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q687075 property:P1001 ?l } UNION { resource:Q9310073 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Juri Sawaki Prime Minister of Sweden
action filter_type
action union
action find
entity Prime Minister of Sweden
relation applies to jurisdiction
action find
entity Juri Sawaki
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Juri Sawaki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?l } UNION { resource:Juri_Sawaki property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q34
SYSTEM
Japan, Sweden
Q17 Q34
OR((Q687075,P1001,c(Q15617994)), (Q9310073,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q687075
relation P1001
action find
entity Q9310073
relation P27
type Q15617994
[ANSWERS] apply to jurisdiction of Prime Minister of Sweden or are the countries of citizenship of Juri Sawaki
{'OR': [['Q687075', 'P1001', {'concept': 'Q15617994'}], ['Q9310073', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q687075 property:P1001 ?l } UNION { resource:Q9310073 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Japan Sweden
Japan and Sweden apply to jurisdiction of Prime Minister of Sweden or are the countries of citizenship of Juri Sawaki
Japan Sweden
action filter_type
action union
action find
entity Prime Minister of Sweden
relation applies to jurisdiction
action find
entity Juri Sawaki
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Prime Minister of Sweden', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Juri Sawaki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Prime_Minister_of_Sweden property:applies_to_jurisdiction ?l } UNION { resource:Juri_Sawaki property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1806607
P530
Q15617994
USER
Do Oropedio Lasithiou have ambassadorial relations with those ones ?
(Q1806607,P530,Q17) (Q1806607,P530,Q34)
action is_in
entity prev_answer
action find
entity Q1806607
relation P530
['Q1806607', 'P530', 'Q17'] ['Q1806607', 'P530', 'Q34']
ASK WHERE { resource:Q1806607 property:P530 ?l . VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q34 ) } }
Oropedio Lasithiou
action is_in
entity prev_answer
action find
entity Oropedio Lasithiou
relation diplomatic relation
['Oropedio Lasithiou', 'diplomatic relation', 'Japan'] ['Oropedio Lasithiou', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Oropedio_Lasithiou property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Japan ) ( resource:Sweden ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1806607,P530,Q17) (Q1806607,P530,Q34)
action is_in
entity prev_answer
action find
entity Q1806607
relation P530
[ANSWER]
['Q1806607', 'P530', 'Q17'] ['Q1806607', 'P530', 'Q34']
ASK WHERE { resource:Q1806607 property:P530 ?l . VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q34 ) } }
No
action is_in
entity prev_answer
action find
entity Oropedio Lasithiou
relation diplomatic relation
['Oropedio Lasithiou', 'diplomatic relation', 'Japan'] ['Oropedio Lasithiou', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Oropedio_Lasithiou property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Japan ) ( resource:Sweden ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q44248 Q5776
P20
Q56061
USER
Did Jerome expire Bethlehem ?
(Q44248,P20,Q5776)
action is_in
entity Q5776
action find
entity Q44248
relation P20
['Q44248', 'P20', 'Q5776']
ASK WHERE { resource:Q44248 property:P20 resource:Q5776 }
Jerome Bethlehem
action is_in
entity Bethlehem
action find
entity Jerome
relation place of death
['Jerome', 'place of death', 'Bethlehem']
ASK WHERE { resource:Jerome property:place_of_death resource:Bethlehem }
[]
administrative territorial entity
SYSTEM
YES
(Q44248,P20,Q5776)
action is_in
entity Q5776
action find
entity Q44248
relation P20
[ANSWER]
['Q44248', 'P20', 'Q5776']
ASK WHERE { resource:Q44248 property:P20 resource:Q5776 }
Yes
action is_in
entity Bethlehem
action find
entity Jerome
relation place of death
['Jerome', 'place of death', 'Bethlehem']
ASK WHERE { resource:Jerome property:place_of_death resource:Bethlehem }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q836
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with around the same number of administrative territories as Myanmar ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?w ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q836 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . FILTER ( ?w = ?e ) }
Myanmar
action count
action approx
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_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?w ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Myanmar property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w = ?e ) }
[]
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(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?w ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q836 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . FILTER ( ?w = ?e ) }
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 find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?w ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Myanmar property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w = ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q739
P530
Q15617994 Q15617994
USER
And also tell me about Colombia?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?v ) WHERE { ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?y property:P530 ?e } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q739 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?i ) }
Colombia
action count
action approx
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_type
action find
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?v ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?e } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Colombia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
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 Q17 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(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?v ) WHERE { ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?y property:P530 ?e } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Q739 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?i ) }
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 Japan 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
148
action count
action approx
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_type
action find
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?v ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?e } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { resource:Colombia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around the same number of administrative territories as Grenada ?
(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 Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?s ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?n ) }
Grenada
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?s ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?n ) }
[]
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 Q769
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with around the same number of administrative territories as Grenada
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?s ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?n ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with around the same number of administrative territories as Grenada
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?s ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q778
P530
Q15617994 Q1048835
USER
And also tell me about The Bahamas?
(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 Q778
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?j ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q778 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?j = ?v ) }
The Bahamas
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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?j ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?j = ?v ) }
[]
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 Q778
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?j ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q778 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } . FILTER ( ?j = ?v ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand 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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?j ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } . FILTER ( ?j = ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with exactly 4 political territories ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?f ) WHERE { ?e property:P530 ?d . ?e rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?f = 4 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?f ) WHERE { ?e property:diplomatic_relation ?d . ?e rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?f = 4 ) }
[]
political territorial entity political territorial entity
Q16
SYSTEM
Canada
Q16
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[ANSWER] have diplomatic associations with exactly 4 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?f ) WHERE { ?e property:P530 ?d . ?e rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?f = 4 ) }
Canada
Canada have diplomatic associations with exactly 4 political territories
Canada
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?f ) WHERE { ?e property:diplomatic_relation ?d . ?e rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?f = 4 ) }
[]