Simple Question (Direct)
Simple Question
Q19360986
P19
Q20667921
USER
Which french administrative division was Bernard Tremeau born at ?
(Q19360986,P19,c(Q20667921))
action filter_type
action find
entity Q19360986
relation P19
type Q20667921
['Q19360986', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q19360986 property:P19 ?q . ?q rdf:type ontology:Q20667921 }
Bernard Tremeau
action filter_type
action find
entity Bernard Tremeau
relation place of birth
type type of french administrative division
['Bernard Tremeau', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Bernard_Tremeau property:place_of_birth ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q203645
SYSTEM
Chalon-sur-Saône
Q203645
(Q19360986,P19,c(Q20667921))
action filter_type
action find
entity Q19360986
relation P19
type Q20667921
Bernard Tremeau was born in [ANSWER]
['Q19360986', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q19360986 property:P19 ?q . ?q rdf:type ontology:Q20667921 }
Chalon-sur-Saône
Bernard Tremeau was born in Chalon-sur-Saône
Chalon-sur-Saône
action filter_type
action find
entity Bernard Tremeau
relation place of birth
type type of french administrative division
['Bernard Tremeau', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Bernard_Tremeau property:place_of_birth ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q203645
P36
Q20667921
USER
Which french administrative divisions have that one as their administrative centre ?
(c(Q20667921),P36,Q203645)
action filter_type
action find_reverse
entity Q203645
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q203645']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q203645 . ?t rdf:type ontology:Q20667921 }
Chalon-sur-Saône
action filter_type
action find_reverse
entity Chalon-sur-Saône
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Chalon-sur-Saône']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Chalon-sur-Saône . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q600091 Q17175842 Q17175840
SYSTEM
canton of Chalon-sur-Saône-Sud, canton of Chalon-sur-Saône-3, canton of Chalon-sur-Saône-2
Q600091 Q17175842 Q17175840 Q1541013 Q1540882 Q17175837 Q1540945
(c(Q20667921),P36,Q203645)
action filter_type
action find_reverse
entity Q203645
relation P36
type Q20667921
[ANSWERS] have that one as their administrative centre
[{'concept': 'Q20667921'}, 'P36', 'Q203645']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q203645 . ?t rdf:type ontology:Q20667921 }
canton of Chalon-sur-Saône-Sud canton of Chalon-sur-Saône-3 canton of Chalon-sur-Saône-2 canton of Chalon-sur-Saône-Nord canton of Chalon-sur-Saône-Ouest canton of Chalon-sur-Saône-1 canton of Chalon-sur-Saône-Centre
Canton of Chalon-sur-Saône-Sud, canton of Chalon-sur-Saône-3 and canton of Chalon-sur-Saône-2 have that one as their administrative centre
canton of Chalon-sur-Saône-Sud canton of Chalon-sur-Saône-3 canton of Chalon-sur-Saône-2
action filter_type
action find_reverse
entity Chalon-sur-Saône
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Chalon-sur-Saône']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Chalon-sur-Saône . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17175842
P17
Q15617994
USER
Which administrative territory does that french administrative division belong to ?
(Q17175842,P17,c(Q15617994))
action filter_type
action find
entity Q17175842
relation P17
type Q15617994
['Q17175842', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q17175842 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
canton of Chalon-sur-Saône-3
action filter_type
action find
entity canton of Chalon-sur-Saône-3
relation country
type designation for an administrative territorial entity
['canton of Chalon-sur-Saône-3', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:canton_of_Chalon-sur-Saône-3 property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q17175840
SYSTEM
Did you mean canton of Chalon-sur-Saône-2 ?
Q600091 Q17175842 Q17175840
(Q600091,P17,c(Q15617994)) (Q17175842,P17,c(Q15617994)) (Q17175840,P17,c(Q15617994))
[ANSWER]
['Q600091', 'P17', {'concept': 'Q15617994'}] ['Q17175842', 'P17', {'concept': 'Q15617994'}] ['Q17175840', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q17175842 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
canton of Chalon-sur-Saône-Sud canton of Chalon-sur-Saône-3 canton of Chalon-sur-Saône-2
Did you mean canton of Chalon-sur-Saône-2 ?
canton of Chalon-sur-Saône-2
['canton of Chalon-sur-Saône-Sud', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Chalon-sur-Saône-3', 'country', {'concept': 'designation for an administrative territorial entity'}] ['canton of Chalon-sur-Saône-2', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:canton_of_Chalon-sur-Saône-3 property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant canton of Chalon-sur-Saône-3. Could you tell me the answer for that?
(Q17175842,P17,c(Q15617994))
Q17175842
['Q17175842', 'P17', {'concept': 'Q15617994'}]
['canton of Chalon-sur-Saône-3', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q17175842,P17,c(Q15617994))
action filter_type
action find
entity Q17175842
relation P17
type Q15617994
That french administrative division belongs to the [ANSWER]
['Q17175842', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q17175842 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
France
That french administrative division belongs to the France
France
action filter_type
action find
entity canton of Chalon-sur-Saône-3
relation country
type designation for an administrative territorial entity
['canton of Chalon-sur-Saône-3', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:canton_of_Chalon-sur-Saône-3 property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q142 Q1064303
P17
Q20667921
USER
Is Bourlens present in that administrative territory ?
(Q1064303,P17,Q142)
action is_in
entity Q142
action find
entity Q1064303
relation P17
['Q1064303', 'P17', 'Q142']
ASK WHERE { resource:Q1064303 property:P17 resource:Q142 }
France Bourlens
action is_in
entity France
action find
entity Bourlens
relation country
['Bourlens', 'country', 'France']
ASK WHERE { resource:Bourlens property:country resource:France }
[]
type of french administrative division
SYSTEM
YES
(Q1064303,P17,Q142)
action is_in
entity Q142
action find
entity Q1064303
relation P17
[ANSWER]
['Q1064303', 'P17', 'Q142']
ASK WHERE { resource:Q1064303 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Bourlens
relation country
['Bourlens', 'country', 'France']
ASK WHERE { resource:Bourlens property:country resource:France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with atmost 15 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?a <= 15 ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?a <= 15 ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
159
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?a <= 15 ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
159
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?a <= 15 ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q35 Q142
P27
Q502895
USER
Which people are civilians of France and Denmark ?
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q35))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q35
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q35']]}
SELECT DISTINCT ?m WHERE { ?m property:P27 resource:Q142 . ?m property:P27 resource:Q35 . ?m rdf:type ontology:Q502895 }
Denmark France
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Denmark
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Denmark']]}
SELECT DISTINCT ?m WHERE { ?m property:country_of_citizenship resource:France . ?m property:country_of_citizenship resource:Denmark . ?m rdf:type ontology:common_name }
[]
common name
Q1677684 Q266086 Q1389258 Q134741 Q12300884 Q980235 Q3068554 Q1974920 Q12316527 Q232113
SYSTEM
Some of them are Jacob B. Winslow, Gerda Wegener, Henrik, Prince Consort of Denmark, Camille Pissarro, Albert de Rault de Ramsault de Tortonval, Conrad Malte-Brun, Ferdinand Eckstein, Niels Arestrup, Henry de Cheusses, Anna Karina
Q3068554 Q12312231 Q12324934 Q1677684 Q12312228 Q232113 Q17482299 Q448812 Q12313101 Q1974920 Q2851147 Q1393973 Q134741 Q1389258 Q12300884 Q12319161 Q266086 Q12316527 Q3784452 Q3558136 Q980235
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q35))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q35
relation P27
type Q502895
[ANSWERS] are civilians of France and Denmark
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q35']]}
SELECT DISTINCT ?m WHERE { ?m property:P27 resource:Q142 . ?m property:P27 resource:Q35 . ?m rdf:type ontology:Q502895 }
Ferdinand Eckstein François Poisson du Mesnil Louis-Claude Le Normand de Bretteville Jacob B. Winslow François-Céléstin de Loynes-Barraud de la Coudraye Anna Karina Frédéric Charles de La Rochefoucauld August Bournonville Frédéric-Henri de Suzannet de La Forest Niels Arestrup Anne Kjærsgaard Laurent Angliviel de la Beaumelle Camille Pissarro Henrik, Prince Consort of Denmark Albert de Rault de Ramsault de Tortonval Jean la Placette Gerda Wegener Henry de Cheusses Pola Gauguin Viggo Dorph-Petersen Conrad Malte-Brun
Jacob B. Winslow, Gerda Wegener, Henrik, Prince Consort of Denmark, Camille Pissarro, Albert de Rault de Ramsault de Tortonval, Conrad Malte-Brun, Ferdinand Eckstein, Niels Arestrup, Henry de Cheusses and Anna Karina are civilians of France and Denmark
Jacob B. Winslow Gerda Wegener Henrik, Prince Consort of Denmark Camille Pissarro Albert de Rault de Ramsault de Tortonval Conrad Malte-Brun Ferdinand Eckstein Niels Arestrup Henry de Cheusses Anna Karina
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Denmark
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Denmark']]}
SELECT DISTINCT ?m WHERE { ?m property:country_of_citizenship resource:France . ?m property:country_of_citizenship resource:Denmark . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1600621 Q17175842
P47 P36
Q20667921
USER
Which french administrative divisions are the capitals of canton of Chalon-sur-Saône-3 or are adjacent to Mézens ?
OR((Q17175842,P36,c(Q20667921)), (Q1600621,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q17175842
relation P36
action find
entity Q1600621
relation P47
type Q20667921
{'OR': [['Q17175842', 'P36', {'concept': 'Q20667921'}], ['Q1600621', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17175842 property:P36 ?w } UNION { resource:Q1600621 property:P47 ?w } } . ?w rdf:type ontology:Q20667921 }
Mézens canton of Chalon-sur-Saône-3
action filter_type
action union
action find
entity canton of Chalon-sur-Saône-3
relation capital
action find
entity Mézens
relation shares border with
type type of french administrative division
{'OR': [['canton of Chalon-sur-Saône-3', 'capital', {'concept': 'type of french administrative division'}], ['Mézens', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?w WHERE { { { resource:canton_of_Chalon-sur-Saône-3 property:capital ?w } UNION { resource:Mézens property:shares_border_with ?w } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1598626 Q947141 Q203645 Q1597833 Q1467036 Q1344893
SYSTEM
Roquemaure, Saint-Sulpice, Chalon-sur-Saône, Rabastens, Grazac, Buzet-sur-Tarn
Q1598626 Q947141 Q203645 Q1597833 Q1467036 Q1344893
OR((Q17175842,P36,c(Q20667921)), (Q1600621,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q17175842
relation P36
action find
entity Q1600621
relation P47
type Q20667921
[ANSWERS] are the capitals of canton of Chalon-sur-Saône-3 or are adjacent to Mézens
{'OR': [['Q17175842', 'P36', {'concept': 'Q20667921'}], ['Q1600621', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17175842 property:P36 ?w } UNION { resource:Q1600621 property:P47 ?w } } . ?w rdf:type ontology:Q20667921 }
Roquemaure Saint-Sulpice Chalon-sur-Saône Rabastens Grazac Buzet-sur-Tarn
Roquemaure, Saint-Sulpice, Chalon-sur-Saône, Rabastens, Grazac and Buzet-sur-Tarn are the capitals of canton of Chalon-sur-Saône-3 or are adjacent to Mézens
Roquemaure Saint-Sulpice Chalon-sur-Saône Rabastens Grazac Buzet-sur-Tarn
action filter_type
action union
action find
entity canton of Chalon-sur-Saône-3
relation capital
action find
entity Mézens
relation shares border with
type type of french administrative division
{'OR': [['canton of Chalon-sur-Saône-3', 'capital', {'concept': 'type of french administrative division'}], ['Mézens', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?w WHERE { { { resource:canton_of_Chalon-sur-Saône-3 property:capital ?w } UNION { resource:Mézens property:shares_border_with ?w } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q20667921 Q7946 Q618779
USER
Which french administrative divisions are the etymology of max number of minerals and awards ?
(c(Q7946)|c(Q618779),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q7946
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
[[{'concept': 'Q7946'}, {'concept': 'Q618779'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?d WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7946 ) ( ontology:Q618779 ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { ?g rdf:type ?o . VALUES ( ?o ) { ( ontology:Q7946 ) ( ontology:Q618779 ) } } GROUP BY ?w } . FILTER ( ?m = ?p ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type mineral
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
[[{'concept': 'mineral'}, {'concept': 'award'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?d WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:mineral ) ( ontology:award ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { ?g rdf:type ?o . VALUES ( ?o ) { ( ontology:mineral ) ( ontology:award ) } } GROUP BY ?w } . FILTER ( ?m = ?p ) }
[]
type of french administrative division mineral award
Q325946 Q947091
SYSTEM
Landerneau, Romanèche-Thorins
Q325946 Q947091
(c(Q7946)|c(Q618779),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q7946
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q618779
[ANSWERS] are the etymology of max number of minerals and awards
[[{'concept': 'Q7946'}, {'concept': 'Q618779'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?d WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7946 ) ( ontology:Q618779 ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { ?g rdf:type ?o . VALUES ( ?o ) { ( ontology:Q7946 ) ( ontology:Q618779 ) } } GROUP BY ?w } . FILTER ( ?m = ?p ) }
Landerneau Romanèche-Thorins
Landerneau and Romanèche-Thorins are the etymology of max number of minerals and awards
Landerneau Romanèche-Thorins
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type mineral
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type award
[[{'concept': 'mineral'}, {'concept': 'award'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?d WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:mineral ) ( ontology:award ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { ?g rdf:type ?o . VALUES ( ?o ) { ( ontology:mineral ) ( ontology:award ) } } GROUP BY ?w } . FILTER ( ?m = ?p ) }
[]