Simple Question (Direct)
Simple Question
Q11495036
P9
Q502895
USER
Who is Jiin-hosshinnō a sibling of ?
(Q11495036,P9,c(Q502895))
action filter_type
action find
entity Q11495036
relation P9
type Q502895
['Q11495036', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q11495036 property:P9 ?m }
Jiin-hosshinnō
action filter_type
action find
entity Jiin-hosshinnō
relation sister
type common name
['Jiin-hosshinnō', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Jiin-hosshinnō property:sister ?m }
[]
common name
Q7141819
SYSTEM
Teishi-naishinnō
Q7141819
(Q11495036,P9,c(Q502895))
action filter_type
action find
entity Q11495036
relation P9
type Q502895
[ANSWER] is Jiin-hosshinnō a sibling of
['Q11495036', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q11495036 property:P9 ?m }
Teishi-naishinnō
Teishi-naishinnō is Jiin-hosshinnō a sibling of
Teishi-naishinnō
action filter_type
action find
entity Jiin-hosshinnō
relation sister
type common name
['Jiin-hosshinnō', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Jiin-hosshinnō property:sister ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11495036
P22
Q502895
USER
Who was the dad of Jiin-hosshinnō ?
(Q11495036,P22,c(Q502895))
action filter_type
action find
entity Q11495036
relation P22
type Q502895
['Q11495036', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q11495036 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Jiin-hosshinnō
action filter_type
action find
entity Jiin-hosshinnō
relation father
type common name
['Jiin-hosshinnō', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Jiin-hosshinnō property:father ?h . ?h rdf:type ontology:common_name }
[]
common name
Q349440
SYSTEM
Go-Yōzei
Q349440
(Q11495036,P22,c(Q502895))
action filter_type
action find
entity Q11495036
relation P22
type Q502895
The dad of Jiin-hosshinnō was Emperor [ANSWER]
['Q11495036', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q11495036 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Go-Yōzei
The dad of Jiin-hosshinnō was Emperor Go-Yōzei
Go-Yōzei
action filter_type
action find
entity Jiin-hosshinnō
relation father
type common name
['Jiin-hosshinnō', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Jiin-hosshinnō property:father ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2553789
Q502895
USER
And how about Henry Carey, 1st Baron Hunsdon?
(Q2553789,P22,c(Q502895))
action filter_type
action find
entity Q2553789
relation P22
type Q502895
['Q2553789', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q2553789 property:P22 ?v . ?v rdf:type ontology:Q502895 }
Henry Carey, 1st Baron Hunsdon
action filter_type
action find
entity Henry Carey, 1st Baron Hunsdon
relation father
type common name
['Henry Carey, 1st Baron Hunsdon', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Carey,_1st_Baron_Hunsdon property:father ?v . ?v rdf:type ontology:common_name }
[]
common name
Q2577246
SYSTEM
William Carey
Q2577246
(Q2553789,P22,c(Q502895))
action filter_type
action find
entity Q2553789
relation P22
type Q502895
[ANSWER]
['Q2553789', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q2553789 property:P22 ?v . ?v rdf:type ontology:Q502895 }
William Carey
William Carey
action filter_type
action find
entity Henry Carey, 1st Baron Hunsdon
relation father
type common name
['Henry Carey, 1st Baron Hunsdon', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Carey,_1st_Baron_Hunsdon property:father ?v . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q220971
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than marimba ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P1303 ?h . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q34379 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:Q34379 . resource:Q220971 property:P1303 ?a } } . FILTER ( ?n > ?g ) }
marimba
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:instrument ?h . ?m rdf:type ontology:common_name . ?h rdf:type ontology:musical_instrument } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:musical_instrument . resource:marimba property:instrument ?a } } . FILTER ( ?n > ?g ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than marimba
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P1303 ?h . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q34379 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:Q34379 . resource:Q220971 property:P1303 ?a } } . FILTER ( ?n > ?g ) }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ drum kit electronic keyboard drum
Piano, harpsichord and viola can greater number of people perform with than marimba
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:instrument ?h . ?m rdf:type ontology:common_name . ?h rdf:type ontology:musical_instrument } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:musical_instrument . resource:marimba property:instrument ?a } } . FILTER ( ?n > ?g ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5994 Q81982 Q80284
P425
Q12737077
USER
Which occupations do piano, harpsichord and viola belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q80284)
action union
action filter_type
action find_reverse
entity Q81982
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q12737077 . ?z property:P425 resource:Q81982 } UNION { ?z property:P425 resource:Q5994 . ?z rdf:type ontology:Q12737077 } }
piano harpsichord viola
action union
action filter_type
action find_reverse
entity harpsichord
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:occupation . ?z property:field_of_this_occupation resource:harpsichord } UNION { ?z property:field_of_this_occupation resource:piano . ?z rdf:type ontology:occupation } }
[]
occupation
Q885122 Q486748 Q5371902
SYSTEM
piano maker, pianist, harpsichordist
Q486748 Q885122 Q5371902 Q899758
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q80284)
action union
action filter_type
action find_reverse
entity Q81982
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
Piano , harpsichord and viola belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q12737077 . ?z property:P425 resource:Q81982 } UNION { ?z property:P425 resource:Q5994 . ?z rdf:type ontology:Q12737077 } }
pianist piano maker harpsichordist violist
Piano , harpsichord and viola belong to the piano maker, pianist and harpsichordist
piano maker pianist harpsichordist
action union
action filter_type
action find_reverse
entity harpsichord
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:occupation . ?z property:field_of_this_occupation resource:harpsichord } UNION { ?z property:field_of_this_occupation resource:piano . ?z rdf:type ontology:occupation } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P1303
Q215380 Q16979650
USER
How many bands and sibling groups play piano ?
(c(Q215380),P1303,Q5994) (c(Q16979650),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q16979650
[{'concept': 'Q215380'}, 'P1303', 'Q5994'] [{'concept': 'Q16979650'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ontology:Q215380 . ?o property:P1303 resource:Q5994 } UNION { ?o property:P1303 resource:Q5994 . ?o rdf:type ontology:Q16979650 } }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type band
action filter_type
action find_reverse
entity piano
relation instrument
type sibling group
[{'concept': 'band'}, 'instrument', 'piano'] [{'concept': 'sibling group'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ontology:band . ?o property:instrument resource:piano } UNION { ?o property:instrument resource:piano . ?o rdf:type ontology:sibling_group } }
[]
band sibling group
SYSTEM
8 bands and 5 sibling groups
Q681946 Q840016 Q49907 Q15135642 Q1736576 Q15862 Q19668388 Q6772002 Q3743009 Q825336 Q7367987 Q19958184 Q1266374
(c(Q215380),P1303,Q5994) (c(Q16979650),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q16979650
[ANSWER]
[{'concept': 'Q215380'}, 'P1303', 'Q5994'] [{'concept': 'Q16979650'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ontology:Q215380 . ?o property:P1303 resource:Q5994 } UNION { ?o property:P1303 resource:Q5994 . ?o rdf:type ontology:Q16979650 } }
Collyer brothers Duo Vela Aloys and Alfons Kontarsky Carles & Sofia Piano Duo Katia and Marielle Labèque Queen Christina and Michelle Naughton Marlowe Brothers Ferrante & Teicher The Piano Guys Rose and Ottilie Sutro It Was Romance Duo Tal & Groethuysen
8 bands and 5 sibling groups
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type band
action filter_type
action find_reverse
entity piano
relation instrument
type sibling group
[{'concept': 'band'}, 'instrument', 'piano'] [{'concept': 'sibling group'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ontology:band . ?o property:instrument resource:piano } UNION { ?o property:instrument resource:piano . ?o rdf:type ontology:sibling_group } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q73341
P748
Q895526 Q11204 Q12737077
USER
Which occupations are appointed by approximately the same number of authority organs and legislatures as Lord Mayor of London ?
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q73341
relation P748
type Q895526
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?i WHERE { VALUES ( ?p ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?v rdf:type ?p } GROUP BY ?i } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q73341 property:P748 ?x . { VALUES ( ?y ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?x rdf:type ?y } } } }
Lord Mayor of London
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Lord Mayor of London
relation appointed by
type authority organ
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?i WHERE { VALUES ( ?p ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?v rdf:type ?p } GROUP BY ?i } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Lord_Mayor_of_London property:appointed_by ?x . { VALUES ( ?y ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?x rdf:type ?y } } } }
[]
authority organ legislature occupation
Q687075 Q1749063 Q22955080
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, president of FIFA
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q191954 Q6865958 Q3251824 Q1846384 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q737115 Q6578215 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q910308 Q1753754 Q1476458 Q15407843 Q2484309 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1749063 Q1371091 Q3315116 Q20872273 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q20172329 Q531471 Q274948 Q21384866 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q6866295 Q2390270 Q13527933 Q583809 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q182762 Q20859386 Q2962001 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q213107 Q195965 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q2505890 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q5097071 Q20748654 Q19328451 Q6865981 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1281611 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q26721218 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q1752225 Q687908 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q73341
relation P748
type Q895526
type Q11204
[ANSWERS] are appointed by approximately the same number of authority organs and legislatures as Lord Mayor of London
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?i WHERE { VALUES ( ?p ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?v rdf:type ?p } GROUP BY ?i } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q73341 property:P748 ?x . { VALUES ( ?y ) { ( ontology:Q11204 ) ( ontology:Q895526 ) } . ?x rdf:type ?y } } } }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer Minister for Education and Skills municipal executive of Eindhoven President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Estonia Premier of Saskatchewan Tánaiste Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach Lord Privy Seal Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Prime Minister of Libya municipal executive of Coevorden Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer Governor of İstanbul President of Malta Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan municipal executive of Rotterdam Prime Minister of Portugal municipal executive of Amsterdam Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of the Generalitat of Catalonia Minister of Communications President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade municipal executive of Gorinchem Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere Prime Minister of Canada President of Iran Minister of Industry Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Prime Minister of Belgium Governor of Gibraltar Secretary of State of Puerto Rico President of Israel Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan Leader of the Government in the House of Commons Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs municipal executive of Woerden Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec municipal executive of Almere President of Nauru Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and president of FIFA are appointed by approximately the same number of authority organs and legislatures as Lord Mayor of London
Prime Minister of Sweden Minister for Foreign Affairs of Sweden president of FIFA
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Lord Mayor of London
relation appointed by
type authority organ
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?i WHERE { VALUES ( ?p ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?v rdf:type ?p } GROUP BY ?i } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Lord_Mayor_of_London property:appointed_by ?x . { VALUES ( ?y ) { ( ontology:legislature ) ( ontology:authority_organ ) } . ?x rdf:type ?y } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q7240360
P748
Q895526 Q11204 Q12737077
USER
And what about Premier of Nova Scotia?
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q7240360
relation P748
type Q895526
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?w WHERE { { ?w property:P748 ?k . ?w rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q895526 } UNION { ?w rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q11204 . ?w property:P748 ?k } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q7240360 property:P748 ?s . { { ?s rdf:type ontology:Q11204 } UNION { ?s rdf:type ontology:Q895526 } } } } . FILTER ( ?h = ?r ) }
Premier of Nova Scotia
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Premier of Nova Scotia
relation appointed by
type authority organ
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?w WHERE { { ?w property:appointed_by ?k . ?w rdf:type ontology:occupation . ?k rdf:type ontology:authority_organ } UNION { ?w rdf:type ontology:occupation . ?k rdf:type ontology:legislature . ?w property:appointed_by ?k } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Premier_of_Nova_Scotia property:appointed_by ?s . { { ?s rdf:type ontology:legislature } UNION { ?s rdf:type ontology:authority_organ } } } } . FILTER ( ?h = ?r ) }
[]
authority organ legislature occupation
Q687075 Q1749063 Q22955080
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, president of FIFA
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q191954 Q6865958 Q3251824 Q1846384 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q737115 Q6578215 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q910308 Q1753754 Q1476458 Q15407843 Q2484309 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1749063 Q1371091 Q3315116 Q20872273 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q6572133 Q796593 Q6865833 Q2660943 Q1006398 Q6865770 Q20172329 Q531471 Q274948 Q21384866 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q6866295 Q2390270 Q13527933 Q583809 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q475658 Q7574264 Q6866264 Q6865750 Q7240360 Q182762 Q20859386 Q2962001 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q213107 Q195965 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q2505890 Q6865756 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q5097071 Q20748654 Q19328451 Q6865981 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1281611 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q26721218 Q628102 Q17058425 Q6865902 Q738695 Q20128098 Q1752225 Q687908 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q7240360
relation P748
type Q895526
type Q11204
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?w WHERE { { ?w property:P748 ?k . ?w rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q895526 } UNION { ?w rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q11204 . ?w property:P748 ?k } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q7240360 property:P748 ?s . { { ?s rdf:type ontology:Q11204 } UNION { ?s rdf:type ontology:Q895526 } } } } . FILTER ( ?h = ?r ) }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer Minister for Education and Skills municipal executive of Eindhoven President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Estonia Premier of Saskatchewan Tánaiste Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach Lord Privy Seal Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Prime Minister of Libya municipal executive of Coevorden Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer Governor of İstanbul President of Malta Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan municipal executive of Rotterdam Prime Minister of Portugal municipal executive of Amsterdam Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada President of Austria Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of the Generalitat of Catalonia Minister of Communications President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade municipal executive of Gorinchem Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere Prime Minister of Canada President of Iran Minister of Industry Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Prime Minister of Belgium Governor of Gibraltar Secretary of State of Puerto Rico President of Israel Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan Leader of the Government in the House of Commons Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs municipal executive of Woerden Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec municipal executive of Almere President of Nauru Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
Prime Minister of Sweden Minister for Foreign Affairs of Sweden president of FIFA
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Premier of Nova Scotia
relation appointed by
type authority organ
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) ?w WHERE { { ?w property:appointed_by ?k . ?w rdf:type ontology:occupation . ?k rdf:type ontology:authority_organ } UNION { ?w rdf:type ontology:occupation . ?k rdf:type ontology:legislature . ?w property:appointed_by ?k } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Premier_of_Nova_Scotia property:appointed_by ?s . { { ?s rdf:type ontology:legislature } UNION { ?s rdf:type ontology:authority_organ } } } } . FILTER ( ?h = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P1303
Q43229 Q215380
USER
How many organizations or bands can play piano ?
(c(Q43229),P1303,Q5994) (c(Q215380),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q43229
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
[{'concept': 'Q43229'}, 'P1303', 'Q5994'] [{'concept': 'Q215380'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y rdf:type ?v . VALUES ( ?v ) { ( ontology:Q43229 ) ( ontology:Q215380 ) } }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type organization
action filter_type
action find_reverse
entity piano
relation instrument
type band
[{'concept': 'organization'}, 'instrument', 'piano'] [{'concept': 'band'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y rdf:type ?v . VALUES ( ?v ) { ( ontology:organization ) ( ontology:band ) } }
[]
organization band
SYSTEM
9
Q840016 Q15135642 Q15862 Q6772002 Q3743009 Q825336 Q841733 Q19958184 Q1266374
(c(Q43229),P1303,Q5994) (c(Q215380),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q43229
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
[ANSWER]
[{'concept': 'Q43229'}, 'P1303', 'Q5994'] [{'concept': 'Q215380'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y rdf:type ?v . VALUES ( ?v ) { ( ontology:Q43229 ) ( ontology:Q215380 ) } }
Duo Vela Carles & Sofia Piano Duo Queen Marlowe Brothers Ferrante & Teicher The Piano Guys Marek i Wacek It Was Romance Duo Tal & Groethuysen
9
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type organization
action filter_type
action find_reverse
entity piano
relation instrument
type band
[{'concept': 'organization'}, 'instrument', 'piano'] [{'concept': 'band'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y rdf:type ?v . VALUES ( ?v ) { ( ontology:organization ) ( ontology:band ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P870
Q2308166 Q151885
USER
How many Sonatas for cello and piano or concepts employs piano as musical instrument ?
(c(Q2308166),P870,Q5994) (c(Q151885),P870,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P870
type Q2308166
action filter_type
action find_reverse
entity Q5994
relation P870
type Q151885
[{'concept': 'Q2308166'}, 'P870', 'Q5994'] [{'concept': 'Q151885'}, 'P870', 'Q5994']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Q2308166 ) ( ontology:Q151885 ) } . ?b rdf:type ?a }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrumentation
type Sonata for cello and piano
action filter_type
action find_reverse
entity piano
relation instrumentation
type concept
[{'concept': 'Sonata for cello and piano'}, 'instrumentation', 'piano'] [{'concept': 'concept'}, 'instrumentation', 'piano']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Sonata_for_cello_and_piano ) ( ontology:concept ) } . ?b rdf:type ?a }
[]
Sonata for cello and piano concept
SYSTEM
5
Q185652 Q2631105 Q2747188 Q2616121 Q3333303
(c(Q2308166),P870,Q5994) (c(Q151885),P870,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P870
type Q2308166
action filter_type
action find_reverse
entity Q5994
relation P870
type Q151885
[ANSWER]
[{'concept': 'Q2308166'}, 'P870', 'Q5994'] [{'concept': 'Q151885'}, 'P870', 'Q5994']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Q2308166 ) ( ontology:Q151885 ) } . ?b rdf:type ?a }
ragtime Cello Sonata Cello Sonata Sonata for Cello and Piano in G minor, Op. 65 Méringue
5
action count
action union
action filter_type
action find_reverse
entity piano
relation instrumentation
type Sonata for cello and piano
action filter_type
action find_reverse
entity piano
relation instrumentation
type concept
[{'concept': 'Sonata for cello and piano'}, 'instrumentation', 'piano'] [{'concept': 'concept'}, 'instrumentation', 'piano']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?a ) { ( ontology:Sonata_for_cello_and_piano ) ( ontology:concept ) } . ?b rdf:type ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3338611 Q7141819
P27
Q15617994
USER
Which administrative territories are Teishi-naishinnō or Aleks Çaçi a civilian of ?
OR((Q7141819,P27,c(Q15617994)), (Q3338611,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7141819
relation P27
action find
entity Q3338611
relation P27
type Q15617994
{'OR': [['Q7141819', 'P27', {'concept': 'Q15617994'}], ['Q3338611', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7141819 property:P27 ?q } UNION { resource:Q3338611 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Aleks Çaçi Teishi-naishinnō
action filter_type
action union
action find
entity Teishi-naishinnō
relation country of citizenship
action find
entity Aleks Çaçi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Teishi-naishinnō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aleks Çaçi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Teishi-naishinnō property:country_of_citizenship ?q } UNION { resource:Aleks_Çaçi property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q222
SYSTEM
Japan, Albania
Q17 Q222
OR((Q7141819,P27,c(Q15617994)), (Q3338611,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7141819
relation P27
action find
entity Q3338611
relation P27
type Q15617994
[ANSWERS] are Teishi-naishinnō or Aleks Çaçi a civilian of
{'OR': [['Q7141819', 'P27', {'concept': 'Q15617994'}], ['Q3338611', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7141819 property:P27 ?q } UNION { resource:Q3338611 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Japan Albania
Japan and Albania are Teishi-naishinnō or Aleks Çaçi a civilian of
Japan Albania
action filter_type
action union
action find
entity Teishi-naishinnō
relation country of citizenship
action find
entity Aleks Çaçi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Teishi-naishinnō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aleks Çaçi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Teishi-naishinnō property:country_of_citizenship ?q } UNION { resource:Aleks_Çaçi property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]