Simple Question (Direct)
Simple Question
Q703963
P27
Q1048835
USER
Which political territory does Sterling Lyon belong to ?
(Q703963,P27,c(Q1048835))
action filter_type
action find
entity Q703963
relation P27
type Q1048835
['Q703963', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q703963 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Sterling Lyon
action filter_type
action find
entity Sterling Lyon
relation country of citizenship
type political territorial entity
['Sterling Lyon', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sterling_Lyon property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q703963,P27,c(Q1048835))
action filter_type
action find
entity Q703963
relation P27
type Q1048835
Sterling Lyon belongs to [ANSWER]
['Q703963', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q703963 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Canada
Sterling Lyon belongs to Canada
Canada
action filter_type
action find
entity Sterling Lyon
relation country of citizenship
type political territorial entity
['Sterling Lyon', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sterling_Lyon property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q703963
P991
Q3586944
USER
Where was Sterling Lyon elected successfully from ?
(c(Q3586944),P991,Q703963)
action filter_type
action find_reverse
entity Q703963
relation P991
type Q3586944
[{'concept': 'Q3586944'}, 'P991', 'Q703963']
SELECT DISTINCT ?e WHERE { ?e property:P991 resource:Q703963 . ?e rdf:type ontology:Q3586944 }
Sterling Lyon
action filter_type
action find_reverse
entity Sterling Lyon
relation successful candidate
type Manitoba general election
[{'concept': 'Manitoba general election'}, 'successful candidate', 'Sterling Lyon']
SELECT DISTINCT ?e WHERE { ?e property:successful_candidate resource:Sterling_Lyon . ?e rdf:type ontology:Manitoba_general_election }
[]
Manitoba general election
Q6750205
SYSTEM
Manitoba general election, 1977
Q6750205
(c(Q3586944),P991,Q703963)
action filter_type
action find_reverse
entity Q703963
relation P991
type Q3586944
Sterling Lyon was elected successfully from the [ANSWER]
[{'concept': 'Q3586944'}, 'P991', 'Q703963']
SELECT DISTINCT ?e WHERE { ?e property:P991 resource:Q703963 . ?e rdf:type ontology:Q3586944 }
Manitoba general election, 1977
Sterling Lyon was elected successfully from the Manitoba general election, 1977
Manitoba general election, 1977
action filter_type
action find_reverse
entity Sterling Lyon
relation successful candidate
type Manitoba general election
[{'concept': 'Manitoba general election'}, 'successful candidate', 'Sterling Lyon']
SELECT DISTINCT ?e WHERE { ?e property:successful_candidate resource:Sterling_Lyon . ?e rdf:type ontology:Manitoba_general_election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q703963
P21
Q290
USER
What is the sex of Sterling Lyon ?
(Q703963,P21,c(Q290))
action filter_type
action find
entity Q703963
relation P21
type Q290
['Q703963', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q703963 property:P21 ?g . ?g rdf:type ontology:Q290 }
Sterling Lyon
action filter_type
action find
entity Sterling Lyon
relation gender
type sex
['Sterling Lyon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Sterling_Lyon property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q703963,P21,c(Q290))
action filter_type
action find
entity Q703963
relation P21
type Q290
The sex of Sterling Lyon is a [ANSWER]
['Q703963', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q703963 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of Sterling Lyon is a male
male
action filter_type
action find
entity Sterling Lyon
relation gender
type sex
['Sterling Lyon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Sterling_Lyon property:gender ?g . ?g rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1054923
P495
Q1048835 Q2088357 Q838948
USER
How many political territories are the origins of greater number of musical ensembles or works of art than British Hong Kong ?
(c(Q2088357)|c(Q838948),P495,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1054923
relation P495
type Q2088357
type Q838948
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?n } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } . ?p property:P495 resource:Q1054923 } } }
British Hong Kong
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity British Hong Kong
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?n } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ?w . VALUES ( ?w ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } . ?p property:country_of_origin resource:British_Hong_Kong } } }
[]
political territorial entity musical ensemble work of art
SYSTEM
9
Q838261 Q183 Q664 Q766 Q16 Q35 Q407199 Q408 Q40
(c(Q2088357)|c(Q838948),P495,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1054923
relation P495
type Q2088357
type Q838948
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?n } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } . ?p property:P495 resource:Q1054923 } } }
Federal Republic of Yugoslavia Germany New Zealand Jamaica Canada Denmark Palestinian territories Australia Austria
9
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity British Hong Kong
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?n } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ?w . VALUES ( ?w ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } . ?p property:country_of_origin resource:British_Hong_Kong } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P47
Q15617994
USER
Which administrative territories are bordered by Canada ?
(Q16,P47,c(Q15617994))
action filter_type
action find
entity Q16
relation P47
type Q15617994
['Q16', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q16 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Canada
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Canada property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1979 Q30 Q223
SYSTEM
Prince Edward Island, United States of America, Greenland
Q1979 Q30 Q223
(Q16,P47,c(Q15617994))
action filter_type
action find
entity Q16
relation P47
type Q15617994
[ANSWERS] are bordered by Canada
['Q16', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q16 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Prince Edward Island United States of America Greenland
Prince Edward Island, United States of America and Greenland are bordered by Canada
Prince Edward Island United States of America Greenland
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Canada property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1979 Q30 Q223
P36
Q56061
USER
Which administrative territories are the capitals of those administrative territories ?
(Q1979,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q223,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q1979', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q223', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?r property:P36 ?l . VALUES ( ?r ) { ( resource:Q1979 ) ( resource:Q30 ) ( resource:Q223 ) } }
Prince Edward Island United States of America Greenland
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Prince Edward Island', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Greenland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?r property:capital ?l . VALUES ( ?r ) { ( resource:Prince_Edward_Island ) ( resource:United_States_of_America ) ( resource:Greenland ) } }
[]
administrative territorial entity
Q60 Q61 Q226
SYSTEM
New York City, Washington, D.C., Nuuk
Q2127 Q60 Q61 Q226
(Q1979,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q223,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are the capitals of those administrative territories
['Q1979', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q223', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?r property:P36 ?l . VALUES ( ?r ) { ( resource:Q1979 ) ( resource:Q30 ) ( resource:Q223 ) } }
Charlottetown New York City Washington, D.C. Nuuk
New York City, Washington, D.C. and Nuuk are the capitals of those administrative territories
New York City Washington, D.C. Nuuk
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Prince Edward Island', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Greenland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?r property:capital ?l . VALUES ( ?r ) { ( resource:Prince_Edward_Island ) ( resource:United_States_of_America ) ( resource:Greenland ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1979
P610
Q56061
USER
Which is the zenith of that administrative territory ?
(Q1979,P610,c(Q56061))
action filter_type
action find
entity Q1979
relation P610
type Q56061
['Q1979', 'P610', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1979 property:P610 ?z }
Prince Edward Island
action filter_type
action find
entity Prince Edward Island
relation highest point
type administrative territorial entity
['Prince Edward Island', 'highest point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Prince_Edward_Island property:highest_point ?z }
[]
administrative territorial entity
Clarification for simple ques.
Q1979
SYSTEM
Did you mean Prince Edward Island ?
Q60 Q61 Q226
(Q60,P610,c(Q56061)) (Q61,P610,c(Q56061)) (Q226,P610,c(Q56061))
[ANSWER]
['Q60', 'P610', {'concept': 'Q56061'}] ['Q61', 'P610', {'concept': 'Q56061'}] ['Q226', 'P610', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1979 property:P610 ?z }
New York City Washington, D.C. Nuuk
Did you mean Prince Edward Island ?
Prince Edward Island
['New York City', 'highest point', {'concept': 'administrative territorial entity'}] ['Washington, D.C.', 'highest point', {'concept': 'administrative territorial entity'}] ['Nuuk', 'highest point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Prince_Edward_Island property:highest_point ?z }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1979,P610,c(Q56061))
['Q1979', 'P610', {'concept': 'Q56061'}]
['Prince Edward Island', 'highest point', {'concept': 'administrative territorial entity'}]
[]
Q3143359
SYSTEM
Hunter River, Prince Edward Island
Q3143359
(Q1979,P610,c(Q56061))
action filter_type
action find
entity Q1979
relation P610
type Q56061
The zenith of that administrative territory is [ANSWER]
['Q1979', 'P610', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1979 property:P610 ?z }
Hunter River, Prince Edward Island
The zenith of that administrative territory is Hunter River, Prince Edward Island
Hunter River, Prince Edward Island
action filter_type
action find
entity Prince Edward Island
relation highest point
type administrative territorial entity
['Prince Edward Island', 'highest point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Prince_Edward_Island property:highest_point ?z }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q2235308 Q159334
USER
Which administrative territories are min number of ship types and secondary schools present in ?
(c(Q2235308)|c(Q159334),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
[[{'concept': 'Q2235308'}, {'concept': 'Q159334'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?k ) { ( ontology:Q2235308 ) ( ontology:Q159334 ) } . ?r rdf:type ?k } GROUP BY ?e } } . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?o ) WHERE { { ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2235308 . ?b property:P17 ?y } UNION { ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q159334 . ?b property:P17 ?y } } GROUP BY ?y } . FILTER ( ?o = ?s ) }
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
[[{'concept': 'ship type'}, {'concept': 'secondary school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?k ) { ( ontology:ship_type ) ( ontology:secondary_school ) } . ?r rdf:type ?k } GROUP BY ?e } } . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?o ) WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:ship_type . ?b property:country ?y } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:secondary_school . ?b property:country ?y } } GROUP BY ?y } . FILTER ( ?o = ?s ) }
[]
designation for an administrative territorial entity ship type secondary school
Q230 Q953 Q184
SYSTEM
Georgia, Zambia, Belarus
Q804 Q800 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q262 Q783 Q784 Q265 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q399 Q1462 Q657 Q792 Q790 Q517333 Q796 Q889 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q826 Q165040 Q822 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q921 Q924 Q155019 Q739 Q423 Q983 Q851 Q733 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q230 Q232 Q238 Q1045 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q223 Q221 Q815731 Q47261 Q229 Q347 Q1050 Q977 Q704288 Q10957559 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q389004 Q750 Q217 Q1013 Q215 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q79 Q696651 Q77 Q858 Q878 Q774 Q810 Q1019 Q813 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q2235308)|c(Q159334),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
[ANSWERS]
[[{'concept': 'Q2235308'}, {'concept': 'Q159334'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?k ) { ( ontology:Q2235308 ) ( ontology:Q159334 ) } . ?r rdf:type ?k } GROUP BY ?e } } . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?o ) WHERE { { ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2235308 . ?b property:P17 ?y } UNION { ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q159334 . ?b property:P17 ?y } } GROUP BY ?y } . FILTER ( ?o = ?s ) }
Panama Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Algeria Honduras Dominica Uzbekistan Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Armenia Sardinia Chad El Salvador Haiti Principality of Polotsk Iraq Afghanistan Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Maldives Duchy of Parma Lebanon Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Brunei Tanzania Duchy of Lorraine Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Georgia Kazakhstan San Marino Somalia Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Greenland Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Cyprus Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Wallachia Bolivia Republic of Moldova Lesotho Slovenia Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Jordan Madagascar Kyrgyzstan Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
Which administrative territories are min number of ship types and secondary schools present in
Georgia Zambia Belarus
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
[[{'concept': 'ship type'}, {'concept': 'secondary school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?k ) { ( ontology:ship_type ) ( ontology:secondary_school ) } . ?r rdf:type ?k } GROUP BY ?e } } . { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?o ) WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:ship_type . ?b property:country ?y } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:secondary_school . ?b property:country ?y } } GROUP BY ?y } . FILTER ( ?o = ?s ) }
[]