Simple Question (Direct)
Simple Question
Q3361849
P1344
Q16510064
USER
Which sporting event did Al Jochim take part in ?
(Q3361849,P1344,c(Q16510064))
action filter_type
action find
entity Q3361849
relation P1344
type Q16510064
['Q3361849', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?o WHERE { resource:Q3361849 property:P1344 ?o . ?o rdf:type ontology:Q16510064 }
Al Jochim
action filter_type
action find
entity Al Jochim
relation participant of
type sporting event
['Al Jochim', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?o WHERE { resource:Al_Jochim property:participant_of ?o . ?o rdf:type ontology:sporting_event }
[]
sporting event
Q5624262
SYSTEM
Gymnastics at the 1932 Summer Olympics – Men's vault
Q5624262
(Q3361849,P1344,c(Q16510064))
action filter_type
action find
entity Q3361849
relation P1344
type Q16510064
Al Jochim took part in [ANSWER]
['Q3361849', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?o WHERE { resource:Q3361849 property:P1344 ?o . ?o rdf:type ontology:Q16510064 }
Gymnastics at the 1932 Summer Olympics – Men's vault
Al Jochim took part in Gymnastics at the 1932 Summer Olympics – Men's vault
Gymnastics at the 1932 Summer Olympics – Men's vault
action filter_type
action find
entity Al Jochim
relation participant of
type sporting event
['Al Jochim', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?o WHERE { resource:Al_Jochim property:participant_of ?o . ?o rdf:type ontology:sporting_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3361849
P19
Q56061
USER
Which administrative territory is the place of birth of Al Jochim ?
(Q3361849,P19,c(Q56061))
action filter_type
action find
entity Q3361849
relation P19
type Q56061
['Q3361849', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3361849 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Al Jochim
action filter_type
action find
entity Al Jochim
relation place of birth
type administrative territorial entity
['Al Jochim', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Al_Jochim property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q3361849,P19,c(Q56061))
action filter_type
action find
entity Q3361849
relation P19
type Q56061
[ANSWER] is the place of birth of Al Jochim
['Q3361849', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3361849 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Berlin
Berlin is the place of birth of Al Jochim
Berlin
action filter_type
action find
entity Al Jochim
relation place of birth
type administrative territorial entity
['Al Jochim', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Al_Jochim property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q64 Q16038719
P19
Q502895
USER
Was Egisto Sarri born at that administrative territory ?
(Q16038719,P19,Q64)
action is_in
entity Q16038719
action find
entity Q64
relation P19
['Q16038719', 'P19', 'Q64']
ASK WHERE { resource:Q64 property:P19 resource:Q16038719 }
Berlin Egisto Sarri
action is_in
entity Egisto Sarri
action find
entity Berlin
relation place of birth
['Egisto Sarri', 'place of birth', 'Berlin']
ASK WHERE { resource:Berlin property:place_of_birth resource:Egisto_Sarri }
[]
common name
SYSTEM
NO
(Q16038719,P19,Q64)
action is_in
entity Q16038719
action find
entity Q64
relation P19
[ANSWER]
['Q16038719', 'P19', 'Q64']
ASK WHERE { resource:Q64 property:P19 resource:Q16038719 }
No
action is_in
entity Egisto Sarri
action find
entity Berlin
relation place of birth
['Egisto Sarri', 'place of birth', 'Berlin']
ASK WHERE { resource:Berlin property:place_of_birth resource:Egisto_Sarri }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1468406 Q16038719
P19
Q15617994
USER
Which administrative territories were Egisto Sarri or Fritz Seitz born at ?
OR((Q16038719,P19,c(Q15617994)), (Q1468406,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q16038719
relation P19
action find
entity Q1468406
relation P19
type Q15617994
{'OR': [['Q16038719', 'P19', {'concept': 'Q15617994'}], ['Q1468406', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16038719 property:P19 ?k } UNION { resource:Q1468406 property:P19 ?k } } . ?k rdf:type ontology:Q15617994 }
Fritz Seitz Egisto Sarri
action filter_type
action union
action find
entity Egisto Sarri
relation place of birth
action find
entity Fritz Seitz
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Egisto Sarri', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Fritz Seitz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Egisto_Sarri property:place_of_birth ?k } UNION { resource:Fritz_Seitz property:place_of_birth ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q82676 Q516611
SYSTEM
Figline Valdarno, Mayen
Q82676 Q516611
OR((Q16038719,P19,c(Q15617994)), (Q1468406,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q16038719
relation P19
action find
entity Q1468406
relation P19
type Q15617994
Egisto Sarri or Fritz Seitz were born in [ANSWERS]
{'OR': [['Q16038719', 'P19', {'concept': 'Q15617994'}], ['Q1468406', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16038719 property:P19 ?k } UNION { resource:Q1468406 property:P19 ?k } } . ?k rdf:type ontology:Q15617994 }
Figline Valdarno Mayen
Egisto Sarri or Fritz Seitz were born in Figline Valdarno and Mayen
Figline Valdarno Mayen
action filter_type
action union
action find
entity Egisto Sarri
relation place of birth
action find
entity Fritz Seitz
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Egisto Sarri', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Fritz Seitz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Egisto_Sarri property:place_of_birth ?k } UNION { resource:Fritz_Seitz property:place_of_birth ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P206
Q355304 Q337567
USER
How many watercourses or still waterss are situated close to Berlin ?
(Q64,P206,c(Q355304)) (Q64,P206,c(Q337567))
action count
action union
action filter_type
action find
entity Q64
relation P206
type Q355304
action filter_type
action find
entity Q64
relation P206
type Q337567
['Q64', 'P206', {'concept': 'Q355304'}] ['Q64', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { resource:Q64 property:P206 ?z . ?z rdf:type ontology:Q355304 } UNION { ?z rdf:type ontology:Q337567 . resource:Q64 property:P206 ?z } }
Berlin
action count
action union
action filter_type
action find
entity Berlin
relation located next to body of water
type watercourse
action filter_type
action find
entity Berlin
relation located next to body of water
type still waters
['Berlin', 'located next to body of water', {'concept': 'watercourse'}] ['Berlin', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { resource:Berlin property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse } UNION { ?z rdf:type ontology:still_waters . resource:Berlin property:located_next_to_body_of_water ?z } }
[]
watercourse still waters
SYSTEM
4
Q697916 Q1684 Q3908364 Q1682
(Q64,P206,c(Q355304)) (Q64,P206,c(Q337567))
action count
action union
action filter_type
action find
entity Q64
relation P206
type Q355304
action filter_type
action find
entity Q64
relation P206
type Q337567
[ANSWER]
['Q64', 'P206', {'concept': 'Q355304'}] ['Q64', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { resource:Q64 property:P206 ?z . ?z rdf:type ontology:Q355304 } UNION { ?z rdf:type ontology:Q337567 . resource:Q64 property:P206 ?z } }
Lake Tegel Spree Großer Wannsee Havel
4
action count
action union
action filter_type
action find
entity Berlin
relation located next to body of water
type watercourse
action filter_type
action find
entity Berlin
relation located next to body of water
type still waters
['Berlin', 'located next to body of water', {'concept': 'watercourse'}] ['Berlin', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { resource:Berlin property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse } UNION { ?z rdf:type ontology:still_waters . resource:Berlin property:located_next_to_body_of_water ?z } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82676
P47
Q15617994
USER
Which administrative territories do Figline Valdarno share a border with ?
(c(Q15617994),P47,Q82676)
action filter_type
action find
entity Q82676
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q82676']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q82676 property:P47 ?c }
Figline Valdarno
action filter_type
action find
entity Figline Valdarno
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Figline Valdarno']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Figline_Valdarno property:shares_border_with ?c }
[]
designation for an administrative territorial entity
Q82707 Q52072 Q52097
SYSTEM
Greve in Chianti, Castelfranco di Sopra, San Giovanni Valdarno
Q82810 Q82716 Q52075 Q52072 Q52097 Q52093 Q82707
(c(Q15617994),P47,Q82676)
action filter_type
action find
entity Q82676
relation P47
type Q15617994
Figline Valdarno share a border with [ANSWERS]
[{'concept': 'Q15617994'}, 'P47', 'Q82676']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q82676 property:P47 ?c }
Reggello Incisa in Val d'Arno Cavriglia Castelfranco di Sopra San Giovanni Valdarno Pian di Scò Greve in Chianti
Figline Valdarno share a border with Greve in Chianti, Castelfranco di Sopra and San Giovanni Valdarno
Greve in Chianti Castelfranco di Sopra San Giovanni Valdarno
action filter_type
action find
entity Figline Valdarno
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Figline Valdarno']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Figline_Valdarno property:shares_border_with ?c }
[]
Clarification
Simple Question|Single Entity|Indirect
Q52072
P17
Q15617994
USER
Which administrative territory is that one situated in ?
(Q52072,P17,c(Q15617994))
action filter_type
action find
entity Q52072
relation P17
type Q15617994
['Q52072', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q52072 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Castelfranco di Sopra
action filter_type
action find
entity Castelfranco di Sopra
relation country
type designation for an administrative territorial entity
['Castelfranco di Sopra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Castelfranco_di_Sopra property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q52072
SYSTEM
Did you mean Castelfranco di Sopra ?
Q82707 Q52072 Q52097
(Q82707,P17,c(Q15617994)) (Q52072,P17,c(Q15617994)) (Q52097,P17,c(Q15617994))
[ANSWER]
['Q82707', 'P17', {'concept': 'Q15617994'}] ['Q52072', 'P17', {'concept': 'Q15617994'}] ['Q52097', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q52072 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Greve in Chianti Castelfranco di Sopra San Giovanni Valdarno
Did you mean Castelfranco di Sopra ?
Castelfranco di Sopra
['Greve in Chianti', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Castelfranco di Sopra', 'country', {'concept': 'designation for an administrative territorial entity'}] ['San Giovanni Valdarno', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Castelfranco_di_Sopra property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q52072,P17,c(Q15617994))
['Q52072', 'P17', {'concept': 'Q15617994'}]
['Castelfranco di Sopra', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q52072,P17,c(Q15617994))
action filter_type
action find
entity Q52072
relation P17
type Q15617994
That one is situated in [ANSWER]
['Q52072', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q52072 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Italy
That one is situated in Italy
Italy
action filter_type
action find
entity Castelfranco di Sopra
relation country
type designation for an administrative territorial entity
['Castelfranco di Sopra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Castelfranco_di_Sopra property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q2342494 Q15416
USER
How many administrative territories are the origins of approximately 51 collectables and television programs ?
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 51
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) ?l WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . FILTER ( ?x = 51 ) }
action count
action approx
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
value 51
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) ?l WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } } GROUP BY ?l } . FILTER ( ?x = 51 ) }
[]
designation for an administrative territorial entity collectable television program
SYSTEM
167
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 count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 51
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) ?l WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . FILTER ( ?x = 51 ) }
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
167
action count
action approx
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
value 51
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) ?l WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } } GROUP BY ?l } . FILTER ( ?x = 51 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations 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 ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?r ) WHERE { ?c property:P530 ?p . ?c rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?b ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?b = ?a ) }
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 ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?r ) WHERE { ?c property:diplomatic_relation ?p . ?c rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?b ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?b = ?a ) }
[]
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 relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?r ) WHERE { ?c property:P530 ?p . ?c rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?b ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?b = ?a ) }
Germany
Germany have diplomatic relations 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 ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?r ) WHERE { ?c property:diplomatic_relation ?p . ?c rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?b ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?b = ?a ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q64
P36
Q56061
USER
Is Berlin the capital of that political territory ?
(Q183,P36,Q64)
action is_in
entity Q64
action find
entity Q183
relation P36
['Q183', 'P36', 'Q64']
ASK WHERE { resource:Q183 property:P36 resource:Q64 }
Germany Berlin
action is_in
entity Berlin
action find
entity Germany
relation capital
['Germany', 'capital', 'Berlin']
ASK WHERE { resource:Germany property:capital resource:Berlin }
[]
administrative territorial entity
SYSTEM
YES
(Q183,P36,Q64)
action is_in
entity Q64
action find
entity Q183
relation P36
[ANSWER]
['Q183', 'P36', 'Q64']
ASK WHERE { resource:Q183 property:P36 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Germany
relation capital
['Germany', 'capital', 'Berlin']
ASK WHERE { resource:Germany property:capital resource:Berlin }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13571294 Q3361849
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Al Jochim or are Negoești a part of ?
OR((Q3361849,P27,c(Q15617994)), (Q13571294,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3361849
relation P27
action find
entity Q13571294
relation P17
type Q15617994
{'OR': [['Q3361849', 'P27', {'concept': 'Q15617994'}], ['Q13571294', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3361849 property:P27 ?t } UNION { resource:Q13571294 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Negoești Al Jochim
action filter_type
action union
action find
entity Al Jochim
relation country of citizenship
action find
entity Negoești
relation country
type designation for an administrative territorial entity
{'OR': [['Al Jochim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Negoești', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Al_Jochim property:country_of_citizenship ?t } UNION { resource:Negoești property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q30
SYSTEM
Romania, United States of America
Q218 Q30
OR((Q3361849,P27,c(Q15617994)), (Q13571294,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3361849
relation P27
action find
entity Q13571294
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Al Jochim or are Negoești a part of
{'OR': [['Q3361849', 'P27', {'concept': 'Q15617994'}], ['Q13571294', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3361849 property:P27 ?t } UNION { resource:Q13571294 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Romania United States of America
Romania and United States of America are the countries of citizenship of Al Jochim or are Negoești a part of
Romania United States of America
action filter_type
action union
action find
entity Al Jochim
relation country of citizenship
action find
entity Negoești
relation country
type designation for an administrative territorial entity
{'OR': [['Al Jochim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Negoești', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Al_Jochim property:country_of_citizenship ?t } UNION { resource:Negoești property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q82676
P19 P21
Q502895
USER
Which people were born at Figline Valdarno and are a male ?
AND((c(Q502895),P19,Q82676), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q82676
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q82676'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q82676 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
male Figline Valdarno
action filter_type
action intersection
action find_reverse
entity Figline Valdarno
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Figline Valdarno'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Figline_Valdarno . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
common name
Q595497 Q15149771 Q3779381 Q3629310 Q3751289 Q3894279 Q3837050 Q3830451 Q17277952 Q15972740
SYSTEM
Some of them are Francesco Pucci, Leonardo Capezzi, Guido Mazzoni, Attilio Veroni, Franco Ermini, Paolo Monzecchi, Lorenzo Pignotti, Leonardo Sottani, Bianco Bianchi, David Ermini
Q3767184 Q3972730 Q3617156 Q16559947 Q3779381 Q3837050 Q3830451 Q3961181 Q3751289 Q3640117 Q192374 Q3894279 Q16576929 Q3858898 Q17277952 Q16038719 Q3950916 Q3629310 Q3763275 Q3836889 Q4015414 Q595497 Q15149771 Q15972740
AND((c(Q502895),P19,Q82676), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q82676
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Figline Valdarno and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q82676'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q82676 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
Giovanni Fabrini Stefano Sottili Angelo Pierallini Giovanni Fondelli Guido Mazzoni Lorenzo Pignotti Leonardo Sottani Simone Bagnoli Franco Ermini Bino Binazzi Marsilio Ficino Paolo Monzecchi Massimo Artini Miro Sassolini Bianco Bianchi Egisto Sarri Sauro Ciantini Attilio Veroni Gianluca Nocentini Lorenzo Bonechi Vittorio Locchi Francesco Pucci Leonardo Capezzi David Ermini
Francesco Pucci, Leonardo Capezzi, Guido Mazzoni, Attilio Veroni, Franco Ermini, Paolo Monzecchi, Lorenzo Pignotti, Leonardo Sottani, Bianco Bianchi and David Ermini were born at Figline Valdarno and are a male
Francesco Pucci Leonardo Capezzi Guido Mazzoni Attilio Veroni Franco Ermini Paolo Monzecchi Lorenzo Pignotti Leonardo Sottani Bianco Bianchi David Ermini
action filter_type
action intersection
action find_reverse
entity Figline Valdarno
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Figline Valdarno'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Figline_Valdarno . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]