Simple Question (Direct)
Simple Question
Q7325648
P19
Q1496967
USER
Which territory is the place of birth of Richard Fenwick ?
(Q7325648,P19,c(Q1496967))
action filter_type
action find
entity Q7325648
relation P19
type Q1496967
['Q7325648', 'P19', {'concept': 'Q1496967'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1496967 . resource:Q7325648 property:P19 ?w }
Richard Fenwick
action filter_type
action find
entity Richard Fenwick
relation place of birth
type territorial entity
['Richard Fenwick', 'place of birth', {'concept': 'territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:territorial_entity . resource:Richard_Fenwick property:place_of_birth ?w }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q7325648,P19,c(Q1496967))
action filter_type
action find
entity Q7325648
relation P19
type Q1496967
[ANSWER] is the place of birth of Richard Fenwick
['Q7325648', 'P19', {'concept': 'Q1496967'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1496967 . resource:Q7325648 property:P19 ?w }
England
England is the place of birth of Richard Fenwick
England
action filter_type
action find
entity Richard Fenwick
relation place of birth
type territorial entity
['Richard Fenwick', 'place of birth', {'concept': 'territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:territorial_entity . resource:Richard_Fenwick property:place_of_birth ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7325648
P641
Q349
USER
Which sport was that person a part of ?
(Q21,P641,c(Q349))
action filter_type
action find
entity Q7325648
relation P641
type Q349
['Q21', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q7325648 property:P641 ?j . ?j rdf:type ontology:Q349 }
Richard Fenwick
action filter_type
action find
entity Richard Fenwick
relation sport
type sport
['England', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Fenwick property:sport ?j . ?j rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q21,P641,c(Q349))
action filter_type
action find
entity Q7325648
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q21', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q7325648 property:P641 ?j . ?j rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Richard Fenwick
relation sport
type sport
['England', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Fenwick property:sport ?j . ?j rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P805
Q838948
USER
What is the subject of that sport ?
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?d WHERE { ?d property:P805 resource:Q2736 . ?d rdf:type ontology:Q838948 }
association football
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?d WHERE { ?d property:subject_of resource:association_football . ?d rdf:type ontology:work_of_art }
[]
work of art
Q869862
SYSTEM
Goal!
Q869862
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
The subject of that sport is [ANSWER]
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?d WHERE { ?d property:P805 resource:Q2736 . ?d rdf:type ontology:Q838948 }
Goal!
The subject of that sport is Goal!
Goal!
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?d WHERE { ?d property:subject_of resource:association_football . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7325648
P106
Q12737077
USER
Which occupation has Richard Fenwick as his/her 's career ?
(Q7325648,P106,c(Q12737077))
action filter_type
action find
entity Q7325648
relation P106
type Q12737077
['Q7325648', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q7325648 property:P106 ?j }
Richard Fenwick
action filter_type
action find
entity Richard Fenwick
relation occupation
type occupation
['Richard Fenwick', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Richard_Fenwick property:occupation ?j }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7325648,P106,c(Q12737077))
action filter_type
action find
entity Q7325648
relation P106
type Q12737077
Player [ANSWER] has Richard Fenwick as his/her 's career
['Q7325648', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q7325648 property:P106 ?j }
association football player
Player association football player has Richard Fenwick as his/her 's career
association football player
action filter_type
action find
entity Richard Fenwick
relation occupation
type occupation
['Richard Fenwick', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Richard_Fenwick property:occupation ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7325648
P21
Q290
USER
Which sex does Richard Fenwick belong to ?
(Q7325648,P21,c(Q290))
action filter_type
action find
entity Q7325648
relation P21
type Q290
['Q7325648', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q7325648 property:P21 ?r . ?r rdf:type ontology:Q290 }
Richard Fenwick
action filter_type
action find
entity Richard Fenwick
relation gender
type sex
['Richard Fenwick', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Richard_Fenwick property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7325648,P21,c(Q290))
action filter_type
action find
entity Q7325648
relation P21
type Q290
Richard Fenwick belongs to [ANSWER]
['Q7325648', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q7325648 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Richard Fenwick belongs to male
male
action filter_type
action find
entity Richard Fenwick
relation gender
type sex
['Richard Fenwick', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Richard_Fenwick property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7325648
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7325648
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7325648 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Richard Fenwick
action filter_type
action find
entity Richard Fenwick
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Richard_Fenwick property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7325648
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7325648 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Richard Fenwick
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Richard_Fenwick property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of lesser number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find_reverse
entity Q145
relation P495
type Q2031291
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q2031291 } GROUP BY ?s } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P495 resource:Q145 . ?i rdf:type ontology:Q2031291 } } }
action less
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type release
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:release } GROUP BY ?s } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:country_of_origin resource:United_Kingdom . ?i rdf:type ontology:release } } }
[]
designation for an administrative territorial entity release
Q155 Q230 Q159
SYSTEM
Brazil, Georgia, Russia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 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 Q928 Q39 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 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(Q2031291),P495,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find_reverse
entity Q145
relation P495
type Q2031291
[ANSWERS] are the countries of origin of lesser number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q2031291 } GROUP BY ?s } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:P495 resource:Q145 . ?i rdf:type ontology:Q2031291 } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina 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 Philippines Switzerland 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 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
Brazil, Georgia and Russia are the countries of origin of lesser number of releases than that administrative territory
Brazil Georgia Russia
action less
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type release
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:release } GROUP BY ?s } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i property:country_of_origin resource:United_Kingdom . ?i rdf:type ontology:release } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q159
P127
Q43229 Q3947
USER
How many organizations and houses belongs to Russia ?
(c(Q43229),P127,Q159) (c(Q3947),P127,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P127
type Q43229
action filter_type
action find_reverse
entity Q159
relation P127
type Q3947
[{'concept': 'Q43229'}, 'P127', 'Q159'] [{'concept': 'Q3947'}, 'P127', 'Q159']
SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { { ?f rdf:type ontology:Q43229 . ?f property:P127 resource:Q159 } UNION { ?f rdf:type ontology:Q3947 . ?f property:P127 resource:Q159 } }
Russia
action count
action union
action filter_type
action find_reverse
entity Russia
relation owned by
type organization
action filter_type
action find_reverse
entity Russia
relation owned by
type house
[{'concept': 'organization'}, 'owned by', 'Russia'] [{'concept': 'house'}, 'owned by', 'Russia']
SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { { ?f rdf:type ontology:organization . ?f property:owned_by resource:Russia } UNION { ?f rdf:type ontology:house . ?f property:owned_by resource:Russia } }
[]
organization house
SYSTEM
3 organizations and 1 houses
Q1549389 Q4330413 Q16642856 Q4291715
(c(Q43229),P127,Q159) (c(Q3947),P127,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P127
type Q43229
action filter_type
action find_reverse
entity Q159
relation P127
type Q3947
[ANSWER]
[{'concept': 'Q43229'}, 'P127', 'Q159'] [{'concept': 'Q3947'}, 'P127', 'Q159']
SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { { ?f rdf:type ontology:Q43229 . ?f property:P127 resource:Q159 } UNION { ?f rdf:type ontology:Q3947 . ?f property:P127 resource:Q159 } }
VTB United Shipbuilding Corporation hôtel d'Estrées Meteor Zavod
3 organizations and 1 houses
action count
action union
action filter_type
action find_reverse
entity Russia
relation owned by
type organization
action filter_type
action find_reverse
entity Russia
relation owned by
type house
[{'concept': 'organization'}, 'owned by', 'Russia'] [{'concept': 'house'}, 'owned by', 'Russia']
SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { { ?f rdf:type ontology:organization . ?f property:owned_by resource:Russia } UNION { ?f rdf:type ontology:house . ?f property:owned_by resource:Russia } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q484692 Q7725634 Q15617994
USER
Which administrative territories have an anthem named max number of hymns or literary works ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?x rdf:type ?f } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?o WHERE { { ?o property:P85 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q484692 } UNION { ?o property:P85 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q7725634 } } GROUP BY ?o } . FILTER ( ?e = ?s ) }
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) ?r WHERE { VALUES ( ?f ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?x rdf:type ?f } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?o WHERE { { ?o property:anthem ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:hymn } UNION { ?o property:anthem ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:literary_work } } GROUP BY ?o } . FILTER ( ?e = ?s ) }
[]
hymn literary work designation for an administrative territorial entity
Q159 Q242 Q1045
SYSTEM
Russia, Belize, Somalia
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[ANSWERS] have an anthem named max number of hymns or literary works
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?x rdf:type ?f } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?o WHERE { { ?o property:P85 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q484692 } UNION { ?o property:P85 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q7725634 } } GROUP BY ?o } . FILTER ( ?e = ?s ) }
Russia Belize Somalia
Russia, Belize and Somalia have an anthem named max number of hymns or literary works
Russia Belize Somalia
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) ?r WHERE { VALUES ( ?f ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?x rdf:type ?f } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?o WHERE { { ?o property:anthem ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:hymn } UNION { ?o property:anthem ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:literary_work } } GROUP BY ?o } . FILTER ( ?e = ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q838948 Q7725634 Q15850590
USER
Which works of art do max number of literary works and theatrical genres extend upon ?
(c(Q7725634)|c(Q15850590),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q15850590
[[{'concept': 'Q7725634'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { ?x rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15850590 ) ( ontology:Q7725634 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?b WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q15850590 ) } . ?t rdf:type ?q } GROUP BY ?b } . FILTER ( ?l = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type theatrical genre
[[{'concept': 'literary work'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { ?x rdf:type ?f . VALUES ( ?f ) { ( ontology:theatrical_genre ) ( ontology:literary_work ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?b WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:theatrical_genre ) } . ?t rdf:type ?q } GROUP BY ?b } . FILTER ( ?l = ?y ) }
[]
work of art literary work theatrical genre
Q104871
SYSTEM
A Midsummer Night's Dream
Q104871
(c(Q7725634)|c(Q15850590),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q15850590
Which works of art max number of literary works and theatrical genres extend upon
[[{'concept': 'Q7725634'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { ?x rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15850590 ) ( ontology:Q7725634 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?b WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q15850590 ) } . ?t rdf:type ?q } GROUP BY ?b } . FILTER ( ?l = ?y ) }
A Midsummer Night's Dream
Which works of art max number of literary works and theatrical genres extend upon
A Midsummer Night's Dream
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type theatrical genre
[[{'concept': 'literary work'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { ?x rdf:type ?f . VALUES ( ?f ) { ( ontology:theatrical_genre ) ( ontology:literary_work ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?b WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:theatrical_genre ) } . ?t rdf:type ?q } GROUP BY ?b } . FILTER ( ?l = ?y ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q104871 Q1860
P364
Q34770
USER
Was English used originally for the creation of that work of art ?
(Q104871,P364,Q1860)
action is_in
entity Q1860
action find
entity Q104871
relation P364
['Q104871', 'P364', 'Q1860']
ASK WHERE { resource:Q104871 property:P364 resource:Q1860 }
A Midsummer Night's Dream English
action is_in
entity English
action find
entity A Midsummer Night's Dream
relation original language of work
["A Midsummer Night's Dream", 'original language of work', 'English']
ASK WHERE { resource:A_Midsummer_Night's_Dream property:original_language_of_work resource:English }
[]
language
SYSTEM
YES
(Q104871,P364,Q1860)
action is_in
entity Q1860
action find
entity Q104871
relation P364
[ANSWER]
['Q104871', 'P364', 'Q1860']
ASK WHERE { resource:Q104871 property:P364 resource:Q1860 }
Yes
action is_in
entity English
action find
entity A Midsummer Night's Dream
relation original language of work
["A Midsummer Night's Dream", 'original language of work', 'English']
ASK WHERE { resource:A_Midsummer_Night's_Dream property:original_language_of_work resource:English }
[]