Simple Question (Direct)
Simple Question
Q2390220
P495
Q15617994
USER
Which administrative territory is the origin of King of Punk ?
(Q2390220,P495,c(Q15617994))
action filter_type
action find
entity Q2390220
relation P495
type Q15617994
['Q2390220', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2390220 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
King of Punk
action filter_type
action find
entity King of Punk
relation country of origin
type designation for an administrative territorial entity
['King of Punk', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:King_of_Punk property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q2390220,P495,c(Q15617994))
action filter_type
action find
entity Q2390220
relation P495
type Q15617994
[ANSWER] is the origin of King of Punk
['Q2390220', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2390220 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of King of Punk
United States of America
action filter_type
action find
entity King of Punk
relation country of origin
type designation for an administrative territorial entity
['King of Punk', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:King_of_Punk property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2390220
P161
Q502895
USER
Which people are in King of Punk ?
(Q2390220,P161,c(Q502895))
action filter_type
action find
entity Q2390220
relation P161
type Q502895
['Q2390220', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2390220 property:P161 ?q . ?q rdf:type ontology:Q502895 }
King of Punk
action filter_type
action find
entity King of Punk
relation cast member
type common name
['King of Punk', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:King_of_Punk property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
common name
Q454573 Q3806274 Q543039
SYSTEM
Marky Ramone, Jake Burns, Penelope Houston
Q543039 Q991633 Q2569072 Q454573 Q3806274 Q1066904 Q3703028 Q2756486
(Q2390220,P161,c(Q502895))
action filter_type
action find
entity Q2390220
relation P161
type Q502895
[ANSWERS] are in King of Punk
['Q2390220', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2390220 property:P161 ?q . ?q rdf:type ontology:Q502895 }
Penelope Houston Bruce Foxton Wattie Buchan Marky Ramone Jake Burns Charlie Harper Dave Dictor Cheetah Chrome
Marky Ramone, Jake Burns and Penelope Houston are in King of Punk
Marky Ramone Jake Burns Penelope Houston
action filter_type
action find
entity King of Punk
relation cast member
type common name
['King of Punk', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:King_of_Punk property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q454573 Q3806274 Q543039
P161
Q838948
USER
Which works of art have Marky Ramone, Jake Burns and Penelope Houston in their star cast ?
(c(Q838948),P161,Q454573) (c(Q838948),P161,Q3806274) (c(Q838948),P161,Q543039)
action union
action filter_type
action find_reverse
entity Q454573
relation P161
type Q838948
action filter_type
action find_reverse
entity Q3806274
relation P161
type Q838948
action filter_type
action find_reverse
entity Q543039
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q454573'] [{'concept': 'Q838948'}, 'P161', 'Q3806274'] [{'concept': 'Q838948'}, 'P161', 'Q543039']
SELECT DISTINCT ?m WHERE { ?m property:P161 ?f . VALUES ( ?f ) { ( resource:Q3806274 ) ( resource:Q454573 ) } }
Marky Ramone Jake Burns Penelope Houston
action union
action filter_type
action find_reverse
entity Marky Ramone
relation cast member
type work of art
action filter_type
action find_reverse
entity Jake Burns
relation cast member
type work of art
action filter_type
action find_reverse
entity Penelope Houston
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Marky Ramone'] [{'concept': 'work of art'}, 'cast member', 'Jake Burns'] [{'concept': 'work of art'}, 'cast member', 'Penelope Houston']
SELECT DISTINCT ?m WHERE { ?m property:cast_member ?f . VALUES ( ?f ) { ( resource:Jake_Burns ) ( resource:Marky_Ramone ) } }
[]
work of art
Q1817024 Q2390220 Q2390220
SYSTEM
Lemmy for 1st, King of Punk for 2nd, 3rd
Q2390220 Q1817024 Q2390220 Q2390220
(c(Q838948),P161,Q454573) (c(Q838948),P161,Q3806274) (c(Q838948),P161,Q543039)
action union
action filter_type
action find_reverse
entity Q454573
relation P161
type Q838948
action filter_type
action find_reverse
entity Q3806274
relation P161
type Q838948
action filter_type
action find_reverse
entity Q543039
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q454573'] [{'concept': 'Q838948'}, 'P161', 'Q3806274'] [{'concept': 'Q838948'}, 'P161', 'Q543039']
SELECT DISTINCT ?m WHERE { ?m property:P161 ?f . VALUES ( ?f ) { ( resource:Q3806274 ) ( resource:Q454573 ) } }
King of Punk Lemmy King of Punk King of Punk
Lemmy, King of Punk and King of Punk have Marky Ramone, Jake Burns and Penelope Houston in their star cast
Lemmy King of Punk King of Punk
action union
action filter_type
action find_reverse
entity Marky Ramone
relation cast member
type work of art
action filter_type
action find_reverse
entity Jake Burns
relation cast member
type work of art
action filter_type
action find_reverse
entity Penelope Houston
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Marky Ramone'] [{'concept': 'work of art'}, 'cast member', 'Jake Burns'] [{'concept': 'work of art'}, 'cast member', 'Penelope Houston']
SELECT DISTINCT ?m WHERE { ?m property:cast_member ?f . VALUES ( ?f ) { ( resource:Jake_Burns ) ( resource:Marky_Ramone ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1817024
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q1817024,P136,c(Q1792379))
action filter_type
action find
entity Q1817024
relation P136
type Q1792379
['Q1817024', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { resource:Q1817024 property:P136 ?a . ?a rdf:type ontology:Q1792379 }
Lemmy
action filter_type
action find
entity Lemmy
relation genre
type art genre
['Lemmy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { resource:Lemmy property:genre ?a . ?a rdf:type ontology:art_genre }
[]
art genre
Clarification for simple ques.
Q2390220
SYSTEM
Did you mean King of Punk ?
Q1817024 Q2390220 Q2390220
(Q1817024,P136,c(Q1792379)) (Q2390220,P136,c(Q1792379)) (Q2390220,P136,c(Q1792379))
[ANSWER]
['Q1817024', 'P136', {'concept': 'Q1792379'}] ['Q2390220', 'P136', {'concept': 'Q1792379'}] ['Q2390220', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { resource:Q1817024 property:P136 ?a . ?a rdf:type ontology:Q1792379 }
Lemmy King of Punk King of Punk
Did you mean King of Punk ?
King of Punk
['Lemmy', 'genre', {'concept': 'art genre'}] ['King of Punk', 'genre', {'concept': 'art genre'}] ['King of Punk', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { resource:Lemmy property:genre ?a . ?a rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant Lemmy. Could you tell me the answer for that?
(Q1817024,P136,c(Q1792379))
Q1817024
['Q1817024', 'P136', {'concept': 'Q1792379'}]
['Lemmy', 'genre', {'concept': 'art genre'}]
[]
Q93204
SYSTEM
documentary film
Q93204
(Q1817024,P136,c(Q1792379))
action filter_type
action find
entity Q1817024
relation P136
type Q1792379
[ANSWER] can be considered as category for that work of art
['Q1817024', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { resource:Q1817024 property:P136 ?a . ?a rdf:type ontology:Q1792379 }
documentary film
Documentary film can be considered as category for that work of art
documentary film
action filter_type
action find
entity Lemmy
relation genre
type art genre
['Lemmy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { resource:Lemmy property:genre ?a . ?a rdf:type ontology:art_genre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22108626 Q454573
P27
Q15617994
USER
Which administrative territories are the native countriesof Marky Ramone or Li Jiang ?
OR((Q454573,P27,c(Q15617994)), (Q22108626,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q454573
relation P27
action find
entity Q22108626
relation P27
type Q15617994
{'OR': [['Q454573', 'P27', {'concept': 'Q15617994'}], ['Q22108626', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?r property:P27 ?k . VALUES ( ?r ) { ( resource:Q22108626 ) ( resource:Q454573 ) } } . ?k rdf:type ontology:Q15617994 }
Li Jiang Marky Ramone
action filter_type
action union
action find
entity Marky Ramone
relation country of citizenship
action find
entity Li Jiang
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marky Ramone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Li Jiang', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?r property:country_of_citizenship ?k . VALUES ( ?r ) { ( resource:Li_Jiang ) ( resource:Marky_Ramone ) } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q30
SYSTEM
People's Republic of China, United States of America
Q148 Q30
OR((Q454573,P27,c(Q15617994)), (Q22108626,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q454573
relation P27
action find
entity Q22108626
relation P27
type Q15617994
[ANSWERS] are the native countriesof Marky Ramone or Li Jiang
{'OR': [['Q454573', 'P27', {'concept': 'Q15617994'}], ['Q22108626', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?r property:P27 ?k . VALUES ( ?r ) { ( resource:Q22108626 ) ( resource:Q454573 ) } } . ?k rdf:type ontology:Q15617994 }
People's Republic of China United States of America
People's Republic of China and United States of America are the native countriesof Marky Ramone or Li Jiang
People's Republic of China United States of America
action filter_type
action union
action find
entity Marky Ramone
relation country of citizenship
action find
entity Li Jiang
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marky Ramone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Li Jiang', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?r property:country_of_citizenship ?k . VALUES ( ?r ) { ( resource:Li_Jiang ) ( resource:Marky_Ramone ) } } . ?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 tactful political relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?h ) { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?r ) WHERE { ?o property:P530 ?y . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?z ) WHERE { ?i property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?z = ?h ) }
action argmin
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?h ) { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?r ) WHERE { ?o property:diplomatic_relation ?y . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?z ) WHERE { ?i property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?z = ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have tactful political relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?h ) { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?r ) WHERE { ?o property:P530 ?y . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?z ) WHERE { ?i property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?z = ?h ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have tactful political relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?h ) { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?r ) WHERE { ?o property:diplomatic_relation ?y . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?z ) WHERE { ?i property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?z = ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q29999
P85
Q484692
USER
What is the anthem for that administrative territory ?
(Q29999,P85,c(Q484692))
action filter_type
action find
entity Q29999
relation P85
type Q484692
['Q29999', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q29999 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Kingdom of the Netherlands
action filter_type
action find
entity Kingdom of the Netherlands
relation anthem
type hymn
['Kingdom of the Netherlands', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Kingdom_of_the_Netherlands property:anthem ?h . ?h rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q29999
SYSTEM
Did you mean Kingdom of the Netherlands ?
Q29999 Q786 Q924
(Q29999,P85,c(Q484692)) (Q786,P85,c(Q484692)) (Q924,P85,c(Q484692))
[ANSWER]
['Q29999', 'P85', {'concept': 'Q484692'}] ['Q786', 'P85', {'concept': 'Q484692'}] ['Q924', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q29999 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Kingdom of the Netherlands Dominican Republic Tanzania
Did you mean Kingdom of the Netherlands ?
Kingdom of the Netherlands
['Kingdom of the Netherlands', 'anthem', {'concept': 'hymn'}] ['Dominican Republic', 'anthem', {'concept': 'hymn'}] ['Tanzania', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Kingdom_of_the_Netherlands property:anthem ?h . ?h rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
Yes
(Q29999,P85,c(Q484692))
['Q29999', 'P85', {'concept': 'Q484692'}]
['Kingdom of the Netherlands', 'anthem', {'concept': 'hymn'}]
[]
Q131713
SYSTEM
Wilhelmus
Q131713
(Q29999,P85,c(Q484692))
action filter_type
action find
entity Q29999
relation P85
type Q484692
The anthem for that administrative territory is the [ANSWER]
['Q29999', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q29999 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Wilhelmus
The anthem for that administrative territory is the Wilhelmus
Wilhelmus
action filter_type
action find
entity Kingdom of the Netherlands
relation anthem
type hymn
['Kingdom of the Netherlands', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Kingdom_of_the_Netherlands property:anthem ?h . ?h rdf:type ontology:hymn }
[]