Simple Question (Direct)
Simple Question
Q2577145
P21
Q290
USER
What is the sex of Willi Hasselbach ?
(Q2577145,P21,c(Q290))
action filter_type
action find
entity Q2577145
relation P21
type Q290
['Q2577145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q2577145 property:P21 ?i . ?i rdf:type ontology:Q290 }
Willi Hasselbach
action filter_type
action find
entity Willi Hasselbach
relation gender
type sex
['Willi Hasselbach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Willi_Hasselbach property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2577145,P21,c(Q290))
action filter_type
action find
entity Q2577145
relation P21
type Q290
The sex of Willi Hasselbach is a [ANSWER]
['Q2577145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q2577145 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Willi Hasselbach is a male
male
action filter_type
action find
entity Willi Hasselbach
relation gender
type sex
['Willi Hasselbach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Willi_Hasselbach property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2577145
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q2577145
relation P102
type Q7210356
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q2577145 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Willi Hasselbach
action filter_type
action find
entity Willi Hasselbach
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Willi_Hasselbach property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q13124
SYSTEM
Free Democratic Party
Q13124
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q2577145
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q2577145 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Free Democratic Party
That person is affiliated with Free Democratic Party
Free Democratic Party
action filter_type
action find
entity Willi Hasselbach
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Willi_Hasselbach property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15957639 Q2577145
P102
Q7210356
USER
Or Claudia Koch-Brandt?
OR((Q2577145,P102,c(Q7210356)), (Q15957639,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q2577145
relation P102
action find
entity Q15957639
relation P102
type Q7210356
{'OR': [['Q2577145', 'P102', {'concept': 'Q7210356'}], ['Q15957639', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q15957639 property:P102 ?u } UNION { resource:Q2577145 property:P102 ?u } } . ?u rdf:type ontology:Q7210356 }
Claudia Koch-Brandt Willi Hasselbach
action filter_type
action union
action find
entity Willi Hasselbach
relation member of political party
action find
entity Claudia Koch-Brandt
relation member of political party
type political organization
{'OR': [['Willi Hasselbach', 'member of political party', {'concept': 'political organization'}], ['Claudia Koch-Brandt', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Claudia_Koch-Brandt property:member_of_political_party ?u } UNION { resource:Willi_Hasselbach property:member_of_political_party ?u } } . ?u rdf:type ontology:political_organization }
[]
political organization
Q13124 Q6721203
SYSTEM
Free Democratic Party, Alternative for Germany
Q13124 Q6721203
OR((Q2577145,P102,c(Q7210356)), (Q15957639,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q2577145
relation P102
action find
entity Q15957639
relation P102
type Q7210356
[ANSWERS]
{'OR': [['Q2577145', 'P102', {'concept': 'Q7210356'}], ['Q15957639', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q15957639 property:P102 ?u } UNION { resource:Q2577145 property:P102 ?u } } . ?u rdf:type ontology:Q7210356 }
Free Democratic Party Alternative for Germany
Free Democratic Party Alternative for Germany
action filter_type
action union
action find
entity Willi Hasselbach
relation member of political party
action find
entity Claudia Koch-Brandt
relation member of political party
type political organization
{'OR': [['Willi Hasselbach', 'member of political party', {'concept': 'political organization'}], ['Claudia Koch-Brandt', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Claudia_Koch-Brandt property:member_of_political_party ?u } UNION { resource:Willi_Hasselbach property:member_of_political_party ?u } } . ?u rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16062202
P102
Q502895
USER
Does Charlie Deacon belong to the political party those ones ?
(Q16062202,P102,Q13124) (Q16062202,P102,Q6721203)
action is_in
entity prev_answer
action find
entity Q16062202
relation P102
['Q16062202', 'P102', 'Q13124'] ['Q16062202', 'P102', 'Q6721203']
ASK WHERE { resource:Q16062202 property:P102 ?r . VALUES ( ?r ) { ( resource:Q13124 ) ( resource:Q6721203 ) } }
Charlie Deacon
action is_in
entity prev_answer
action find
entity Charlie Deacon
relation member of political party
['Charlie Deacon', 'member of political party', 'Free Democratic Party'] ['Charlie Deacon', 'member of political party', 'Alternative for Germany']
ASK WHERE { resource:Charlie_Deacon property:member_of_political_party ?r . VALUES ( ?r ) { ( resource:Free_Democratic_Party ) ( resource:Alternative_for_Germany ) } }
[]
common name
SYSTEM
NO
(Q16062202,P102,Q13124) (Q16062202,P102,Q6721203)
action is_in
entity prev_answer
action find
entity Q16062202
relation P102
[ANSWER]
['Q16062202', 'P102', 'Q13124'] ['Q16062202', 'P102', 'Q6721203']
ASK WHERE { resource:Q16062202 property:P102 ?r . VALUES ( ?r ) { ( resource:Q13124 ) ( resource:Q6721203 ) } }
No
action is_in
entity prev_answer
action find
entity Charlie Deacon
relation member of political party
['Charlie Deacon', 'member of political party', 'Free Democratic Party'] ['Charlie Deacon', 'member of political party', 'Alternative for Germany']
ASK WHERE { resource:Charlie_Deacon property:member_of_political_party ?r . VALUES ( ?r ) { ( resource:Free_Democratic_Party ) ( resource:Alternative_for_Germany ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q701670 Q15957639
P102
Q7210356
USER
Which political organizations do Claudia Koch-Brandt or Albert Chan belong to ?
OR((Q15957639,P102,c(Q7210356)), (Q701670,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q15957639
relation P102
action find
entity Q701670
relation P102
type Q7210356
{'OR': [['Q15957639', 'P102', {'concept': 'Q7210356'}], ['Q701670', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?a ) { ( resource:Q15957639 ) ( resource:Q701670 ) } . ?a property:P102 ?z } . ?z rdf:type ontology:Q7210356 }
Albert Chan Claudia Koch-Brandt
action filter_type
action union
action find
entity Claudia Koch-Brandt
relation member of political party
action find
entity Albert Chan
relation member of political party
type political organization
{'OR': [['Claudia Koch-Brandt', 'member of political party', {'concept': 'political organization'}], ['Albert Chan', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?a ) { ( resource:Claudia_Koch-Brandt ) ( resource:Albert_Chan ) } . ?a property:member_of_political_party ?z } . ?z rdf:type ontology:political_organization }
[]
political organization
Q837695 Q4253937 Q6721203 Q21892 Q1026514 Q1026597
SYSTEM
Association for Democracy and People's Livelihood, United Democrats of Hong Kong, Alternative for Germany, Democratic Party, League of Social Democrats, People Power
Q837695 Q4253937 Q6721203 Q21892 Q1026514 Q1026597
OR((Q15957639,P102,c(Q7210356)), (Q701670,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q15957639
relation P102
action find
entity Q701670
relation P102
type Q7210356
Claudia Koch-Brandt or Albert Chan belong to the [ANSWERS]
{'OR': [['Q15957639', 'P102', {'concept': 'Q7210356'}], ['Q701670', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?a ) { ( resource:Q15957639 ) ( resource:Q701670 ) } . ?a property:P102 ?z } . ?z rdf:type ontology:Q7210356 }
Association for Democracy and People's Livelihood United Democrats of Hong Kong Alternative for Germany Democratic Party League of Social Democrats People Power
Claudia Koch-Brandt or Albert Chan belong to the Association for Democracy and People's Livelihood, United Democrats of Hong Kong, Alternative for Germany, Democratic Party, League of Social Democrats and People Power
Association for Democracy and People's Livelihood United Democrats of Hong Kong Alternative for Germany Democratic Party League of Social Democrats People Power
action filter_type
action union
action find
entity Claudia Koch-Brandt
relation member of political party
action find
entity Albert Chan
relation member of political party
type political organization
{'OR': [['Claudia Koch-Brandt', 'member of political party', {'concept': 'political organization'}], ['Albert Chan', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?a ) { ( resource:Claudia_Koch-Brandt ) ( resource:Albert_Chan ) } . ?a property:member_of_political_party ?z } . ?z rdf:type ontology:political_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q7210356 Q7210356
USER
Which political organizations are parts of min number of political organizations ?
(c(Q7210356),P361,c(Q7210356))
action argmin
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?b property:P361 ?x . ?b rdf:type ontology:Q7210356 . ?x rdf:type ontology:Q7210356 } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?a ) WHERE { ?z property:P361 ?h . ?z rdf:type ontology:Q7210356 . ?h rdf:type ontology:Q7210356 } GROUP BY ?z } . FILTER ( ?a = ?m ) }
action argmin
action find_tuple_counts
relation part of
type political organization
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?b property:part_of ?x . ?b rdf:type ontology:political_organization . ?x rdf:type ontology:political_organization } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?a ) WHERE { ?z property:part_of ?h . ?z rdf:type ontology:political_organization . ?h rdf:type ontology:political_organization } GROUP BY ?z } . FILTER ( ?a = ?m ) }
[]
political organization political organization
Q213451 Q634277 Q2482138
SYSTEM
Green Party, True Finns, Autonomy Liberty Participation Ecology
Q1518193 Q7131032 Q1654268 Q3935996 Q2632305 Q2179086 Q4824226 Q1952211 Q21405813 Q2482138 Q7303029 Q1922340 Q83372 Q1408232 Q291031 Q5874016 Q10564889 Q627189 Q20081274 Q978086 Q3834914 Q1149512 Q1479955 Q4118233 Q3678393 Q2070568 Q25648673 Q18390996 Q192254 Q2256403 Q6357092 Q504564 Q3366586 Q370936 Q5032604 Q17291443 Q941224 Q5305890 Q281745 Q25796237 Q7362579 Q606620 Q2037135 Q213451 Q285388 Q7551721 Q634277 Q5604428 Q5604429 Q4157656 Q2256283
(c(Q7210356),P361,c(Q7210356))
action argmin
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
[ANSWERS] are parts of min number of political organizations
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?b property:P361 ?x . ?b rdf:type ontology:Q7210356 . ?x rdf:type ontology:Q7210356 } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?a ) WHERE { ?z property:P361 ?h . ?z rdf:type ontology:Q7210356 . ?h rdf:type ontology:Q7210356 } GROUP BY ?z } . FILTER ( ?a = ?m ) }
Edelweiss Aosta Valley Panhellenic Liberation Movement Party of Christian Democracy Rebirth of Christian Democracy Christian Democracy for Autonomies Christian Democratic Party Australian Greens Victoria Democratic Centre Sinistra Italiana Autonomy Liberty Participation Ecology Recreate Greece Mezhraiontsy Bolsheviks Moderates for Piedmont Allgemeine SS Ho Chi Minh Communist Youth Union The Megaphone - Crocetta List labour party Italian Conservatives, Reformists Ecologist Party "The Greens" List for Trieste Yemeni Socialist Party Förderndes Mitglied der SS Nasserist Unionist People's Organisation Civic Freedom The Other Russia CasaPound Italia Romanian Social Democratic Party National Liberation Front Left Front Progressive Valdotanian Union FRELIMO Pirate Party of Morocco Valdotanian Union cannabis political party National-Democratic Party Trentino Tyrolean Autonomist Party Drasi Italian Socialist Party political group of the European Parliament Romanian Social Democratic Party South Tyrolean People's Party Christian Democracy Green Party Al-Islah Socialist Party of the Islands True Finns Greens South Australia Greens Western Australia Democratic Union Sardinian Reformers
Green Party, True Finns and Autonomy Liberty Participation Ecology are parts of min number of political organizations
Green Party True Finns Autonomy Liberty Participation Ecology
action argmin
action find_tuple_counts
relation part of
type political organization
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?b property:part_of ?x . ?b rdf:type ontology:political_organization . ?x rdf:type ontology:political_organization } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?a ) WHERE { ?z property:part_of ?h . ?z rdf:type ontology:political_organization . ?h rdf:type ontology:political_organization } GROUP BY ?z } . FILTER ( ?a = ?m ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16 Q2482138
P361 P17
Q7210356
USER
Which political organizations are a part of Autonomy Liberty Participation Ecology or are situated in Canada ?
OR((c(Q7210356),P361,Q2482138), (c(Q7210356),P17,Q16))
action filter_type
action union
action find_reverse
entity Q2482138
relation P361
action find_reverse
entity Q16
relation P17
type Q7210356
{'OR': [[{'concept': 'Q7210356'}, 'P361', 'Q2482138'], [{'concept': 'Q7210356'}, 'P17', 'Q16']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . { { ?f property:P361 resource:Q2482138 } UNION { ?f property:P17 resource:Q16 } } }
Canada Autonomy Liberty Participation Ecology
action filter_type
action union
action find_reverse
entity Autonomy Liberty Participation Ecology
relation part of
action find_reverse
entity Canada
relation country
type political organization
{'OR': [[{'concept': 'political organization'}, 'part of', 'Autonomy Liberty Participation Ecology'], [{'concept': 'political organization'}, 'country', 'Canada']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . { { ?f property:part_of resource:Autonomy_Liberty_Participation_Ecology } UNION { ?f property:country resource:Canada } } }
[]
political organization
Q7011034 Q3345049 Q7058810 Q692848 Q3366805 Q4711630 Q7094039 Q5500601 Q17113020 Q3366186
SYSTEM
Some of them are New Politics Initiative, New Democratic Party of Quebec, Northern Ontario Heritage Party, Democratic Representative Caucus, Parti Unité Nationale, Alberta First Party, Online Party of Canada, Freedom Party of Ontario, Young Communist League of Canada, Parti bleu
Q3366822 Q3366821 Q3366820 Q3366186 Q4835315 Q1518057 Q17013551 Q546881 Q4668273 Q1261966 Q15050564 Q7094822 Q3345050 Q2823686 Q2110304 Q18338405 Q2906769 Q3345046 Q909827 Q7148150 Q3366815 Q3366812 Q2978753 Q2160378 Q7309564 Q3366818 Q5159663 Q827958 Q1815983 Q17110240 Q6750153 Q919043 Q6518690 Q15980732 Q5291057 Q2348226 Q774542 Q5291058 Q918860 Q138345 Q3354487 Q3366254 Q7094880 Q488523 Q3550055 Q8078364 Q827589 Q3366499 Q7165703 Q7140307 Q3366492 Q7888990 Q951941 Q5154343 Q5500596 Q3366494 Q4711630 Q2642245 Q5008698 Q5255713 Q919052 Q3366150 Q17113020 Q3550699 Q3425534 Q116211 Q3550143 Q5154475 Q3366569 Q1661160 Q19365698 Q7006862 Q8025764 Q21189664 Q6016713 Q19604389 Q2867848 Q3366805 Q16977005 Q6521328 Q3366271 Q6750113 Q826977 Q3366476 Q3366477 Q3366170 Q739885 Q5137908 Q3366166 Q7248724 Q6980551 Q1553186 Q15304914 Q1292617 Q7878511 Q7011034 Q5500601 Q7551661 Q247332 Q2399535 Q7318897 Q5608218 Q7140333 Q17986244 Q3366750 Q1538184 Q17109196 Q21189258 Q1518382 Q692848 Q7318815 Q1631384 Q2344321 Q7887755 Q3418128 Q735105 Q3345043 Q7251614 Q5137463 Q5417232 Q2868020 Q7248788 Q7058810 Q2225652 Q2849999 Q7094039 Q5137462 Q7315993 Q7315992 Q3366481 Q3024104 Q3419932 Q5453502 Q5939365 Q3366722 Q4711576 Q7252670 Q17018697 Q6016857 Q7141018 Q7248708 Q3366294 Q7250899 Q3366684 Q691730 Q2660011 Q1450801 Q3366632 Q3366633 Q1680589 Q3366635 Q7551700 Q3366209 Q5030374 Q550026 Q7248775 Q3345049 Q343735 Q5603006 Q7551695 Q4711780 Q3345047 Q3345044 Q1104026 Q2112263 Q15980652 Q24283702 Q130765 Q939248 Q7551503
OR((c(Q7210356),P361,Q2482138), (c(Q7210356),P17,Q16))
action filter_type
action union
action find_reverse
entity Q2482138
relation P361
action find_reverse
entity Q16
relation P17
type Q7210356
[ANSWERS] are a part of Autonomy Liberty Participation Ecology or are situated in Canada
{'OR': [[{'concept': 'Q7210356'}, 'P361', 'Q2482138'], [{'concept': 'Q7210356'}, 'P17', 'Q16']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . { { ?f property:P361 resource:Q2482138 } UNION { ?f property:P17 resource:Q16 } } }
Yukon Green Party Green Party of New Brunswick Saskatchewan Green Party Parti bleu BC Refederation Party Progressive Conservative Association of Alberta Parti Chevreuil Canadian Alliance Abolitionist Party of Canada Progressive Party of Manitoba Équipe Denis Coderre pour Montréal Ontario Libertarian Party New Brunswick New Democratic Party Action libérale nationale Prince Edward Island Liberal Party Strength in Democracy Bloc populaire New Democratic Party of Prince Edward Island Conservative Party of Canada Patrons of Industry in Manitoba Green Party of Ontario Alberta Greens Clear Grits Communist Party of Canada Regroupement des militants syndicaux BC Green Party Confederate Association British Columbia Social Credit Party Union Nationale Option Verdun/Montréal Manitoba Reform Party British Columbia Liberal Party Socialist Party of Canada (British Columbia) Green Party of Nova Scotia Dominion Labour Party Coalition Avenir Québec New Democratic Party of Manitoba Dominion Labor Party British Columbia Conservative Party Liberal Party of Canada Option citoyenne Conservative Party of Quebec Ontario Provincial Confederation of Regions Party Conservative Party of Canada Quebec Citizens' Union Équipe Autonomiste Ontario New Democratic Party Manitoba Liberal Party People's Political Party of Ontario Parti canadien Liberal Party of Newfoundland and Labrador United Newfoundland Party Social Credit Party of Canada Communist Party of Canada, Manitoba branch Freedom Party of Canada Nova Scotia Liberal Party Alberta First Party Saskatchewan Liberal Party CANADA! Democratic Party of Canada British Columbia New Democratic Party Manitoba Social Credit Party Young Communist League of Canada United Farmers of Ontario Renouveau municipal de Québec Union Montreal Union des forces progressistes Communist Party – Alberta Labor-Progressive Party Saskatchewan New Democratic Party Communist Party of Quebec New Democracy Winnipeg Labour Party Ontario Moderate Party Independent Labour Party Equal Parenting Party New Brunswick Liberal Association Parti Unité Nationale Manitoba Grey Party Lemon Party Alberta Party Manitoba Party Progressive Conservative Party of Ontario Parti indépendantiste Parti indépendantiste Wildrose Party Yukon Party Coalition Démocratique–Montréal Écologique United Party of Canada Progressive Democratic Alliance Natural Law Party of Canada Ontario Liberal Party Vrai changement pour Montréal Progressive Conservative Party of Canada Ukrainian Social Democratic Party New Politics Initiative Freedom Party of Ontario Socialist Party of Canada (Manitoba) Progressive Conservative Party of Prince Edward Island Progressive Conservative Party of Newfoundland and Labrador Revolutionary Workers League/Ligue Ouvrière Révolutionnaire Grey Party of Canada Parti humaniste du Québec Canadian Socialist League Socialist Party of Canada Liberal-Conservative Party Manitoba Labour Party Canada Party Alberta Social Credit Party Democratic Representative Caucus Revolutionary Marxist Group Quebec Liberal Party Marxist-Leninist Party of Canada United Farmers of Canada Ralliement créditiste Bloc Québécois Newfoundland and Labrador New Democratic Party Protestant Protective Association Co-operative Commonwealth Federation (Manitoba Section) Green Party of Alberta Progressive Conservative Association of Nova Scotia Progressive Party of Manitoba Northern Ontario Heritage Party Saskatchewan Party Animal Alliance Environment Voters Party of Canada Online Party of Canada Co-operative Commonwealth Federation (Ontario Section) Responsible Government League Responsible Government Group Libertarian Party of Canada Rhinoceros Party Rassemblement pour l'Indépendance Nationale First Peoples Party Humanist Party of Ontario Parti social démocratique du Québec Alberta Alliance Party Provincial Party of British Columbia Équipe Andrée Champoux pour Verdun Independent Native Voice Party for the Commonwealth of Canada Progressive Conservative Party of Quebec Christian Heritage Party of Canada Prosperity for Posterity Party Parti républicain du Québec Green Party of Canada Québec solidaire Canadian Union of Fascists Progressive Conservative Party of New Brunswick Progressive Conservative Party of Manitoba Reform Party of Canada Progressive Canadian Party Socialist Party of Ontario Communist Party of Quebec Canadian Nazi Party Parti marxiste–léniniste du Québec Progressive Nationalist Party of British Columbia New Democratic Party of Quebec Action démocratique du Québec Green Party of Manitoba Socialist Party of North America Alberta Non-Partisan League Nova Scotia New Democratic Party Alberta New Democratic Party Co-operative Commonwealth Federation Progressive Party of Canada Newfoundland People's Party Alternative Greens New Democratic Party Alberta Liberal Party Socialist Action
New Politics Initiative, New Democratic Party of Quebec, Northern Ontario Heritage Party, Democratic Representative Caucus, Parti Unité Nationale, Alberta First Party, Online Party of Canada, Freedom Party of Ontario, Young Communist League of Canada and Parti bleu are a part of Autonomy Liberty Participation Ecology or are situated in Canada
New Politics Initiative New Democratic Party of Quebec Northern Ontario Heritage Party Democratic Representative Caucus Parti Unité Nationale Alberta First Party Online Party of Canada Freedom Party of Ontario Young Communist League of Canada Parti bleu
action filter_type
action union
action find_reverse
entity Autonomy Liberty Participation Ecology
relation part of
action find_reverse
entity Canada
relation country
type political organization
{'OR': [[{'concept': 'political organization'}, 'part of', 'Autonomy Liberty Participation Ecology'], [{'concept': 'political organization'}, 'country', 'Canada']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . { { ?f property:part_of resource:Autonomy_Liberty_Participation_Ecology } UNION { ?f property:country resource:Canada } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15144402 Q3366186
P17
Q1048835
USER
Which political territories do Parti bleu or St. D'Acre belong to ?
OR((Q3366186,P17,c(Q1048835)), (Q15144402,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3366186
relation P17
action find
entity Q15144402
relation P17
type Q1048835
{'OR': [['Q3366186', 'P17', {'concept': 'Q1048835'}], ['Q15144402', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3366186 property:P17 ?q } UNION { resource:Q15144402 property:P17 ?q } } . ?q rdf:type ontology:Q1048835 }
St. D'Acre Parti bleu
action filter_type
action union
action find
entity Parti bleu
relation country
action find
entity St. D'Acre
relation country
type political territorial entity
{'OR': [['Parti bleu', 'country', {'concept': 'political territorial entity'}], ["St. D'Acre", 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Parti_bleu property:country ?q } UNION { resource:St._D'Acre property:country ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q766
SYSTEM
Canada, Jamaica
Q16 Q766
OR((Q3366186,P17,c(Q1048835)), (Q15144402,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3366186
relation P17
action find
entity Q15144402
relation P17
type Q1048835
Parti bleu or St. D 'Acre belong to the [ANSWERS]
{'OR': [['Q3366186', 'P17', {'concept': 'Q1048835'}], ['Q15144402', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3366186 property:P17 ?q } UNION { resource:Q15144402 property:P17 ?q } } . ?q rdf:type ontology:Q1048835 }
Canada Jamaica
Parti bleu or St. D 'Acre belong to the Canada and Jamaica
Canada Jamaica
action filter_type
action union
action find
entity Parti bleu
relation country
action find
entity St. D'Acre
relation country
type political territorial entity
{'OR': [['Parti bleu', 'country', {'concept': 'political territorial entity'}], ["St. D'Acre", 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Parti_bleu property:country ?q } UNION { resource:St._D'Acre property:country ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1506544 Q2577145
P937 P20
Q515
USER
Which cities are the work locations of Willi Hasselbach or did Georg de Vries die ?
OR((Q2577145,P937,c(Q515)), (Q1506544,P20,c(Q515)))
action filter_type
action union
action find
entity Q2577145
relation P937
action find
entity Q1506544
relation P20
type Q515
{'OR': [['Q2577145', 'P937', {'concept': 'Q515'}], ['Q1506544', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2577145 property:P937 ?f } UNION { resource:Q1506544 property:P20 ?f } } . ?f rdf:type ontology:Q515 }
Georg de Vries Willi Hasselbach
action filter_type
action union
action find
entity Willi Hasselbach
relation work location
action find
entity Georg de Vries
relation place of death
type city
{'OR': [['Willi Hasselbach', 'work location', {'concept': 'city'}], ['Georg de Vries', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Willi_Hasselbach property:work_location ?f } UNION { resource:Georg_de_Vries property:place_of_death ?f } } . ?f rdf:type ontology:city }
[]
city
Q4174 Q1721
SYSTEM
Emden, Wiesbaden
Q4174 Q1721
OR((Q2577145,P937,c(Q515)), (Q1506544,P20,c(Q515)))
action filter_type
action union
action find
entity Q2577145
relation P937
action find
entity Q1506544
relation P20
type Q515
[ANSWERS] are the work locations of Willi Hasselbach or did Georg de Vries die
{'OR': [['Q2577145', 'P937', {'concept': 'Q515'}], ['Q1506544', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2577145 property:P937 ?f } UNION { resource:Q1506544 property:P20 ?f } } . ?f rdf:type ontology:Q515 }
Emden Wiesbaden
Emden and Wiesbaden are the work locations of Willi Hasselbach or did Georg de Vries die
Emden Wiesbaden
action filter_type
action union
action find
entity Willi Hasselbach
relation work location
action find
entity Georg de Vries
relation place of death
type city
{'OR': [['Willi Hasselbach', 'work location', {'concept': 'city'}], ['Georg de Vries', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Willi_Hasselbach property:work_location ?f } UNION { resource:Georg_de_Vries property:place_of_death ?f } } . ?f rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q515 Q515 Q20667921
USER
Which cities are known as the capital of atmost 12 cities and french administrative divisions ?
(c(Q515)|c(Q20667921),P36,c(Q515))
action atmost
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
value 12
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?l ) WHERE { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } GROUP BY ?g } . FILTER ( ?l <= 12 ) }
action atmost
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
value 12
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?l ) WHERE { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?g } . FILTER ( ?l <= 12 ) }
[]
city city type of french administrative division
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q15826 Q384403 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q320950 Q8254 Q592338 Q43199 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q917888 Q1070920 Q174096 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q3926 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q505208 Q1000336 Q911530 Q5838 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q3104 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q1362 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q1519 Q8684 Q270704 Q3838 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q7248 Q207408 Q1107569 Q1025387 Q316841 Q6602 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q7568 Q8652 Q842971 Q842976 Q3866 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q1953 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q9005 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q188082 Q2973 Q34261 Q137271 Q855060 Q1473 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q1858 Q2096 Q329775 Q1854 Q890122 Q855016 Q3787 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 Q1533 Q200077 Q47916 Q1856 Q3183016 Q328601 Q2410422 Q191097 Q542154 Q2526233 Q946769 Q3126 Q846351 Q739304 Q789233 Q7253 Q157835 Q819103 Q3046 Q368929 Q2936 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q2749 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q3904 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q470369 Q1863 Q1865 Q2209 Q2200 Q2203 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q517783 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q5781 Q6582 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q1761 Q2795 Q750224 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3936 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q18575 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515)|c(Q20667921),P36,c(Q515))
action atmost
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
value 12
[ANSWERS] are known as the capital of atmost 12 cities and french administrative divisions
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?l ) WHERE { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } GROUP BY ?g } . FILTER ( ?l <= 12 ) }
Palu Litoměřice Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Rafaela Kroměříž Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Trutnov Dharan Marawi Omaha Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Vinaròs Mamuju Sorsogon City Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Pretoria Surabaya Bonyhád Takahashi Castro Cottbus Gyál Ouarzazate Tandil Hajdúhadház Kabul Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Koblenz Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Kyiv Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Manila Kunszentmiklós Samarinda Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Islamabad Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Abu Dhabi Seoul Třebíč Kinshasa Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Vác Kerma Maasin Karlovo Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Wellington Masbate City Turquoise Mountain Kediri San Ignacio Kayes Abashiri Freiberg Tarlac Mianwali City Banjarmasin Békés Tábor Nakatsu Elek Yogyakarta Miami Sellye Mátészalka Dodoma Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Yerevan Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District Brussels Kaifeng Smolensk Dombóvár Jiankang Brno Metro, Indonesia Hildesheim Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Český Krumlov Darmstadt Port-au-Prince Kota Kinabalu Encs Davao City Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Worms Annaka Neubrandenburg Kostanay Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Iquique Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Hanoi Edmonton Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Abuja Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Baguio Caracas Morioka Lucknow Malaybalay Ungaran Hirado San Marcos, Costa Rica Tachov Koronadal Carn Dûm Mórahalom Erlangen Miyazu Hajdúnánás Balassagyarmat Padang Zaporizhzhya Berezivka Pforzheim Jindřichův Hradec Oldenburg Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Augsburg Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mbabane Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Kolín Andorra la Vella Kuala Lumpur Roxas Tuguegarao Arica Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Pinamar Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Langsa Carcassonne Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Chemnitz Strakonice Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Bamberg Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Tucson Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
Buenos Aires, Riga and Kyiv are known as the capital of atmost 12 cities and french administrative divisions
Buenos Aires Riga Kyiv
action atmost
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
value 12
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?l ) WHERE { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?g } . FILTER ( ?l <= 12 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P163
Q17335294 Q14660 Q515
USER
Which cities have their flag named more number of coats of arms or flags than that city ?
(c(Q515),P163,c(Q17335294)|c(Q14660))
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:Q14660 ?k } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q17335294 . ?x rdf:type ontology:Q14660 }
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:flag ?k } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag_or_coat_of_arms . ?x rdf:type ontology:flag }
[]
flag or coat of arms flag city
Comparative|More/Less|Mult. entity type|Clarification
Q1899
SYSTEM
Did you mean Kyiv ?
(c(Q515),P163,c(Q17335294)|c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:Q14660 ?k } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q17335294 . ?x rdf:type ontology:Q14660 }
Did you mean Kyiv ?
Kyiv
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:flag ?k } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag_or_coat_of_arms . ?x rdf:type ontology:flag }
[]
Comparative Reasoning (All)
USER
No, I meant Riga. Could you tell me the answer for that?
(c(Q515),P163,c(Q17335294)|c(Q14660))
Q1773
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
[]
SYSTEM
14
Q43196 Q1410 Q612815 Q19689 Q235 Q1953 Q1209 Q1865 Q23768 Q3926 Q1486 Q1773 Q157835 Q2135
(c(Q515),P163,c(Q17335294)|c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q14660 ?y } UNION { ?z property:Q14660 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q17335294 . ?x rdf:type ontology:Q14660 }
Cincinnati Gibraltar Garachico Tirana Monaco Yerevan Free Hanseatic City of Bremen Kuala Lumpur Las Vegas Pretoria Buenos Aires Riga Zaporizhzhya Winnipeg
14
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:flag ?y } UNION { ?z property:flag ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:flag_or_coat_of_arms . ?x rdf:type ontology:flag }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q1048835 Q515
USER
Which political territories have min number of cities as their county seat ?
(c(Q515),P1376,Q188732)
action argmin
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q188732']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1376 ?r . ?k rdf:type ontology:Q515 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P1376 ?y . ?y rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q515 } GROUP BY ?y } . FILTER ( ?q = ?i ) }
action argmin
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
[{'concept': 'city'}, 'capital of', 'Gomel Region']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:capital_of ?r . ?k rdf:type ontology:city . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:capital_of ?y . ?y rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:city } GROUP BY ?y } . FILTER ( ?q = ?i ) }
[]
political territorial entity city
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q7915647 Q7130037 Q132418 Q132410 Q13885 Q13887 Q6318040 Q6319902 Q208186 Q2703484 Q208183 Q208182 Q13728 Q13721 Q13723 Q13727 Q6317672 Q3321945 Q938891 Q10298683 Q849807 Q10500690 Q6317993 Q191061 Q3313189 Q2357511 Q260600 Q157070 Q164193 Q2696388 Q5925302 Q188399 Q10453 Q6115 Q3824788 Q6319605 Q10459 Q6119 Q2039666 Q5700 Q6321850 Q2696745 Q13902 Q515343 Q753689 Q2058837 Q3317759 Q3825827 Q3825439 Q167859 Q43448 Q215221 Q2608412 Q792933 Q8061684 Q2488777 Q599613 Q3824052 Q5777 Q1122980 Q6981448 Q1382499 Q3825382 Q8560940 Q2026858 Q7414298 Q3824230 Q103691 Q13769 Q13767 Q103699 Q3824339 Q13763 Q3313237 Q8172 Q8601 Q5685842 Q50615 Q7909 Q50616 Q7901 Q7902 Q7904 Q7905 Q7906 Q7907 Q234 Q605805 Q205126 Q605803 Q3995 Q102377 Q8165 Q3825242 Q5445332 Q5390290 Q104231 Q2622314 Q3312907 Q3312902 Q173407 Q8517 Q2702993 Q165956 Q6949621 Q133083 Q6156 Q2071352 Q1925048 Q210061 Q494354 Q9676 Q13867 Q13866 Q13864 Q205104 Q13789 Q35672 Q205089 Q3313400 Q104257 Q5047837 Q2737098 Q10544 Q10469 Q2485101 Q7290462 Q10462 Q1334322 Q10466 Q10465 Q628370 Q104891 Q4863230 Q205078 Q2039785 Q193307 Q127167 Q1229806 Q193266 Q89959 Q269272 Q971457 Q746558 Q8560844 Q6319387 Q6330 Q2707686 Q559600 Q18288155 Q6337 Q3312493 Q3824385 Q3678587 Q2967 Q6317167 Q408 Q2096228 Q13730 Q2846059 Q13739 Q599448 Q40 Q3312467 Q7931 Q13861 Q240 Q6319070 Q207973 Q3312924 Q2843759 Q105075 Q653605 Q2621919 Q3824849 Q869191 Q208185 Q6321798 Q6318172 Q539231 Q34617 Q2698844 Q383734 Q35 Q38610 Q3313291 Q3312974 Q2718534 Q7137570 Q3826135 Q5926575 Q7686343 Q5262649 Q192959 Q3321924 Q5455586 Q8566 Q6319759 Q3313129 Q25228 Q692946 Q210896 Q788626 Q81725 Q5692 Q533915 Q3322654 Q3312451 Q3313430 Q3825983 Q2342207 Q5088519 Q579801 Q585345 Q6319917 Q3236666 Q3321991 Q690880 Q6317752 Q1229833 Q20274 Q13778 Q103686 Q691 Q5164916 Q90027 Q3313822 Q3656379 Q642314 Q6318695 Q6308 Q632108 Q5096392 Q5031628 Q10461 Q3312393 Q3908 Q7898 Q7899 Q170213 Q7893 Q2917 Q7896 Q1399432 Q933179 Q5945 Q1803069 Q192702 Q2149622 Q160284 Q8522 Q4040 Q10896751 Q129286 Q6177392 Q1827027 Q13812 Q13810 Q8560764 Q781 Q6061 Q5705 Q707771 Q3826003 Q5095925 Q6318859 Q5720 Q13353 Q10471 Q10472 Q170604 Q3391867 Q166709 Q4502016 Q3825852 Q3825512 Q948230 Q3825929 Q874935 Q707584 Q40637 Q5577966 Q103659 Q594435 Q3322682 Q3825462 Q2486441 Q18288148 Q5096 Q3653113 Q23635 Q6321909 Q6317899 Q450521 Q2621992 Q3824597 Q834261 Q3557 Q5078 Q13740 Q2632922 Q4804007 Q5925410 Q1893486 Q3313278 Q2898 Q5051137 Q48098 Q201162 Q168856 Q178269 Q46070 Q7258563 Q18288152 Q2167140 Q104926 Q6317022 Q2718496 Q922842 Q3825702 Q41071 Q2718491 Q5932 Q8050384 Q2703450 Q3313040 Q3314201 Q2697234 Q231 Q106789 Q3312967 Q2486015 Q1468315 Q3313284 Q192536 Q4883554 Q3826044 Q205057 Q2486455 Q5048959 Q3826128 Q7414539 Q2379199 Q1769672 Q13845 Q13846 Q13841 Q13840 Q7421013 Q3825413 Q189974 Q193295 Q1038802 Q3315196 Q1039006 Q2566142 Q207413 Q3322644 Q173822 Q209142 Q604640 Q104746 Q6318726 Q638013 Q134907 Q5756 Q193714 Q1000 Q1229942 Q269509 Q6061367 Q2761723 Q769 Q685 Q103679 Q20264 Q763 Q1232887 Q766 Q103672 Q650489 Q2199691 Q7894 Q313969 Q6313 Q8048242 Q6317 Q2718510 Q18221 Q192184 Q13893 Q2875944 Q13895 Q5444794 Q593806 Q3903 Q1730130 Q13714 Q10551 Q13711 Q2842398 Q1117137 Q2761218 Q257516 Q505050 Q1787430 Q778266 Q201697 Q505220 Q7827062 Q3826249 Q4694508 Q209597 Q103093 Q7636360 Q178084 Q2697268 Q13807 Q170672 Q1230021 Q183 Q933576 Q1632864 Q200938 Q6109 Q8541 Q10562 Q151938 Q597029 Q3313100 Q104877 Q103738 Q103732 Q2703324 Q3825445 Q858617 Q211208 Q6316996 Q2723621 Q3824193 Q6318896 Q3317748 Q6318575 Q783091 Q207424 Q106915 Q5783 Q5785 Q2941 Q368273 Q79965 Q315840 Q6317226 Q13751 Q13750 Q5657086 Q2697641 Q309460 Q571947 Q7919 Q7917 Q7914 Q7911 Q7910 Q838690 Q48101 Q1233672 Q48106 Q185700 Q232806 Q3825025 Q3824537 Q1009130 Q2307775 Q7908 Q543868 Q16 Q5856660 Q2697221 Q2697637 Q539094 Q205068 Q130840 Q6320495 Q191091 Q10480 Q3321868 Q10483 Q10485 Q10487 Q339637 Q3031627 Q7380195 Q3825015 Q13871 Q13873 Q13875 Q13877 Q13879 Q3313020 Q2576396 Q190550 Q205112 Q874962 Q189822 Q211793 Q48054 Q6013498 Q211795 Q6319125 Q3312431 Q10554 Q2909 Q2640062 Q862584 Q170666 Q5091750 Q1787207 Q103707 Q2566284 Q48083 Q778 Q5924968 Q170446 Q468378 Q25305 Q193317 Q272033 Q6323 Q9331 Q2703091 Q18288162 Q18288160 Q35086 Q2885071 Q2367188 Q104940 Q1478051 Q188732
(c(Q515),P1376,Q188732)
action argmin
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
[ANSWERS] have min number of cities as their county seat
[{'concept': 'Q515'}, 'P1376', 'Q188732']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1376 ?r . ?k rdf:type ontology:Q515 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P1376 ?y . ?y rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q515 } GROUP BY ?y } . FILTER ( ?q = ?i ) }
Vargas Guerra District Panao District Northern Cape Mpumalanga Sultan Kudarat Sulu Paita District Huancayo District Ica Region Antabamba District Piura Region Moquegua Region Apayao Agusan del Sur Aklan Antique Ayabaca District Acarí District San Miguel District Huacrachuco Western Highlands Province San Miguel District San Pablo District, San Pablo Grodno Region Barranca District City of Dundee La Plata Partido County of Flanders Lviv Oblast Colquioc District Huamachuco District Central Bohemian Region Weißenburg-Gunzenhausen Barnim Yunguyo District Ichocán District Kitzingen Oberhavel Paracas District Lapland Junín District San Nicolás District, Rodríguez de Mendoza Zamboanga Sibugay Ranrahirca District Sandaun Province Purús District Putumayo District Coracora District Sancos District, Huanca Sancos Volyn Oblast British Indian Ocean Territory Huánuco Region Sicuani District Benito Juárez Yurimaguas District Huari District County of Namur Sivia District Extremadura Comtat Venaissin Nauta District Hela Lampa District Requena District Hudiksvall County San Ignacio District, Peru Ayaviri District Halland County Camiguin Camarines Sur Gävleborg County Ica District Camarines Norte Supe District Stuttgart Government Region Rhein-Lahn-Kreis Lircay District Akershus Main-Taunus-Kreis Hedmark Vogelsbergkreis Marburg-Biedenkopf Gießen Lahn-Dill-Kreis Limburg-Weilburg Rheingau-Taunus-Kreis Flemish Region Bagua District La Libertad Region Tocache District Basque Country Blekinge County Karlsruhe Government Region Chincha Alta District Ferreñafe District Laredo District Stockholm County Saavedra Checca District Coya District Ternopil Oblast Main-Tauber Haquira District North West Máncora District Gauteng Oberspreewald-Lausitz Callao Region San Pedro Partido Lambayeque Region Kara-Khanid Khanate Isle of Man Occidental Mindoro Nueva Vizcaya Northern Samar Puno Region Compostela Valley Pitcairn Islands Áncash Region Arahuay District Örebro County Casa Grande District Jumbilla District Munich (district) Main-Spessart County of Chiny Ramón Castilla District Haßberge County of Toulouse Bad Kissingen Rhön-Grabfeld Lobería Västernorrland County Barranca District, Datem del Marañón Cajamarca Region Tumbes Olomouc Region Western Cape Chachapoyas District Liberec Region French Community of Belgium Rioja District Lunahuaná District Emirate of Bukhara Manseriche District Querco District Zwickau Casma District Güstrow Metropolitan City of Milan Vogtlandkreis Ccatca District Huancané District Metropolitan City of Venice Rendsburg-Eckernförde Tambopata Australia Tornquist Aurora Andahuaylillas District Bataan Chimbu Province Austria Tacna District Giessen Government Region Mountain Province Brussels Magdalena de Cao District Junín Region Moquegua District Locumba Västmanland County Coronel Rosales Patagones Juliaca District Coronel Dorrego Apurímac Region Sexi District Zarumilla Ambo District Saint Pierre and Miquelon Chimbote District Iquitos District Denmark Dominion of Newfoundland San Vicente de Cañete District Calca District Lurigancho Pariñas District Puquio District Huaytará District Tarma District Jauja District Minsk Region Arequipa Fitzcarrald Alzey-Worms Sicaya District Cerro Azul District Anguilla Gorizia and Gradisca Madre de Dios Region Bahía Blanca KwaZulu-Natal Southern Ostrobothnia Malmöhus County Tinta District Marcona District Antioquia District Tarata San Cayetano Chavinillo District Gothenburg and Bohus County Coronel Pringles Pedro Galvez District Huaura District Camaná District East Sepik Province Picota District Granada District Weißeritzkreis Catanduanes Norrbotten County Papua New Guinea Contamana District German-speaking Community of Belgium Pachangara District Davao Occidental County of Burgundy Pimentel Leipzig Lincoln Partido Chiclayo District Candarave Schweinfurt Ayacucho District Galicia Hersfeld-Rotenburg Fulda Zakarpattia Oblast Waldeck-Frankenberg Vorpommern-Greifswald District Werra-Meißner-Kreis Almirante Brown Huánuco District Cloppenburg Bad Aibling county Ústí nad Labem Region Rivadavia Department Free State Ostalb Aragon Llipa District British Raj Jenaro Herrera District Mar Chiquita Partido Ifugao Guimaras Indiana District, Maynas Antigua and Barbuda Altmarkkreis Salzwedel Catalonia County of Bentheim Chucuito District Chicama District Lambayeque District Valencian Country Montserrat Aschaffenburg Miltenberg New France Guadalupe District Vinnytsia Oblast Juanjui District Macusani District Sandia District Oyón District Cangallo District Manus Province County of Loon Zhytomyr Oblast Pampas District, Tayacaja Skåne County Layo District Huayllabamba District Anta District Padre Abad Metropolitan City of Florence West Papua Kingdom of Syunik Bermuda Río Tambo District Moyobamba District Magdeburg Government Region Villarino Moho District Bolívar Partido Central Java Province South Sulawesi Batanes Chancay District Ascope District Huancavelica District County of Jaffa and Ascalon Santa Ana District, La Convención Rostock District Catacaos Rostock District Amazonas Region Chernivtsi Oblast Ivano-Frankivsk Oblast Plzeň Region Puerto Inca District Metropolitan City of Genoa Rauch Partido Uppsala County Sechura District Andahuaylas District Skaraborg County Juli District Gangwon Province Acomayo District Friesland Yavari District Chalhuanca District Yucay District Achoma District Huaraz District Walloon Region Värmland County Urubamba District Callería Pozuzo District Mala District Zlín Region Bellavista District Quinua District Cusco Region Manantay Casitas Huancabamba District San José de Sisa District politics of Edinburgh La Sotonera Maguindanao Marinduque Lanao del Norte Laguna Saposoa District Pausa District Jõgeva County Hradec Králové Region Junín Partido Huambo District Laprida Huacho District Tacna Region Mollendo District Brest Region South Lanarkshire General Villegas Partido Kronoberg County Tarapoto District Tinajo, Las Palmas Limpopo Community of Madrid Mandatory Palestine Gabon La Jalca District Coronel Suárez Monsefú District Puan Grenada Solomon Islands Jämtland County Sächsische Schweiz Saint Kitts and Nevis County of Savoy Jamaica Jönköping County Margraviate of Baden Monte Hermoso Schwalm-Eder-Kreis Regierungsbezirk Minden Meissen Yanahuanca Görlitz Abancay District Turks and Caicos Islands Saint Helena, Ascension and Tristan da Cunha Tawi-Tawi Omate District Zambales Fernando Lores District Llata District North Kalimantan Later Qin Agusan del Norte Middle Franconia Abra Trujillo District Raimondi Jesús District Oxapampa District Adolfo Gonzales Chaves Niesky District County of Artois Leimebamba District Huancavelica Region Torres Causana District Chuschi District Aguas Verdes Tumbes department Västra Götaland County Sullana District Ilkhanate Chavín de Huantar District Dinagat Islands Dnipropetrovsk Oblast Nieva District Germany Santa Cruz District Huaral District Loreto Region Uckermark Ludwigsburg Upper Bavaria Neutral Moresnet Bagua Grande District Kimbiri District Västerbotten county Gotland County Dalarna County Tambobamba District Piura District Carlos Tejedor Partido Pasco Region Zorritos Cusco Querobamba District Moche District Ilave District Iñapari Ayacucho Partido Ucayali Region Södermanland County Andalusia Cayman Islands Schleswig-Flensburg Lámud District Golden Horde County of Veldenz Lamas District Biliran Benguet Manú Pamparomas District County of Hainaut Bautzen Odenwaldkreis Kreis Bergstraße Groß-Gerau Main-Kinzig-Kreis Wetteraukreis New Ireland Province Schwerin District County of Barcelona Suhl District Vitebsk Region County of Edessa Puno District Azángaro District General La Madrid Sepahua Hochtaunuskreis Chaupimarca District Canada Mito District Corongo District San Marcos District El Algarrobal District Arequipa Region Eastern Cape San Ramón District Karlovy Vary Region Dingolfing-Landau Samuel Pastor District Regen Deggendorf Freyung-Grafenau Kristianstad County Nazca District Rupa-Rupa District Putina District Pangasinan Quirino Romblon Sarangani Siquijor Pichari District Huanta District Moravian-Silesian Region Ayacucho Region Milne Bay Province Mogilev Region San Martín Region Erfurt Inambari Lima Region Pacasmayo District Cajamarca Upper Franconia Vorpommern-Rügen District Aramango District Enga Province Kharkiv Oblast Chepén District Kreis Auerbach Kalmar County Pisco District Magdeburg The Bahamas Huacaybamba Sumy Oblast County of Hoya British Virgin Islands Pardubice Region County of Tripoli Sächsische Schweiz-Osterzgebirge Flemish Community Chincheros District Metropolitan City of Turin Metropolitan City of Rome South Georgia and the South Sandwich Islands Ilo District Härnösand County Östergötland County La Oroya District Gomel Region
Germany, Australia and Denmark have min number of cities as their county seat
Germany Australia Denmark
action argmin
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
[{'concept': 'city'}, 'capital of', 'Gomel Region']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:capital_of ?r . ?k rdf:type ontology:city . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:capital_of ?y . ?y rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:city } GROUP BY ?y } . FILTER ( ?q = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q403
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately the same number of political territories as Serbia ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q403
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Q403 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { ?c property:P530 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?c } }
Serbia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Serbia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Serbia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { ?c property:diplomatic_relation ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
designation for an administrative territorial entity political territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q403
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of political territories as Serbia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Q403 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { ?c property:P530 ?f . ?c rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?c } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
United States of America, Russia and France have diplomatic relationships with approximately the same number of political territories as Serbia
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Serbia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { resource:Serbia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?m ) WHERE { ?c property:diplomatic_relation ?f . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q211
P530
Q15617994 Q1048835
USER
And how about Latvia?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?z property:P530 ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q211 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?n ) }
Latvia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Latvia property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?n ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?z property:P530 ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q211 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?n ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Latvia property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?n ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q777635
P530
Q1048835
USER
Do São Caetano, Pernambuco have diplomatic relations with those administrative territories ?
(Q777635,P530,Q230) (Q777635,P530,Q184) (Q777635,P530,Q32)
action is_in
entity prev_answer
action find
entity Q777635
relation P530
['Q777635', 'P530', 'Q230'] ['Q777635', 'P530', 'Q184'] ['Q777635', 'P530', 'Q32']
ASK WHERE { resource:Q777635 property:P530 ?g . VALUES ( ?g ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } }
São Caetano, Pernambuco
action is_in
entity prev_answer
action find
entity São Caetano, Pernambuco
relation diplomatic relation
['São Caetano, Pernambuco', 'diplomatic relation', 'Georgia'] ['São Caetano, Pernambuco', 'diplomatic relation', 'Belarus'] ['São Caetano, Pernambuco', 'diplomatic relation', 'Luxembourg']
ASK WHERE { resource:São_Caetano,_Pernambuco property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } }
[]
political territorial entity
SYSTEM
NO
(Q777635,P530,Q230) (Q777635,P530,Q184) (Q777635,P530,Q32)
action is_in
entity prev_answer
action find
entity Q777635
relation P530
[ANSWER]
['Q777635', 'P530', 'Q230'] ['Q777635', 'P530', 'Q184'] ['Q777635', 'P530', 'Q32']
ASK WHERE { resource:Q777635 property:P530 ?g . VALUES ( ?g ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } }
No
action is_in
entity prev_answer
action find
entity São Caetano, Pernambuco
relation diplomatic relation
['São Caetano, Pernambuco', 'diplomatic relation', 'Georgia'] ['São Caetano, Pernambuco', 'diplomatic relation', 'Belarus'] ['São Caetano, Pernambuco', 'diplomatic relation', 'Luxembourg']
ASK WHERE { resource:São_Caetano,_Pernambuco property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } }
[]