Simple Question (Direct)
Simple Question
Q3848802
P39
Q12737077
USER
Which occupation was a position occupied by Mario Melloni ?
(Q3848802,P39,c(Q12737077))
action filter_type
action find
entity Q3848802
relation P39
type Q12737077
['Q3848802', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3848802 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Mario Melloni
action filter_type
action find
entity Mario Melloni
relation position held
type occupation
['Mario Melloni', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Mario_Melloni property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q3848802,P39,c(Q12737077))
action filter_type
action find
entity Q3848802
relation P39
type Q12737077
[ANSWER] was a position occupied by Mario Melloni
['Q3848802', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3848802 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
Member of the Chamber of Deputies of the Italian Republic was a position occupied by Mario Melloni
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Mario Melloni
relation position held
type occupation
['Mario Melloni', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Mario_Melloni property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3848802
P102
Q7210356
USER
Which political organization is Mario Melloni a member of ?
(Q3848802,P102,c(Q7210356))
action filter_type
action find
entity Q3848802
relation P102
type Q7210356
['Q3848802', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q3848802 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Mario Melloni
action filter_type
action find
entity Mario Melloni
relation member of political party
type political organization
['Mario Melloni', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Mario_Melloni property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q815348
SYSTEM
Christian Democracy
Q815348
(Q3848802,P102,c(Q7210356))
action filter_type
action find
entity Q3848802
relation P102
type Q7210356
The [ANSWER] is Mario Melloni a member of
['Q3848802', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q3848802 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Christian Democracy
The Christian Democracy is Mario Melloni a member of
Christian Democracy
action filter_type
action find
entity Mario Melloni
relation member of political party
type political organization
['Mario Melloni', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Mario_Melloni property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3848802
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q815348,P20,c(Q56061))
action filter_type
action find
entity Q3848802
relation P20
type Q56061
['Q815348', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q3848802 property:P20 ?n }
Mario Melloni
action filter_type
action find
entity Mario Melloni
relation place of death
type administrative territorial entity
['Christian Democracy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Mario_Melloni property:place_of_death ?n }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q815348,P20,c(Q56061))
action filter_type
action find
entity Q3848802
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q815348', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q3848802 property:P20 ?n }
Milan
Milan is the place of death of that person
Milan
action filter_type
action find
entity Mario Melloni
relation place of death
type administrative territorial entity
['Christian Democracy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Mario_Melloni property:place_of_death ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
How many administrative territories have adopted approximately the same number of holidays as patron saint as that administrative territory ?
(c(Q56061),P417,c(Q1445650))
action count
action approx
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q490
relation P417
type Q56061
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?z ) WHERE { ?e property:P417 ?t . ?e rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Q490 property:P417 ?x . ?x rdf:type ontology:Q56061 } } . FILTER ( ?z = ?l ) }
action count
action approx
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Milan
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?z ) WHERE { ?e property:patron_saint ?t . ?e rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Milan property:patron_saint ?x . ?x rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?z = ?l ) }
[]
holiday administrative territorial entity
SYSTEM
125
Q264716 Q5818 Q187352 Q11974 Q12883498 Q40801 Q212841 Q54494 Q454875 Q14209773 Q50057 Q34111 Q117388 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q6221 Q2028 Q46718 Q929022 Q641 Q46165 Q649 Q58463 Q3395964 Q73489 Q54119 Q53825 Q200908 Q15090 Q81258 Q36647 Q13375 Q47074 Q59257 Q15088 Q4361 Q2914723 Q10305 Q53265 Q6340 Q101229 Q100129 Q52547 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q82208 Q116440 Q2284679 Q3557616 Q374108 Q3562704 Q220 Q90 Q496890 Q297224 Q431389 Q5991813 Q380189 Q617 Q470461 Q259039 Q733574 Q54556 Q932648 Q487786 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q100943 Q51400 Q504216 Q244193 Q1747381 Q51315 Q492475 Q334577 Q210470 Q39493 Q11959 Q329984 Q47034 Q15095 Q215080 Q270288 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q102820 Q15487 Q244207 Q1957 Q50074 Q1897 Q46864
(c(Q56061),P417,c(Q1445650))
action count
action approx
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q490
relation P417
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?z ) WHERE { ?e property:P417 ?t . ?e rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Q490 property:P417 ?x . ?x rdf:type ontology:Q56061 } } . FILTER ( ?z = ?l ) }
Carzano Córdoba Kavala Las Palmas de Gran Canaria Pano Platres Borca di Cadore Drama Belvedere di Spinello Amarante Municipality San Lorenzo de' Picenardi Cagnano Amiterno Pozzallo Strangolagalli Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Brescia Verona Carrè Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Koufalia Camerino San Pedro Altilia Rethymno Lleida Padula Cork Pisa Aielli Montefortino Tarragona Curitiba Nemausus Zaragoza Gemona del Friuli Castel Giorgio Martinengo Calvenzano Campomaggiore Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Kastritsa Arpino General Alvear, Mendoza Platres Altrei Molista Rome Paris Balestrate Padergnone Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Giardinello Istiaia Africo Didymoteicho Orihuela Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Sorbolo Spoltore St. Martin in Passeier Cagno Polykastro Villamagna Valença Quetzaltenango Katerini Cantello Alicante Úbeda Espoo Albacete Machala Riccò del Golfo di Spezia Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Nibbiano Berga Campione d'Italia Vologda Castellafiume Cagliari Arcugnano
125
action count
action approx
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Milan
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?z ) WHERE { ?e property:patron_saint ?t . ?e rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { resource:Milan property:patron_saint ?x . ?x rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?z = ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21104281 Q3848802
P27
Q15617994
USER
Which administrative territories are Mario Melloni or Dessie Sheehan an inhabitant of ?
OR((Q3848802,P27,c(Q15617994)), (Q21104281,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3848802
relation P27
action find
entity Q21104281
relation P27
type Q15617994
{'OR': [['Q3848802', 'P27', {'concept': 'Q15617994'}], ['Q21104281', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3848802 property:P27 ?y } UNION { resource:Q21104281 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Dessie Sheehan Mario Melloni
action filter_type
action union
action find
entity Mario Melloni
relation country of citizenship
action find
entity Dessie Sheehan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mario Melloni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dessie Sheehan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Mario_Melloni property:country_of_citizenship ?y } UNION { resource:Dessie_Sheehan property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q27
SYSTEM
Italy, Ireland
Q38 Q27
OR((Q3848802,P27,c(Q15617994)), (Q21104281,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3848802
relation P27
action find
entity Q21104281
relation P27
type Q15617994
[ANSWERS] are Mario Melloni or Dessie Sheehan an inhabitant of
{'OR': [['Q3848802', 'P27', {'concept': 'Q15617994'}], ['Q21104281', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3848802 property:P27 ?y } UNION { resource:Q21104281 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Italy Ireland
Italy and Ireland are Mario Melloni or Dessie Sheehan an inhabitant of
Italy Ireland
action filter_type
action union
action find
entity Mario Melloni
relation country of citizenship
action find
entity Dessie Sheehan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mario Melloni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dessie Sheehan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Mario_Melloni property:country_of_citizenship ?y } UNION { resource:Dessie_Sheehan property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q17335294 Q11204
USER
Which administrative territories come under the supervision of atleast 1 coats of arms and legislatures ?
(c(Q17335294)|c(Q11204),P1001,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 1
[[{'concept': 'Q17335294'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { VALUES ( ?a ) { ( ontology:Q17335294 ) ( ontology:Q11204 ) } . ?i rdf:type ?a } GROUP BY ?b } . FILTER ( ?e >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 1
[[{'concept': 'flag or coat of arms'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { VALUES ( ?a ) { ( ontology:flag_or_coat_of_arms ) ( ontology:legislature ) } . ?i rdf:type ?a } GROUP BY ?b } . FILTER ( ?e >= 1 ) }
[]
designation for an administrative territorial entity flag or coat of arms legislature
Q30 Q159 Q148
SYSTEM
United States of America, Russia, People's Republic of China
Q701 Q705 Q707 Q148 Q189 Q37 Q710 Q159 Q792 Q889 Q884 Q1965 Q1142326 Q1952 Q30 Q3389 Q769680 Q1093 Q2667658 Q1101 Q786 Q347 Q902 Q191 Q694 Q752 Q12642 Q12753 Q1438 Q29 Q775 Q774 Q776 Q770 Q773 Q772 Q1243 Q12549 Q129003 Q176 Q33788 Q1267638 Q1237
(c(Q17335294)|c(Q11204),P1001,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 1
[ANSWERS] come under the supervision of atleast 1 coats of arms and legislatures
[[{'concept': 'Q17335294'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { VALUES ( ?a ) { ( ontology:Q17335294 ) ( ontology:Q11204 ) } . ?i rdf:type ?a } GROUP BY ?b } . FILTER ( ?e >= 1 ) }
North Holland Zeeland Flevoland People's Republic of China Iceland Lithuania Kiribati Russia El Salvador Afghanistan South Korea New Brunswick Seine Nova Scotia United States of America Finistère Bornholm Limburg Shushary, Saint Petersburg North Brabant Dominican Republic Liechtenstein Bangladesh Estonia South Holland Groningen Morbihan Seine-et-Marne Campania Spain Gelderland Guatemala Utrecht Friesland Overijssel Drenthe Veneto Ille-et-Vilaine French Southern and Antarctic Lands Quebec New Caledonia Beloostrov Trentino-South Tyrol
United States of America, Russia and People's Republic of China come under the supervision of atleast 1 coats of arms and legislatures
United States of America Russia People's Republic of China
action atleast
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 1
[[{'concept': 'flag or coat of arms'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { VALUES ( ?a ) { ( ontology:flag_or_coat_of_arms ) ( ontology:legislature ) } . ?i rdf:type ?a } GROUP BY ?b } . FILTER ( ?e >= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1499319
P530
Q1048835
USER
Do Santo Ildefonso have ambassadorial relations with those administrative territories ?
(Q1499319,P530,Q30) (Q1499319,P530,Q159) (Q1499319,P530,Q148)
action is_in
entity prev_answer
action find
entity Q1499319
relation P530
['Q1499319', 'P530', 'Q30'] ['Q1499319', 'P530', 'Q159'] ['Q1499319', 'P530', 'Q148']
ASK WHERE { VALUES ( ?l ) { ( resource:Q701 ) ( resource:Q705 ) ( resource:Q707 ) } . resource:Q1499319 property:P530 ?l }
Santo Ildefonso
action is_in
entity prev_answer
action find
entity Santo Ildefonso
relation diplomatic relation
['Santo Ildefonso', 'diplomatic relation', 'United States of America'] ['Santo Ildefonso', 'diplomatic relation', 'Russia'] ['Santo Ildefonso', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { VALUES ( ?l ) { ( resource:North_Holland ) ( resource:Zeeland ) ( resource:Flevoland ) } . resource:Santo_Ildefonso property:diplomatic_relation ?l }
[]
political territorial entity
SYSTEM
NO
(Q1499319,P530,Q30) (Q1499319,P530,Q159) (Q1499319,P530,Q148)
action is_in
entity prev_answer
action find
entity Q1499319
relation P530
[ANSWER]
['Q1499319', 'P530', 'Q30'] ['Q1499319', 'P530', 'Q159'] ['Q1499319', 'P530', 'Q148']
ASK WHERE { VALUES ( ?l ) { ( resource:Q701 ) ( resource:Q705 ) ( resource:Q707 ) } . resource:Q1499319 property:P530 ?l }
No
action is_in
entity prev_answer
action find
entity Santo Ildefonso
relation diplomatic relation
['Santo Ildefonso', 'diplomatic relation', 'United States of America'] ['Santo Ildefonso', 'diplomatic relation', 'Russia'] ['Santo Ildefonso', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { VALUES ( ?l ) { ( resource:North_Holland ) ( resource:Zeeland ) ( resource:Flevoland ) } . resource:Santo_Ildefonso property:diplomatic_relation ?l }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q815348 Q38 Q693084
P17
Q15617994
USER
Is Christian Democracy present in Italy and Glasow ?
(Q815348,P17,Q38) (Q815348,P17,Q693084)
action is_in
entity Q815348
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q693084
relation P17
['Q815348', 'P17', 'Q38'] ['Q815348', 'P17', 'Q693084']
ASK WHERE { resource:Q815348 property:P17 resource:Q38 . resource:Q815348 property:P17 resource:Q693084 }
Christian Democracy Italy Glasow
action is_in
entity Christian Democracy
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Glasow
relation country
['Christian Democracy', 'country', 'Italy'] ['Christian Democracy', 'country', 'Glasow']
ASK WHERE { resource:Christian_Democracy property:country resource:Italy . resource:Christian_Democracy property:country resource:Glasow }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q815348,P17,Q38) (Q815348,P17,Q693084)
action is_in
entity Q815348
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q693084
relation P17
[ANSWER]
['Q815348', 'P17', 'Q38'] ['Q815348', 'P17', 'Q693084']
ASK WHERE { resource:Q815348 property:P17 resource:Q38 . resource:Q815348 property:P17 resource:Q693084 }
YES and NO respectively
action is_in
entity Christian Democracy
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Glasow
relation country
['Christian Democracy', 'country', 'Italy'] ['Christian Democracy', 'country', 'Glasow']
ASK WHERE { resource:Christian_Democracy property:country resource:Italy . resource:Christian_Democracy property:country resource:Glasow }
[]