Simple Question (Direct)
Simple Question
Q729363
P1412
Q34770
USER
Which language can Jack Judge understand ?
(Q729363,P1412,c(Q34770))
action filter_type
action find
entity Q729363
relation P1412
type Q34770
['Q729363', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q729363 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
Jack Judge
action filter_type
action find
entity Jack Judge
relation languages spoken, written or signed
type language
['Jack Judge', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Jack_Judge property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q729363,P1412,c(Q34770))
action filter_type
action find
entity Q729363
relation P1412
type Q34770
Jack Judge can understand [ANSWER]
['Q729363', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q729363 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
English
Jack Judge can understand English
English
action filter_type
action find
entity Jack Judge
relation languages spoken, written or signed
type language
['Jack Judge', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Jack_Judge property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q729363
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q1860,P19,c(Q56061))
action filter_type
action find
entity Q729363
relation P19
type Q56061
['Q1860', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q729363 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Jack Judge
action filter_type
action find
entity Jack Judge
relation place of birth
type administrative territorial entity
['English', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jack_Judge property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1857563
SYSTEM
Oldbury
Q1857563
(Q1860,P19,c(Q56061))
action filter_type
action find
entity Q729363
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q1860', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q729363 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Oldbury
Oldbury is the place of birth of that person
Oldbury
action filter_type
action find
entity Jack Judge
relation place of birth
type administrative territorial entity
['English', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jack_Judge property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q729363
P106
Q12737077
USER
What do that person do for a living ?
(Q1857563,P106,c(Q12737077))
action filter_type
action find
entity Q729363
relation P106
type Q12737077
['Q1857563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q729363 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Jack Judge
action filter_type
action find
entity Jack Judge
relation occupation
type occupation
['Oldbury', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Jack_Judge property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q753110 Q177220
SYSTEM
songwriter, singer
Q753110 Q177220
(Q1857563,P106,c(Q12737077))
action filter_type
action find
entity Q729363
relation P106
type Q12737077
The [ANSWERS] that person do for a living
['Q1857563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q729363 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
songwriter singer
The songwriter and singer that person do for a living
songwriter singer
action filter_type
action find
entity Jack Judge
relation occupation
type occupation
['Oldbury', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Jack_Judge property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21383592
P748
Q1307214 Q502895 Q12737077
USER
How many occupations did around the same number of forms of government and people appoint as municipal executive of Haarlem ?
(c(Q12737077),P748,c(Q1307214)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q21383592
relation P748
type Q1307214
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?z WHERE { { ?z property:P748 ?b . ?z rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q1307214 } UNION { ?z property:P748 ?b . ?z rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { { ?o rdf:type ontology:Q1307214 } UNION { ?o rdf:type ontology:Q502895 } } . resource:Q21383592 property:P748 ?o } } }
municipal executive of Haarlem
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity municipal executive of Haarlem
relation appointed by
type form of government
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?z WHERE { { ?z property:appointed_by ?b . ?z rdf:type ontology:occupation . ?b rdf:type ontology:form_of_government } UNION { ?z property:appointed_by ?b . ?z rdf:type ontology:occupation . ?b rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { { ?o rdf:type ontology:form_of_government } UNION { ?o rdf:type ontology:common_name } } . resource:municipal_executive_of_Haarlem property:appointed_by ?o } } }
[]
form of government common name occupation
SYSTEM
265
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q2666591 Q191954 Q6865958 Q3251824 Q11793630 Q1072417 Q27650822 Q21371106 Q735575 Q2287650 Q737115 Q6578215 Q5333410 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q261746 Q20867494 Q740126 Q21013163 Q4377222 Q7241304 Q15304810 Q1511951 Q191827 Q1029955 Q1476458 Q15407843 Q642859 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q967762 Q15305714 Q20872382 Q1749063 Q20872273 Q655407 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q12376089 Q19056310 Q890030 Q27516521 Q1161813 Q20891385 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q940135 Q20172329 Q274948 Q2305968 Q21384866 Q596123 Q7444340 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q15971570 Q1430943 Q3556884 Q3058109 Q1655971 Q12270252 Q2419581 Q1571023 Q1339242 Q796897 Q1550276 Q273884 Q208487 Q4294939 Q25863345 Q20130623 Q1054799 Q21383592 Q2747647 Q6866295 Q2390270 Q13527933 Q4377230 Q7240361 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q1043568 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q3564227 Q13645132 Q636207 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q2003296 Q20859386 Q967750 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q687075 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q866680 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q783785 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q1072415 Q26000995 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q6123144 Q327948 Q1763459 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1591470 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q735015 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q1195270 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q1029968 Q2297543 Q4122271 Q2505890 Q967737 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3259469 Q1819381 Q1052201 Q7574256 Q26209358 Q6542448 Q2301213 Q5097071 Q20748654 Q19328451 Q6865981 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q26721218 Q1658460 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q844587 Q786242 Q20877172 Q1434880 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q1307214)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q21383592
relation P748
type Q1307214
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?z WHERE { { ?z property:P748 ?b . ?z rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q1307214 } UNION { ?z property:P748 ?b . ?z rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { { ?o rdf:type ontology:Q1307214 } UNION { ?o rdf:type ontology:Q502895 } } . resource:Q21383592 property:P748 ?o } } }
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 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 Prime Minister of Pakistan United States Secretary of the Interior 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 President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach United States Secretary of Agriculture European Commissioner for the Environment Prime Minister of South Korea United States Secretary of Homeland Security 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 United States Secretary of Education Prime Minister of Libya municipal executive of Coevorden Minister for Foreign Affairs of Sweden municipal executive of Boxmeer President of the People's Republic of China 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 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 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 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 President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands 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 Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for International Trade 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 Prime Minister of Greece Premier of Prince Edward Island 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 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 Mayor of Mierlo United States Secretary of Labor 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 Prime Minister of Sweden Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland 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 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 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 United States Secretary of the Army Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications 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 Prime Minister of Croatia 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 Prime Minister of Poland 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 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 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 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 Prime Minister of Spain White House Chief of Staff 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
265
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity municipal executive of Haarlem
relation appointed by
type form of government
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?z WHERE { { ?z property:appointed_by ?b . ?z rdf:type ontology:occupation . ?b rdf:type ontology:form_of_government } UNION { ?z property:appointed_by ?b . ?z rdf:type ontology:occupation . ?b rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { { { ?o rdf:type ontology:form_of_government } UNION { ?o rdf:type ontology:common_name } } . resource:municipal_executive_of_Haarlem property:appointed_by ?o } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q182762
P748
Q1307214 Q502895 Q12737077
USER
And how about Prime Minister of Algeria?
(c(Q12737077),P748,c(Q1307214)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q182762
relation P748
type Q1307214
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q182762 property:P748 ?k . { { ?k rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q1307214 } } } } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1307214 ) ( ontology:Q502895 ) } } GROUP BY ?h } }
Prime Minister of Algeria
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Prime Minister of Algeria
relation appointed by
type form of government
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Prime_Minister_of_Algeria property:appointed_by ?k . { { ?k rdf:type ontology:common_name } UNION { ?k rdf:type ontology:form_of_government } } } } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:form_of_government ) ( ontology:common_name ) } } GROUP BY ?h } }
[]
form of government common name occupation
SYSTEM
52
Q1846384 Q1355456 Q2631987 Q1507619 Q14984399 Q910308 Q1753754 Q2484309 Q2012061 Q7444357 Q7444352 Q943379 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q835586 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q583809 Q565424 Q862559 Q182762 Q2962001 Q1060844 Q3397406 Q691615 Q152814 Q213107 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q3315134 Q162754 Q217217 Q3777749 Q111784 Q1362216 Q1281611 Q1752225 Q687908 Q25860233
(c(Q12737077),P748,c(Q1307214)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q182762
relation P748
type Q1307214
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q182762 property:P748 ?k . { { ?k rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q1307214 } } } } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1307214 ) ( ontology:Q502895 ) } } GROUP BY ?h } }
Secretary of State for Wales Lord Chamberlain Attorney General for England and Wales Deputy Prime Minister of the United Kingdom Secretary of State for Environment, Food and Rural Affairs Lord Privy Seal Master of the Rolls Secretary of State for the Home Department Leader of the House of Lords Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Chancellor of the Exchequer Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community Secretary of State for Education Prime Minister of Singapore Solicitor General for England and Wales Prime Minister of the Bahamas Prime Minister of Malaysia Prime Minister of Algeria Chief of the Defence Staff Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta Prime Minister of Belgium Governor of Gibraltar Prime Minister of Georgia First Lord of the Treasury Prime Minister of Armenia Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Minister for Women and Equalities Chancellor of the Duchy of Lancaster Lord Chancellor Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Lieutenant Governor of Jersey Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Secretary of State for Exiting the European Union
52
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Prime Minister of Algeria
relation appointed by
type form of government
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Prime_Minister_of_Algeria property:appointed_by ?k . { { ?k rdf:type ontology:common_name } UNION { ?k rdf:type ontology:form_of_government } } } } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:form_of_government ) ( ontology:common_name ) } } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1857563
P20
Q502895
USER
Which person has Oldbury as the location of death ?
(c(Q502895),P20,Q1857563)
action filter_type
action find_reverse
entity Q1857563
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1857563']
SELECT DISTINCT ?c WHERE { ?c property:P20 resource:Q1857563 . ?c rdf:type ontology:Q502895 }
Oldbury
action filter_type
action find_reverse
entity Oldbury
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Oldbury']
SELECT DISTINCT ?c WHERE { ?c property:place_of_death resource:Oldbury . ?c rdf:type ontology:common_name }
[]
common name
Q5081746
SYSTEM
Charles Preece
Q5081746
(c(Q502895),P20,Q1857563)
action filter_type
action find_reverse
entity Q1857563
relation P20
type Q502895
[ANSWER] has Oldbury as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q1857563']
SELECT DISTINCT ?c WHERE { ?c property:P20 resource:Q1857563 . ?c rdf:type ontology:Q502895 }
Charles Preece
Charles Preece has Oldbury as the location of death
Charles Preece
action filter_type
action find_reverse
entity Oldbury
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Oldbury']
SELECT DISTINCT ?c WHERE { ?c property:place_of_death resource:Oldbury . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5081746
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q5081746,P27,c(Q15617994))
action filter_type
action find
entity Q5081746
relation P27
type Q15617994
['Q5081746', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q5081746 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Charles Preece
action filter_type
action find
entity Charles Preece
relation country of citizenship
type designation for an administrative territorial entity
['Charles Preece', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Preece property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5081746,P27,c(Q15617994))
action filter_type
action find
entity Q5081746
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q5081746', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q5081746 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person a civilian of
United Kingdom
action filter_type
action find
entity Charles Preece
relation country of citizenship
type designation for an administrative territorial entity
['Charles Preece', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Preece property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with atleast 120 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?v ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?v >= 120 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?v ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?v >= 120 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[ANSWER] is known to have diplomatic connections with atleast 120 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?v ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?v >= 120 ) }
Germany
Germany is known to have diplomatic connections with atleast 120 administrative territories
Germany
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?v ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?v >= 120 ) }
[]