Simple Question (Direct)
Simple Question
Q632175
P190
Q56061
USER
Which administrative territory is twin town of Meylan ?
(Q632175,P190,c(Q56061))
action filter_type
action find
entity Q632175
relation P190
type Q56061
['Q632175', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q632175 property:P190 ?q }
Meylan
action filter_type
action find
entity Meylan
relation sister city
type administrative territorial entity
['Meylan', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Meylan property:sister_city ?q }
[]
administrative territorial entity
Q1009242
SYSTEM
Didcot
Q1009242
(Q632175,P190,c(Q56061))
action filter_type
action find
entity Q632175
relation P190
type Q56061
[ANSWER] is twin town of Meylan
['Q632175', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q632175 property:P190 ?q }
Didcot
Didcot is twin town of Meylan
Didcot
action filter_type
action find
entity Meylan
relation sister city
type administrative territorial entity
['Meylan', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Meylan property:sister_city ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1009242
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q1009242,P17,c(Q15617994))
action filter_type
action find
entity Q1009242
relation P17
type Q15617994
['Q1009242', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1009242 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Didcot
action filter_type
action find
entity Didcot
relation country
type designation for an administrative territorial entity
['Didcot', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Didcot property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q1009242,P17,c(Q15617994))
action filter_type
action find
entity Q1009242
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q1009242', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1009242 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
United Kingdom
That administrative territory belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Didcot
relation country
type designation for an administrative territorial entity
['Didcot', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Didcot property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1009242
P159
Q43229
USER
Which organization has headquarters located at that administrative territory ?
(c(Q43229),P159,Q145)
action filter_type
action find_reverse
entity Q1009242
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q145']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q1009242 . ?v rdf:type ontology:Q43229 }
Didcot
action filter_type
action find_reverse
entity Didcot
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'United Kingdom']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Didcot . ?v rdf:type ontology:organization }
[]
organization
Q5003753
SYSTEM
ByBox
Q5003753
(c(Q43229),P159,Q145)
action filter_type
action find_reverse
entity Q1009242
relation P159
type Q43229
[ANSWER] has headquarters located at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q145']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q1009242 . ?v rdf:type ontology:Q43229 }
ByBox
ByBox has headquarters located at that administrative territory
ByBox
action filter_type
action find_reverse
entity Didcot
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'United Kingdom']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Didcot . ?v rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12753
P36
Q486972 Q56061 Q15617994
USER
How many administrative territories have more number of human settlements or administrative territories as their administrative centre than Seine-et-Marne ?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q12753
relation P36
type Q486972
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?k rdf:type ?c } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q12753 property:P36 ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } } } . FILTER ( ?l > ?q ) }
Seine-et-Marne
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Seine-et-Marne
relation capital
type human settlement
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?k rdf:type ?c } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Seine-et-Marne property:capital ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?l > ?q ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
SYSTEM
399
Q805 Q804 Q1815665 Q801 Q800 Q1098820 Q419 Q2991354 Q1111401 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2980110 Q4308116 Q17301635 Q252 Q398 Q258 Q1465069 Q1324549 Q1979 Q159 Q155 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1616549 Q1254171 Q979470 Q684030 Q1270648 Q3563282 Q1899307 Q30675 Q983 Q730 Q734 Q16628524 Q1280 Q1282 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q1850485 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q12175285 Q2629701 Q311803 Q29937 Q117 Q30786 Q1270638 Q1788988 Q239502 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q281435 Q34020 Q541589 Q891165 Q3528124 Q2719360 Q1243 Q945 Q3564819 Q3500767 Q855327 Q328134 Q1237 Q701 Q968630 Q705 Q707 Q4450475 Q2565377 Q668 Q1093 Q1090684 Q1263830 Q4055266 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q41 Q792 Q174280 Q1232680 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q3361 Q39 Q38 Q302479 Q2567535 Q3068 Q3389 Q30644 Q236 Q1886098 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1763301 Q1101 Q1206596 Q511806 Q27495866 Q3139 Q902 Q1036 Q1032 Q1033 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q220249 Q31067 Q31065 Q654849 Q662056 Q1773268 Q30835 Q574 Q1558632 Q894970 Q191 Q79 Q77 Q199688 Q2001115 Q3044651 Q3044715 Q2091235 Q23055454 Q12247340 Q2360973 Q30682 Q30683 Q2006764 Q1952 Q492437 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q492430 Q1480778 Q2567507 Q3044623 Q651394 Q3646838 Q2391254 Q3044781 Q2371735 Q712 Q710 Q3044777 Q12770 Q2465553 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q795587 Q958 Q986 Q219 Q957825 Q2629652 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q769680 Q1508927 Q30805 Q311794 Q12661 Q20 Q28 Q1366860 Q148 Q227 Q30650 Q223 Q30656 Q221 Q311668 Q229 Q1410315 Q1989 Q60011 Q965 Q967 Q2921370 Q2921378 Q1991827 Q2429432 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q3509886 Q2380910 Q1438 Q686 Q30832 Q760 Q817 Q810 Q811 Q813 Q18046648 Q819 Q2038939 Q29 Q617646 Q12545 Q2309262 Q863 Q2023 Q869 Q2093352 Q30946 Q334714 Q15116736 Q142 Q685048 Q29943 Q145 Q12536 Q262 Q2009 Q12820 Q265 Q2344570 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2995277 Q2003 Q2662372 Q2565339 Q686924 Q1429976 Q517333 Q24089916 Q30669 Q1985120 Q30662 Q2629323 Q4628 Q455705 Q2564823 Q2043690 Q770 Q1856181 Q1077283 Q921 Q924 Q929 Q858 Q423 Q424 Q29999 Q854 Q2226837 Q165763 Q1338277 Q1447 Q2360428 Q2565327 Q2588405 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q1984191 Q30797 Q1904 Q30815 Q17 Q1429761 Q3846423 Q153402 Q894973 Q894972 Q894971 Q2617427 Q1053888 Q3044677 Q213 Q217 Q214 Q215 Q160307 Q244 Q1090691 Q977 Q2218506 Q692290 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q773 Q772 Q1014 Q1016 Q1013 Q678 Q2565367 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q12753
relation P36
type Q486972
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?k rdf:type ?c } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q12753 property:P36 ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } } } . FILTER ( ?l > ?q ) }
Yemen Panama Znaur Israel Costa Rica Gênes Peru Aquiles Serdán Municipality Kispest District Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Yovon District Murmansk Okrug Orihuela Governorate Indonesia Bahrain South Africa Frise Uthukela District Municipality Prince Edward Island Russia Brazil Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Ivittuut Municipality Dr Ruth Segomotsi Mompati District Municipality Seine-et-Oise Principality of Serbia Sieg Rumi District Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana San Salvador el Verde municipality Umbria Lazio John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Malawi Iceland Belarus Mozambique Morocco Dhaka District Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Aravalli district Yevpatoria municipality Umgungundlovu District Municipality Aswan Governorate Ghana Monufia Governorate Rhine Trasimène Kingdom of Galicia–Volhynia Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Maulvi Bazar District Niue Ems-Supérieur Bojanala Platinum District Municipality Tibre Duchy of Luxembourg Veneto Togo Hamadoni District Norak District Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Taro Zeeland Flevoland Talitsky District Danghara District India Limburg Montserrat Frances Baard District Municipality Abyei District Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey Greece El Salvador San Juan de Jinotega Ithaque Zuyderzée Cuba New Brunswick 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 Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Pixley ka Seme District Municipality Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands Barisal District North Brabant Deux-Nèthes North Slope Borough Corse Alpes-Maritimes Bangladesh Uganda Niger Nigeria Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Eden District Municipality Ismailia Governorate Qena Governorate Joe Gqabi District Municipality Cushamen Department ZF Mgcawu District Municipality Gharbia Governorate East Timor Rome Bouches-de-la-Meuse Estonia Egypt Uruguay Almohad Tepic, Nayarit (municipality) Louverture Ozama Ugu District Municipality Alpes-Maritimes Afrin Nahiya Duchy of Carniola Matrouh Governorate Beni Suef Governorate Xhariep District Municipality Nova Scotia Bouches-du-Weser Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Bouches-de-l'Elbe Comilla District Arno Cibao Ramensky District Los Guayos Municipality Farkhor District Sud Saky municipality Fiji Kiribati Nord Somme Shapsugsky National District Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Escuintla South Sudan Eritrea Bulgaria Yssel-Supérieur Yalta municipality Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Bornholm Méditerranée Cairo Governorate iLembe District Municipality Nord Norway Hungary Escaut People's Republic of China Azerbaijan New Valley Governorate Greenland Faiyum Governorate Republic of Macedonia UThungulu District Municipality Cyprus Fezile Dabi District Municipality Saskatchewan Kars Oblast Burkina Faso Burundi Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Karelian National Okrug Sirajganj District Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Sègre-Ter Duchy of Zaslawye Campania Vanuatu Giza Governorate Saint Lucia Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Sedibeng District Municipality Spain Namakwa District Municipality Hérault Zululand District Municipality Tajikistan Nunavut Thailand Sylhet District Kafr el-Sheikh Governorate Duchy of Athens Jaén District France Simplon Alexandria Governorate United Kingdom Abbasid caliphate Algeria Yukon Yvelines Uzbekistan Rangpur District Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Dzau district Newfoundland and Labrador Principality of Minsk Vose' District Mer-Égée Mymensingh District Principality of Polotsk Pars Sohag Governorate Dinajpur District North Sinai Governorate Armyansk municipality Faroe Islands Amathole District Municipality Panj District Gali Municipality 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 Sambre-et-Meuse Apulia Tijuana Municipality Muminobod District Shahrtuz District Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Ngaka Modiri Molema District Municipality Luxor Governorate Ontario South Sinai Governorate Japan Patuakhali District Viesca Municipality Roer Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Ayn Central Karoo District Municipality Samaná Czech Republic Republic of Moldova Slovakia Slovenia Fatimid caliphate Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Overijssel Drenthe Liberia Libya Lesotho Tonga Vakhsh District Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
399
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Seine-et-Marne
relation capital
type human settlement
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?k rdf:type ?c } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Seine-et-Marne property:capital ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?l > ?q ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1028
P36
Q486972 Q56061 Q15617994
USER
And how about Morocco?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q1028
relation P36
type Q486972
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?t ) WHERE { { ?y property:P36 ?m . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q486972 } UNION { ?y property:P36 ?m . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q1028 property:P36 ?a . { { ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q486972 } } } } . FILTER ( ?t > ?p ) }
Morocco
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Morocco
relation capital
type human settlement
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?t ) WHERE { { ?y property:capital ?m . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:human_settlement } UNION { ?y property:capital ?m . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Morocco property:capital ?a . { { ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:human_settlement } } } } . FILTER ( ?t > ?p ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
SYSTEM
10
Q258 Q1020 Q41 Q30 Q230 Q199688 Q12536 Q517333 Q17 Q160307
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q1028
relation P36
type Q486972
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?t ) WHERE { { ?y property:P36 ?m . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q486972 } UNION { ?y property:P36 ?m . ?y rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Q1028 property:P36 ?a . { { ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q486972 } } } } . FILTER ( ?t > ?p ) }
South Africa Malawi Greece United States of America Georgia Almohad Abbasid caliphate Principality of Polotsk Japan Fatimid caliphate
10
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Morocco
relation capital
type human settlement
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?t ) WHERE { { ?y property:capital ?m . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:human_settlement } UNION { ?y property:capital ?m . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { resource:Morocco property:capital ?a . { { ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:human_settlement } } } } . FILTER ( ?t > ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q632175
P551
Q502895
USER
Which person dwells at Meylan ?
(c(Q502895),P551,Q632175)
action filter_type
action find_reverse
entity Q632175
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q632175']
SELECT DISTINCT ?j WHERE { ?j property:P551 resource:Q632175 . ?j rdf:type ontology:Q502895 }
Meylan
action filter_type
action find_reverse
entity Meylan
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Meylan']
SELECT DISTINCT ?j WHERE { ?j property:residence resource:Meylan . ?j rdf:type ontology:common_name }
[]
common name
Q3287844
SYSTEM
Marc Braillon
Q3287844
(c(Q502895),P551,Q632175)
action filter_type
action find_reverse
entity Q632175
relation P551
type Q502895
[ANSWER] dwells at Meylan
[{'concept': 'Q502895'}, 'P551', 'Q632175']
SELECT DISTINCT ?j WHERE { ?j property:P551 resource:Q632175 . ?j rdf:type ontology:Q502895 }
Marc Braillon
Marc Braillon dwells at Meylan
Marc Braillon
action filter_type
action find_reverse
entity Meylan
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Meylan']
SELECT DISTINCT ?j WHERE { ?j property:residence resource:Meylan . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1009242
P20
Q502895
USER
Which people have Didcot as place of death ?
(c(Q502895),P20,Q1009242)
action filter_type
action find_reverse
entity Q1009242
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1009242']
SELECT DISTINCT ?l WHERE { ?l property:P20 resource:Q1009242 . ?l rdf:type ontology:Q502895 }
Didcot
action filter_type
action find_reverse
entity Didcot
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Didcot']
SELECT DISTINCT ?l WHERE { ?l property:place_of_death resource:Didcot . ?l rdf:type ontology:common_name }
[]
common name
Q969176 Q3336784 Q1750867
SYSTEM
Edward Bach, Nathaniel Dance-Holland, Meir Agassi
Q969176 Q3336784 Q1750867
(c(Q502895),P20,Q1009242)
action filter_type
action find_reverse
entity Q1009242
relation P20
type Q502895
[ANSWERS] have Didcot as place of death
[{'concept': 'Q502895'}, 'P20', 'Q1009242']
SELECT DISTINCT ?l WHERE { ?l property:P20 resource:Q1009242 . ?l rdf:type ontology:Q502895 }
Edward Bach Nathaniel Dance-Holland Meir Agassi
Edward Bach, Nathaniel Dance-Holland and Meir Agassi have Didcot as place of death
Edward Bach Nathaniel Dance-Holland Meir Agassi
action filter_type
action find_reverse
entity Didcot
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Didcot']
SELECT DISTINCT ?l WHERE { ?l property:place_of_death resource:Didcot . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3336784
P40
Q502895
USER
Which person has Nathaniel Dance-Holland as a child ?
(c(Q502895),P40,Q3336784)
action filter_type
action find_reverse
entity Q3336784
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3336784']
SELECT DISTINCT ?p WHERE { ?p property:P40 resource:Q3336784 . ?p rdf:type ontology:Q502895 }
Nathaniel Dance-Holland
action filter_type
action find_reverse
entity Nathaniel Dance-Holland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Nathaniel Dance-Holland']
SELECT DISTINCT ?p WHERE { ?p property:child resource:Nathaniel_Dance-Holland . ?p rdf:type ontology:common_name }
[]
common name
Q3101508
SYSTEM
George Dance the Elder
Q3101508
(c(Q502895),P40,Q3336784)
action filter_type
action find_reverse
entity Q3336784
relation P40
type Q502895
[ANSWER] has Nathaniel Dance-Holland as a child
[{'concept': 'Q502895'}, 'P40', 'Q3336784']
SELECT DISTINCT ?p WHERE { ?p property:P40 resource:Q3336784 . ?p rdf:type ontology:Q502895 }
George Dance the Elder
George Dance the Elder has Nathaniel Dance-Holland as a child
George Dance the Elder
action filter_type
action find_reverse
entity Nathaniel Dance-Holland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Nathaniel Dance-Holland']
SELECT DISTINCT ?p WHERE { ?p property:child resource:Nathaniel_Dance-Holland . ?p rdf:type ontology:common_name }
[]