Simple Question (Direct)
Simple Question
Q6276502
P27
Q15617994
USER
Which administrative territory is the native country of Jordan Eagers ?
(Q6276502,P27,c(Q15617994))
action filter_type
action find
entity Q6276502
relation P27
type Q15617994
['Q6276502', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q6276502 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Jordan Eagers
action filter_type
action find
entity Jordan Eagers
relation country of citizenship
type designation for an administrative territorial entity
['Jordan Eagers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Jordan_Eagers property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6276502,P27,c(Q15617994))
action filter_type
action find
entity Q6276502
relation P27
type Q15617994
[ANSWER] is the native country of Jordan Eagers
['Q6276502', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q6276502 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native country of Jordan Eagers
United Kingdom
action filter_type
action find
entity Jordan Eagers
relation country of citizenship
type designation for an administrative territorial entity
['Jordan Eagers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Jordan_Eagers property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6276502
P641
Q349
USER
Which sport did Jordan Eagers participate in ?
(Q6276502,P641,c(Q349))
action filter_type
action find
entity Q6276502
relation P641
type Q349
['Q6276502', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q349 . resource:Q6276502 property:P641 ?q }
Jordan Eagers
action filter_type
action find
entity Jordan Eagers
relation sport
type sport
['Jordan Eagers', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sport . resource:Jordan_Eagers property:sport ?q }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6276502,P641,c(Q349))
action filter_type
action find
entity Q6276502
relation P641
type Q349
Jordan Eagers participated in [ANSWER]
['Q6276502', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q349 . resource:Q6276502 property:P641 ?q }
association football
Jordan Eagers participated in association football
association football
action filter_type
action find
entity Jordan Eagers
relation sport
type sport
['Jordan Eagers', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sport . resource:Jordan_Eagers property:sport ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18217591
Q349
USER
And how about Nikita Lobanov?
(Q18217591,P641,c(Q349))
action filter_type
action find
entity Q18217591
relation P641
type Q349
['Q18217591', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q349 . resource:Q18217591 property:P641 ?u }
Nikita Lobanov
action filter_type
action find
entity Nikita Lobanov
relation sport
type sport
['Nikita Lobanov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sport . resource:Nikita_Lobanov property:sport ?u }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18217591,P641,c(Q349))
action filter_type
action find
entity Q18217591
relation P641
type Q349
[ANSWER]
['Q18217591', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q349 . resource:Q18217591 property:P641 ?u }
association football
association football
action filter_type
action find
entity Nikita Lobanov
relation sport
type sport
['Nikita Lobanov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sport . resource:Nikita_Lobanov property:sport ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18217591
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q18217591
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q18217591 property:P106 ?r }
Nikita Lobanov
action filter_type
action find
entity Nikita Lobanov
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Nikita_Lobanov property:occupation ?r }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q18217591
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q18217591 property:P106 ?r }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Nikita Lobanov
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Nikita_Lobanov property:occupation ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18217591
P19
Q56061
USER
Where was Nikita Lobanov born ?
(Q18217591,P19,c(Q56061))
action filter_type
action find
entity Q18217591
relation P19
type Q56061
['Q18217591', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q18217591 property:P19 ?e }
Nikita Lobanov
action filter_type
action find
entity Nikita Lobanov
relation place of birth
type administrative territorial entity
['Nikita Lobanov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Nikita_Lobanov property:place_of_birth ?e }
[]
administrative territorial entity
Q5426
SYSTEM
Izhevsk
Q5426
(Q18217591,P19,c(Q56061))
action filter_type
action find
entity Q18217591
relation P19
type Q56061
Nikita Lobanov was born in [ANSWER]
['Q18217591', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q18217591 property:P19 ?e }
Izhevsk
Nikita Lobanov was born in Izhevsk
Izhevsk
action filter_type
action find
entity Nikita Lobanov
relation place of birth
type administrative territorial entity
['Nikita Lobanov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Nikita_Lobanov property:place_of_birth ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18217591
P21
Q290
USER
What is the sex of that person ?
(Q5426,P21,c(Q290))
action filter_type
action find
entity Q18217591
relation P21
type Q290
['Q5426', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q18217591 property:P21 ?i . ?i rdf:type ontology:Q290 }
Nikita Lobanov
action filter_type
action find
entity Nikita Lobanov
relation gender
type sex
['Izhevsk', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Nikita_Lobanov property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5426,P21,c(Q290))
action filter_type
action find
entity Q18217591
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q5426', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q18217591 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Nikita Lobanov
relation gender
type sex
['Izhevsk', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Nikita_Lobanov property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5218105 Q18217591
P21
Q290
USER
Or Daniel McGettigan?
OR((Q18217591,P21,c(Q290)), (Q5218105,P21,c(Q290)))
action filter_type
action union
action find
entity Q18217591
relation P21
action find
entity Q5218105
relation P21
type Q290
{'OR': [['Q18217591', 'P21', {'concept': 'Q290'}], ['Q5218105', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q18217591 property:P21 ?w } UNION { resource:Q5218105 property:P21 ?w } } . ?w rdf:type ontology:Q290 }
Daniel McGettigan Nikita Lobanov
action filter_type
action union
action find
entity Nikita Lobanov
relation gender
action find
entity Daniel McGettigan
relation gender
type sex
{'OR': [['Nikita Lobanov', 'gender', {'concept': 'sex'}], ['Daniel McGettigan', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Nikita_Lobanov property:gender ?w } UNION { resource:Daniel_McGettigan property:gender ?w } } . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q18217591,P21,c(Q290)), (Q5218105,P21,c(Q290)))
action filter_type
action union
action find
entity Q18217591
relation P21
action find
entity Q5218105
relation P21
type Q290
[ANSWER]
{'OR': [['Q18217591', 'P21', {'concept': 'Q290'}], ['Q5218105', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q18217591 property:P21 ?w } UNION { resource:Q5218105 property:P21 ?w } } . ?w rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Nikita Lobanov
relation gender
action find
entity Daniel McGettigan
relation gender
type sex
{'OR': [['Nikita Lobanov', 'gender', {'concept': 'sex'}], ['Daniel McGettigan', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Nikita_Lobanov property:gender ?w } UNION { resource:Daniel_McGettigan property:gender ?w } } . ?w rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q1307214 Q178706 Q12737077
USER
Which occupations did max number of forms of government or institutions appoint ?
(c(Q12737077),P748,c(Q1307214)|c(Q178706))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q178706
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?b WHERE { { ?b property:P748 ?p . ?b rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q1307214 } UNION { ?b rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q178706 . ?b property:P748 ?p } } GROUP BY ?b } . FILTER ( ?u = ?f ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?t WHERE { { ?t property:P748 ?v . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q1307214 } UNION { ?t property:P748 ?v . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q178706 } } GROUP BY ?t } } }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'institution'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?b WHERE { { ?b property:appointed_by ?p . ?b rdf:type ontology:occupation . ?p rdf:type ontology:form_of_government } UNION { ?b rdf:type ontology:occupation . ?p rdf:type ontology:institution . ?b property:appointed_by ?p } } GROUP BY ?b } . FILTER ( ?u = ?f ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?t WHERE { { ?t property:appointed_by ?v . ?t rdf:type ontology:occupation . ?v rdf:type ontology:form_of_government } UNION { ?t property:appointed_by ?v . ?t rdf:type ontology:occupation . ?v rdf:type ontology:institution } } GROUP BY ?t } } }
[]
form of government institution occupation
Q81066 Q217217 Q1281611
SYSTEM
United Nations Secretary-General, Lord Chancellor, Lieutenant Governor of Jersey
Q1355456 Q1507619 Q740126 Q910308 Q1753754 Q943379 Q1161813 Q583809 Q2962001 Q8882 Q213107 Q162754 Q217217 Q634291 Q735587 Q1281611 Q81066 Q1752225 Q687908
(c(Q12737077),P748,c(Q1307214)|c(Q178706))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q178706
Max number of forms of government or institutions appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?b WHERE { { ?b property:P748 ?p . ?b rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q1307214 } UNION { ?b rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q178706 . ?b property:P748 ?p } } GROUP BY ?b } . FILTER ( ?u = ?f ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?t WHERE { { ?t property:P748 ?v . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q1307214 } UNION { ?t property:P748 ?v . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q178706 } } GROUP BY ?t } } }
Lord Chamberlain Deputy Prime Minister of the United Kingdom President of the European Parliament Lord Privy Seal Master of the Rolls Lord President of the Council President of the United Nations General Assembly Solicitor General for England and Wales Chief of the Defence Staff President of the European Commission Prime Minister of Belgium Chancellor of the Duchy of Lancaster Lord Chancellor High Representative of the Union for Foreign Affairs and Security Policy President of the European Council Lieutenant Governor of Jersey United Nations Secretary-General Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
Max number of forms of government or institutions appointed by United Nations Secretary-General, Lord Chancellor and Lieutenant Governor of Jersey
United Nations Secretary-General Lord Chancellor Lieutenant Governor of Jersey
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'institution'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?b WHERE { { ?b property:appointed_by ?p . ?b rdf:type ontology:occupation . ?p rdf:type ontology:form_of_government } UNION { ?b rdf:type ontology:occupation . ?p rdf:type ontology:institution . ?b property:appointed_by ?p } } GROUP BY ?b } . FILTER ( ?u = ?f ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?t WHERE { { ?t property:appointed_by ?v . ?t rdf:type ontology:occupation . ?v rdf:type ontology:form_of_government } UNION { ?t property:appointed_by ?v . ?t rdf:type ontology:occupation . ?v rdf:type ontology:institution } } GROUP BY ?t } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q217217
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q217217,P17,c(Q15617994))
action filter_type
action find
entity Q217217
relation P17
type Q15617994
['Q217217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q217217 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Lord Chancellor
action filter_type
action find
entity Lord Chancellor
relation country
type designation for an administrative territorial entity
['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lord_Chancellor property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1281611
SYSTEM
Did you mean Lieutenant Governor of Jersey ?
Q81066 Q217217 Q1281611
(Q81066,P17,c(Q15617994)) (Q217217,P17,c(Q15617994)) (Q1281611,P17,c(Q15617994))
[ANSWER]
['Q81066', 'P17', {'concept': 'Q15617994'}] ['Q217217', 'P17', {'concept': 'Q15617994'}] ['Q1281611', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q217217 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
United Nations Secretary-General Lord Chancellor Lieutenant Governor of Jersey
Did you mean Lieutenant Governor of Jersey ?
Lieutenant Governor of Jersey
['United Nations Secretary-General', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lieutenant Governor of Jersey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lord_Chancellor property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Lord Chancellor. Could you tell me the answer for that?
(Q217217,P17,c(Q15617994))
Q217217
['Q217217', 'P17', {'concept': 'Q15617994'}]
['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q217217,P17,c(Q15617994))
action filter_type
action find
entity Q217217
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q217217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q217217 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
United Kingdom
That occupation is located in United Kingdom
United Kingdom
action filter_type
action find
entity Lord Chancellor
relation country
type designation for an administrative territorial entity
['Lord Chancellor', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lord_Chancellor property:country ?y . ?y 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
P180
Q15617994 Q340169 Q838948
USER
How many administrative territories are depicted in atmost 3 medias and works of art ?
(c(Q340169)|c(Q838948),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
value 3
[[{'concept': 'Q340169'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?y property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q340169 } UNION { ?y property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q838948 } } GROUP BY ?d } . FILTER ( ?a <= 3 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
value 3
[[{'concept': 'media'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?y property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:media } UNION { ?y property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:work_of_art } } GROUP BY ?d } . FILTER ( ?a <= 3 ) }
[]
designation for an administrative territorial entity media work of art
SYSTEM
93
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q340169)|c(Q838948),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
value 3
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?y property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q340169 } UNION { ?y property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q838948 } } GROUP BY ?d } . FILTER ( ?a <= 3 ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
93
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
value 3
[[{'concept': 'media'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?y property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:media } UNION { ?y property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:work_of_art } } GROUP BY ?d } . FILTER ( ?a <= 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q15617994 Q4164871 Q15617994
USER
Which administrative territories have max number of administrative territories and positions as government ?
(c(Q15617994),P122,c(Q15617994)|c(Q4164871))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?s WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q4164871 ) } . ?y rdf:type ?v } GROUP BY ?s } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q4164871 ) } . ?d rdf:type ?i } GROUP BY ?p } }
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'position'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?s WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:position ) } . ?y rdf:type ?v } GROUP BY ?s } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:position ) } . ?d rdf:type ?i } GROUP BY ?p } }
[]
designation for an administrative territorial entity position designation for an administrative territorial entity
Q889 Q815731 Q689837
SYSTEM
Afghanistan, Principality of Bulgaria, Spanish Sahara
Q889 Q689837 Q313175 Q815731 Q1483510 Q696651
(c(Q15617994),P122,c(Q15617994)|c(Q4164871))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
[ANSWERS] have max number of administrative territories and positions as government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?s WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q4164871 ) } . ?y rdf:type ?v } GROUP BY ?s } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q4164871 ) } . ?d rdf:type ?i } GROUP BY ?p } }
Afghanistan Spanish Sahara Saxe-Lauenburg Principality of Bulgaria Principality of Wales Saxe-Eisenach
Afghanistan, Principality of Bulgaria and Spanish Sahara have max number of administrative territories and positions as government
Afghanistan Principality of Bulgaria Spanish Sahara
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'position'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?s WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:position ) } . ?y rdf:type ?v } GROUP BY ?s } } . FILTER ( ?f = ?w ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:position ) } . ?d rdf:type ?i } GROUP BY ?p } }
[]