Simple Question (Direct)
Simple Question
Q4811060
P27
Q15617994
USER
Which administrative territory is the native country of Astor Henríquez ?
(Q4811060,P27,c(Q15617994))
action filter_type
action find
entity Q4811060
relation P27
type Q15617994
['Q4811060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q4811060 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Astor Henríquez
action filter_type
action find
entity Astor Henríquez
relation country of citizenship
type designation for an administrative territorial entity
['Astor Henríquez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Astor_Henríquez property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q783
SYSTEM
Honduras
Q783
(Q4811060,P27,c(Q15617994))
action filter_type
action find
entity Q4811060
relation P27
type Q15617994
[ANSWER] is the native country of Astor Henríquez
['Q4811060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q4811060 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Honduras
Honduras is the native country of Astor Henríquez
Honduras
action filter_type
action find
entity Astor Henríquez
relation country of citizenship
type designation for an administrative territorial entity
['Astor Henríquez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Astor_Henríquez property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4811060
P106
Q12737077
USER
What are the job of Astor Henríquez ?
(Q4811060,P106,c(Q12737077))
action filter_type
action find
entity Q4811060
relation P106
type Q12737077
['Q4811060', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q4811060 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Astor Henríquez
action filter_type
action find
entity Astor Henríquez
relation occupation
type occupation
['Astor Henríquez', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Astor_Henríquez property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q4811060,P106,c(Q12737077))
action filter_type
action find
entity Q4811060
relation P106
type Q12737077
The job of Astor Henríquez are both [ANSWERS]
['Q4811060', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q4811060 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football manager association football player
The job of Astor Henríquez are both association football manager and association football player
association football manager association football player
action filter_type
action find
entity Astor Henríquez
relation occupation
type occupation
['Astor Henríquez', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Astor_Henríquez property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3876208
Q12737077
USER
And how about Nicola Festa?
(Q3876208,P106,c(Q12737077))
action filter_type
action find
entity Q3876208
relation P106
type Q12737077
['Q3876208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3876208 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Nicola Festa
action filter_type
action find
entity Nicola Festa
relation occupation
type occupation
['Nicola Festa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Nicola_Festa property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q37226
SYSTEM
teacher
Q37226
(Q3876208,P106,c(Q12737077))
action filter_type
action find
entity Q3876208
relation P106
type Q12737077
[ANSWER]
['Q3876208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3876208 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
teacher
teacher
action filter_type
action find
entity Nicola Festa
relation occupation
type occupation
['Nicola Festa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Nicola_Festa property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18388982 Q3876208
P20
Q56061
USER
Which administrative territories did Nicola Festa or Lloyd Valberg expire ?
OR((Q3876208,P20,c(Q56061)), (Q18388982,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3876208
relation P20
action find
entity Q18388982
relation P20
type Q56061
{'OR': [['Q3876208', 'P20', {'concept': 'Q56061'}], ['Q18388982', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3876208 property:P20 ?v } UNION { resource:Q18388982 property:P20 ?v } } . ?v rdf:type ontology:Q56061 }
Lloyd Valberg Nicola Festa
action filter_type
action union
action find
entity Nicola Festa
relation place of death
action find
entity Lloyd Valberg
relation place of death
type administrative territorial entity
{'OR': [['Nicola Festa', 'place of death', {'concept': 'administrative territorial entity'}], ['Lloyd Valberg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Nicola_Festa property:place_of_death ?v } UNION { resource:Lloyd_Valberg property:place_of_death ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220 Q3183
SYSTEM
Rome, Perth
Q220 Q3183
OR((Q3876208,P20,c(Q56061)), (Q18388982,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3876208
relation P20
action find
entity Q18388982
relation P20
type Q56061
Nicola Festa or Lloyd Valberg expired in [ANSWERS]
{'OR': [['Q3876208', 'P20', {'concept': 'Q56061'}], ['Q18388982', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3876208 property:P20 ?v } UNION { resource:Q18388982 property:P20 ?v } } . ?v rdf:type ontology:Q56061 }
Rome Perth
Nicola Festa or Lloyd Valberg expired in Rome and Perth
Rome Perth
action filter_type
action union
action find
entity Nicola Festa
relation place of death
action find
entity Lloyd Valberg
relation place of death
type administrative territorial entity
{'OR': [['Nicola Festa', 'place of death', {'concept': 'administrative territorial entity'}], ['Lloyd Valberg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Nicola_Festa property:place_of_death ?v } UNION { resource:Lloyd_Valberg property:place_of_death ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3183
P190
Q56061
USER
Which administrative territories are a sister city of that one ?
(c(Q56061),P190,Q3183)
action filter_type
action find_reverse
entity Q3183
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q3183']
SELECT DISTINCT ?k WHERE { ?k property:P190 resource:Q3183 . ?k rdf:type ontology:Q56061 }
Perth
action filter_type
action find_reverse
entity Perth
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Perth']
SELECT DISTINCT ?k WHERE { ?k property:sister_city resource:Perth . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q220
SYSTEM
Did you mean Rome ?
Q220 Q3183
(c(Q56061),P190,Q220) (c(Q56061),P190,Q3183)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q220'] [{'concept': 'Q56061'}, 'P190', 'Q3183']
SELECT DISTINCT ?k WHERE { ?k property:P190 resource:Q3183 . ?k rdf:type ontology:Q56061 }
Rome Perth
Did you mean Rome ?
Rome
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rome'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Perth']
SELECT DISTINCT ?k WHERE { ?k property:sister_city resource:Perth . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Perth. Could you tell me the answer for that?
(c(Q56061),P190,Q3183)
Q3183
[{'concept': 'Q56061'}, 'P190', 'Q3183']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Perth']
[]
Q15674 Q16555 Q188731
SYSTEM
Kagoshima, Houston, Rhodes
Q211828 Q212096 Q387502 Q188731 Q15674 Q16555
(c(Q56061),P190,Q3183)
action filter_type
action find_reverse
entity Q3183
relation P190
type Q56061
[ANSWERS] are a sister city of that one
[{'concept': 'Q56061'}, 'P190', 'Q3183']
SELECT DISTINCT ?k WHERE { ?k property:P190 resource:Q3183 . ?k rdf:type ontology:Q56061 }
Bayburt Kastelorizo Świecie Rhodes Kagoshima Houston
Kagoshima, Houston and Rhodes are a sister city of that one
Kagoshima Houston Rhodes
action filter_type
action find_reverse
entity Perth
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Perth']
SELECT DISTINCT ?k WHERE { ?k property:sister_city resource:Perth . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20429112 Q18388982
P2416
Q31629
USER
Which types of sport did Lloyd Valberg or JaCorian Duffield participate in ?
OR((Q18388982,P2416,c(Q31629)), (Q20429112,P2416,c(Q31629)))
action filter_type
action union
action find
entity Q18388982
relation P2416
action find
entity Q20429112
relation P2416
type Q31629
{'OR': [['Q18388982', 'P2416', {'concept': 'Q31629'}], ['Q20429112', 'P2416', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?d WHERE { { ?u property:P2416 ?d . VALUES ( ?u ) { ( resource:Q18388982 ) ( resource:Q20429112 ) } } . ?d rdf:type ontology:Q31629 }
JaCorian Duffield Lloyd Valberg
action filter_type
action union
action find
entity Lloyd Valberg
relation sports discipline competed in
action find
entity JaCorian Duffield
relation sports discipline competed in
type type of sport
{'OR': [['Lloyd Valberg', 'sports discipline competed in', {'concept': 'type of sport'}], ['JaCorian Duffield', 'sports discipline competed in', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?d WHERE { { ?u property:sports_discipline_competed_in ?d . VALUES ( ?u ) { ( resource:Lloyd_Valberg ) ( resource:JaCorian_Duffield ) } } . ?d rdf:type ontology:type_of_sport }
[]
type of sport
Q165704
SYSTEM
high jump
Q165704
OR((Q18388982,P2416,c(Q31629)), (Q20429112,P2416,c(Q31629)))
action filter_type
action union
action find
entity Q18388982
relation P2416
action find
entity Q20429112
relation P2416
type Q31629
Lloyd Valberg or JaCorian Duffield participated in the [ANSWER]
{'OR': [['Q18388982', 'P2416', {'concept': 'Q31629'}], ['Q20429112', 'P2416', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?d WHERE { { ?u property:P2416 ?d . VALUES ( ?u ) { ( resource:Q18388982 ) ( resource:Q20429112 ) } } . ?d rdf:type ontology:Q31629 }
high jump
Lloyd Valberg or JaCorian Duffield participated in the high jump
high jump
action filter_type
action union
action find
entity Lloyd Valberg
relation sports discipline competed in
action find
entity JaCorian Duffield
relation sports discipline competed in
type type of sport
{'OR': [['Lloyd Valberg', 'sports discipline competed in', {'concept': 'type of sport'}], ['JaCorian Duffield', 'sports discipline competed in', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?d WHERE { { ?u property:sports_discipline_competed_in ?d . VALUES ( ?u ) { ( resource:Lloyd_Valberg ) ( resource:JaCorian_Duffield ) } } . ?d rdf:type ontology:type_of_sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q165704 Q21572741
P2416
Q502895
USER
Did Desislava Aleksandrova-Mladenova compete in that type of sport ?
(Q21572741,P2416,Q165704)
action is_in
entity Q165704
action find
entity Q21572741
relation P2416
['Q21572741', 'P2416', 'Q165704']
ASK WHERE { resource:Q21572741 property:P2416 resource:Q165704 }
high jump Desislava Aleksandrova-Mladenova
action is_in
entity high jump
action find
entity Desislava Aleksandrova-Mladenova
relation sports discipline competed in
['Desislava Aleksandrova-Mladenova', 'sports discipline competed in', 'high jump']
ASK WHERE { resource:Desislava_Aleksandrova-Mladenova property:sports_discipline_competed_in resource:high_jump }
[]
common name
SYSTEM
YES
(Q21572741,P2416,Q165704)
action is_in
entity Q165704
action find
entity Q21572741
relation P2416
[ANSWER]
['Q21572741', 'P2416', 'Q165704']
ASK WHERE { resource:Q21572741 property:P2416 resource:Q165704 }
Yes
action is_in
entity high jump
action find
entity Desislava Aleksandrova-Mladenova
relation sports discipline competed in
['Desislava Aleksandrova-Mladenova', 'sports discipline competed in', 'high jump']
ASK WHERE { resource:Desislava_Aleksandrova-Mladenova property:sports_discipline_competed_in resource:high_jump }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2631987
P748
Q1752346 Q12737077 Q12737077
USER
How many occupations were appointed by greater number of assemblies and occupations than Attorney General for England and Wales ?
(c(Q12737077),P748,c(Q1752346)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q2631987
relation P748
type Q1752346
type Q12737077
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1752346 ) ( ontology:Q12737077 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q2631987 property:P748 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q12737077 } } } } . FILTER ( ?n > ?j ) }
Attorney General for England and Wales
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity Attorney General for England and Wales
relation appointed by
type assembly
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:assembly ) ( ontology:occupation ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Attorney_General_for_England_and_Wales property:appointed_by ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:occupation } } } } . FILTER ( ?n > ?j ) }
[]
assembly occupation occupation
SYSTEM
121
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(Q1752346)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q2631987
relation P748
type Q1752346
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1752346 ) ( ontology:Q12737077 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q2631987 property:P748 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q12737077 } } } } . FILTER ( ?n > ?j ) }
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
121
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity Attorney General for England and Wales
relation appointed by
type assembly
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:assembly ) ( ontology:occupation ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Attorney_General_for_England_and_Wales property:appointed_by ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:occupation } } } } . FILTER ( ?n > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q19842743
P748
Q1752346 Q12737077 Q12737077
USER
And also tell me about President of the Government of Morocco?
(c(Q12737077),P748,c(Q1752346)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q19842743
relation P748
type Q1752346
type Q12737077
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?h ) WHERE { { ?c property:P748 ?i . ?i rdf:type ontology:Q1752346 . ?c rdf:type ontology:Q12737077 } UNION { ?c property:P748 ?i . ?c rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q12737077 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q19842743 property:P748 ?m . { { ?m rdf:type ontology:Q1752346 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?h > ?j ) }
President of the Government of Morocco
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity President of the Government of Morocco
relation appointed by
type assembly
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?h ) WHERE { { ?c property:appointed_by ?i . ?i rdf:type ontology:assembly . ?c rdf:type ontology:occupation } UNION { ?c property:appointed_by ?i . ?c rdf:type ontology:occupation . ?i rdf:type ontology:occupation } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:President_of_the_Government_of_Morocco property:appointed_by ?m . { { ?m rdf:type ontology:assembly } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?h > ?j ) }
[]
assembly occupation occupation
SYSTEM
121
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(Q1752346)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q19842743
relation P748
type Q1752346
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?h ) WHERE { { ?c property:P748 ?i . ?i rdf:type ontology:Q1752346 . ?c rdf:type ontology:Q12737077 } UNION { ?c property:P748 ?i . ?c rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q12737077 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q19842743 property:P748 ?m . { { ?m rdf:type ontology:Q1752346 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?h > ?j ) }
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
121
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity President of the Government of Morocco
relation appointed by
type assembly
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?h ) WHERE { { ?c property:appointed_by ?i . ?i rdf:type ontology:assembly . ?c rdf:type ontology:occupation } UNION { ?c property:appointed_by ?i . ?c rdf:type ontology:occupation . ?i rdf:type ontology:occupation } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:President_of_the_Government_of_Morocco property:appointed_by ?m . { { ?m rdf:type ontology:assembly } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?h > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1444
Q1048835 Q31629
USER
Which political territories do around 1 type of sport finally stop at ?
(c(Q31629),P1444,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1444
type Q1048835
type Q31629
value 1
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?s ) WHERE { ?p rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q31629 . ?z property:P1444 ?p } GROUP BY ?p } . FILTER ( ?s = 1 ) }
action approx
action find_reverse_tuple_counts
relation destination point
type political territorial entity
type type of sport
value 1
[{'concept': 'type of sport'}, 'destination point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?s ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:type_of_sport . ?z property:destination_point ?p } GROUP BY ?p } . FILTER ( ?s = 1 ) }
[]
political territorial entity type of sport
Q639412 Q825883 Q604810
SYSTEM
Tarazona, Valls, Markina-Xemein
Q1649616 Q1596349 Q481760 Q370934 Q494781 Q12618 Q1614795 Q827393 Q12540 Q15553 Q1905372 Q976528 Q601999 Q577578 Q1647365 Q845424 Q605397 Q1605406 Q748867 Q1643731 Q671272 Q13614 Q817349 Q639412 Q825883 Q1646215 Q604810 Q1646385
(c(Q31629),P1444,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1444
type Q1048835
type Q31629
value 1
[ANSWERS] around 1 type of sport finally stop at
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?s ) WHERE { ?p rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q31629 . ?z property:P1444 ?p } GROUP BY ?p } . FILTER ( ?s = 1 ) }
Orio Oropesa del Mar Amurrio Villarcayo de Merindad de Castilla la Vieja Alcalá de Guadaíra Olot Lerma Vejer de la Frontera Calella Vilanova i la Geltrú Riaza Alhaurín de la Torre Lucena del Cid Nogueira de Ramuín Urdazubi/Urdax Peniscola El Padul Castrelo de Miño Baiona Melgar de Fernamental Calp Banyoles Benitachell / El Poble Nou de Benitatxell Tarazona Valls Cercedilla Markina-Xemein Puebla de Sanabria
Tarazona, Valls and Markina-Xemein around 1 type of sport finally stop at
Tarazona Valls Markina-Xemein
action approx
action find_reverse_tuple_counts
relation destination point
type political territorial entity
type type of sport
value 1
[{'concept': 'type of sport'}, 'destination point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?s ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:type_of_sport . ?z property:destination_point ?p } GROUP BY ?p } . FILTER ( ?s = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic associations with atmost 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?w ) WHERE { ?l property:P530 ?c . ?c rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?w <= 6 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?w ) WHERE { ?l property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?w <= 6 ) }
[]
political territorial entity political territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?w ) WHERE { ?l property:P530 ?c . ?c rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?w <= 6 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?w ) WHERE { ?l property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?w <= 6 ) }
[]