Simple Question (Direct)
Simple Question
Q163381
P21
Q290
USER
What is the sex of Peter Martyr d'Anghiera ?
(Q163381,P21,c(Q290))
action filter_type
action find
entity Q163381
relation P21
type Q290
['Q163381', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q163381 property:P21 ?b }
Peter Martyr d'Anghiera
action filter_type
action find
entity Peter Martyr d'Anghiera
relation gender
type sex
["Peter Martyr d'Anghiera", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Peter_Martyr_d'Anghiera property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q163381,P21,c(Q290))
action filter_type
action find
entity Q163381
relation P21
type Q290
The sex of Peter Martyr d' Anghiera is the [ANSWER]
['Q163381', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q163381 property:P21 ?b }
male
The sex of Peter Martyr d' Anghiera is the male
male
action filter_type
action find
entity Peter Martyr d'Anghiera
relation gender
type sex
["Peter Martyr d'Anghiera", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Peter_Martyr_d'Anghiera property:gender ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who studied at that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?b WHERE { ?b property:P69 resource:Q6581097 . ?b rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?b WHERE { ?b property:educated_at resource:male . ?b rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER] studied at that sex
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?b WHERE { ?b property:P69 resource:Q6581097 . ?b rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem studied at that sex
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?b WHERE { ?b property:educated_at resource:male . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
How many television genres did approximately 6 people do the dubbing for ?
(c(Q15961987),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 6
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:P725 ?v . ?z rdf:type ontology:Q15961987 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?h = 6 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
value 6
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:voice_actor ?v . ?z rdf:type ontology:television_genre . ?v rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?h = 6 ) }
[]
common name television genre
SYSTEM
10
Q24034511 Q11296848 Q7615342 Q3235151 Q576501 Q53093 Q753848 Q5415 Q886 Q2750339
(c(Q15961987),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 6
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:P725 ?v . ?z rdf:type ontology:Q15961987 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?h = 6 ) }
Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe VeggieTales Garfield and Friends Adventure Time TaleSpin My Little Pony: Friendship Is Magic The Simpsons Hellsing Ultimate
10
action count
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
value 6
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:voice_actor ?v . ?z rdf:type ontology:television_genre . ?v rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?h = 6 ) }
[]
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 around 464 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 464
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P1303 ?a . ?v rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . FILTER ( ?j = 464 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 464
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:instrument ?a . ?v rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . FILTER ( ?j = 464 ) }
[]
musical instrument common name
SYSTEM
62
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 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 464
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P1303 ?a . ?v rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . FILTER ( ?j = 464 ) }
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 cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 464
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:instrument ?a . ?v rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . FILTER ( ?j = 464 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6581072 Q6581097
P21
Q502895
USER
Which people are a male and female ?
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?a WHERE { ?a property:P21 resource:Q6581072 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
female male
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?a WHERE { ?a property:gender resource:female . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q17158335 Q11449790 Q17148031 Q25768293 Q18559837 Q12734885 Q21503040 Q7377573 Q22102078 Q237726
SYSTEM
Some of them are Songhaye, Terunobu Utsunomiya, Maria Espinalt i Font, Shagdaryn Bira, Mirabel Topham, Maria-Magdalena Zaharescu, Kenneth Neil, Rudy Autio, Letebrhan Haylay Gebreslasea, Rosalba Carriera
Q12966459 Q17600942 Q3260705 Q5874237 Q21391750 Q17225819 Q5972494 Q16941580 Q16733519 Q11622868 Q6702791 Q10263785 Q6571041 Q16732132 Q24264223 Q20401379 Q20119921 Q2312612 Q16164967 Q242700 Q6555624 Q12586819 Q23698979 Q17628096 Q22342662 Q525066 Q9544977 Q503007 Q22280111 Q22102078 Q5482749 Q21392153 Q201204 Q10281088 Q442804 Q16767898 Q22570074 Q21601127 Q12403076 Q14432239 Q12734885 Q734662 Q24500675 Q24034956 Q19957341 Q6258596 Q22236117 Q22808784 Q11379959 Q6003690 Q24807469 Q21857402 Q21258362 Q4979792 Q11449790 Q22001922 Q3575012 Q3764762 Q7377573 Q20068820 Q6031433 Q21794041 Q6438624 Q25768293 Q19448005 Q21503040 Q17148031 Q11604340 Q17158335 Q11815936 Q17364527 Q22280435 Q15934058 Q18559837 Q11201210 Q25748324 Q459844 Q2379965 Q3291942 Q17621841 Q20980163 Q453573 Q11531266 Q4255661 Q22675675 Q528434 Q237726 Q74813 Q2668396 Q298423 Q22073991 Q503575 Q23416861 Q15807938 Q19357604 Q18049905 Q26921704 Q2882250 Q18346977 Q2939204 Q3809749 Q12685049 Q21033490 Q5856706 Q16165783 Q5569499 Q12613187 Q7849225 Q16582167 Q19543099 Q16865281 Q22095108 Q12872947 Q15433626
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] are a male and female
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?a WHERE { ?a property:P21 resource:Q6581072 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Kim Ju-yeong Gert Portael Louis-Marie Autissier Hom Nguyen George Mather Luer Hajime Hyakkoku Leeland Dayton Mooring Antonio Merayo Ali Nuhu Kodai Fujii Luli Bitri Dalmau IV de Rocabertí Diemut Theato Robin Mathews Milko Tokola Hakima El Haite Lee Parkhill Floris Meydam Ivan Almeida Naima Mora Hana Shezifi Gilgun Elmo Jankari Rafeef Ziadah Magdalena Mayr Liss Eriksson Lilly Wachowski Andreja Pejić Yengkhom Roma Letebrhan Haylay Gebreslasea Francis Wheatley Jian-Huan Yang Dana International Fenedy Masauvakalo Anna Grodzka Chanmi Elisabeth Ullmann Marina Lampraki-Plaka Ángel Martínez Ortega Benny Motzfeldt Maria-Magdalena Zaharescu Joan de Munchensi Amadeus Serafini Jaki Irvine Tinne De Caigny John Spaulding Colombe Marcasiano Annegret Kuhn Kazue Itō María Elena Orantes Kudirat Akhigbe Miska Humaloja Dominique Van Der Straeten Emma Josepha Sparre Terunobu Utsunomiya Suzanne Schulting Zdeněk Koubek Shamshad Begum Rudy Autio Lesya Nikityuk Matthew W. Taylor Jelizaveta Potapova Gaz Beadle Shagdaryn Bira Juan Illas y Vidal Kenneth Neil Maria Espinalt i Font Akira Yoneda Songhaye Petia Stawrewa Ángel Tejeda Sun Vandeth Matsudaira Yoshiko Mirabel Topham Asmik Grigorian K. T. Rama Rao Norah Al Faiz Thomas Beatie Marie-Joseph Charles des Acres de l'Aigle Marta Linares Engel Reimers Vicki Richter Miki Matsumoto Adolfine Therese Leander-Flodin Nikola Jakadofsky Daniele Hypólito Rosalba Carriera Mina Caputo Parinya Charoenphol Chelsea Manning Saalumarada Thimmakka Cesare Nebbia Ivica Mavrenski Elvire De Bruyn Hamda Khamis Stanisława Witekowa Jean-Marie Aleokol Mabieme Jingjing Wang Jan Norback Carlo Guasco Jaiyah Saelua Chew Mei Fun Silke Weitendorf Ingel Fallstedt America Sanchez Glenys Barton Lee Hye-jin Kim Ye-ri Jorge Garate Ionna Stephanopoli Choi Jung-moon Taofik Adegbite Frosso Kiaou Florence Randal Livesay
Songhaye, Terunobu Utsunomiya, Maria Espinalt i Font, Shagdaryn Bira, Mirabel Topham, Maria-Magdalena Zaharescu, Kenneth Neil, Rudy Autio, Letebrhan Haylay Gebreslasea and Rosalba Carriera are a male and female
Songhaye Terunobu Utsunomiya Maria Espinalt i Font Shagdaryn Bira Mirabel Topham Maria-Magdalena Zaharescu Kenneth Neil Rudy Autio Letebrhan Haylay Gebreslasea Rosalba Carriera
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?a WHERE { ?a property:gender resource:female . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by exactly 3 people ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?a = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?a = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?a = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?a = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7377573
P26
Q502895
USER
Which person is married to Rudy Autio ?
(c(Q502895),P26,Q7377573)
action filter_type
action find_reverse
entity Q7377573
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q7377573']
SELECT DISTINCT ?u WHERE { ?u property:P26 resource:Q7377573 . ?u rdf:type ontology:Q502895 }
Rudy Autio
action filter_type
action find_reverse
entity Rudy Autio
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Rudy Autio']
SELECT DISTINCT ?u WHERE { ?u property:spouse resource:Rudy_Autio . ?u rdf:type ontology:common_name }
[]
common name
Q23707620
SYSTEM
Lela Autio
Q23707620
(c(Q502895),P26,Q7377573)
action filter_type
action find_reverse
entity Q7377573
relation P26
type Q502895
Is [ANSWER] is married to Rudy Autio
[{'concept': 'Q502895'}, 'P26', 'Q7377573']
SELECT DISTINCT ?u WHERE { ?u property:P26 resource:Q7377573 . ?u rdf:type ontology:Q502895 }
Lela Autio
Is Lela Autio is married to Rudy Autio
Lela Autio
action filter_type
action find_reverse
entity Rudy Autio
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Rudy Autio']
SELECT DISTINCT ?u WHERE { ?u property:spouse resource:Rudy_Autio . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23707620
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q23707620,P27,c(Q15617994))
action filter_type
action find
entity Q23707620
relation P27
type Q15617994
['Q23707620', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q23707620 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Lela Autio
action filter_type
action find
entity Lela Autio
relation country of citizenship
type designation for an administrative territorial entity
['Lela Autio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Lela_Autio property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q23707620,P27,c(Q15617994))
action filter_type
action find
entity Q23707620
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q23707620', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q23707620 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person a civilian of
United States of America
action filter_type
action find
entity Lela Autio
relation country of citizenship
type designation for an administrative territorial entity
['Lela Autio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Lela_Autio property:country_of_citizenship ?k . ?k 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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?o ) WHERE { ?t property:P530 ?v . ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?r ) WHERE { ?f property:P530 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?r = ?k ) }
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?o ) WHERE { ?t property:diplomatic_relation ?v . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?r ) WHERE { ?f property:diplomatic_relation ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?r = ?k ) }
[]
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?o ) WHERE { ?t property:P530 ?v . ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?r ) WHERE { ?f property:P530 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?r = ?k ) }
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?k ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?o ) WHERE { ?t property:diplomatic_relation ?v . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?r ) WHERE { ?f property:diplomatic_relation ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?r = ?k ) }
[]