Simple Question (Direct)
Simple Question
Q6779666
P19
Q56061
USER
Where was Mary Grant Carmichael born ?
(Q6779666,P19,c(Q56061))
action filter_type
action find
entity Q6779666
relation P19
type Q56061
['Q6779666', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q6779666 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Mary Grant Carmichael
action filter_type
action find
entity Mary Grant Carmichael
relation place of birth
type administrative territorial entity
['Mary Grant Carmichael', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Mary_Grant_Carmichael property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q746718
SYSTEM
Birkenhead
Q746718
(Q6779666,P19,c(Q56061))
action filter_type
action find
entity Q6779666
relation P19
type Q56061
Mary Grant Carmichael was born in [ANSWER]
['Q6779666', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q6779666 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Birkenhead
Mary Grant Carmichael was born in Birkenhead
Birkenhead
action filter_type
action find
entity Mary Grant Carmichael
relation place of birth
type administrative territorial entity
['Mary Grant Carmichael', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Mary_Grant_Carmichael property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q746718
P190
Q56061
USER
Which administrative territory is twin city of that one ?
(Q746718,P190,c(Q56061))
action filter_type
action find
entity Q746718
relation P190
type Q56061
['Q746718', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q746718 property:P190 ?h }
Birkenhead
action filter_type
action find
entity Birkenhead
relation sister city
type administrative territorial entity
['Birkenhead', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Birkenhead property:sister_city ?h }
[]
administrative territorial entity
Q13410
SYSTEM
Latina
Q13410
(Q746718,P190,c(Q56061))
action filter_type
action find
entity Q746718
relation P190
type Q56061
[ANSWER] is twin city of that one
['Q746718', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q746718 property:P190 ?h }
Latina
Latina is twin city of that one
Latina
action filter_type
action find
entity Birkenhead
relation sister city
type administrative territorial entity
['Birkenhead', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Birkenhead property:sister_city ?h }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P3091
Q502895 Q3745054 Q502895
USER
Which people utilize max number of people and horse breeds as steed ?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action argmax
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) ?x WHERE { VALUES ( ?m ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?i rdf:type ?m } GROUP BY ?x } . FILTER ( ?s = ?f ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?v WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?v } } }
action argmax
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) ?x WHERE { VALUES ( ?m ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?i rdf:type ?m } GROUP BY ?x } . FILTER ( ?s = ?f ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?v WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?v } } }
[]
common name horse breed common name
Q724288
SYSTEM
Rodrigo Pessoa
Q724288
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action argmax
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
[ANSWER] utilize max number of people and horse breeds as steed
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) ?x WHERE { VALUES ( ?m ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?i rdf:type ?m } GROUP BY ?x } . FILTER ( ?s = ?f ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?v WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?v } } }
Rodrigo Pessoa
Rodrigo Pessoa utilize max number of people and horse breeds as steed
Rodrigo Pessoa
action argmax
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) ?x WHERE { VALUES ( ?m ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?i rdf:type ?m } GROUP BY ?x } . FILTER ( ?s = ?f ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?v WHERE { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?v } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13410
P1376
Q15089
USER
Which province of Italy has Latina as its capital ?
(Q13410,P1376,c(Q15089))
action filter_type
action find
entity Q13410
relation P1376
type Q15089
['Q13410', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?b WHERE { resource:Q13410 property:P1376 ?b . ?b rdf:type ontology:Q15089 }
Latina
action filter_type
action find
entity Latina
relation capital of
type province of Italy
['Latina', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?b WHERE { resource:Latina property:capital_of ?b . ?b rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16196
SYSTEM
Province of Latina
Q16196
(Q13410,P1376,c(Q15089))
action filter_type
action find
entity Q13410
relation P1376
type Q15089
[ANSWER] has Latina as its capital
['Q13410', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?b WHERE { resource:Q13410 property:P1376 ?b . ?b rdf:type ontology:Q15089 }
Province of Latina
Province of Latina has Latina as its capital
Province of Latina
action filter_type
action find
entity Latina
relation capital of
type province of Italy
['Latina', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?b WHERE { resource:Latina property:capital_of ?b . ?b rdf:type ontology:province_of_Italy }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16196
P36
Q56061
USER
What is the capital of that province of Italy ?
(Q16196,P36,c(Q56061))
action filter_type
action find
entity Q16196
relation P36
type Q56061
['Q16196', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q16196 property:P36 ?r . ?r rdf:type ontology:Q56061 }
Province of Latina
action filter_type
action find
entity Province of Latina
relation capital
type administrative territorial entity
['Province of Latina', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Province_of_Latina property:capital ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13410
SYSTEM
Latina
Q13410
(Q16196,P36,c(Q56061))
action filter_type
action find
entity Q16196
relation P36
type Q56061
The capital of that province of Italy is a [ANSWER]
['Q16196', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q16196 property:P36 ?r . ?r rdf:type ontology:Q56061 }
Latina
The capital of that province of Italy is a Latina
Latina
action filter_type
action find
entity Province of Latina
relation capital
type administrative territorial entity
['Province of Latina', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Province_of_Latina property:capital ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26674290 Q746718
P17
Q15617994
USER
Which administrative territories are Birkenhead or K6 Telephone Kiosk located in ?
OR((Q746718,P17,c(Q15617994)), (Q26674290,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q746718
relation P17
action find
entity Q26674290
relation P17
type Q15617994
{'OR': [['Q746718', 'P17', {'concept': 'Q15617994'}], ['Q26674290', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q26674290 property:P17 ?q } UNION { resource:Q746718 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
K6 Telephone Kiosk Birkenhead
action filter_type
action union
action find
entity Birkenhead
relation country
action find
entity K6 Telephone Kiosk
relation country
type designation for an administrative territorial entity
{'OR': [['Birkenhead', 'country', {'concept': 'designation for an administrative territorial entity'}], ['K6 Telephone Kiosk', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:K6_Telephone_Kiosk property:country ?q } UNION { resource:Birkenhead property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
OR((Q746718,P17,c(Q15617994)), (Q26674290,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q746718
relation P17
action find
entity Q26674290
relation P17
type Q15617994
Birkenhead or K6 Telephone Kiosk are located in [ANSWER]
{'OR': [['Q746718', 'P17', {'concept': 'Q15617994'}], ['Q26674290', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q26674290 property:P17 ?q } UNION { resource:Q746718 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
United Kingdom
Birkenhead or K6 Telephone Kiosk are located in United Kingdom
United Kingdom
action filter_type
action union
action find
entity Birkenhead
relation country
action find
entity K6 Telephone Kiosk
relation country
type designation for an administrative territorial entity
{'OR': [['Birkenhead', 'country', {'concept': 'designation for an administrative territorial entity'}], ['K6 Telephone Kiosk', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:K6_Telephone_Kiosk property:country ?q } UNION { resource:Birkenhead property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q15416
USER
Which administrative territories are the countries of origin of less number of collectables or television programs than that administrative territory ?
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15416 } } GROUP BY ?i } . FILTER ( ?t < ?a ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P495 resource:Q145 . { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?k rdf:type ?m } } } }
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:collectable } UNION { ?h property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:television_program } } GROUP BY ?i } . FILTER ( ?t < ?a ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:country_of_origin resource:United_Kingdom . { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:television_program ) } . ?k rdf:type ?m } } } }
[]
designation for an administrative territorial entity collectable television program
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q2342494
type Q15416
[ANSWERS] are the countries of origin of less number of collectables or television programs than that administrative territory
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P495 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15416 } } GROUP BY ?i } . FILTER ( ?t < ?a ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P495 resource:Q145 . { VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?k rdf:type ?m } } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of less number of collectables or television programs than that administrative territory
Italy Brazil Georgia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:collectable } UNION { ?h property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:television_program } } GROUP BY ?i } . FILTER ( ?t < ?a ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:country_of_origin resource:United_Kingdom . { VALUES ( ?m ) { ( ontology:collectable ) ( ontology:television_program ) } . ?k rdf:type ?m } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q1267889 Q15617994
USER
How many administrative territories are located in the neighbourhood of atleast 1 watercourses or waterways ?
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?j rdf:type ?p } GROUP BY ?o } . FILTER ( ?h >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?o WHERE { VALUES ( ?p ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?j rdf:type ?p } GROUP BY ?o } . FILTER ( ?h >= 1 ) }
[]
watercourse waterway designation for an administrative territorial entity
SYSTEM
72
Q31872 Q572949 Q267993 Q525864 Q801 Q487328 Q241358 Q525945 Q14859 Q1650693 Q214 Q503693 Q4391124 Q528579 Q493924 Q555609 Q491751 Q10903 Q11343 Q14825 Q216422 Q532046 Q7496670 Q307508 Q36 Q34 Q6685 Q252772 Q104192 Q255698 Q1984541 Q621469 Q28 Q3088406 Q917406 Q548982 Q14889 Q347 Q338094 Q3939 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q507258 Q213 Q269010 Q262684 Q573230 Q3923 Q174307 Q522992 Q522677 Q257859 Q252320 Q251778 Q53742 Q526087 Q7561974 Q2758 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q7942378
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?j rdf:type ?p } GROUP BY ?o } . FILTER ( ?h >= 1 ) }
Moosburg an der Isar Solnhofen Muhr am See Höttingen Israel Marktl Schleiden Pfofeld Ansbach Niamey III Slovakia Riedenburg Rakhlitsy Wörth an der Isar Pasewalk Magdala Pfatter Finnentrop Wetter (Ruhr) Memmingen Samsø Fischen Shillingford Yepifan Poland Sweden Dorfhain Eichstätt Kleinmachnow Abensberg Niamey II Wennigsen Hungary Front de Seine Niamey V Heidenheim Schwabach Liechtenstein Polsingen Dinslaken Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kipfenberg Czech Republic Neustadt an der Donau Füssen Beilngries Bayreuth Essing Braunlage Nassenfels Cham Pleinfeld Vohburg Donauwörth Nennslingen Sonning Eye Mönchengladbach Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Voxna
72
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?o WHERE { VALUES ( ?p ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?j rdf:type ?p } GROUP BY ?o } . FILTER ( ?h >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with more number of administrative territories than Papua New Guinea ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?s ) WHERE { ?k property:P530 ?f . ?k rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q691 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?w ) }
Papua New Guinea
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?s ) WHERE { ?k property:diplomatic_relation ?f . ?k rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?w ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q1000 Q40 Q781 Q778 Q183 Q408 Q769 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with more number of administrative territories than Papua New Guinea
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?s ) WHERE { ?k property:P530 ?f . ?k rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q691 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?w ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Australia Grenada Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have a diplomatic relationship with more number of administrative territories than Papua New Guinea
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?s ) WHERE { ?k property:diplomatic_relation ?f . ?k rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And also tell me about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?w property:P530 ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q766 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?y > ?q ) }
Jamaica
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Jamaica property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?y > ?q ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?w property:P530 ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q766 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?y > ?q ) }
Austria Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Jamaica property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?y > ?q ) }
[]