Simple Question (Direct)
Simple Question
Q7914357
P57
Q502895
USER
Which person served as the directed of Vandanam ?
(Q7914357,P57,c(Q502895))
action filter_type
action find
entity Q7914357
relation P57
type Q502895
['Q7914357', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q7914357 property:P57 ?e }
Vandanam
action filter_type
action find
entity Vandanam
relation director
type common name
['Vandanam', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Vandanam property:director ?e }
[]
common name
Q3115713
SYSTEM
Priyadarshan
Q3115713
(Q7914357,P57,c(Q502895))
action filter_type
action find
entity Q7914357
relation P57
type Q502895
[ANSWER] served as the directed of Vandanam
['Q7914357', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q7914357 property:P57 ?e }
Priyadarshan
Priyadarshan served as the directed of Vandanam
Priyadarshan
action filter_type
action find
entity Vandanam
relation director
type common name
['Vandanam', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Vandanam property:director ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7914357
P495
Q15617994
USER
Where did Vandanam originate ?
(Q7914357,P495,c(Q15617994))
action filter_type
action find
entity Q7914357
relation P495
type Q15617994
['Q7914357', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7914357 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Vandanam
action filter_type
action find
entity Vandanam
relation country of origin
type designation for an administrative territorial entity
['Vandanam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Vandanam property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q7914357,P495,c(Q15617994))
action filter_type
action find
entity Q7914357
relation P495
type Q15617994
Vandanam originated in [ANSWER]
['Q7914357', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7914357 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
India
Vandanam originated in India
India
action filter_type
action find
entity Vandanam
relation country of origin
type designation for an administrative territorial entity
['Vandanam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Vandanam property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q468484
Q15617994
USER
And what about The Longest Day?
(Q468484,P495,c(Q15617994))
action filter_type
action find
entity Q468484
relation P495
type Q15617994
['Q468484', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q468484 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
The Longest Day
action filter_type
action find
entity The Longest Day
relation country of origin
type designation for an administrative territorial entity
['The Longest Day', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:The_Longest_Day property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q468484,P495,c(Q15617994))
action filter_type
action find
entity Q468484
relation P495
type Q15617994
[ANSWER]
['Q468484', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q468484 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity The Longest Day
relation country of origin
type designation for an administrative territorial entity
['The Longest Day', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:The_Longest_Day property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1308 Q30
P47
Q15617994
USER
Which administrative territories share border with United States of America or Como ?
OR((Q30,P47,c(Q15617994)), (Q1308,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q1308
relation P47
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q1308', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q30 property:P47 ?a } UNION { resource:Q1308 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Como United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Como
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Como', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:United_States_of_America property:shares_border_with ?a } UNION { resource:Como property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q244388 Q244144 Q244131 Q47344 Q244224 Q683 Q159 Q47397 Q47379 Q710
SYSTEM
Some of them are Cavallasca, Brunate, Blevio, Torno, Capiago Intimiano, Samoa, Russia, Montano Lucino, Senna Comasco, Kiribati
Q702 Q244421 Q241 Q683 Q804 Q47349 Q47666 Q244131 Q96 Q17 Q786 Q47464 Q710 Q717 Q244353 Q678 Q244388 Q244224 Q47397 Q159 Q244144 Q47378 Q47379 Q790 Q47344 Q47336
OR((Q30,P47,c(Q15617994)), (Q1308,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q1308
relation P47
type Q15617994
[ANSWERS] share border with United States of America or Como
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q1308', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q30 property:P47 ?a } UNION { resource:Q1308 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Federated States of Micronesia Cernobbio Cuba Samoa Panama Lipomo Maslianico Blevio Mexico Japan Dominican Republic San Fermo della Battaglia Kiribati Venezuela Casnate con Bernate Tonga Cavallasca Capiago Intimiano Montano Lucino Russia Brunate Tavernerio Senna Comasco Haiti Torno Grandate
Cavallasca, Brunate, Blevio, Torno, Capiago Intimiano, Samoa, Russia, Montano Lucino, Senna Comasco and Kiribati share border with United States of America or Como
Cavallasca Brunate Blevio Torno Capiago Intimiano Samoa Russia Montano Lucino Senna Comasco Kiribati
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Como
relation shares border with
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Como', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:United_States_of_America property:shares_border_with ?a } UNION { resource:Como property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q693658
P1376
Q15617994 Q56061 Q20667921
USER
How many administrative territories have approximately the same number of administrative territories or french administrative divisions have their center of administration as Izabal Department ?
(c(Q56061)|c(Q20667921),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q693658
relation P1376
type Q56061
type Q20667921
[[{'concept': 'Q56061'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?n ) WHERE { { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q56061 . ?f property:P1376 ?j } UNION { ?f property:P1376 ?j . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q20667921 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P1376 resource:Q693658 . { { ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q20667921 } } } } . FILTER ( ?n = ?z ) }
Izabal Department
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Izabal Department
relation capital of
type administrative territorial entity
type type of french administrative division
[[{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?n ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:administrative_territorial_entity . ?f property:capital_of ?j } UNION { ?f property:capital_of ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:capital_of resource:Izabal_Department . { { ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?n = ?z ) }
[]
designation for an administrative territorial entity administrative territorial entity type of french administrative division
SYSTEM
409
Q804 Q801 Q800 Q1098820 Q12631 Q419 Q3368 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q3044731 Q252 Q398 Q1465069 Q1324549 Q1979 Q159 Q155 Q1664120 Q12526 Q12689 Q1974 Q3377 Q3372 Q611074 Q2007299 Q3093 Q1254171 Q220249 Q979470 Q1270648 Q2528268 Q12594 Q1899307 Q30675 Q983 Q730 Q734 Q12574 Q1280 Q1282 Q12792 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q184 Q1029 Q1028 Q1390630 Q1452 Q12700 Q815731 Q31074 Q31075 Q96 Q12709 Q311803 Q29937 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q12642 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q3216 Q3194 Q34020 Q760 Q12804 Q12808 Q14762300 Q3326 Q3286 Q3528124 Q2719360 Q1243 Q945 Q3266 Q3105 Q33788 Q855327 Q328134 Q1237 Q701 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q12740 Q12745 Q1090684 Q12779 Q1263830 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q12607 Q45 Q43 Q792 Q1232680 Q231168 Q2281221 Q241 Q1965 Q242 Q1437719 Q1244497 Q12694 Q29965 Q12515 Q12517 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q3364 Q302479 Q3148 Q2567535 Q3068 Q3389 Q30644 Q236 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q12675 Q129003 Q12589 Q12584 Q12580 Q1101 Q1206596 Q3131 Q12788 Q12784 Q3139 Q12782 Q902 Q1036 Q1032 Q1033 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q2562901 Q31068 Q12736 Q31067 Q31065 Q1773268 Q12657 Q30835 Q12652 Q12556 Q574 Q1558632 Q191 Q79 Q77 Q3044651 Q3044715 Q12816 Q30682 Q30683 Q2091235 Q2006764 Q1952 Q3353 Q3357 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3184 Q3044781 Q712 Q710 Q3044777 Q2900529 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1999970 Q155019 Q1974486 Q153091 Q107426 Q693658 Q1508927 Q654849 Q2038939 Q311794 Q20 Q28 Q1366860 Q148 Q227 Q30650 Q223 Q221 Q1270623 Q311668 Q229 Q1410315 Q1989 Q60011 Q967 Q2921370 Q3125 Q3120 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q2380910 Q1438 Q3110307 Q686 Q30832 Q891165 Q12722 Q12553 Q817 Q810 Q811 Q813 Q18046648 Q819 Q12620 Q12626 Q29 Q12543 Q617646 Q12545 Q12563 Q2309262 Q863 Q2023 Q869 Q426025 Q334714 Q15116736 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3349 Q378004 Q1150452 Q691368 Q1263 Q475035 Q3083 Q2003 Q3240 Q2662372 Q3249 Q686924 Q30669 Q30662 Q4628 Q455705 Q12761 Q12765 Q770 Q1856181 Q1077283 Q921 Q924 Q929 Q858 Q423 Q424 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q3334 Q12572 Q12576 Q30797 Q1904 Q12578 Q12679 Q30815 Q17 Q153402 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q213 Q217 Q214 Q215 Q244 Q1090691 Q977 Q2218506 Q692290 Q971 Q970 Q3113 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q773 Q772 Q1014 Q1016 Q1013 Q678 Q8575586 Q12758 Q1579364 Q31079 Q12753 Q12751 Q2629692 Q549746 Q695660 Q12564
(c(Q56061)|c(Q20667921),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q693658
relation P1376
type Q56061
type Q20667921
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?n ) WHERE { { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q56061 . ?f property:P1376 ?j } UNION { ?f property:P1376 ?j . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q20667921 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P1376 resource:Q693658 . { { ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q20667921 } } } } . FILTER ( ?n = ?z ) }
Panama Israel Costa Rica Gênes Meuse Peru Essonne Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Guyane Indonesia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Brazil Alfred Nzo District Municipality Gironde Pas-de-Calais British Columbia Eure-et-Loir Eure Mopani District Municipality OR Tambo District Municipality Aisne Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Mont-Blanc Marne Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Loiret Umbria Lazio Vaucluse Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Belarus Mozambique Morocco Ourthe Basilicata Hautes-Pyrénées Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Pyrénées-Orientales Umgungundlovu District Municipality Aswan Governorate Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Morbihan Samoa Principality of Wales Province of Brescia Isère Ruhr Aveyron Aube Niue Saint Lucia Vienne Haute-Vienne single-tier municipality Corrèze Cher Tibre Duchy of Luxembourg Veneto Togo Charente Vosges New Caledonia Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Taro Zeeland Flevoland Talitsky District India Limburg Sarthe Savoie Montserrat Tarn-et-Garonne Frances Baard District Municipality Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Haute-Marne Portugal Turkey El Salvador Ithaque Zuyderzée Principality of Orange Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Puy-de-Dôme Asyut Governorate Gard Gers Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Drôme Ems-Occidental Ardèche Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine Oise French Southern and Antarctic Lands Manche Maine-et-Loire Lozère North Brabant Deux-Nèthes Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Alpes-Maritimes Territoire de Belfort Bangladesh Uganda Niger Nigeria Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen West Coast District Municipality Dakahlia Governorate Saône-et-Loire Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Nièvre Gharbia Governorate Moselle Indre-et-Loire East Timor Rome Estonia Egypt Uruguay Louverture Ozama Yonne Matrouh Governorate Beni Suef Governorate Ugu District Municipality Xhariep District Municipality Nova Scotia Creuse Dordogne Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Ariège Sud Fiji Kiribati Nord Bezirk Lothringen Somme Chad West Rand District Municipality 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 Upper Alsace Duchy of Lorraine Cape Winelands District Municipality Duchy of Prussia Anjou Izabal Department Méditerranée Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Norway Hungary Escaut People's Republic of China Azerbaijan New Valley Governorate Greenland Republic of Macedonia Meurthe UThungulu District Municipality Cyprus Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Bouches-de-l'Èbre-Montserrat Hautes-Alpes Jura Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Duchy of Zaslawye Campania Golo Vanuatu Giza Governorate Bojanala Platinum District Municipality Haut-Rhin Indre Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Mayenne Meurthe-et-Moselle Spain Hauts-de-Seine Namakwa District Municipality Hérault Landes Zululand District Municipality Tajikistan Nunavut Thailand Duchy of Savoy Duchy of Athens Jaén District France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côtes-d'Armor Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Ain Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Calvados Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Seine-Saint-Denis Deux-Sèvres Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Tanzania Central African Republic Syria North Korea Cambodia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Haute-Corse Haute-Loire Lot Luxor Governorate Ontario Lot-et-Garonne Orne South Sinai Governorate Japan Roer Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Czech Republic Republic of Moldova Slovakia Slovenia Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Republic of the Congo Comoros Allier Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Overijssel Drenthe Liberia Libya Lesotho Tonga Umayyad Caliphate Seine-Maritime Lys Port Said Governorate Seine-et-Marne Haute-Savoie Simferopol municipality Sisonke District Municipality Guatemala Department Loir-et-Cher
409
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Izabal Department
relation capital of
type administrative territorial entity
type type of french administrative division
[[{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?n ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:administrative_territorial_entity . ?f property:capital_of ?j } UNION { ?f property:capital_of ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:capital_of resource:Izabal_Department . { { ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?n = ?z ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q693658
P17
Q15617994
USER
Which administrative territory is that one a part of ?
action filter_type
action find
entity Q693658
relation P17
type Q15617994
SELECT DISTINCT ?y WHERE { resource:Q693658 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Izabal Department
action filter_type
action find
entity Izabal Department
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?y WHERE { resource:Izabal_Department property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q774
SYSTEM
Guatemala
Q774
action filter_type
action find
entity Q693658
relation P17
type Q15617994
[ANSWER] is that one a part of
SELECT DISTINCT ?y WHERE { resource:Q693658 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Guatemala
Guatemala is that one a part of
Guatemala
action filter_type
action find
entity Izabal Department
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?y WHERE { resource:Izabal_Department property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q265003 Q693658
P17
Q15617994
USER
Or Castelnuovo, Trentino?
OR((Q693658,P17,c(Q15617994)), (Q265003,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q693658
relation P17
action find
entity Q265003
relation P17
type Q15617994
{'OR': [['Q693658', 'P17', {'concept': 'Q15617994'}], ['Q265003', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q693658 property:P17 ?i } UNION { resource:Q265003 property:P17 ?i } } }
Castelnuovo, Trentino Izabal Department
action filter_type
action union
action find
entity Izabal Department
relation country
action find
entity Castelnuovo, Trentino
relation country
type designation for an administrative territorial entity
{'OR': [['Izabal Department', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Castelnuovo, Trentino', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Izabal_Department property:country ?i } UNION { resource:Castelnuovo,_Trentino property:country ?i } } }
[]
designation for an administrative territorial entity
Q774 Q38
SYSTEM
Guatemala, Italy
Q774 Q38
OR((Q693658,P17,c(Q15617994)), (Q265003,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q693658
relation P17
action find
entity Q265003
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q693658', 'P17', {'concept': 'Q15617994'}], ['Q265003', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q693658 property:P17 ?i } UNION { resource:Q265003 property:P17 ?i } } }
Guatemala Italy
Guatemala Italy
action filter_type
action union
action find
entity Izabal Department
relation country
action find
entity Castelnuovo, Trentino
relation country
type designation for an administrative territorial entity
{'OR': [['Izabal Department', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Castelnuovo, Trentino', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Izabal_Department property:country ?i } UNION { resource:Castelnuovo,_Trentino property:country ?i } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q774 Q38
P361
Q2221906
USER
Which geographic locations are Guatemala and Italy a part of ?
(Q774,P361,c(Q2221906)) (Q38,P361,c(Q2221906))
action union
action filter_type
action find
entity Q774
relation P361
type Q2221906
action filter_type
action find
entity Q38
relation P361
type Q2221906
['Q774', 'P361', {'concept': 'Q2221906'}] ['Q38', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { ?i property:P361 ?j . VALUES ( ?i ) { ( resource:Q774 ) ( resource:Q38 ) } }
Guatemala Italy
action union
action filter_type
action find
entity Guatemala
relation part of
type geographic location
action filter_type
action find
entity Italy
relation part of
type geographic location
['Guatemala', 'part of', {'concept': 'geographic location'}] ['Italy', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { ?i property:part_of ?j . VALUES ( ?i ) { ( resource:Guatemala ) ( resource:Italy ) } }
[]
geographic location
Q12585 Q27449
SYSTEM
Latin America, Southern Europe
Q12585 Q27449
(Q774,P361,c(Q2221906)) (Q38,P361,c(Q2221906))
action union
action filter_type
action find
entity Q774
relation P361
type Q2221906
action filter_type
action find
entity Q38
relation P361
type Q2221906
The [ANSWERS] are Guatemala and Italy a part of
['Q774', 'P361', {'concept': 'Q2221906'}] ['Q38', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?j WHERE { ?i property:P361 ?j . VALUES ( ?i ) { ( resource:Q774 ) ( resource:Q38 ) } }
Latin America Southern Europe
The Latin America and Southern Europe are Guatemala and Italy a part of
Latin America Southern Europe
action union
action filter_type
action find
entity Guatemala
relation part of
type geographic location
action filter_type
action find
entity Italy
relation part of
type geographic location
['Guatemala', 'part of', {'concept': 'geographic location'}] ['Italy', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?j WHERE { ?i property:part_of ?j . VALUES ( ?i ) { ( resource:Guatemala ) ( resource:Italy ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q774
P840
Q838948
USER
Which works of art have their setting located at that administrative territory ?
(c(Q838948),P840,Q774)
action filter_type
action find_reverse
entity Q774
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q774']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q774 . ?z rdf:type ontology:Q838948 }
Guatemala
action filter_type
action find_reverse
entity Guatemala
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Guatemala']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Guatemala . ?z rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q774
SYSTEM
Did you mean Guatemala ?
Q12585 Q27449
(c(Q838948),P840,Q12585) (c(Q838948),P840,Q27449)
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q12585'] [{'concept': 'Q838948'}, 'P840', 'Q27449']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q774 . ?z rdf:type ontology:Q838948 }
Latin America Southern Europe
Did you mean Guatemala ?
Guatemala
[{'concept': 'work of art'}, 'narrative location', 'Latin America'] [{'concept': 'work of art'}, 'narrative location', 'Southern Europe']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Guatemala . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P840,Q774)
[{'concept': 'Q838948'}, 'P840', 'Q774']
[{'concept': 'work of art'}, 'narrative location', 'Guatemala']
[]
Q21174529 Q21174802
SYSTEM
Paloma herida, Pecado
Q21174529 Q21174802
(c(Q838948),P840,Q774)
action filter_type
action find_reverse
entity Q774
relation P840
type Q838948
[ANSWERS] have their setting located at that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q774']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q774 . ?z rdf:type ontology:Q838948 }
Paloma herida Pecado
Paloma herida and Pecado have their setting located at that administrative territory
Paloma herida Pecado
action filter_type
action find_reverse
entity Guatemala
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Guatemala']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Guatemala . ?z rdf:type ontology:work_of_art }
[]