Simple Question (Direct)
Simple Question
Q441547
P9
Q502895
USER
Who is Wisigard a sibling of ?
(Q441547,P9,c(Q502895))
action filter_type
action find
entity Q441547
relation P9
type Q502895
['Q441547', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q441547 property:P9 ?a . ?a rdf:type ontology:Q502895 }
Wisigard
action filter_type
action find
entity Wisigard
relation sister
type common name
['Wisigard', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Wisigard property:sister ?a . ?a rdf:type ontology:common_name }
[]
common name
Q263164
SYSTEM
Waldrada
Q263164
(Q441547,P9,c(Q502895))
action filter_type
action find
entity Q441547
relation P9
type Q502895
Wisigard a sibling of is the [ANSWER]
['Q441547', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q441547 property:P9 ?a . ?a rdf:type ontology:Q502895 }
Waldrada
Wisigard a sibling of is the Waldrada
Waldrada
action filter_type
action find
entity Wisigard
relation sister
type common name
['Wisigard', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Wisigard property:sister ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q441547
P26
Q502895
USER
Which person is the life partner of Wisigard ?
(Q441547,P26,c(Q502895))
action filter_type
action find
entity Q441547
relation P26
type Q502895
['Q441547', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q441547 property:P26 ?e }
Wisigard
action filter_type
action find
entity Wisigard
relation spouse
type common name
['Wisigard', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Wisigard property:spouse ?e }
[]
common name
Q274597
SYSTEM
Theudebert I
Q274597
(Q441547,P26,c(Q502895))
action filter_type
action find
entity Q441547
relation P26
type Q502895
[ANSWER] is the life partner of Wisigard
['Q441547', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q441547 property:P26 ?e }
Theudebert I
Theudebert I is the life partner of Wisigard
Theudebert I
action filter_type
action find
entity Wisigard
relation spouse
type common name
['Wisigard', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Wisigard property:spouse ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atmost 4400 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4400
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?d <= 4400 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4400
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?d <= 4400 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4400
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?d <= 4400 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Which musical instruments can atmost 4400 people perform with
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4400
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?d <= 4400 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 864 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 864
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?n >= 864 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 864
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?n >= 864 ) }
[]
musical instrument common name
SYSTEM
7
Q46185 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 864
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?n >= 864 ) }
bass guitar piano trumpet cello violin organ drum kit
7
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 864
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?n >= 864 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q441547
P25
Q502895
USER
Who is the offspring of Wisigard ?
(c(Q502895),P25,Q441547)
action filter_type
action find_reverse
entity Q441547
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q441547']
SELECT DISTINCT ?u WHERE { ?u property:P25 resource:Q441547 . ?u rdf:type ontology:Q502895 }
Wisigard
action filter_type
action find_reverse
entity Wisigard
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Wisigard']
SELECT DISTINCT ?u WHERE { ?u property:mother resource:Wisigard . ?u rdf:type ontology:common_name }
[]
common name
Q22943778
SYSTEM
Berthoara
Q22943778
(c(Q502895),P25,Q441547)
action filter_type
action find_reverse
entity Q441547
relation P25
type Q502895
The offspring of Wisigard is the [ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q441547']
SELECT DISTINCT ?u WHERE { ?u property:P25 resource:Q441547 . ?u rdf:type ontology:Q502895 }
Berthoara
The offspring of Wisigard is the Berthoara
Berthoara
action filter_type
action find_reverse
entity Wisigard
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Wisigard']
SELECT DISTINCT ?u WHERE { ?u property:mother resource:Wisigard . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81982
P425
Q12737077
USER
What is associated with the field of occupation harpsichord ?
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q81982 property:P425 ?e . ?e rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:harpsichord property:field_of_this_occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q5371902
SYSTEM
harpsichordist
Q5371902
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
[ANSWER] is associated with the field of occupation harpsichord
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q81982 property:P425 ?e . ?e rdf:type ontology:Q12737077 }
harpsichordist
Harpsichordist is associated with the field of occupation harpsichord
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:harpsichord property:field_of_this_occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17487600
Q12737077
USER
And also tell me about real estate developer?
(Q17487600,P425,c(Q12737077))
action filter_type
action find
entity Q17487600
relation P425
type Q12737077
['Q17487600', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q17487600 property:P425 ?m . ?m rdf:type ontology:Q12737077 }
real estate developer
action filter_type
action find
entity real estate developer
relation field of this occupation
type occupation
['real estate developer', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:real_estate_developer property:field_of_this_occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q695829
SYSTEM
property developer
Q695829
(Q17487600,P425,c(Q12737077))
action filter_type
action find
entity Q17487600
relation P425
type Q12737077
[ANSWER]
['Q17487600', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q17487600 property:P425 ?m . ?m rdf:type ontology:Q12737077 }
property developer
property developer
action filter_type
action find
entity real estate developer
relation field of this occupation
type occupation
['real estate developer', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:real_estate_developer property:field_of_this_occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1178361
P495
Q15617994
USER
Which administrative territory is the country of origin of davul ?
(Q1178361,P495,c(Q15617994))
action filter_type
action find
entity Q1178361
relation P495
type Q15617994
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1178361 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
davul
action filter_type
action find
entity davul
relation country of origin
type designation for an administrative territorial entity
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:davul property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q1178361,P495,c(Q15617994))
action filter_type
action find
entity Q1178361
relation P495
type Q15617994
[ANSWER] is the country of origin of davul
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1178361 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
Turkey
Turkey is the country of origin of davul
Turkey
action filter_type
action find
entity davul
relation country of origin
type designation for an administrative territorial entity
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:davul property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
(Q43,P1313,c(Q12737077))
action filter_type
action find
entity Q43
relation P1313
type Q12737077
['Q43', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q43 property:P1313 ?f }
Turkey
action filter_type
action find
entity Turkey
relation office held by head of government
type occupation
['Turkey', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Turkey property:office_held_by_head_of_government ?f }
[]
occupation
Q2430415
SYSTEM
Prime Minister of Turkey
Q2430415
(Q43,P1313,c(Q12737077))
action filter_type
action find
entity Q43
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
['Q43', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q43 property:P1313 ?f }
Prime Minister of Turkey
The Prime Minister of Turkey is fulfilled by that administrative territory
Prime Minister of Turkey
action filter_type
action find
entity Turkey
relation office held by head of government
type occupation
['Turkey', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Turkey property:office_held_by_head_of_government ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2430415
P1001
Q15617994
USER
Which administrative territory belongs to jurisdiction of that occupation ?
(Q2430415,P1001,c(Q15617994))
action filter_type
action find
entity Q2430415
relation P1001
type Q15617994
['Q2430415', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2430415 property:P1001 ?v . ?v rdf:type ontology:Q15617994 }
Prime Minister of Turkey
action filter_type
action find
entity Prime Minister of Turkey
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Prime_Minister_of_Turkey property:applies_to_jurisdiction ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q2430415,P1001,c(Q15617994))
action filter_type
action find
entity Q2430415
relation P1001
type Q15617994
[ANSWER] belongs to jurisdiction of that occupation
['Q2430415', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2430415 property:P1001 ?v . ?v rdf:type ontology:Q15617994 }
Turkey
Turkey belongs to jurisdiction of that occupation
Turkey
action filter_type
action find
entity Prime Minister of Turkey
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Prime_Minister_of_Turkey property:applies_to_jurisdiction ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?z ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?n } } . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?c = ?v ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?z ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?c = ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?z ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?n } } . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { ?w property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?c = ?v ) }
Italy
Italy have diplomatic relationships with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?z ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { ?w property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?c = ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the countries of origin of approximately the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q38
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2031291 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q38 property:P495 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?h = ?l ) }
action count
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Italy
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:release } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Italy property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h = ?l ) }
[]
designation for an administrative territorial entity release
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 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(Q2031291),P495,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q38
relation P495
type Q15617994
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2031291 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q38 property:P495 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?h = ?l ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom 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
168
action count
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Italy
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:release } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Italy property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?h ) WHERE { ?d rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?d property:P530 ?q } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?l ) WHERE { ?y property:P530 ?s . ?y rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?l = ?j ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?h ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?q } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?l ) WHERE { ?y property:diplomatic_relation ?s . ?y rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?l = ?j ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?h ) WHERE { ?d rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?d property:P530 ?q } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?l ) WHERE { ?y property:P530 ?s . ?y rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?l = ?j ) }
Germany
Germany have diplomatic relationships with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?h ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?q } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?l ) WHERE { ?y property:diplomatic_relation ?s . ?y rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?l = ?j ) }
[]