Simple Question (Direct)
Simple Question
Q3703285
P106
Q12737077
USER
Which occupations are the professions of David Palterer ?
(Q3703285,P106,c(Q12737077))
action filter_type
action find
entity Q3703285
relation P106
type Q12737077
['Q3703285', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3703285 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
David Palterer
action filter_type
action find
entity David Palterer
relation occupation
type occupation
['David Palterer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:David_Palterer property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q42973 Q5322166 Q483501
SYSTEM
architect, designer, artist
Q42973 Q5322166 Q483501
(Q3703285,P106,c(Q12737077))
action filter_type
action find
entity Q3703285
relation P106
type Q12737077
The professions of David Palterer are [ANSWERS]
['Q3703285', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3703285 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
architect designer artist
The professions of David Palterer are architect, designer and artist
architect designer artist
action filter_type
action find
entity David Palterer
relation occupation
type occupation
['David Palterer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:David_Palterer property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3703285
P19
Q56061
USER
Where was that person born ?
(Q42973,P19,c(Q56061)) (Q5322166,P19,c(Q56061)) (Q483501,P19,c(Q56061))
action filter_type
action find
entity Q3703285
relation P19
type Q56061
['Q42973', 'P19', {'concept': 'Q56061'}] ['Q5322166', 'P19', {'concept': 'Q56061'}] ['Q483501', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3703285 property:P19 ?a }
David Palterer
action filter_type
action find
entity David Palterer
relation place of birth
type administrative territorial entity
['architect', 'place of birth', {'concept': 'administrative territorial entity'}] ['designer', 'place of birth', {'concept': 'administrative territorial entity'}] ['artist', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:David_Palterer property:place_of_birth ?a }
[]
administrative territorial entity
Q41621
SYSTEM
Haifa
Q41621
(Q42973,P19,c(Q56061)) (Q5322166,P19,c(Q56061)) (Q483501,P19,c(Q56061))
action filter_type
action find
entity Q3703285
relation P19
type Q56061
That person was born in [ANSWER]
['Q42973', 'P19', {'concept': 'Q56061'}] ['Q5322166', 'P19', {'concept': 'Q56061'}] ['Q483501', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3703285 property:P19 ?a }
Haifa
That person was born in Haifa
Haifa
action filter_type
action find
entity David Palterer
relation place of birth
type administrative territorial entity
['architect', 'place of birth', {'concept': 'administrative territorial entity'}] ['designer', 'place of birth', {'concept': 'administrative territorial entity'}] ['artist', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:David_Palterer property:place_of_birth ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41621
P931
Q62447
USER
Which aerodrome serves that administrative territory ?
(c(Q62447),P931,Q41621)
action filter_type
action find_reverse
entity Q41621
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q41621']
SELECT DISTINCT ?f WHERE { ?f property:P931 resource:Q41621 . ?f rdf:type ontology:Q62447 }
Haifa
action filter_type
action find_reverse
entity Haifa
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Haifa']
SELECT DISTINCT ?f WHERE { ?f property:place_served_by_airport resource:Haifa . ?f rdf:type ontology:aerodrome }
[]
aerodrome
Q643113
SYSTEM
Haifa International Airport
Q643113
(c(Q62447),P931,Q41621)
action filter_type
action find_reverse
entity Q41621
relation P931
type Q62447
[ANSWER] serves that administrative territory
[{'concept': 'Q62447'}, 'P931', 'Q41621']
SELECT DISTINCT ?f WHERE { ?f property:P931 resource:Q41621 . ?f rdf:type ontology:Q62447 }
Haifa International Airport
Haifa International Airport serves that administrative territory
Haifa International Airport
action filter_type
action find_reverse
entity Haifa
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Haifa']
SELECT DISTINCT ?f WHERE { ?f property:place_served_by_airport resource:Haifa . ?f rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q643113
P17
Q15617994
USER
Which administrative territory is that aerodrome present in ?
(Q643113,P17,c(Q15617994))
action filter_type
action find
entity Q643113
relation P17
type Q15617994
['Q643113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q643113 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Haifa International Airport
action filter_type
action find
entity Haifa International Airport
relation country
type designation for an administrative territorial entity
['Haifa International Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Haifa_International_Airport property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801
SYSTEM
Israel
Q801
(Q643113,P17,c(Q15617994))
action filter_type
action find
entity Q643113
relation P17
type Q15617994
That aerodrome is in [ANSWER]
['Q643113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q643113 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Israel
That aerodrome is in Israel
Israel
action filter_type
action find
entity Haifa International Airport
relation country
type designation for an administrative territorial entity
['Haifa International Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Haifa_International_Airport property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26416253
Q15617994
USER
And what about 5 And 7, Church Street?
(Q26416253,P17,c(Q15617994))
action filter_type
action find
entity Q26416253
relation P17
type Q15617994
['Q26416253', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q26416253 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
5 And 7, Church Street
action filter_type
action find
entity 5 And 7, Church Street
relation country
type designation for an administrative territorial entity
['5 And 7, Church Street', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:5_And_7,_Church_Street property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26416253,P17,c(Q15617994))
action filter_type
action find
entity Q26416253
relation P17
type Q15617994
[ANSWER]
['Q26416253', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q26416253 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity 5 And 7, Church Street
relation country
type designation for an administrative territorial entity
['5 And 7, Church Street', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:5_And_7,_Church_Street property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q145 Q522875
P530
Q15617994
USER
Does Ockholm have diplomatic relationships with that one ?
(Q145,P530,Q522875)
action is_in
entity Q522875
action find
entity Q145
relation P530
['Q145', 'P530', 'Q522875']
ASK WHERE { resource:Q145 property:P530 resource:Q522875 }
United Kingdom Ockholm
action is_in
entity Ockholm
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Ockholm']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Ockholm }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q145,P530,Q522875)
action is_in
entity Q522875
action find
entity Q145
relation P530
[ANSWER]
['Q145', 'P530', 'Q522875']
ASK WHERE { resource:Q145 property:P530 resource:Q522875 }
No
action is_in
entity Ockholm
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Ockholm']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Ockholm }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q801 Q564274
P530
Q15617994
USER
Does Bundenbach have diplomatic relationships with Israel ?
(Q801,P530,Q564274)
action is_in
entity Q564274
action find
entity Q801
relation P530
['Q801', 'P530', 'Q564274']
ASK WHERE { resource:Q801 property:P530 resource:Q564274 }
Israel Bundenbach
action is_in
entity Bundenbach
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Bundenbach']
ASK WHERE { resource:Israel property:diplomatic_relation resource:Bundenbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q801,P530,Q564274)
action is_in
entity Q564274
action find
entity Q801
relation P530
[ANSWER]
['Q801', 'P530', 'Q564274']
ASK WHERE { resource:Q801 property:P530 resource:Q564274 }
No
action is_in
entity Bundenbach
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Bundenbach']
ASK WHERE { resource:Israel property:diplomatic_relation resource:Bundenbach }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1282
P36
Q486972 Q56061 Q15617994
USER
Which administrative territories have more number of human settlements and administrative territories as their capital than Lazio ?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
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 Q1282
relation P36
type Q486972
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?f WHERE { { ?f property:P36 ?m . ?m rdf:type ontology:Q486972 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P36 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q1282 property:P36 ?o . { { ?o rdf:type ontology:Q486972 } UNION { ?o rdf:type ontology:Q56061 } } } } . FILTER ( ?q > ?i ) }
Lazio
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 Lazio
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 ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?f WHERE { { ?f property:capital ?m . ?m rdf:type ontology:human_settlement . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:capital ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Lazio property:capital ?o . { { ?o rdf:type ontology:human_settlement } UNION { ?o rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?q > ?i ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
Q30 Q230 Q17
SYSTEM
United States of America, Georgia, Japan
Q258 Q1020 Q41 Q30 Q230 Q199688 Q12536 Q517333 Q17 Q160307
(c(Q15617994),P36,c(Q486972)|c(Q56061))
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 Q1282
relation P36
type Q486972
type Q56061
[ANSWERS] have more number of human settlements and administrative territories as their capital than Lazio
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?f WHERE { { ?f property:P36 ?m . ?m rdf:type ontology:Q486972 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P36 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q1282 property:P36 ?o . { { ?o rdf:type ontology:Q486972 } UNION { ?o rdf:type ontology:Q56061 } } } } . FILTER ( ?q > ?i ) }
South Africa Malawi Greece United States of America Georgia Almohad Abbasid caliphate Principality of Polotsk Japan Fatimid caliphate
United States of America, Georgia and Japan have more number of human settlements and administrative territories as their capital than Lazio
United States of America Georgia Japan
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 Lazio
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 ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?f WHERE { { ?f property:capital ?m . ?m rdf:type ontology:human_settlement . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:capital ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Lazio property:capital ?o . { { ?o rdf:type ontology:human_settlement } UNION { ?o rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?q > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q12730
P36
Q486972 Q56061 Q15617994
USER
And how about Haute-Saône?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
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 Q12730
relation P36
type Q486972
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?x WHERE { { ?x property:P36 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q56061 . ?x property:P36 ?a } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q12730 property:P36 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q486972 } } } } . FILTER ( ?r > ?p ) }
Haute-Saône
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 Haute-Saône
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 ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?x WHERE { { ?x property:capital ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:administrative_territorial_entity . ?x property:capital ?a } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Haute-Saône property:capital ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:human_settlement } } } } . FILTER ( ?r > ?p ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
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 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 Q12730
relation P36
type Q486972
type Q56061
[ANSWERS]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?x WHERE { { ?x property:P36 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q56061 . ?x property:P36 ?a } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q12730 property:P36 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q486972 } } } } . FILTER ( ?r > ?p ) }
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
Italy Brazil United States of America
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 Haute-Saône
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 ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?x WHERE { { ?x property:capital ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:administrative_territorial_entity . ?x property:capital ?a } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Haute-Saône property:capital ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:human_settlement } } } } . FILTER ( ?r > ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q801 Q117
P530
Q1048835
USER
How many political territories have ambassadorial relations with Israel and Ghana ?
(c(Q1048835),P530,Q801) (c(Q1048835),P530,Q117)
action count
action intersection
action filter_type
action find_reverse
entity Q801
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q117
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q801'] [{'concept': 'Q1048835'}, 'P530', 'Q117']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P530 resource:Q801 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q117 . ?i rdf:type ontology:Q1048835 }
Israel Ghana
action count
action intersection
action filter_type
action find_reverse
entity Israel
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Ghana
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Israel'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Ghana']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:diplomatic_relation resource:Israel . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Ghana . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q801) (c(Q1048835),P530,Q117)
action count
action intersection
action filter_type
action find_reverse
entity Q801
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q117
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q801'] [{'concept': 'Q1048835'}, 'P530', 'Q117']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P530 resource:Q801 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q117 . ?i rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Israel
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Ghana
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Israel'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Ghana']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:diplomatic_relation resource:Israel . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Ghana . ?i rdf:type ontology:political_territorial_entity }
[]