Simple Question (Direct)
Simple Question
Q3483566
P19
Q20667921
USER
Which french administrative division was Sigmund von Imhoff born at ?
(Q3483566,P19,c(Q20667921))
action filter_type
action find
entity Q3483566
relation P19
type Q20667921
['Q3483566', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q3483566 property:P19 ?e . ?e rdf:type ontology:Q20667921 }
Sigmund von Imhoff
action filter_type
action find
entity Sigmund von Imhoff
relation place of birth
type type of french administrative division
['Sigmund von Imhoff', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Sigmund_von_Imhoff property:place_of_birth ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q22690
SYSTEM
Metz
Q22690
(Q3483566,P19,c(Q20667921))
action filter_type
action find
entity Q3483566
relation P19
type Q20667921
Sigmund von Imhoff was born in [ANSWER]
['Q3483566', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q3483566 property:P19 ?e . ?e rdf:type ontology:Q20667921 }
Metz
Sigmund von Imhoff was born in Metz
Metz
action filter_type
action find
entity Sigmund von Imhoff
relation place of birth
type type of french administrative division
['Sigmund von Imhoff', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Sigmund_von_Imhoff property:place_of_birth ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3483566
P607
Q198
USER
Which battles did Sigmund von Imhoff take part in ?
(Q3483566,P607,c(Q198))
action filter_type
action find
entity Q3483566
relation P607
type Q198
['Q3483566', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q198 . resource:Q3483566 property:P607 ?i }
Sigmund von Imhoff
action filter_type
action find
entity Sigmund von Imhoff
relation conflict
type war
['Sigmund von Imhoff', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:war . resource:Sigmund_von_Imhoff property:conflict ?i }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
(Q3483566,P607,c(Q198))
action filter_type
action find
entity Q3483566
relation P607
type Q198
Sigmund von Imhoff took part in [ANSWERS]
['Q3483566', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q198 . resource:Q3483566 property:P607 ?i }
World War II World War I
Sigmund von Imhoff took part in World War II and World War I
World War II World War I
action filter_type
action find
entity Sigmund von Imhoff
relation conflict
type war
['Sigmund von Imhoff', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:war . resource:Sigmund_von_Imhoff property:conflict ?i }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q15617994 Q20667921
USER
Which administrative territories have min number of french administrative divisions as their capital ?
(c(Q20667921),P1376,Q12564)
action argmin
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q12564']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?i ) WHERE { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q20667921 . ?q property:P1376 ?a } GROUP BY ?a } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P1376 ?p . ?p rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q20667921 } GROUP BY ?p } } }
action argmin
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'Loir-et-Cher']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?i ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division . ?q property:capital_of ?a } GROUP BY ?a } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:capital_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:type_of_french_administrative_division } GROUP BY ?p } } }
[]
designation for an administrative territorial entity type of french administrative division
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q801 Q800 Q1098820 Q419 Q414 Q1111401 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q252 Q399 Q398 Q258 Q1465069 Q1324549 Q1979 Q159 Q155 Q1664120 Q12526 Q1974 Q2527360 Q699731 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q739 Q983 Q730 Q733 Q734 Q736 Q1280 Q1282 Q1284 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q1020 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q541811 Q1390630 Q1458 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q311803 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q541589 Q760 Q14762300 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q639100 Q731547 Q855327 Q328134 Q1237 Q701 Q702 Q968630 Q705 Q707 Q709 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q833 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q290739 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q1232680 Q889 Q884 Q1452646 Q881 Q231168 Q241 Q1965 Q1508919 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q3361 Q39 Q38 Q302479 Q541095 Q2567535 Q280312 Q3068 Q3389 Q30644 Q236 Q492437 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q686312 Q902 Q1036 Q1037 Q1032 Q1033 Q1030 Q1024985 Q1039 Q697 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q31067 Q31065 Q1270568 Q1773268 Q30835 Q30831 Q574 Q1558632 Q694594 Q191 Q874 Q79 Q77 Q199688 Q878 Q46130 Q3044651 Q3044714 Q3044715 Q176 Q30682 Q30683 Q1951 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q389004 Q3305157 Q492430 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q239502 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q657 Q1789890 Q1090678 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q1948 Q511365 Q654849 Q2038939 Q311794 Q20 Q27 Q28 Q1366860 Q148 Q598193 Q227 Q225 Q30650 Q223 Q222 Q221 Q47261 Q311668 Q229 Q228 Q1410315 Q1989 Q60011 Q10957559 Q965 Q967 Q962 Q963 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q12536 Q262 Q474421 Q2009 Q12820 Q265 Q3342 Q842 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q2662372 Q686924 Q34762 Q517333 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q4712 Q924 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1443 Q224 Q1447 Q2360428 Q30656 Q12717 Q1045 Q1044 Q1042 Q1041 Q691265 Q313175 Q31070 Q3336 Q30797 Q1904 Q347 Q3462133 Q30815 Q17 Q153402 Q3207 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q160307 Q244 Q3514973 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q1234961 Q1222 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q8575586 Q672 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q20667921),P1376,Q12564)
action argmin
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
[ANSWERS] have min number of french administrative divisions as their capital
[{'concept': 'Q20667921'}, 'P1376', 'Q12564']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?i ) WHERE { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q20667921 . ?q property:P1376 ?a } GROUP BY ?a } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P1376 ?p . ?p rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q20667921 } GROUP BY ?p } } }
Yemen Panama Israel Costa Rica Gênes Peru Argentina Kispest District Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Indonesia Armenia Bahrain South Africa Frise Uthukela District Municipality Prince Edward Island Russia Brazil Alfred Nzo District Municipality Gironde British Columbia Stura Wied Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Colombia Equatorial Guinea Suriname Paraguay Guyana Ecuador Umbria Lazio Abruzzo Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Malawi Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Ems-Oriental Ourthe Calabria Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Umgungundlovu District Municipality Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Ems-Supérieur Saint Lucia single-tier municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Principality of Reuss-Gera Lippe Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Marshall Islands Talitsky District India Limburg Montserrat Frances Baard District Municipality Malaysia Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Sesia Portugal Turkey Greece El Salvador Haiti Iraq Iran Ithaque Afghanistan South Korea Montenotte Vietnam Zuyderzée Cuba New Brunswick Marengo Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Doubs Switzerland Italy Ems-Occidental Rhin-et-Moselle Pô Principality of Lüneburg Loire-Atlantique Finistère Damietta Governorate Montenegro Bouches-du-Weser Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Duchy of Amalfi Bangladesh Uganda Rwanda Niger Nigeria Namibia Cacadu District Municipality Sao Tomé and Príncipe Nauru South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate Ems ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Bremen-Verden Estonia Turkmenistan Egypt Uruguay Almohad United Arab Emirates Rhône Louverture Ouest Ozama Quebec Matrouh Governorate Beni Suef Governorate Alberta Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Wallachia Mella Bouches-de-l'Elbe Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Kingdom of Galicia–Volhynia Fiji Mongolia Kiribati Venezuela Nord Somme Chad West Rand District Municipality Sègre Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Manitoba Arvika Municipality Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Norway Ireland Hungary Escaut People's Republic of China Apennins Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Albania Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Andorra Fezile Dabi District Municipality Saskatchewan Kars Oblast Moldavia Burkina Faso Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Abbasid caliphate Algeria Principality of Fürstenberg Yukon Yvelines Uzbekistan Côte-d'Or Oman Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Principality of Minsk Mer-Égée Principality of Bayreuth Principality of Polotsk Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Tanzania Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Molise Croatia Apulia Tijuana Municipality Faiyum Governorate Bas-Rhin Somalia Sierra Leone Seychelles Senegal Mont-Terrible Saxe-Lauenburg Suez Governorate Corse-du-Sud Luxor Governorate Ontario Liechtenstein Saxe-Coburg and Gotha South Sinai Governorate Japan Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Barbados Tanaro Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Doire Aosta Valley Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Umayyad Caliphate Tuvalu Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Italy, Brazil and United States of America have min number of french administrative divisions as their capital
Italy Brazil United States of America
action argmin
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'Loir-et-Cher']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?i ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division . ?q property:capital_of ?a } GROUP BY ?a } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:capital_of ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:type_of_french_administrative_division } GROUP BY ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories have a shared border with Brazil ?
(Q155,P47,c(Q56061)) (Q155,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q56061
action filter_type
action find
entity Q155
relation P47
type Q15617994
['Q155', 'P47', {'concept': 'Q56061'}] ['Q155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { resource:Q155 property:P47 ?f . ?f rdf:type ontology:Q56061 } UNION { resource:Q155 property:P47 ?f . ?f rdf:type ontology:Q15617994 } }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { resource:Brazil property:shares_border_with ?f . ?f rdf:type ontology:administrative_territorial_entity } UNION { resource:Brazil property:shares_border_with ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
11
Q739 Q142 Q717 Q730 Q733 Q734 Q414 Q419 Q77 Q458 Q750
(Q155,P47,c(Q56061)) (Q155,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q56061
action filter_type
action find
entity Q155
relation P47
type Q15617994
[ANSWER]
['Q155', 'P47', {'concept': 'Q56061'}] ['Q155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { resource:Q155 property:P47 ?f . ?f rdf:type ontology:Q56061 } UNION { resource:Q155 property:P47 ?f . ?f rdf:type ontology:Q15617994 } }
Colombia France Venezuela Suriname Paraguay Guyana Argentina Peru Uruguay European Union Bolivia
11
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}] ['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { resource:Brazil property:shares_border_with ?f . ?f rdf:type ontology:administrative_territorial_entity } UNION { resource:Brazil property:shares_border_with ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atmost 52 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 52
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?b ) WHERE { ?c property:P530 ?y . ?c rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b <= 52 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?b ) WHERE { ?c property:diplomatic_relation ?y . ?c rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b <= 52 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 52
[ANSWERS] have diplomatic relationships with atmost 52 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?b ) WHERE { ?c property:P530 ?y . ?c rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b <= 52 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with atmost 52 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?b ) WHERE { ?c property:diplomatic_relation ?y . ?c rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b <= 52 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P495
Q7725634 Q1792379
USER
How many literary works and art genres originated in Brazil ?
(c(Q7725634),P495,Q155) (c(Q1792379),P495,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P495
type Q7725634
action filter_type
action find_reverse
entity Q155
relation P495
type Q1792379
[{'concept': 'Q7725634'}, 'P495', 'Q155'] [{'concept': 'Q1792379'}, 'P495', 'Q155']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { ?e rdf:type ontology:Q7725634 . ?e property:P495 resource:Q155 } UNION { ?e property:P495 resource:Q155 . ?e rdf:type ontology:Q1792379 } }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country of origin
type literary work
action filter_type
action find_reverse
entity Brazil
relation country of origin
type art genre
[{'concept': 'literary work'}, 'country of origin', 'Brazil'] [{'concept': 'art genre'}, 'country of origin', 'Brazil']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { ?e rdf:type ontology:literary_work . ?e property:country_of_origin resource:Brazil } UNION { ?e property:country_of_origin resource:Brazil . ?e rdf:type ontology:art_genre } }
[]
literary work art genre
SYSTEM
2 literary works and 1 art genres
Q623098 Q18466908 Q1911134
(c(Q7725634),P495,Q155) (c(Q1792379),P495,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P495
type Q7725634
action filter_type
action find_reverse
entity Q155
relation P495
type Q1792379
[ANSWER]
[{'concept': 'Q7725634'}, 'P495', 'Q155'] [{'concept': 'Q1792379'}, 'P495', 'Q155']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { ?e rdf:type ontology:Q7725634 . ?e property:P495 resource:Q155 } UNION { ?e property:P495 resource:Q155 . ?e rdf:type ontology:Q1792379 } }
Aquarela do Brasil Cinema marginal Tico-Tico no Fubá
2 literary works and 1 art genres
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country of origin
type literary work
action filter_type
action find_reverse
entity Brazil
relation country of origin
type art genre
[{'concept': 'literary work'}, 'country of origin', 'Brazil'] [{'concept': 'art genre'}, 'country of origin', 'Brazil']
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { ?e rdf:type ontology:literary_work . ?e property:country_of_origin resource:Brazil } UNION { ?e property:country_of_origin resource:Brazil . ?e rdf:type ontology:art_genre } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P85
Q7725634
USER
Which literary work is the anthem for Brazil ?
(Q155,P85,c(Q7725634))
action filter_type
action find
entity Q155
relation P85
type Q7725634
['Q155', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q155 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
Brazil
action filter_type
action find
entity Brazil
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:Brazil property:anthem ?r . ?r rdf:type ontology:literary_work }
[]
literary work
Q134654
SYSTEM
Brazilian National Anthem
Q134654
(Q155,P85,c(Q7725634))
action filter_type
action find
entity Q155
relation P85
type Q7725634
The [ANSWER] is the anthem for Brazil
['Q155', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q155 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
Brazilian National Anthem
The Brazilian National Anthem is the anthem for Brazil
Brazilian National Anthem
action filter_type
action find
entity Brazil
relation anthem
type literary work
['Brazil', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:Brazil property:anthem ?r . ?r rdf:type ontology:literary_work }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P706
Q103817
USER
What is located in Brazil ?
(c(Q103817),P706,Q155)
action filter_type
action find_reverse
entity Q155
relation P706
type Q103817
[{'concept': 'Q103817'}, 'P706', 'Q155']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q103817 . ?o property:P706 resource:Q155 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation located on terrain feature
type indigenous peoples
[{'concept': 'indigenous peoples'}, 'located on terrain feature', 'Brazil']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:indigenous_peoples . ?o property:located_on_terrain_feature resource:Brazil }
[]
indigenous peoples
Q3817631
SYSTEM
Kwaza people
Q3817631
(c(Q103817),P706,Q155)
action filter_type
action find_reverse
entity Q155
relation P706
type Q103817
[ANSWER] is located in Brazil
[{'concept': 'Q103817'}, 'P706', 'Q155']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q103817 . ?o property:P706 resource:Q155 }
Kwaza people
Kwaza people is located in Brazil
Kwaza people
action filter_type
action find_reverse
entity Brazil
relation located on terrain feature
type indigenous peoples
[{'concept': 'indigenous peoples'}, 'located on terrain feature', 'Brazil']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:indigenous_peoples . ?o property:located_on_terrain_feature resource:Brazil }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P417
Q1509831
USER
Who is the patron saint of Brazil ?
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1509831 . resource:Q155 property:P417 ?j }
Brazil
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:titles_of_Mary . resource:Brazil property:patron_saint ?j }
[]
titles of Mary
Q2469225
SYSTEM
Our Lady of Aparecida
Q2469225
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
The patron saint of Brazil is [ANSWER]
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1509831 . resource:Q155 property:P417 ?j }
Our Lady of Aparecida
The patron saint of Brazil is Our Lady of Aparecida
Our Lady of Aparecida
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:titles_of_Mary . resource:Brazil property:patron_saint ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P47
Q15617994
USER
Which administrative territories share border with that one ?
(Q2469225,P47,c(Q15617994))
action filter_type
action find
entity Q155
relation P47
type Q15617994
['Q2469225', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q155 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Brazil
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Our Lady of Aparecida', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Brazil property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q414 Q739
SYSTEM
France, Argentina, Colombia
Q739 Q142 Q717 Q730 Q733 Q734 Q419 Q77 Q414 Q750
(Q2469225,P47,c(Q15617994))
action filter_type
action find
entity Q155
relation P47
type Q15617994
[ANSWERS] share border with that one
['Q2469225', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q155 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Colombia France Venezuela Suriname Paraguay Guyana Peru Uruguay Argentina Bolivia
France, Argentina and Colombia share border with that one
France Argentina Colombia
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Our Lady of Aparecida', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Brazil property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]