Simple Question (Direct)
Simple Question
Q960325
P106
Q12737077
USER
Which occupations are the professions of Valeri Butenko ?
(Q960325,P106,c(Q12737077))
action filter_type
action find
entity Q960325
relation P106
type Q12737077
['Q960325', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q960325 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Valeri Butenko
action filter_type
action find
entity Valeri Butenko
relation occupation
type occupation
['Valeri Butenko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Valeri_Butenko property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q859528 Q628099 Q937857
SYSTEM
association football referee, association football manager, association football player
Q859528 Q628099 Q937857
(Q960325,P106,c(Q12737077))
action filter_type
action find
entity Q960325
relation P106
type Q12737077
The professions of Valeri Butenko are [ANSWERS]
['Q960325', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q960325 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football referee association football manager association football player
The professions of Valeri Butenko are association football referee, association football manager and association football player
association football referee association football manager association football player
action filter_type
action find
entity Valeri Butenko
relation occupation
type occupation
['Valeri Butenko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Valeri_Butenko property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q960325
P27
Q15617994
USER
Which administrative territory is Valeri Butenko an inhabitant of ?
(Q960325,P27,c(Q15617994))
action filter_type
action find
entity Q960325
relation P27
type Q15617994
['Q960325', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q960325 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Valeri Butenko
action filter_type
action find
entity Valeri Butenko
relation country of citizenship
type designation for an administrative territorial entity
['Valeri Butenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Valeri_Butenko property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q960325,P27,c(Q15617994))
action filter_type
action find
entity Q960325
relation P27
type Q15617994
[ANSWER] is Valeri Butenko an inhabitant of
['Q960325', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q960325 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Russia
Russia is Valeri Butenko an inhabitant of
Russia
action filter_type
action find
entity Valeri Butenko
relation country of citizenship
type designation for an administrative territorial entity
['Valeri Butenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Valeri_Butenko property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159
P138
Q102786
USER
Which abbreviation has that administrative territory as its namesake ?
(c(Q102786),P138,Q159)
action filter_type
action find_reverse
entity Q159
relation P138
type Q102786
[{'concept': 'Q102786'}, 'P138', 'Q159']
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q159 . ?o rdf:type ontology:Q102786 }
Russia
action filter_type
action find_reverse
entity Russia
relation named after
type abbreviation
[{'concept': 'abbreviation'}, 'named after', 'Russia']
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Russia . ?o rdf:type ontology:abbreviation }
[]
abbreviation
Q833202
SYSTEM
BRIC
Q833202
(c(Q102786),P138,Q159)
action filter_type
action find_reverse
entity Q159
relation P138
type Q102786
[ANSWER] has that administrative territory as its namesake
[{'concept': 'Q102786'}, 'P138', 'Q159']
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q159 . ?o rdf:type ontology:Q102786 }
BRIC
BRIC has that administrative territory as its namesake
BRIC
action filter_type
action find_reverse
entity Russia
relation named after
type abbreviation
[{'concept': 'abbreviation'}, 'named after', 'Russia']
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Russia . ?o rdf:type ontology:abbreviation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15830667
Q15617994
USER
And also tell me about Quarter of  Hamburg?
(Q15830667,P361,c(Q15617994))
action filter_type
action find
entity Q15830667
relation P361
type Q15617994
['Q15830667', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q15830667 property:P361 ?p . ?p rdf:type ontology:Q15617994 }
Quarter of  Hamburg
action filter_type
action find
entity Quarter of  Hamburg
relation part of
type designation for an administrative territorial entity
['Quarter of  Hamburg', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Quarter_of__Hamburg property:part_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q278976
SYSTEM
borough of Hamburg
Q278976
(Q15830667,P361,c(Q15617994))
action filter_type
action find
entity Q15830667
relation P361
type Q15617994
[ANSWER]
['Q15830667', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q15830667 property:P361 ?p . ?p rdf:type ontology:Q15617994 }
borough of Hamburg
borough of Hamburg
action filter_type
action find
entity Quarter of  Hamburg
relation part of
type designation for an administrative territorial entity
['Quarter of  Hamburg', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Quarter_of__Hamburg property:part_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P495
Q234460
USER
Which texts have Russia as their place of origin ?
(c(Q234460),P495,Q159)
action filter_type
action find_reverse
entity Q159
relation P495
type Q234460
[{'concept': 'Q234460'}, 'P495', 'Q159']
SELECT DISTINCT ?u WHERE { ?u property:P495 resource:Q159 . ?u rdf:type ontology:Q234460 }
Russia
action filter_type
action find_reverse
entity Russia
relation country of origin
type text
[{'concept': 'text'}, 'country of origin', 'Russia']
SELECT DISTINCT ?u WHERE { ?u property:country_of_origin resource:Russia . ?u rdf:type ontology:text }
[]
text
Q4085635 Q1214043 Q1214091
SYSTEM
Beskonechnyy tupik, The Cossacks, The Kreutzer Sonata
Q1214043 Q5724762 Q1130546 Q117293 Q1766899 Q3691280 Q965704 Q1304649 Q1134252 Q695116 Q1458754 Q1826666 Q2379240 Q4366398 Q147787 Q4225002 Q4085635 Q1214091
(c(Q234460),P495,Q159)
action filter_type
action find_reverse
entity Q159
relation P495
type Q234460
[ANSWERS] have Russia as their place of origin
[{'concept': 'Q234460'}, 'P495', 'Q159']
SELECT DISTINCT ?u WHERE { ?u property:P495 resource:Q159 . ?u rdf:type ontology:Q234460 }
The Cossacks Smoke Humiliated and Insulted Poor Folk Childhood Peter the Great's Negro Boyhood A Hero of Our Time The Forged Coupon Notes from Underground Netochka Nezvanova Torrents of Spring Dubrovsky The Tale of Peter and Fevronia Anna Karenina Prince Serebrenni Beskonechnyy tupik The Kreutzer Sonata
Beskonechnyy tupik, The Cossacks and The Kreutzer Sonata have Russia as their place of origin
Beskonechnyy tupik The Cossacks The Kreutzer Sonata
action filter_type
action find_reverse
entity Russia
relation country of origin
type text
[{'concept': 'text'}, 'country of origin', 'Russia']
SELECT DISTINCT ?u WHERE { ?u property:country_of_origin resource:Russia . ?u rdf:type ontology:text }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1214043
P144
Q201658
USER
Which film genre is an extension that text ?
(c(Q201658),P144,Q1214043)
action filter_type
action find_reverse
entity Q1214043
relation P144
type Q201658
[{'concept': 'Q201658'}, 'P144', 'Q1214043']
SELECT DISTINCT ?s WHERE { ?s property:P144 resource:Q1214043 . ?s rdf:type ontology:Q201658 }
The Cossacks
action filter_type
action find_reverse
entity The Cossacks
relation based on
type film genre
[{'concept': 'film genre'}, 'based on', 'The Cossacks']
SELECT DISTINCT ?s WHERE { ?s property:based_on resource:The_Cossacks . ?s rdf:type ontology:film_genre }
[]
film genre
Clarification for simple ques.
Q1214091
SYSTEM
Did you mean The Kreutzer Sonata ?
Q4085635 Q1214043 Q1214091
(c(Q201658),P144,Q4085635) (c(Q201658),P144,Q1214043) (c(Q201658),P144,Q1214091)
[ANSWER]
[{'concept': 'Q201658'}, 'P144', 'Q4085635'] [{'concept': 'Q201658'}, 'P144', 'Q1214043'] [{'concept': 'Q201658'}, 'P144', 'Q1214091']
SELECT DISTINCT ?s WHERE { ?s property:P144 resource:Q1214043 . ?s rdf:type ontology:Q201658 }
Beskonechnyy tupik The Cossacks The Kreutzer Sonata
Did you mean The Kreutzer Sonata ?
The Kreutzer Sonata
[{'concept': 'film genre'}, 'based on', 'Beskonechnyy tupik'] [{'concept': 'film genre'}, 'based on', 'The Cossacks'] [{'concept': 'film genre'}, 'based on', 'The Kreutzer Sonata']
SELECT DISTINCT ?s WHERE { ?s property:based_on resource:The_Cossacks . ?s rdf:type ontology:film_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant The Cossacks. Could you tell me the answer for that?
(c(Q201658),P144,Q1214043)
Q1214043
[{'concept': 'Q201658'}, 'P144', 'Q1214043']
[{'concept': 'film genre'}, 'based on', 'The Cossacks']
[]
Q7727705
SYSTEM
The Cossacks
Q7727705
(c(Q201658),P144,Q1214043)
action filter_type
action find_reverse
entity Q1214043
relation P144
type Q201658
[ANSWER] is an extension that text
[{'concept': 'Q201658'}, 'P144', 'Q1214043']
SELECT DISTINCT ?s WHERE { ?s property:P144 resource:Q1214043 . ?s rdf:type ontology:Q201658 }
The Cossacks
The Cossacks is an extension that text
The Cossacks
action filter_type
action find_reverse
entity The Cossacks
relation based on
type film genre
[{'concept': 'film genre'}, 'based on', 'The Cossacks']
SELECT DISTINCT ?s WHERE { ?s property:based_on resource:The_Cossacks . ?s rdf:type ontology:film_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7727705
P364
Q11028
USER
Which information is the original language of creation of that film genre ?
(Q7727705,P364,c(Q11028))
action filter_type
action find
entity Q7727705
relation P364
type Q11028
['Q7727705', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?i WHERE { resource:Q7727705 property:P364 ?i . ?i rdf:type ontology:Q11028 }
The Cossacks
action filter_type
action find
entity The Cossacks
relation original language of work
type information
['The Cossacks', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?i WHERE { resource:The_Cossacks property:original_language_of_work ?i . ?i rdf:type ontology:information }
[]
information
Q21686005
SYSTEM
n/a (silent film)
Q21686005
(Q7727705,P364,c(Q11028))
action filter_type
action find
entity Q7727705
relation P364
type Q11028
[ANSWER] is the original language of creation of that film genre
['Q7727705', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?i WHERE { resource:Q7727705 property:P364 ?i . ?i rdf:type ontology:Q11028 }
n/a (silent film)
N/a (silent film) is the original language of creation of that film genre
n/a (silent film)
action filter_type
action find
entity The Cossacks
relation original language of work
type information
['The Cossacks', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?i WHERE { resource:The_Cossacks property:original_language_of_work ?i . ?i rdf:type ontology:information }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2334076
P748
Q12737077 Q1752346 Q12737077
USER
Which occupations did around the same number of occupations and assemblies appoint as Prime Minister of Norway ?
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action count
action filter_multi_types
action find
entity Q2334076
relation P748
type Q12737077
type Q1752346
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?s WHERE { { ?s property:P748 ?q . ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q12737077 } UNION { ?s property:P748 ?q . ?q rdf:type ontology:Q1752346 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?s } . FILTER ( ?j = ?e ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q2334076 property:P748 ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } } } } }
Prime Minister of Norway
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
action count
action filter_multi_types
action find
entity Prime Minister of Norway
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?s WHERE { { ?s property:appointed_by ?q . ?s rdf:type ontology:occupation . ?q rdf:type ontology:occupation } UNION { ?s property:appointed_by ?q . ?q rdf:type ontology:assembly . ?s rdf:type ontology:occupation } } GROUP BY ?s } . FILTER ( ?j = ?e ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Prime_Minister_of_Norway property:appointed_by ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:occupation ) ( ontology:assembly ) } } } } }
[]
occupation assembly occupation
Q687075 Q1749063 Q4377222
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, Premier of Nunavut
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q15305714 Q1749063 Q24636364 Q14565638 Q251724 Q842386 Q19056310 Q890030 Q6572133 Q796593 Q1006398 Q6865770 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q3564227 Q7574264 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q2505890 Q6865756 Q1370482 Q16009376 Q3251800 Q3259469 Q5097071 Q6865981 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q628102 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action count
action filter_multi_types
action find
entity Q2334076
relation P748
type Q12737077
type Q1752346
[ANSWERS] around the same number of occupations and assemblies appointed as Prime Minister of Norway
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?s WHERE { { ?s property:P748 ?q . ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q12737077 } UNION { ?s property:P748 ?q . ?q rdf:type ontology:Q1752346 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?s } . FILTER ( ?j = ?e ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q2334076 property:P748 ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } } } } }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Prime Minister of Libya Minister for Foreign Affairs of Sweden bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Russia President of Botswana State President of South Africa Governor of İstanbul President of Malta Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development 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 Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs President of Cuba Prime Minister of Albania Minister of Health Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec President of Nauru Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and Premier of Nunavut around the same number of occupations and assemblies appointed as Prime Minister of Norway
Prime Minister of Sweden Minister for Foreign Affairs of Sweden Premier of Nunavut
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
action count
action filter_multi_types
action find
entity Prime Minister of Norway
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?s WHERE { { ?s property:appointed_by ?q . ?s rdf:type ontology:occupation . ?q rdf:type ontology:occupation } UNION { ?s property:appointed_by ?q . ?q rdf:type ontology:assembly . ?s rdf:type ontology:occupation } } GROUP BY ?s } . FILTER ( ?j = ?e ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Prime_Minister_of_Norway property:appointed_by ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:occupation ) ( ontology:assembly ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3251824
P748
Q12737077 Q1752346 Q12737077
USER
And how about Minister of Natural Resources?
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action count
action filter_multi_types
action find
entity Q3251824
relation P748
type Q12737077
type Q1752346
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?r WHERE { VALUES ( ?y ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } . ?w rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Q3251824 property:P748 ?n . { { ?n rdf:type ontology:Q12737077 } UNION { ?n rdf:type ontology:Q1752346 } } } } . FILTER ( ?b = ?s ) }
Minister of Natural Resources
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
action count
action filter_multi_types
action find
entity Minister of Natural Resources
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?r WHERE { VALUES ( ?y ) { ( ontology:occupation ) ( ontology:assembly ) } . ?w rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Minister_of_Natural_Resources property:appointed_by ?n . { { ?n rdf:type ontology:occupation } UNION { ?n rdf:type ontology:assembly } } } } . FILTER ( ?b = ?s ) }
[]
occupation assembly occupation
Q687075 Q1749063 Q4377222
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, Premier of Nunavut
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q15305714 Q1749063 Q24636364 Q14565638 Q251724 Q842386 Q19056310 Q890030 Q6572133 Q796593 Q1006398 Q6865770 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q3564227 Q7574264 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q2505890 Q6865756 Q1370482 Q16009376 Q3251800 Q3259469 Q5097071 Q6865981 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q628102 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action count
action filter_multi_types
action find
entity Q3251824
relation P748
type Q12737077
type Q1752346
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?r WHERE { VALUES ( ?y ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } . ?w rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Q3251824 property:P748 ?n . { { ?n rdf:type ontology:Q12737077 } UNION { ?n rdf:type ontology:Q1752346 } } } } . FILTER ( ?b = ?s ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Prime Minister of Libya Minister for Foreign Affairs of Sweden bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Russia President of Botswana State President of South Africa Governor of İstanbul President of Malta Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development 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 Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs President of Cuba Prime Minister of Albania Minister of Health Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec President of Nauru Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
Prime Minister of Sweden Minister for Foreign Affairs of Sweden Premier of Nunavut
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
action count
action filter_multi_types
action find
entity Minister of Natural Resources
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?r WHERE { VALUES ( ?y ) { ( ontology:occupation ) ( ontology:assembly ) } . ?w rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { resource:Minister_of_Natural_Resources property:appointed_by ?n . { { ?n rdf:type ontology:occupation } UNION { ?n rdf:type ontology:assembly } } } } . FILTER ( ?b = ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2596569
P180
Q12737077 Q1792379 Q3516658
USER
Which occupations are depicted in approximately the same number of art genres or heraldic symbols as housekeeper ?
(c(Q1792379)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q2596569
relation P180
type Q1792379
type Q3516658
[[{'concept': 'Q1792379'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?p ) WHERE { { ?a property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q1792379 } UNION { ?a property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q3516658 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:P180 resource:Q2596569 . { { ?m rdf:type ontology:Q1792379 } UNION { ?m rdf:type ontology:Q3516658 } } } } . FILTER ( ?p = ?r ) }
housekeeper
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity housekeeper
relation depicts
type art genre
type heraldic symbol
[[{'concept': 'art genre'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?p ) WHERE { { ?a property:depicts ?j . ?j rdf:type ontology:occupation . ?a rdf:type ontology:art_genre } UNION { ?a property:depicts ?j . ?j rdf:type ontology:occupation . ?a rdf:type ontology:heraldic_symbol } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:depicts resource:housekeeper . { { ?m rdf:type ontology:art_genre } UNION { ?m rdf:type ontology:heraldic_symbol } } } } . FILTER ( ?p = ?r ) }
[]
occupation art genre heraldic symbol
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q2596569
relation P180
type Q1792379
type Q3516658
[ANSWERS] are depicted in approximately the same number of art genres or heraldic symbols as housekeeper
[[{'concept': 'Q1792379'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?p ) WHERE { { ?a property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q1792379 } UNION { ?a property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q3516658 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:P180 resource:Q2596569 . { { ?m rdf:type ontology:Q1792379 } UNION { ?m rdf:type ontology:Q3516658 } } } } . FILTER ( ?p = ?r ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler geographer Archbishop of Canterbury minister receptionist milkman coachman model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are depicted in approximately the same number of art genres or heraldic symbols as housekeeper
farmer nurse tailor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity housekeeper
relation depicts
type art genre
type heraldic symbol
[[{'concept': 'art genre'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?p ) WHERE { { ?a property:depicts ?j . ?j rdf:type ontology:occupation . ?a rdf:type ontology:art_genre } UNION { ?a property:depicts ?j . ?j rdf:type ontology:occupation . ?a rdf:type ontology:heraldic_symbol } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:depicts resource:housekeeper . { { ?m rdf:type ontology:art_genre } UNION { ?m rdf:type ontology:heraldic_symbol } } } } . FILTER ( ?p = ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q186360
P417
Q502895
USER
What are the names of person who are the patron saints of nurse ?
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q186360 property:P417 ?b . ?b rdf:type ontology:Q502895 }
nurse
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:nurse property:patron_saint ?b . ?b rdf:type ontology:common_name }
[]
common name
Q229190 Q179718 Q332656
SYSTEM
Catherine of Siena, Catherine of Alexandria, Camillus de Lellis
Q332656 Q200895 Q229190 Q137947 Q179718
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
The names of person are the patron saints of nurse are Saint [ANSWERS]
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q186360 property:P417 ?b . ?b rdf:type ontology:Q502895 }
Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria
The names of person are the patron saints of nurse are Saint Catherine of Siena, Catherine of Alexandria and Camillus de Lellis
Catherine of Siena Catherine of Alexandria Camillus de Lellis
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:nurse property:patron_saint ?b . ?b rdf:type ontology:common_name }
[]